Determine Oracle version installed?

I have "inherited" some Oracle databases that were installed previous to my involvement.  I think Oracle itself is under /export/home/oracle/OraHome (Solaris 9).  I have the names of the databases with their usernames and passwords.  How do I determine what version of Oracle we are running?

Thanks.
shannon_adamsAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
sdstuberConnect With a Mentor Commented:
to find locations of some of the files I mentioned above...

spfile:    select value from v$parameter where name='spfile'    -- this might not NULL if you don't have one
ifile:  select value from v$parameter where name='ipfile'   -- this might NULL if you don't have one

control files:   select value from v$parameter where name='control_files'  

temp files:  select * from dba_temp_files  -- might return nothing if you aren't using them, older versions didn't have them and will return error if you try to query for them.

archive logs (redo):  select value from v$parameter where name like 'log_archive%'  -- might be null if you are not in archivelog mode.  If this is production, it should be in archivelog mode.
0
 
sdstuberCommented:
select * from v$version
0
 
sdstuberCommented:

select * from v$instance  will also tell you the version
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
sdstuberCommented:
you can also look in /etc/oratab

It should tell you the oracle home for each database
0
 
shannon_adamsAuthor Commented:
Thanks for the response.  I don't have a /etc/oratab file.  Also, I assume you mean run the select command once I connect to the database.  Sorry, but I don't know how to connect from the command line.  
0
 
sdstuberCommented:
oh sorry,

from command line.

sqlplus username/password@databasename

then yes, run those statements

/etc/oratab is commonly used and is created by default but is not required for databases to run.
0
 
shannon_adamsAuthor Commented:
Perfect, I got the version number.  If we don't have an oratab file, how can I tell where my Oracle databases are actually stored?
0
 
sdstuberCommented:
if you had oratab it would tell you the oracle home, which is where the oracle software that controls that database is installed and that's different from where the database itself is installed.


select file_name,tablespace_name from dba_data_files

that's where your data is.

there are lots of other files,  control files, pfile and/or spfile, redologs, etc.

do you know where to find those?  Do you have a dba on site?



0
 
shannon_adamsAuthor Commented:
Thank you very much for all the help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.