您的位置:首页 > 数据库 > Oracle

查看oracle的版本信息(两种方法)

2006-02-28 19:25 519 查看
以前查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
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: