135-1821-9792

怎么看oracle版本,怎么查看Oracle版本

如何查询ORACLE数据库服务器版本

1、在桌面上找到 计算机,右键管理,点击服务和应用程序,双击服务,找到oracle的四个服务,这里我们只需要启动两个即可。如图

网站建设哪家好,找成都创新互联!专注于网页设计、网站建设、微信开发、小程序定制开发、集团企业网站建设等服务项目。为回馈新老客户创新互联还提供了安康免费建站欢迎大家使用!

2、点击电脑左下角的开始--运行,输入sqlplus,回车。

3、出现命令窗口,

4、用户名填写scott 回车,密码填写scott,等待几秒。

5、以上就是成功连接上Oracle数据库。

6、执行select * from v$version ,就会出现如图。完成效果图。

如何查看oracle数据库版本

首先进入sqlplus,cmd---plsql,登陆我们的用户,如图,建议用sysdba权限的账户登陆。

方法一:v$version

SQL select * from v$version;

方法二:product_component_version

SQL select * from product_component_version;

方法三:dbms_output.put_line( dbms_db_version.version )

SQL SET SERVEROUTPUT ON

SQL EXEC dbms_output.put_line( dbms_db_version.version );

linux怎么查看oracle版本

[oracle@ceglnx01 bin]$ sqlplus -v

SQL*Plus: Release 10.2.0.4.0 - Production

1:使用file命令查看32位还是64位客户端。

Oracle Client 32 bit

[oracle@db-server-01 ~]$ which sqlplus

/u01/app/oracle/product/10.2.0/db_1/bin/sqlplus

[oracle@db-server-01 ~]$ file /u01/app/oracle/product/10.2.0/db_1/bin/sqlplus

/u01/app/oracle/product/10.2.0/db_1/bin/sqlplus: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped

Oracle Client 64 bit

[oracle@db-server-02 ~]$ which sqlplus

/u01/app/oracle/product/10.2.0/db_1/bin/sqlplus

[oracle@db-server-02 ~]$ file /u01/app/oracle/product/10.2.0/db_1/bin/sqlplus

/u01/app/oracle/product/10.2.0/db_1/bin/sqlplus: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped

或者

Oracle Client 32 bit

[oracle@db-server-01 logs]$ cd /u01/app/oracle/product/10.2.0/db_1/bin

[oracle@db-server-01 bin]$ file oracle

oracle: setuid setgid ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped

Oracle Client 64 bit

[oracle@db-server-02 ~]$ cd /u01/app/oracle/product/10.2.0/db_1/bin

[oracle@db-server-02 bin]$ file oracle

oracle: setuid setgid ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped

2: 通过查看$ORACLE_HOME下的lib或lib32目录,如果两个目录都存成,则为64位,如果只有lib目录.则为32位客户端。

[oracle@db-server-01 db_1]$ ls -d lib

lib

[oracle@db-server-01 db_1]$ ls -d lib*

lib lib32

输入数据库任意用户的用户名和密码,进行登陆。登陆成功后,就可以看到Oracle的版本信息了

关于更多Linux的学习,请查阅书籍《linux就该这么学》。

如何查看Oracle版本信息

以前查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

今天在上又学到一种方法: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

怎么查看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命令,可以查到该客户端安装的 11.2.0.1.0的客户端版本。

C:\Userssqlplus -v

SQL*Plus: Release 11.2.0.1.0 Production


本文题目:怎么看oracle版本,怎么查看Oracle版本
文章来源:http://kswsj.com/article/dscpeee.html

其他资讯



Copyright © 2009-2022 www.kswsj.com 成都快上网科技有限公司 版权所有 蜀ICP备19037934号