189 8069 5689

如何验证oracle版本,怎么查oracle版本

怎么查看oracle版本

select * from v$version;

淮南网站建设公司创新互联,淮南网站设计制作,有大型网站制作公司丰富经验。已为淮南近千家提供企业网站建设服务。企业网站搭建\外贸营销网站建设要多少钱,请找那个售后服务好的淮南做网站的公司定做!

或select banner from sys.v_$version;

结果如下:

BANNER

1 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod

2 PL/SQL Release 10.2.0.1.0 - Production

3 CORE 10.2.0.1.0 Production

4 TNS for 32-bit Windows: Version 10.2.0.1.0 - Production

5 NLSRTL Version 10.2.0.1.0 - Production

例如:Oracle 9.0.1.1.2

9:版本号

0:新特性版本号

1(第一个):维护版本号

1(第二个):普通的补丁设置号码

2:非凡的平台补丁设置号码

Oracle 的版本号很多,先看11g的一个版本号说明:

注意: 

在oracle 9.2 版本之后, oracle 的maintenance release number 是在第二数字位更改。 而在之前,是在第三个数字位。

1. Major Database Release Number

第一个数字位,它代表的是一个新版本软件,也标志着一些新的功能。如11g,10g。

2. Database Maintenance Release Number

第二个数字位,代表一个maintenance release 级别,也可能包含一些新的特性。

3. Fusion Middleware Release Number

第三个数字位,反应Oracle 中间件(Oracle Fusion Middleware)的版本号。

4. Component-Specific Release Number

第四个数字位,主要是针对组件的发布级别。不同的组件具有不同的号码。 比如Oracle 的patch包。

5. Platform-Specific Release Number

第五个数字位,这个数字位标识一个平台的版本。 通常表示patch 号。

6. 如何查看版本信息:

(1) 查看v$version

SQL select * from v$version;

BANNER

----------------------------------------------------------------

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod

PL/SQL Release 10.2.0.4.0 - Production

CORE 10.2.0.4.0 Production

TNS for Linux: Version 10.2.0.4.0 - Production

NLSRTL Version 10.2.0.4.0 - Production

如何查看Oracle客户端版本及位数

一、查看oracle客户端版本:sqlplus -v

二、查看oracle客户端版本是32bit还是64bit:

方法一:

Step 1:运行sqlplus /nolog命令,如果你服务器安装了多个客户端版本,那么你应该进入对应安装目录的BIN目录后,运行该命令

C:\Users\Mr.Brucesqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on 星期一 8月 8 16:06:05 2016

Copyright (c) 1982, 2010, Oracle. All rights reserved.

SQL

Step 2:打开任务管理器,找到SQL*Plus进程,如果Oracle的客户端为32位,则在Image Name会标记为*32

Windows Server 2008 Oracle 32bit Client

clip_image002

Windows Server 2008 Oracle 64bit Client

clip_image003

方法二:

在%ORACLE_HOME%\inventory\ContentsXML目录下面找到comps.xml文件,例如我目前的测试服务器上路径为F:\Win10\app\Mr.Bruce\product\11.2.0\client_1\inventory\ContentsXML

如果PLAT="NT_AMD64"表示安装的是64位的Oracle 客户端,如果PLAT="NT_X86"则表示安装的是32位的Oracle客户端。

方法三:

select * from v$version;

select address from v$sql where rownum 2;

如何判断oracle的版本和位数

一、

打开orcale安装目录,如:D:\app\SSG\product\11.2.0\dbhome_1

11.2.0这个目录名就是版本

二、

主要有以下几种方法可以用来确定Oracle的位数:

1.通过SQLPLUS登录即可看出

a.64位登录时就有显示

$ sqlplus "/ as sysdba"

SQL*Plus: Release 9.2.0.4.0 - Production on Wed Nov 16 15:27:28 2005

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

Connected to:

Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production

With the Partitioning option

JServer Release 9.2.0.4.0 - Production

b.32位的无显示

[oracle@jumper oracle]$ sqlplus "/ as sysdba"

SQL*Plus: Release 9.2.0.4.0 - Production on Wed Nov 16 15:19:03 2005

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

Connected to:

Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production

With the Partitioning option

JServer Release 9.2.0.4.0 - Production

c.从v$version获取

SQL select * from v$version;

BANNER

------------------------------------------------------------

Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production

PL/SQL Release 9.2.0.6.0 - Production

CORE 9.2.0.6.0 Production

TNS for 32-bit Windows: Version 9.2.0.6.0 - Production

NLSRTL Version 9.2.0.6.0 - Production

2.从v$sql视图获取

a.如果输出为8位16进制数,则为32位Oracle

SQL select address from v$sql where rownum2;

ADDRESS

--------

578428D8

b.如果输出为16位16进制数,则为64位Oracle

SQL select address from v$sql where rownum2;

ADDRESS

----------------

000000040DFA01E0

3.使用系统命令file

a.如果输出带有32-bit字样为32位Oracle

[oracle@jumper oracle]$ file $ORACLE_HOME/bin/oracle

/opt/oracle/product/9.2.0/bin/oracle: setuid setgid ELF 32-bit LSB executable, Intel 80386..

b.如果输出带有64-bit字样为64位Oracle

$ file $ORACLE_HOME/bin/oracle

/opt/oracle/product/9.2.0/bin/oracle: ELF 64-bit MSB executable SPARCV9 Version 1..

oracle 查版本号,oracle怎样查版本

1. Major Database Release Number

第一个数字位,它代表的是一个新版本软件,也标志着一些新的功能。如11g,10g。

2. Database Maintenance Release Number

第二个数字位,代表一个maintenance release 级别,也可能包含一些新的特性。

3. Fusion Middleware Release Number

第三个数字位,反应Oracle 中间件(Oracle Fusion Middleware)的版本号。

4. Component-Specific Release Number

第四个数字位,主要是针对组件的发布级别。不同的组件具有不同的号码。 比如Oracle 的patch包。

5. Platform-Specific Release Number

第五个数字位,这个数字位标识一个平台的版本。 通常表示patch 号。


网站标题:如何验证oracle版本,怎么查oracle版本
网页链接:http://cdxtjz.cn/article/hcoppd.html

其他资讯