Solved

Determine Oracle version installed?

Posted on 2008-06-25
9
1,411 Views
Last Modified: 2013-12-19
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.
0
Comment
Question by:shannon_adams
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
9 Comments
 
LVL 74

Expert Comment

by:sdstuber
ID: 21869174
select * from v$version
0
 
LVL 74

Expert Comment

by:sdstuber
ID: 21869176

select * from v$instance  will also tell you the version
0
 
LVL 74

Expert Comment

by:sdstuber
ID: 21869182
you can also look in /etc/oratab

It should tell you the oracle home for each database
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:shannon_adams
ID: 21869282
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
 
LVL 74

Expert Comment

by:sdstuber
ID: 21869310
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
 

Author Comment

by:shannon_adams
ID: 21869395
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
 
LVL 74

Expert Comment

by:sdstuber
ID: 21869477
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
 
LVL 74

Accepted Solution

by:
sdstuber earned 500 total points
ID: 21871528
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
 

Author Closing Comment

by:shannon_adams
ID: 31470722
Thank you very much for all the help.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Oracle cursor lifecycle inside procedure. 2 36
Migration from sql server to oracle 5 48
plsql job on oracle 18 104
Oracle programming for starter 14 70
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

740 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