Home » Other » Client Tools » why is sqlplus -v different from select * from v$version (11.2.0.1 EE, SLES SP3 (i586))
why is sqlplus -v different from select * from v$version [message #633102] Tue, 10 February 2015 23:48 Go to next message
juniordbanewbie
Messages: 250
Registered: April 2014
Senior Member
Hi

path is as shown below
echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/bin:/bin:.:/opt/gnome/bin:/u01/app/oracle/product/11.2.0/dbhome_1/bin



all versions of sqlplus is as follow:
oracle@vmlinux:/u01/app/oracle/product/10.2.0/db_1/bin $ which -a sqlplus
/u01/app/oracle/product/10.2.0/db_1/bin/sqlplus
/u01/app/oracle/product/11.2.0/dbhome_1/bin/sqlplus



when I try to invoke sqlplus from 10.2.1

oracle@vmlinux:/u01/app/oracle/product/10.2.0/db_1/bin $ ./sqlplus -v
SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly



invoking sqlplus from 11.2.0 home,


oracle@vmlinux:/u01/app/oracle/oracle/product/11.2.0/dbhome_1/bin $ which sqlplus
/u01/app/oracle/oracle/product/11.2.0/dbhome_1/bin/sqlplus

oracle@vmlinux:/u01/app/oracle/oracle/product/11.2.0/dbhome_1/bin $ ./sqlplus -v

SQL*Plus: Release 10.2.0.4.0 - Production


when I login to db to found out the version:


SYS@o102>select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production

SYS@o102>SELECT name, value, issys_modifiable FROM v$parameter WHERE name='compatible';

NAME
--------------------------------------------------------------------------------
VALUE
--------------------------------------------------------------------------------
ISSYS_MOD
---------
compatible
10.2.0.1.0
FALSE



why is sqlplus -v different from v$version?

the nearest forum threat I get is https://community.oracle.com/thread/2541899 but that is not applicable in my case.

thanks



[Edit MC: fix url]

[Updated on: Wed, 11 February 2015 01:20] by Moderator

Report message to a moderator

Re: why is sqlplus -v different from select * from v$version [message #633105 is a reply to message #633102] Wed, 11 February 2015 00:54 Go to previous message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

"select * from v$version;" gives the database version.
"sqlplus -v" gives the client version.

Previous Topic: SQL Developer connection issues.
Next Topic: SP2-0642: SQL*Plus internal error state 2501, context 3:0:0
Goto Forum:
  


Current Time: Fri Mar 29 07:52:47 CDT 2024