Академический Документы
Профессиональный Документы
Культура Документы
++++++++++++++++++++++++++++++++++
11.2.0.1.0
Production
2. OS Version
[root@mydb Desktop]# uname -a
Linux mydb.mydomain.com 2.6.39-400.17.1.el6uek.x86_64 #1 SMP Fri Feb 22 18:16:18 PST 2013 x86_64 x86_64 x86_64
GNU/Linux
[root@mydb Desktop]#
3. Download CPUJan2012 patch for 11.2.0.1
Patch No 10248516 from support.oracle.com
4. Opatch Version
To apply CPUJan2012, OPatch utility version 11.2.0.1.0 or later to apply this patch. Oracle recommends that you use
the latest released OPatch 11.2, which is available for download from My Oracle Support patch 6880880 by
selecting the 11.2.0.0.0 release
[oracle@mydb ~]$ export PATH=$ORACLE_HOME/OPatch:$PATH
[oracle@mydb ~]$ opatch lsinventory
Oracle Interim Patch Installer version 11.2.0.3.5
Copyright (c) 2013, Oracle Corporation. All rights reserved.
Oracle Home
: /u01/app/oracle/product/11.2.0/db_1
: /u01/app/oracle/product/11.2.0/db_1/oraInst.loc
OPatch version
OUI version
: 11.2.0.3.5
: 11.2.0.1.0
11.2.0.1.0
5. Sessions Status
Check How Many sesion are ACTIVE, If any found Ask Application team to bring down all Applications/Processes.
SQL> select username,count(*) from v$session where username is not null group by username;
USERNAME
COUNT(*)
------------------------------ ---------SYS
6. Invalid Objects
SQL> select owner,object_type,count(*) from dba_objects where status='INVALID' group by owner,object_type order by
owner,object_type;
OWNER
OBJECT_TYPE
COUNT(*)
FUNCTION
SCOTT
MATERIALIZED VIEW
SCOTT
PACKAGE
1
2
SCOTT
PACKAGE BODY
SCOTT
PROCEDURE
Oracle Home
: /u01/app/oracle/product/11.2.0/db_1
: /u01/app/oracle/product/11.2.0/db_1/oraInst.loc
OPatch version
OUI version
: 11.2.0.3.5
: 11.2.0.1.0
2216024 bytes
Variable Size
486543272 bytes
Database Buffers
142606336 bytes
Redo Buffers
3313664 bytes
Database mounted.
Database opened.
SQL> @catbundle.sql psu apply
VERSION
ID COMMENTS
BUNDLE_SERIES
11.2.0.1
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> @utlrp.sql
Now, check invalid objects after patching and recompile
SQL> select owner,object_type,count(*) from dba_objects where status='INVALID' group by owner,object_type order by
owner,object_type;
OWNER
OBJECT_TYPE
COUNT(*)
PACKAGE
SCOTT
PACKAGE BODY