The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
solaris-oracle rags_s11 SUN Solaris 3 06-19-2008 10:25 PM
Oracle Installation on Solaris panchpan SUN Solaris 5 10-23-2007 01:16 AM
Oracle on Solaris amon Shell Programming and Scripting 1 04-26-2006 06:55 AM
oracle on solaris sveera UNIX for Advanced & Expert Users 2 06-03-2005 08:50 AM
Oracle on solaris. niasdad UNIX Desktop for Dummies Questions & Answers 2 11-06-2002 08:40 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-18-2005
Registered User
 

Join Date: Mar 2005
Location: INDIA
Posts: 60
Stumble this Post!
Red face Oracle on Solaris

Hi friends,
i am given a new login id on a solaris system.And i have the basic .profile for that.Once i log in to that system how can i check if there is oracle installed on that solaris system ?
I would want to set the path and other variables if i find that oracle is installed on it.
Please help.
thanks in advance
sveera
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-18-2005
google's Avatar
Moderator
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
Stumble this Post!
try ps -ef | grep -i ora

Which will look for Oracle processes running on the machine. Also, you can check in /var/opt/oracle for a file called oratab (I think this is a typical location but I may be wrong - Im not a DBA )
Reply With Quote
  #3 (permalink)  
Old 04-18-2005
Registered User
 

Join Date: Mar 2005
Location: INDIA
Posts: 60
Stumble this Post!
Red face oracle

Hi ,
Thanks for the quick reply. when i typed the command that you gave i got a long listing . when i try to check for the ORACLE_HOME PATH variable it says that it is not set ..then what do i do to use oracle from my login ....i know what variables to set but it says that variables are not set ...then how come other users are using it ? is it because it is not set in my login it is giving that the variable is not set ?
thanks
sveera
Reply With Quote
  #4 (permalink)  
Old 04-18-2005
google's Avatar
Moderator
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
Stumble this Post!
Look for a file in /usr/local/bin/ called oraenv. If it exists, you can run this shell and pass it your SID value. The script will set ORACLE_HOME and other variables. If the file doesnt exist, then contact your DBA or app support person to understand how they have setup the database. If you saw a bunch of Oracle processes running, then you know Oracle was installed and is running.

Example
. /usr/local/bin/oraenv testDB
Reply With Quote
  #5 (permalink)  
Old 04-18-2005
Registered User
 

Join Date: Mar 2005
Location: INDIA
Posts: 60
Stumble this Post!
Red face Oracle

Hi ,
Thanks a lot for the response. But i am not sure about the ORACLE SID.
Actually i havent worked on oracle though i have the knowledge of SQL and PLSQL .
Do i have to approach the client to know the SID or can i get it by just typing in some command?
actually i am working using telnet to the clients machine.
thanks
sveera
Reply With Quote
  #6 (permalink)  
Old 04-18-2005
google's Avatar
Moderator
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
Stumble this Post!
The ORACLE_SID is the schema ID (instance) of the database that you wish to connect to. You will need to ask somebody what SID you should connect to. Actually, find the oratab file. You should have permissions to view this file. When you find it, open it up. It will have a series of entries with the format like this:

Code:
database_sid:oracle_home_dir:Y|N
Choose which SID you want to connect to based upon entries in this file (still probably want to ask somebody if you are truly not sure of what DB you should be in).
Reply With Quote
  #7 (permalink)  
Old 04-18-2005
Registered User
 

Join Date: Mar 2005
Location: INDIA
Posts: 60
Stumble this Post!
Talking oracle

Hi ,
Thanks a lot dear.
bye
veeras
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:12 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0