Your SlideShare is downloading. ×
检查Oracle数据库软件是enterprise edition或standard edition的10种方法
检查Oracle数据库软件是enterprise edition或standard edition的10种方法
检查Oracle数据库软件是enterprise edition或standard edition的10种方法
检查Oracle数据库软件是enterprise edition或standard edition的10种方法
检查Oracle数据库软件是enterprise edition或standard edition的10种方法
检查Oracle数据库软件是enterprise edition或standard edition的10种方法
检查Oracle数据库软件是enterprise edition或standard edition的10种方法
检查Oracle数据库软件是enterprise edition或standard edition的10种方法
检查Oracle数据库软件是enterprise edition或standard edition的10种方法
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

检查Oracle数据库软件是enterprise edition或standard edition的10种方法

954

Published on

Published in: Technology, News & Politics
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
954
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
15
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 检查 Oracle 数据库软件是 Enterprise Edition或 Standard Edition 的 10 种方法 by Maclean.liu liu.maclean@gmail.com www.oracledatabase12g.com
  • 2. About Mel Email:liu.maclean@gmail.coml Blog:www.oracledatabase12g.coml Oracle Certified Database Administrator Master 10gand 11gl Over 6 years experience with Oracle DBA technologyl Over 7 years experience with Linux technologyl Member Independent Oracle Users Groupl Member All China Oracle Users Groupl Presents for advanced Oracle topics: RAC,DataGuard, Performance Tuning and Oracle Internal.
  • 3. 我们在接手企业的产品数据库时首先总是要了解一下数据库的版本、版本号等信息。Oracle 数据库软件根据用户不同的需求分成多种版本(Database Edition),它们分为:Oracle Database Standard Edition One :delivers unprecedented ease of use, power, and performance forworkgroup, department-level, and Web applications. From single-server environments for small business tohighly distributed branch environments, Oracle Database Standard Edition One includes all the facilitiesnecessary to build business-critical applications.Oracle Database Standard Edition:delivers the unprecedented ease of use, power, and performance ofStandard Edition One, with support for larger machines and clustering of services with Real ApplicationClusters. Real Application Clusters is not included in the Standard Edition of releases prior to Oracle Database10g, nor is it an available option with those earlier releases.Oracle Database Enterprise Edition: provides the performance, availability, scalability, and security required formission-critical applications such as high-volume online transaction processing (OLTP) applications, query-intensive data warehouses, and demanding Internet applications. Oracle Database Enterprise Edition containsall of the components of Oracle Database, and can be further enhanced with the purchase of the options andpacks described in Chapter 2, “Options and Packs”.Oracle Database Personal Edition: supports single-user development and deployment environments thatrequire full compatibility with Oracle Database Standard Edition One, Oracle Database Standard Edition, andOracle Database Enterprise Edition.Personal Edition includes all of the components that are included with Enterprise Edition, as well as all of theoptions that are available with Enterprise Edition, with the exception of the Oracle Real Application Clustersoption, which cannot be used with Personal Edition. Personal Edition is available on Windows 2000, WindowsNT, Windows XP, and Windows Server 2003 (32-bit and 64-bit versions). The Management Packs are notincluded in Personal Edition.
  • 4. 关于 EE、SE、Personal 各版本之间的具体差异可以参考 Mos Note<FAQ: Differences Between Enterprise,Standard and Personal Editions [ID 465455.1]>。这里我们要具体介绍的识别现有安装的 Oracle 数据库软件是 Enterprise Edition、还是 Standard Edition 或其他版本的几种方法:
  • 5. 方法 1:使用 SQLPLUS 产生 banner 信息sqlplus / as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Tue Sep 27 20:58:38 2011Copyright (c) 1982, 2011, Oracle. All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit ProductionWith the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,Data Mining and Real Application Testing optionsSQL> select * from global_name;GLOBAL_NAME------------------------------------------------------www.oracledatabase12g.com & www.askmaclean.com方法 2:查询 v$version 获取 banner 信息SQL> select * from v$version where rownum=1;BANNER--------------------------------------------------------------------------------Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production方法 3:查询告警日志 alert.log 中的启动信息:cat alert_VPROD1.log |grep Edition|uniq -uOracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit ProductionOracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
  • 6. 方法 4:查询 udump 或 bdump 目录下 trace 文件的头部也可以获得 Database Edition 信息:[oracle@vrh1 trace]$ head -10 VPROD1_lmhb_9336.trcTrace file /s01/orabase/diag/rdbms/vprod/VPROD1/trace/VPROD1_lmhb_9336.trcOracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit ProductionWith the Partitioning, Real Application Clusters, OLAP, Data Miningand Real Application Testing optionsORACLE_HOME = /s01/orabase/product/11.2.0/dbhome_3System name: LinuxNode name: vrh1.oracle.comRelease: 2.6.18-274.el5Version: #1 SMP Mon Jul 25 13:17:49 EDT 2011Machine: x86_64方法 5:在 Windows 平台上可以从注册表的 ORACLE_BUNDLE_NAME 了解:方法 6:若 Oracle RDBMS 软件的原始安装日志仍保留着,那么可以从日志中找到安装的 Database Edition:EE:[oracle@rh2 ~]$ cd $ORACLE_HOME/cfgtoollogs/oui
  • 7. [oracle@rh2 oui]$ cat installActions2011-03-29_10-54-40PM.log|grep -i "Database Edition"INFO: Database Edition selected: EE- Database edition : Enterprise Edition (Install database software only)SE:[maclean@vbase ~]$ cd /s01/orabase/product/11.2.0/dbhome_1/cfgtoollogs/oui[maclean@vbase oui]$ ls -ltrtotal 2608-rw-rw----. 1 maclean maclean 113 Sep 27 19:35 oraInstall2011-09-27_07-29-17PM.out-rw-rw----. 1 maclean maclean 0 Sep 27 19:35 oraInstall2011-09-27_07-29-17PM.err-rw-rw----. 1 maclean maclean 2663801 Sep 27 19:38 installActions2011-09-27_07-29-17PM.log[maclean@vbase oui]$ cat installActions2011-09-27_07-29-17PM.log |grep -i "DatabaseEdition"INFO: INFO: Database Edition selected: STDINFO: - Database edition : Standard Edition (Install database software only)方法 7:$ORACLE_HOME/lib/lib/libvsn*共享库文件中存有”Database Edition”信息,可以利用该 so 文件帮助确认是 EE 还是 SE:EE:[oracle@rh2 ~]$ ls -l $ORACLE_HOME/lib/libvsn*-rw-r--r-- 1 oracle oinstall 3074 Mar 11 2008 /s01/db_1/lib/libvsn10.a-rw-r--r-- 1 oracle oinstall 3050 Mar 11 2008 /s01/db_1/lib/libvsn10_std.a.dbl[oracle@rh2 ~]$ strings /s01/db_1/lib/libvsn10.a|grep -i "release"Oracle Database 10g Enterprise Edition Release %d.%d.%d.%d.%d %sSE:[maclean@vbase dbhome_1]$ ls -l $ORACLE_HOME/lib/libvsn*-rw-r--r--. 1 maclean maclean 8438 Sep 17 08:26 lib/libvsn11.a-rw-r--r--. 1 maclean maclean 8494 Sep 17 08:26 lib/libvsn11_ee.a.dbl[maclean@vbase dbhome_1]$ strings lib/libvsn11.a|grep -i "release"Oracle Database 11g Release %d.%d.%d.%d.%d %s/* 没有 Enterprise Edition 说明是 Standard Edition */
  • 8. 方法 8:如果做过 RDA,那么 RDA 报告中会记录 RDBMS 软件是 Enterprise Edition 或 Standard Edition方法 9: 仅针对 10g r1/r2 有效,通过”$ORACLE_HOME/inventory/Components21/oracle.server/$VERSION/content.xml” inventory 库信息文件可以定位 oracle.server 是 Enterprise Edition 或 Standard Edition:cat /s01/db_1/inventory/Components21/oracle.server/10.2.0.1.0/context.xml |grep"s_serverInstallType" <VAR NAME="s_serverInstallType" TYPE="String" DESC_RES_ID="s_serverInstallType_DESC" SECURE="F" VAL="EE" ADV="F" CLONABLE="F" USER_INPUT="CALC"/> <CONST NAME="s_serverInstallType_DESC" PLAT_SP="F" TYPE="String" TRANS="F" VAL="This variable is used to determine which database configuration was chosen by the user and will be passed down to rdbms-dbca"/>这里的 VAL="EE"说明是 Enterprise Edition如果是 VAL="SE"则说明为 Standard Edition注意该方法仅对 10g 有效方法 10: 仅针对 11g 有效,通过$ORACLE_HOME/inventory/response 库目录下的 response 文件帮助确认:EEcd $ORACLE_HOME/inventory/response[oracle@vrh1 response]$ ls -ltotal 76-rw-rw---- 1 oracle oinstall 24992 Sep 17 09:26 db_install.rsp-rw-rw---- 1 oracle oinstall 46530 Sep 24 23:31 oracle.server_EE.rsp[oracle@vrh1 response]$ cat oracle.server*.rsp|grep INSTALL_TYPE#Name : INSTALL_TYPEINSTALL_TYPE="Enterprise Edition"SE:cd $ORACLE_HOME/inventory/response
  • 9. [maclean@vbase response]$ ls -ltrtotal 76-rw-rw----. 1 maclean maclean 24992 Sep 17 09:26 db_install.rsp-rw-rw----. 1 maclean maclean 46485 Sep 27 19:36 oracle.server_SE.rsp[maclean@vbase response]$ cat oracle.server_SE.rsp |grep INSTALL_TYPE#Name : INSTALL_TYPEINSTALL_TYPE="Standard Edition"相信以上介绍的 10 种方法总有一种可以满足你的需求, just enjoy it !© 2011, www.oracledatabase12g.com. 版权所有.文章允许转载,但必须以链接方式注明源地址,否则追求法律责任.相关文章 | Related Posts: 1. 巧用 close_trace 命令释放误删 trace 文件 2. How to make BBED(Oracle Block Brower and EDitor Tool) on Unix/Linux/Windows 3. 解决 sqlplus 的 segmentation fault 或 hang 问题 4. 11gr1 installation failed on Fedora 14 with libnnz11.so could not read symbols 5. LIBCLNTSH.SO: WRONG ELF CLASS: ELFCLASS32 错误一例 6. Backup Script:Expdp Schema to ASM Storage 7. 在 Fedora 15 上使用 Vmware Server 2.0.2 8. Poor Data Export Performance(revised)

×