- 最后登录
- 2017-5-4
- 在线时间
- 81 小时
- 威望
- 999
- 金钱
- 2391
- 注册时间
- 2013-9-11
- 阅读权限
- 150
- 帖子
- 1124
- 精华
- 5
- 积分
- 999
- UID
- 1220
|
2#
发表于 2014-10-20 20:04:13
安装独立补丁
我们一般不建议安装太多的one-off补丁,通常遇到问题时,才安装有针对性、解决该问题的补丁。此次集成,需要安装的独立补丁包括官方推荐的补丁和关键补丁。
1. 安装补丁p14810756_112031_HPUX-IA64
$ cd /home/oracle/patches
$unzip p14810756_112031_HPUX-IA64.zip
$cd p14810756
$opatch apply –local ($ORACLE_HOME->grid home)
两个节点分别运行
$opatch apply –local ($ORACLE_HOME->db home)
两个节点分别运行
补丁列表
dcyycxdb01s[/home/oracle/patches/14810756]$opatch lsinventory
Oracle Interim Patch Installer version 11.2.0.3.3
Copyright (c) 2012, Oracle Corporation. All rights reserved.
Oracle Home : /oracle/11.2.0/db
Central Inventory : /home/oracle/oraInventory
from : /oracle/11.2.0/db/oraInst.loc
OPatch version : 11.2.0.3.3
OUI version : 11.2.0.3.0
Log file location : /oracle/11.2.0/db/cfgtoollogs/opatch/opatch2013-04-10_10-56-14AM_1.log
Lsinventory Output file location : /oracle/11.2.0/db/cfgtoollogs/opatch/lsinv/lsinventory2013-04-10_10-56-14AM.txt
--------------------------------------------------------------------------------
Installed Top-level Products (1):
Oracle Database 11g 11.2.0.3.0
There are 1 products installed in this Oracle Home.
Interim patches (3) :
Patch 14810756 : applied on Wed Apr 10 10:55:45 GMT+08:00 2013
Unique Patch ID: 15903992
Created on 29 Jan 2013, 23:44:18 hrs PST8PDT
Bugs fixed:
14810756
This patch overlays patches:
13343438
This patch needs patches:
13343438
as prerequisites
Patch 14727310 : applied on Mon Apr 08 15:07:18 GMT+08:00 2013
Unique Patch ID: 15669086
Patch description: "Database Patch Set Update : 11.2.0.3.5 (14727310)"
Created on 1 Jan 2013, 05:02:20 hrs PST8PDT
Sub-patch 14275605; "Database Patch Set Update : 11.2.0.3.4 (14275605)"
Sub-patch 13923374; "Database Patch Set Update : 11.2.0.3.3 (13923374)"
Sub-patch 13696216; "Database Patch Set Update : 11.2.0.3.2 (13696216)"
Sub-patch 13343438; "Database Patch Set Update : 11.2.0.3.1 (13343438)"
Bugs fixed:
13566938, 13593999, 10350832, 14138130, 12919564, 13624984, 13588248
13080778, 13804294, 14258925, 12873183, 13645875, 12880299, 14664355
14409183, 12998795, 14469008, 13719081, 13492735, 12857027, 14263036
14263073, 13742433, 13732226, 12905058, 13742434, 12849688, 12950644
13742435, 13464002, 12879027, 13534412, 14613900, 12585543, 12535346
12588744, 11877623, 12847466, 13649031, 13981051, 12582664, 12797765
14262913, 12923168, 13612575, 13384182, 13466801, 13484963, 11063191
13772618, 13070939, 12797420, 13041324, 12976376, 11708510, 13742437
13026410, 13737746, 13742438, 13326736, 13001379, 13099577, 14275605
13742436, 9873405, 9858539, 14040433, 12662040, 9703627, 12617123
12845115, 12764337, 13354082, 13397104, 12964067, 13550185, 12780983
12583611, 14546575, 13476583, 15862016, 11840910, 13903046, 15862017
13572659, 13718279, 13657605, 13448206, 13419660, 14480676, 13632717
14063281, 13430938, 13467683, 13420224, 14548763, 12646784, 14035825
12861463, 12834027, 15862021, 13377816, 13036331, 14727310, 13685544
13499128, 15862018, 12829021, 15862019, 12794305, 14546673, 12791981
13503598, 13787482, 10133521, 12718090, 13399435, 14023636, 12401111
13257247, 13362079, 12917230, 13923374, 14480675, 13524899, 13559697
14480674, 13916709, 14076523, 13773133, 13340388, 13366202, 13528551
12894807, 13343438, 13454210, 12748240, 14205448, 13385346, 15853081
12971775, 13035804, 13544396, 13035360, 14062795, 12693626, 13332439
14038787, 14062796, 12913474, 14841409, 14390252, 13370330, 14062797
13059165, 14062794, 12959852, 13358781, 12345082, 12960925, 9659614
13699124, 14546638, 13936424, 13338048, 12938841, 12658411, 12620823
12656535, 14062793, 12678920, 13038684, 14062792, 13807411, 12594032
13250244, 15862022, 9761357, 12612118, 13742464, 14052474, 13457582
13527323, 15862020, 12780098, 13502183, 13705338, 13696216, 10263668
15862023, 13554409, 15862024, 13103913, 13645917, 14063280, 13011409
Patch 15876003 : applied on Mon Apr 08 14:59:54 GMT+08:00 2013
Unique Patch ID: 15870602
Patch description: "Grid Infrastructure Patch Set Update : 11.2.0.3.5 (14727347)"
Created on 15 Jan 2013, 23:41:45 hrs PST8PDT
Bugs fixed:
15876003, 14275572, 13919095, 13696251, 13348650, 13498267, 13430715
14271305, 14082976, 12897902, 13719731, 13550689, 14242977, 12849377
12975811, 13965075, 12950823, 12829429, 12538907, 13987807, 12848480
12917897, 12726222, 12794268, 13002015, 13001901, 13789135, 12659561
12965049, 13082238, 10114953, 13332363, 13396284, 13079948, 14168708
12925041, 13066371, 12996428, 12995950, 12398492, 13111013, 12934171
12765467, 12730342, 12829917, 12771830, 13924431, 13620816, 12876314
13090686, 13241779, 10418841, 12594616, 13039908, 14407395, 13879428
13037709, 15983149, 14102704, 13058611, 12758736, 13727853, 12878750
13000491, 13024624, 13460353, 13531373, 13582411, 12914824, 13569812
13371153, 13523527, 13339443, 13074261, 10260842, 13323698, 12897651
14277586, 12728585, 13440962, 13947200, 12959140, 13652088, 12832204
13938166, 12709476, 12885323, 13036424, 12947871, 12896850, 13334158
13483672, 13001955, 12784559, 13776758, 11675721, 13825231, 14096821
12639013, 12558569, 13540563, 11836951, 13077654, 12791719, 13857364
12971251, 14625969, 12349553, 13869978, 13653178, 13085732, 12720728
12857064, 12680491, 13355963, 13251796, 13811209, 13806545, 12990582
13425727, 13993634, 12867511, 11772838, 14001941, 13634583, 10317921
13023609, 13011520, 12899169, 13843080, 12650672
Rac system comprising of multiple nodes
Local node = idcyycxdb01s
Remote node = idcyycxdb02s
升级到11g R2
升级环境准备:
9i 环境启动数据库
1. . ./.profile_9i
2. Sqlplus “/as sysdba”
Sql>startup
3. Sql>@utlu112i_5.sql
4. 检查connect 权限
SELECT grantee FROM dba_role_privs
WHERE granted_role = 'CONNECT' and
grantee NOT IN (
'SYS', 'OUTLN', 'SYSTEM', 'CTXSYS', 'DBSNMP',
'LOGSTDBY_ADMINISTRATOR', 'ORDSYS',
'ORDPLUGINS', 'OEM_MONITOR', 'WKSYS', 'WKPROXY',
'WK_TEST', 'WKUSER', 'MDSYS', 'LBACSYS', 'DMSYS',
'WMSYS', 'EXFSYS', 'SYSMAN', 'MDDATA',
'SI_INFORMTN_SCHEMA', 'XDB', 'ODM');
RANTEE PRIVILEGE
------------------------------ ----------------------------------------
CONNECT CREATE VIEW
CONNECT CREATE TABLE
CONNECT ALTER SESSION
CONNECT CREATE CLUSTER
CONNECT CREATE SESSION
CONNECT CREATE SYNONYM
CONNECT CREATE SEQUENCE
CONNECT CREATE DATABASE LINK
生成授权connect的sql (grant_connect.sql)
Sql>
set pagesize 0
spool grant_connect.sql
SELECT 'grant create view,create table,alter session,create cluster,
create session,create synonym,create sequence,create database link to
'||grantee||';' FROM dba_role_privs
WHERE granted_role = 'CONNECT' and
grantee NOT IN (
'SYS', 'OUTLN', 'SYSTEM', 'CTXSYS', 'DBSNMP',
'LOGSTDBY_ADMINISTRATOR', 'ORDSYS',
'ORDPLUGINS', 'OEM_MONITOR', 'WKSYS', 'WKPROXY',
'WK_TEST', 'WKUSER', 'MDSYS', 'LBACSYS', 'DMSYS',
'WMSYS', 'EXFSYS', 'SYSMAN', 'MDDATA',
'SI_INFORMTN_SCHEMA', 'XDB', 'ODM');
spool off
5. 生成dblink重建脚本:
Sql>
set feedback off
spool create_dblink.sql
SELECT 'CREATE '||DECODE(U.NAME,'PUBLIC','public ')||'DATABASE LINK '||CHR(10)
||DECODE(U.NAME,'PUBLIC',Null, 'SYS','',U.NAME||'.')|| L.NAME||chr(10)
||'CONNECT TO ' || L.USERID || ' IDENTIFIED BY "'||L.PASSWORD||'" USING
'''||L.HOST||''''
||chr(10)||';' TEXT
FROM SYS.LINK$ L, SYS.USER$ U
WHERE L.OWNER# = U.USER#;
spool off
6. 执行系统对象分析:
EXECUTE dbms_stats.gather_schema_stats('SYS',options=>'GATHER',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=>'FOR ALL COLUMNS SIZE AUTO',cascade=>TRUE);
EXECUTE dbms_stats.gather_schema_stats('SYSTEM',options=>'GATHER',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=>'FOR ALL COLUMNS SIZE AUTO',cascade=>TRUE);
EXECUTE dbms_stats.gather_schema_stats('OUTLN',options=>'GATHER',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=>'FOR ALL COLUMNS SIZE AUTO',cascade=>TRUE);
EXECUTE dbms_stats.gather_schema_stats('DBSNMP',options=>'GATHER',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=>'FOR ALL COLUMNS SIZE AUTO',cascade=>TRUE);
EXECUTE dbms_stats.gather_schema_stats('WMSYS',options=>'GATHER',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt=>'FOR ALL COLUMNS SIZE AUTO',cascade=>TRUE); |
|