以前查oracle的版本信息,只知道一种方法,就是用v$versions视图,如下:
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
PL/SQL Release 9.2.0.1.0 - Production
CORE 9.2.0.1.0 Production
TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
NLSRTL Version 9.2.0.1.0 - Production
今天在http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96521/dba.htm#13306上又学到一种方法:query the data dictionary view
SQL> col product format a35
SQL> col version format a15
SQL> col status format a15
SQL> select * from PRODUCT_COMPONENT_VERSION;
PRODUCT VERSION STATUS
----------------------------------- --------------- ---------------
NLSRTL 9.2.0.1.0 Production
Oracle9i Enterprise Edition 9.2.0.1.0 Production
PL/SQL 9.2.0.1.0 Production
TNS for 32-bit Windows: 9.2.0.1.0 Production
It's important to convey to Oracle the information displayed by this query when you report problems with the software
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
PL/SQL Release 9.2.0.1.0 - Production
CORE 9.2.0.1.0 Production
TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
NLSRTL Version 9.2.0.1.0 - Production
今天在http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96521/dba.htm#13306上又学到一种方法:query the data dictionary view
PRODUCT_COMPONENT_VERSION,如下:SQL> col product format a35
SQL> col version format a15
SQL> col status format a15
SQL> select * from PRODUCT_COMPONENT_VERSION;
PRODUCT VERSION STATUS
----------------------------------- --------------- ---------------
NLSRTL 9.2.0.1.0 Production
Oracle9i Enterprise Edition 9.2.0.1.0 Production
PL/SQL 9.2.0.1.0 Production
TNS for 32-bit Windows: 9.2.0.1.0 Production
It's important to convey to Oracle the information displayed by this query when you report problems with the software
本文介绍了两种查询Oracle数据库版本信息的方法:一是通过v$version视图;二是查询PRODUCT_COMPONENT_VERSION数据字典视图,后者提供了更详细的组件版本详情。
1568

被折叠的 条评论
为什么被折叠?



