Oracle

Moderators: None (Apply to moderate this forum)
Number of threads: 348
Number of posts: 673

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to display Oracle version currently running? Posted by Bob_Mitchell on 11 Feb 2002 at 1:16 PM
Hello!

I need to know current version of Oracle running on our Sun Solaris box.

I was able to find the following directory:

/RDBMS/app/oracle/product/8.1.5

by using the command: echo $ORAHOME

I had thought there was a command that can be used from the Unix command line to tell one the current version of Oracle.

Thanks!
Bob Mitchell
Report
Re: How to display Oracle version currently running? Posted by Ara_cam on 12 Feb 2002 at 6:39 AM
This message was edited by the Ara_cam at 2002-2-12 6:40:39

: I need to know current version of Oracle running on our Sun Solaris box.
: I was able to find the following directory:
: /RDBMS/app/oracle/product/8.1.5
: by using the command: echo $ORAHOME
: I had thought there was a command that can be used from the Unix command line to tell one the current version of Oracle.
: Thanks!
: Bob Mitchell

Not sure how to do this from a unix prompt, but if you can connect to the database using sqlplus, it will show you the current version number after you log in. The Sql*Plus screen should look something like this:

SQL*Plus: Release 8.1.6.0.0 - Production on Tue Feb 12 07:44:19 2002

(c) Copyright 1999 Oracle Corporation. All rights reserved.


Connected to:
Oracle8i Enterprise Edition Release 8.1.6.3.0 - Production
With the Partitioning option
JServer Release 8.1.6.3.0 - Production


Which shows you that your client (SQL*Plus) is version 8.1.6.0, and you are connected to an enterprise edition of Oracle, version 8.1.6.3.

Hope this helps!


Report
Thanks! I'll give that a try! Posted by Bob_Mitchell on 12 Feb 2002 at 6:50 AM
: This message was edited by the Ara_cam at 2002-2-12 6:40:39

: : I need to know current version of Oracle running on our Sun Solaris box.
: : I was able to find the following directory:
: : /RDBMS/app/oracle/product/8.1.5
: : by using the command: echo $ORAHOME
: : I had thought there was a command that can be used from the Unix command line to tell one the current version of Oracle.
: : Thanks!
: : Bob Mitchell
:
: Not sure how to do this from a unix prompt, but if you can connect to the database using sqlplus, it will show you the current version number after you log in. The Sql*Plus screen should look something like this:
:
: SQL*Plus: Release 8.1.6.0.0 - Production on Tue Feb 12 07:44:19 2002
:
: (c) Copyright 1999 Oracle Corporation. All rights reserved.
:
:
: Connected to:
: Oracle8i Enterprise Edition Release 8.1.6.3.0 - Production
: With the Partitioning option
: JServer Release 8.1.6.3.0 - Production
:
:
: Which shows you that your client (SQL*Plus) is version 8.1.6.0, and you are connected to an enterprise edition of Oracle, version 8.1.6.3.
:
: Hope this helps!
:
:
:

Report
Re: Thanks! I'll give that a try! Posted by keving on 14 Feb 2002 at 1:48 AM
You could also use:
SELECT version FROM v$instance;
This would allow you to do it programmatically if required.
There is also other useful stuff in v$instance, such as the host and SID.

Report
Re: How to display Oracle version currently running? Posted by mhammadq on 20 Jan 2012 at 3:13 AM
Try this.

Select * from v$version;





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.