Solved

in oracle or sybase is there an ez way to determine the database instance name

Posted on 2010-08-17
4
344 Views
Last Modified: 2013-12-19
I am a sysadmin.

Do I have to call the dba to get his information ?  

0
Comment
Question by:TIMFOX123
  • 2
  • 2
4 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 33459683
In oracle a few ways to get database name.  This might be different from instance name.

Select * from global_name;

There are a few v$ vieww to get it from as well like V$instance.
0
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 250 total points
ID: 33459693
On mobile. Sorry for misread:

Unix look for pmon process.

Windows look at oracle services.
0
 
LVL 26

Expert Comment

by:wilcoxon
ID: 33459719
In Sybase, you can do:

select db_name()
go
0
 
LVL 26

Assisted Solution

by:wilcoxon
wilcoxon earned 250 total points
ID: 33459732
If you mean the process name, you can do "ps -ef | grep dataserver" on Unix.  I'm not sure what the executable name is on Windows.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now