oracle 11.2.0.2.3补丁怎么打
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了oracle 11.2.0.2.3补丁怎么打相关的知识,希望对你有一定的参考价值。
参考技术A oracle手动升级有两种方式,一种在安装oracle软件之后,安装升级包,然后创建数据库;另一种在oracle数据库创建以后,进行升级。下面主要介绍oracle数据库创建后进行的数据库升级(10.2.0.1-10.2.0.4),代码如下:
SQL> --查看当前数据库版本
SQL> select * from v$version;
SQL> --给用户scott解锁
SQL> alter user scott account unlock;
SQL> --查看表空间
SQL> select * from dba_tablespaces;
SQL> --查看数据文件存放位置
SQL> select * from dba_data_files;
SQL> --创建测试表空间
SQL> create tablespace ts_upgrade datafile '/u02/oradata/data/orcl/ts_upgrade01.dbf' size 5m autoextend on maxsize 30g;
SQL> --创建用户
SQL> create user u_upgrade identified by "123456" default tablespace ts_upgrade temporary tablespace temp;
SQL> --为用户赋权
SQL> grant connect,resource to u_upgrade;
SQL> --创建测试表
SQL> create table u_upgrade.dept as select * from scott.dept;
SQL> select * from u_upgrade.dept;
[oracle@feegle ~]$ #停止em
[oracle@feegle ~]$ emctl stop dbconsole
[oracle@feegle ~]$ #停止sql*plus
[oracle@feegle ~]$ isqlplusctl stop
[oracle@feegle ~]$ #停止监听
[oracle@feegle ~]$ lsnrctl stop
[oracle@feegle ~]$ #安装升级包(p6810189_10204_Linux-x86-64.zip)
[oracle@feegle ~]$ #手动升级数据库
[oracle@feegle ~]$ sqlplus /nolog
SQL> conn /as sysdba
SQL> --以升级模式启动数据库
SQL> startup upgrade;
SQL> --重建数据字典(建议关闭数据库归档)
SQL> spool upgrade.log
SQL> @$ORACLE_HOME/rdbms/admin/catupgrd.sql
#####重建数据字典部分截图#####
Oracle Database 10.2 Upgrade Status Utility 06-15-2012 18:27:56
.
Component Status Version HH:MM:SS
Oracle Database Server VALID 10.2.0.4.0 00:12:04
JServer JAVA Virtual Machine VALID 10.2.0.4.0 00:04:58
Oracle XDK VALID 10.2.0.4.0 00:00:32
Oracle Database Java Packages VALID 10.2.0.4.0 00:00:28
Oracle Text VALID 10.2.0.4.0 00:00:25
Oracle XML Database VALID 10.2.0.4.0 00:02:25
Oracle Workspace Manager VALID 10.2.0.4.3 00:00:43
Oracle Data Mining VALID 10.2.0.4.0 00:00:21
OLAP Analytic Workspace VALID 10.2.0.4.0 00:00:23
OLAP Catalog VALID 10.2.0.4.0 00:01:02
Oracle OLAP API VALID 10.2.0.4.0 00:00:53
Oracle interMedia VALID 10.2.0.4.0 00:03:52
Spatial VALID 10.2.0.4.0 00:01:37
Oracle Expression Filter VALID 10.2.0.4.0 00:00:12
Oracle Enterprise Manager VALID 10.2.0.4.0 00:01:18
Oracle Rule Manager VALID 10.2.0.4.0 00:00:10
.
Total Upgrade Time: 00:31:30
DOC>#######################################################################
DOC>#######################################################################
DOC>
DOC> The above PL/SQL lists the SERVER components in the upgraded
DOC> database, along with their current version and status.
DOC>
DOC> Please review the status and version columns and look for
DOC> any errors in the spool log file. If there are errors in the spool
DOC> file, or any components are not VALID or not the current version,
DOC> consult the Oracle Database Upgrade Guide for troubleshooting
DOC> recommendations.
DOC>
DOC> Next shutdown immediate, restart for normal operation, and then
DOC> run utlrp.sql to recompile any invalid application objects.
DOC>
DOC>#######################################################################
DOC>#######################################################################
DOC>#
SQL>
#####重建数据字典部分截图#####
SQL> spool off
SQL> --关闭数据库
SQL> shutdown immediate;
SQL> --启动数据库
SQL> startup;
SQL> --编译无效对象
SQL> @$ORACLE_HOME/rdbms/admin/utlrp.sql
#####编译无效对象部分截图#####
DOC> 1. Query showing jobs created by UTL_RECOMP
DOC> SELECT job_name FROM dba_scheduler_jobs
DOC> WHERE job_name like 'UTL_RECOMP_SLAVE_%';
DOC>
DOC> 2. Query showing UTL_RECOMP jobs that are running
DOC> SELECT job_name FROM dba_scheduler_running_jobs
DOC> WHERE job_name like 'UTL_RECOMP_SLAVE_%';
DOC>#
TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP UTLRP_END 2012-06-15 18:45:01
DOC> The following query reports the number of objects that have compiled
DOC> with errors (objects that compile with errors have status set to 3 in
DOC> obj$). If the number is higher than expected, please examine the error
DOC> messages reported with each object (using SHOW ERRORS) to see if they
DOC> point to system misconfiguration or resource constraints that must be
DOC> fixed before attempting to recompile these objects.
DOC>#
OBJECTS WITH ERRORS
-------------------
0
DOC> The following query reports the number of errors caught during
DOC> recompilation. If this number is non-zero, please query the error
DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors
DOC> are due to misconfiguration or resource constraints that must be
DOC> fixed before objects can compile successfully.
DOC>#
ERRORS DURING RECOMPILATION
---------------------------
0
SQL>
#####编译无效对象部分截图#####
SQL> 验证升级
SQL> --查看组件状态
SQL> --status=VALID
SQL> select comp_name, version, status from sys.dba_registry;
SQL> --查看表空间状态
SQL> select tablespace_name,status from dba_tablespaces;
SQL> --查看用户
SQL> select username from dba_users;
SQL> --查看用户对象
SQL> select object_name from dba_objects where owner='SCOTT';
SQL> select object_name from dba_objects where owner='U_UPGRADE';
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
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@feegle ~]$ #启动监听
[oracle@feegle ~]$ lsnrctl start
[oracle@feegle ~]$ #启动EM
[oracle@feegle ~]$ emctl start dbconsole
[oracle@feegle ~]$ #启动SQL*PLUS
[oracle@feegle ~]$ isqlplusctl start
Oracle基础学习1--Oracle安装
安装过程较简单。按着步骤走就可以。这里须要提醒假设要使用PL/SQL来操作Oracle。那么最好安装32位Oracle程序。原因是网上说PL/SQL仅仅对32位Oracle进行支持,假设用64为Oracle+PL/SQL协同工作,会出现很多问题,比如无法载入oci.dll等。
自己当然也亲自经历过,64位的Oracle单独使用非常好,但对应的PL/SQL Developer却较难配置。
安装过程须要注意两个地方:
? 全局数据库名;
? 口令管理-锁定/解除锁定 数据库用户账户和更改默认口令
怎样验证成功安装?按着自己的经验来就可以,Oracleserver端有两个重要的服务程序。所以:
? 首先看服务程序中是否安装好了Oracle相关的两个主要服务程序。比如我的是。 OracleOraDb11g_home1TNSListener和OracleServiceORCL。一个监听程序一个主数据库实例服务程序。例如以下图:
? 程序安装好了,然后測试上面两个服务程序是否配置正确,运行两个命令(如果全局数据库名为orcl):
tnsping orcl:測试监听程序配置
sqlplus system/[email protected]:測试数据库例程安装和启动程序配置(假定 SYSTEM 用户相应的口令是 password)
命令都运行成功后就代表成功安装。
以上是关于oracle 11.2.0.2.3补丁怎么打的主要内容,如果未能解决你的问题,请参考以下文章
求教ORACLE的问题,我用的是ORACLE 9I,出现一个ORA-00600:内部错误代码,参数:[qernsRowP],[1],[]....
oracle数据库打不开了 老是在alert.log里出现ORA-00600[6711]错误怎么办