怎么查看oracle版本

2025-04-13 23:51:44
推荐回答(2个)
回答1:

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

回答2:

select * from v$version