Oracle Grid control 11g及Active DataGuard 11g安装部署
2017-07-08 15:01
597 查看
OracleGridcontrol11g及ActiveDataGuard11g安装部署(一)
原贴标签:
2012-09-0316:375418人阅读
分类:
OralceDataGuard(20)
版权声明:本文为博主原创文章,未经博主允许不得转载。
目录
基本信息
OS:RHEL5.664BITEnterprise-R5-U6-Server-x86_64-dvd.iso
p10098816_112020_Linux-x86-64_1of7.zip
p10098816_112020_Linux-x86-64_2of7.zip
p10098816_112020_Linux-x86-64_3of7.zip(GIASM)
ORACLEPSU:
11.2.0.2.3DatabasePSU:
p12419331_112020_Linux-x86-64.zip
11.2.0.2.3GridInfrastructurePSU:
p12419353_112020_Linux-x86-64.zip
NewOptch:
p6880880_112000_Linux-x86-64.zip
WEBLOGIC:
weblogicV18594-01-weblogic.zip
wls1032_generic.jar
JDK:
jdk-6u18-
GC:
V23674-01_1of3.zip
V23674-01_2of3.zip
V23674-01_3of3.zip
GCPSU:
Agent:p9345913_111010_Linux-x86-64.zip
Oms:p12620174_111010_Generic.zip
OS环境配置按照ORACLE11.2.0.2
安装OEL5.6把ORACLE的包和ASM包选上
参数设置
[root@hotel01~]#uname-r2.6.18-194.el5xen
[root@hotel01~]#rpm-q--qf'%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n'\binutilscompat-libstdc++-33elfutils-libelfelfutils-libelf-develgccgcc-c++glibcglibc-commonglibc-develglibc-headerskshlibaiolibaio-devellibgomp-libgcclibstdc++libstdc++-develmakenumactl-devel-sysstatunixODBCunixODBC-devel
binutils-2.17.50.0.6-14.el5(x86_64)
compat-libstdc++-33-3.2.3-61(x86_64)
compat-libstdc++-33-3.2.3-61(i386)
elfutils-libelf-0.137-3.el5(x86_64)
elfutils-libelf-devel-0.137-3.el5(x86_64)
gcc-4.1.2-48.el5(x86_64)
gcc-c++-4.1.2-48.el5(x86_64)
glibc-2.5-49(i686)
glibc-2.5-49(x86_64)
glibc-common-2.5-49(x86_64)
glibc-devel-2.5-49(x86_64)
glibc-devel-2.5-49(i386)
glibc-headers-2.5-49(x86_64)
ksh-20100202-1.el5(x86_64)
libaio-0.3.106-5(i386)
libaio-0.3.106-5(x86_64)
libaio-devel-0.3.106-5(i386)
libaio-devel-0.3.106-5(x86_64)
libgomp-4.4.0-6.el5(x86_64)
libgcc-4.1.2-48.el5(i386)
libgcc-4.1.2-48.el5(x86_64)
libstdc++-4.1.2-48.el5(x86_64)
libstdc++-4.1.2-48.el5(i386)
libstdc++-devel-4.1.2-48.el5(x86_64)
make-3.81-3.el5(x86_64)
numactl-devel-0.9.8-11.el5(x86_64)
numactl-devel-0.9.8-11.el5(i386)
sysstat-7.0.2-3.el5(x86_64)
unixODBC-2.2.11-7.1(x86_64)
unixODBC-2.2.11-7.1(i386)
unixODBC-devel-2.2.11-7.1(i386)
unixODBC-devel-2.2.11-7.1(x86_64)
[root@hotel01~]#
cd/media/cdrom/Server
rpm-Uvhbinutils-2.*
/etc/sysctl.conf
fs.aio-max-nr=1048576
fs.file-max=6815744
kernel.shmall=2097152#redhad5.7只改这个参数即可
#kernel.shmmax=536870912
kernel.shmmni=4096
kernel.sem=25032000100128
net.ipv4.ip_local_port_range=900065500
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586
net.core.rmem_default=262144
sysctl–p
[root@hotel01~]#cat/etc/sysctl.conf
#KernelsysctlconfigurationfileforOracleEnterprise
#
#Forbinaryvalues,0isdisabled,1isenabled.Seesysctl(8)and
#sysctl.conf(5)formoredetails.
#ControlsIPpacketforwarding
net.ipv4.ip_forward=0
#Controlssourcerouteverification
net.ipv4.conf.default.rp_filter=1
#Donotacceptsourcerouting
net.ipv4.conf.default.accept_source_route=0
#ControlstheSystemRequestdebuggingfunctionalityofthekernel
kernel.sysrq=1
#ControlswhethercoredumpswillappendthePIDtothecorefilename
#Usefulfordebuggingmulti-threadedapplications
kernel.core_uses_pid=1
#ControlstheuseofTCPsyncookies
net.ipv4.tcp_syncookies=1
#Controlsthemaximumsizeofamessage,inbytes
kernel.msgmnb=65536
#Controlsthedefaultmaxmimumsizeofamesagequeue
kernel.msgmax=8192
#Controlsthemaximumsharedsegmentsize,inbytes
kernel.shmmax=4398046511104
#Controlsthemaximumnumberofsharedmemorysegments,inpages
kernel.shmall=1073741824
#For11g,recommendedvalueforfile-maxis6815744
fs.file-max=6815744
#For10g,uncomment'fs.file-max327679',commentotherentriesforthisparameterandre-runsysctl-p
#fs.file-max:327679
kernel.msgmni=2878
kernel.sem=25032000100142
kernel.shmmni=4096
net.core.rmem_default=262144
#For11g,recommendedvaluefornet.core.rmem_maxis4194304
net.core.rmem_max=4194304
#For10g,uncomment'net.core.rmem_max2097152',commentotherentriesforthisparameterandre-runsysctl-p
#net.core.rmem_max=2097152
net.core.wmem_default=262144
#For11g,recommendedvalueforwmem_maxis1048576
net.core.wmem_max=1048576
#For10g,uncomment'net.core.wmem_max262144',commentotherentriesforthisparameterandre-runsysctl-p
#net.core.wmem_max:262144
fs.aio-max-nr=3145728
#For11g,recommendedvalueforip_local_port_rangeis900065500
net.ipv4.ip_local_port_range=900065500
#For10g,uncomment'net.ipv4.ip_local_port_range102465000',commentotherentriesforthisparameterandre-runsysctl-p
#net.ipv4.ip_local_port_range:102465000
#Addedmin_free_kbytes50MBtoavoidOOMkilleronEL4/EL5
vm.min_free_kbytes=51200
[root@hotel01~]#
vi/etc/security/limits.conf
oraclesoftnproc2047
oraclehardnproc16384
oraclesoftnofile1024
oraclehardnofile65536
vi/etc/pam.d/login
sessionrequiredpam_limits.so
cat/etc/selinux/config
SELINUX=disabled
groupaddoinstall默认已经有
groupadddba默认已经有
groupaddoper
groupaddasmadmin
userdeloracle
cd/homerm-rforacle
useradd-goinstall-Gdba,oper,asmadminoracle
passwdoracle
mkdir/112db
mkdir-p/u01/app/ora11g
mkdir-p/u01/app/ora11g/product
mkdir-p/u01/app/ora11g/oradata
mkdir-p/u01/app/ora11g/product/11.2.0/db_1
chown-Roracle:oinstall/u01
chown-Roracle:oinstall/112db
chmod-R775/u01
su–oracle
vi.bash_profile
exportTMP=/tmp
exportTMPDIR=$TMP
exportORACLE_TERM=xterm
exportORACLE_BASE=/u01/app/ora11g
exportORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
exportORACLE_GRID=$ORACLE_BASE/product/11.2.0/grid
exportORACLE_SID=gcdb
exportPATH=/usr/sbin:$PATH
exportPATH=$ORACLE_HOME/bin:$ORACLE_GRID/bin:$PATH
exportLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib64:/usr/lib64:/usr/local/lib64:/usr/X11R6/lib64
exportCLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
exportNLS_LANG="SIMPLIFIEDCHINESE_CHINA.ZHS16GBK"
exportALERT=$ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace
sttyerase^H
umask022
if[$USER="oracle"];then
if[$SHELL="/bin/ksh"];then
ulimit-p16384
ulimit-n65536
else
ulimit-u16384-n65536
fi
fi
fdisk–l
[root@hotel01~]#fdisk-l
Disk/dev/sda:53.6GB,53687091200bytes
255heads,63sectors/track,6527cylinders
Units=cylindersof16065*512=8225280bytes
DeviceBootStartEndBlocksIdSystem
/dev/sda1*11310439183Linux
/dev/sda214535419296582Linuxswap/Solaris
/dev/sda353665274813074083Linux
Disk/dev/sdb:4294MB,4294967296bytes
255heads,63sectors/track,522cylinders
Units=cylindersof16065*512=8225280bytes
Disk/dev/sdbdoesn'tcontainavalidpartitiontable
Disk/dev/sdc:4294MB,4294967296bytes
255heads,63sectors/track,522cylinders
Units=cylindersof16065*512=8225280bytes
Disk/dev/sdcdoesn'tcontainavalidpartitiontable
Disk/dev/sdd:4294MB,4294967296bytes
255heads,63sectors/track,522cylinders
Units=cylindersof16065*512=8225280bytes
Disk/dev/sdddoesn'tcontainavalidpartitiontable
[root@hotel01~]#
Fdisk/dev/sdb
np1w
rpm–vihasmlib
/
[root@hotel01~]#/etc/init.d/oracleasmconfigure
ConfiguringtheOracleASMlibrarydriver.
Thiswillconfiguretheon-bootpropertiesoftheOracleASMlibrary
driver.Thefollowingquestionswilldeterminewhetherthedriveris
loadedonbootandwhatpermissionsitwillhave.Thecurrentvalues
willbeshowninbrackets('[]').Hitting<ENTER>withouttypingan
answerwillkeepthatcurrentvalue.Ctrl-Cwillabort.
Defaultusertoownthedriverinterface[]:oracle
Defaultgrouptoownthedriverinterface[]:asmadmin
StartOracleASMlibrarydriveronboot(y/n)
:y
ScanforOracleASMdisksonboot(y/n)[y]:y
WritingOracleASMlibrarydriverconfiguration:done
InitializingtheOracleASMLibdriver:[OK]
ScanningthesystemforOracleASMLibdisks:[OK]
**oracleasminit在rac的时候需要
[root@hotel01/]#/etc/init.d/oracleasmcreatediskv1/dev/sdb1
Markingdisk"v1"asanASMdisk:[OK]
[root@hotel01/]#/etc/init.d/oracleasmcreatediskv2/dev/sdc1
Markingdisk"v2"asanASMdisk:[OK]
[root@hotel01/]#/etc/init.d/oracleasmcreatediskv3/dev/sdd1
Markingdisk"v3"asanASMdisk:[OK]
[root@hotel01/]#
[root@hotel01/]#/etc/init.d/oracleasmlistdisks
V1
V2
V3
主库
IP:10.1.5.241HOSTNAME:hotel01
[root@hotel01~]#cat/etc/hosts
#Donotremovethefollowingline,orvariousprograms
#thatrequirenetworkfunctionalitywillfail.
#127.0.0.1hotel01localhost.localdomainlocalhost
127.0.0.1localhost.localdomainlocalhost
::1localhost6.localdomain6localhost6
10.1.5.241hotel01
10.1.5.242hotel02
10.1.5.243hotel03
10.1.5.245gc.localdomaingc
[root@hotel01~]#
备库1
IP:10.1.5.242HOSTNAME:hotel02
[root@hotel02~]#cat/etc/hosts
#Donotremovethefollowingline,orvariousprograms
#thatrequirenetworkfunctionalitywillfail.
#127.0.0.1hotel02localhost.localdomainlocalhost
127.0.0.1localhost.localdomainlocalhost
::1localhost6.localdomain6localhost6
10.1.5.241hotel01
10.1.5.242hotel02
10.1.5.243hotel03
10.1.5.245gc.localdomaingc
[root@hotel02~]#
备库2
IP:10.1.5.243HOSTNAME:hotel03
[root@hotel03~]#cat/etc/hosts
#Donotremovethefollowingline,orvariousprograms
#thatrequirenetworkfunctionalitywillfail.
#127.0.0.1hotel03localhost.localdomainlocalhost
127.0.0.1localhost.localdomainlocalhost
::1localhost6.localdomain6localhost6
10.1.5.241hotel01
10.1.5.242hotel02
10.1.5.243hotel03
10.1.5.245gc.localdomaingc
[root@hotel03~]#
GC
GRIDCONTROLIP:10.1.5.245
HOSTNAME:gc
[root@gc~]#cat/etc/hosts
#Donotremovethefollowingline,orvariousprograms
#thatrequirenetworkfunctionalitywillfail.
#127.0.0.1gclocalhost.localdomainlocalhost
127.0.0.1localhost.localdomainlocalhost
::1localhost6.localdomain6localhost6
10.1.5.241hotel01
10.1.5.242hotel02
10.1.5.243hotel03
10.1.5.245gc.localdomaingc
[root@gc~]#
环境检查
rpm-q\glibc\
rng-utils\
make\
binutils\
gcc\
libaio\
glibc-common\
compat-libstdc++-296\
libstdc++\
libstdc++-devel\
setarch\
sysstat\
compat-db
一.配置GC
安装11.2.0.2software
在10.1.5.245安装oracle11.2.0.2创建监听不要安装emsetupnewopatch
[oracle@gcop]$ll
总计29688
drwxrwxr-x8oracleoinstall409603-2319:24OPatch
-rw-r--r--1oracleoinstall3035802604-1217:57p6880880_112000_Linux-x86-64.zip
[root@gc~]#cd/u01/app/ora11g/product/11.2.0/db_1/OPatch
[root@gcOPatch]#cd..
[root@gcgrid]#pwd
/u01/app/ora11g/product/11.2.0/db_1
[root@gcgrid]#mvOPatchOPatch.b
drwxrwxr-x2oracleoinstall409606-0309:53db_1
drwxr-x---67rootoinstall409606-0311:42grid
[root@gc11.2.0]#pwd
/u01/app/ora11g/product/11.2.0
#[root@gc11.2.0]#chown-Roracle:oinstallgrid
[oracle@gcop]$pwd
/112db/psu/op
[oracle@gcop]$mvOPatch/u01/app/ora11g/product/11.2.0/db_1/
[oracle@gcop]$
[oracle@ptestOPatch]$exportORACLE_HOME=/u01/app/ora11g/product/11.2.0/db_1/
[root@gcOPatch]#./opatchversion
InvokingOPatch11.2.0.1.5
OPatchVersion:11.2.0.1.5
OPatchsucceeded.
安装oraclesoftwarePSU
Patch12419331(11724916)[oracle@gc2419331]$pwd
/112db/psu/db/2419331
[oracle@gc2419331]$/u01/app/ora11g/product/11.2.0/db_1/OPatch/./opatchapply
InvokingOPatch11.2.0.1.5
Oracle中间补丁程序安装程序版本11.2.0.1.5
版权所有(c)2010,OracleCorporation。保留所有权利。
Oracle主目录:/u01/app/ora11g/product/11.2.0/db_1
主产品清单:/u01/app/oraInventory
从:/etc/oraInst.loc
OPatch版本:11.2.0.1.5
OUI版本:11.2.0.2.0
OUI位置:/u01/app/ora11g/product/11.2.0/db_1/oui
日志文件位置:/u01/app/ora11g/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2011-08-05_14-48-10下午.log
………………………….
………………………….
Verifyingtheupdate...
InventorycheckOK:PatchID12419331isregisteredinOracleHomeinventorywithpropermeta-data.
FilescheckOK:FilesfromPatchID12419331arepresentinOracleHome.
本地系统已打补丁,可以重新启动。
OPatchsucceeded.
checkPatch12419331(11724916)
[oracle@gc12419331]$cd/u01/app/ora11g/product/11.2.0/db_1/OPatch
[oracle@gcOPatch]$./opatchlsinventory
InvokingOPatch11.2.0.1.5
Oracle中间补丁程序安装程序版本11.2.0.1.5
版权所有(c)2010,OracleCorporation。保留所有权利。
Oracle主目录:/u01/app/ora11g/product/11.2.0/db_1
主产品清单:/u01/app/oraInventory
从:/etc/oraInst.loc
OPatch版本:11.2.0.1.5
OUI版本:11.2.0.2.0
OUI位置:/u01/app/ora11g/product/11.2.0/db_1/oui
日志文件位置:/u01/app/ora11g/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2011-08-05_14-54-22下午.log
Patchhistoryfile:/u01/app/ora11g/product/11.2.0/db_1/cfgtoollogs/opatch/opatch_history.txt
LsinventoryOutputfilelocation:/u01/app/ora11g/product/11.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2011-08-05_14-54-22下午.txt
--------------------------------------------------------------------------------
已安装的顶级产品(1):
OracleDatabase11g11.2.0.2.0
此Oracle主目录中已安装1个产品。
中间补丁程序(1):
Patch12419331:appliedonFriAug0514:50:21CST2011
UniquePatchID:13779022
Createdon11Jul2011,07:34:02hrsPST8PDT
Bugsfixed:
10151017,10158965,11724916,10190642,12586486,12586487,10129643
12586488,12586489,10018789,9744252,10248523,9956713,10356513
9715581,9770451,10378005,10170431,10425676,10222719,10126094
9591812,10127360,10132870,10094201,9443361,10193846,11664046
11069199,10324294,10245086,12586490,10205230,12586491,10052141
12586492,12586493,12586494,10142788,11818335,11830776,12586495
9905049,11830777,12586496,11830778,6892311,10040921,10077191
10358019,12431716,10219576,10258337,11707699,10264680,10209232
11651810,10102506,11067567,9881076,10278372,10040531,10621169
10155605,10082277,10356782,10218814,9078442,9788588,10157249
9735237,10317487,12326246,11707302,10310299,10636231,10230571
11065646,12419321,10368698,10079168,10013431,10228151,10233732
10324526,8223165,10238786,10217802,10061015,9953542,9572787
10052956,10080579,11699057,12620422,10332111,10227288,10329146
10332589,10110863,10073683,9869401,10019218,10229719,11664719
9539440,10373381,9735282,9748749,11724984,10022980,10411618
11800854,12419331,11674485,10187168,6523037,10648873,9724970
10053725,10084145,10367188,11800170,11695285,10157402,9651350,10299224
--------------------------------------------------------------------------------
OPatchsucceeded.
NETCA创建监听
注意:如果安装前面已经安装了giasm,那么监听已经自动创建,这里就不用再创建了。lsnrctlstatus
[oracle@gc~]$lsnrctlstatus
DBCA创建数据库
密码:Oracle123DB名称叫GCDB
配置weblogic
Weblogic也安装在10.1.5.245首先
安装64bitjdk
上传jdk
Root下执行
#chmodu+xjdk-6u18-linux-x64-rpm.bin
#./jdk-6u18-linux-x64-rpm.bin
默认安装到了
[root@gcbin]#pwd
/usr/
[root@gcbin]#./java-version
Java(TM)SERuntimeEnvironment(build1.6.0_18-b07)
安装weblogic
在oracle用户下执行:
$/usr/java/jdk1.6.0_18/bin/java-jarwls1032_generic.jar
进到/usr/java/jdk1.6.0_18/bin
安装GC
上传GCV23674-01_1of3V23674-01_2of3V23674-01_3of3单独解压缩解压缩到相同的目录
[oracle@gcgrid]$unzip-nV23674-01_1of3-dgc
[oracle@gcgrid]$unzip-nV23674-01_2of3-dgc
[oracle@gcgrid]$unzip-nV23674-01_3of3-dgc
安装
[oracle@gc~]$exportLANG=zh_CN
[oracle@gc~]$emca-deconfigdbcontroldb-reposdrop
EMCA开始于2011-3-316:35:10
EMConfigurationAssistant,11.2.0.0.2正式版
版权所有(c)2003,2005,Oracle。保留所有权利。
输入以下信息:
数据库SID:gcdb
监听程序端口号:1521
SYS用户的口令:
SYSMAN用户的口令:
----------------------------------------------------------------------
警告:当删除资料档案库时,数据库将进入静默模式。
----------------------------------------------------------------------
是否继续?[是(Y)/否(N)]:Y
2011-3-316:35:32oracle.sysman.emcp.EMConfigperform
信息:正在将此操作记录到/u01/app/ora11g/cfgtoollogs/emca/gcdb/emca_2011_03_03_16_35_09.log。
2011-3-316:35:34oracle.sysman.emcp.util.GeneralUtilinitSQLEngineLoacly
警告:ORA-28000:帐户已被锁定
2011-3-316:35:34oracle.sysman.emcp.ParamsManagercheckListenerStatusForDBControl
警告:初始化SQL连接时出错。无法执行SQL操作
2011-3-316:35:34oracle.sysman.emcp.EMDBPreConfigperformDeconfiguration
警告:没有为此数据库配置EM。无法执行任何EM特定的操作。一些可能的原因包括:
1)使用物理主机之外的主机名配置了EM。请设置环境变量ORACLE_HOSTNAME=<hostname>并重新运行EMCA脚本
2)ORACLE_HOSTNAME已设置。请取消设置该变量并重新运行EMCA脚本
2011-3-316:35:34oracle.sysman.emcp.EMReposConfiginvoke
信息:正在删除EM资料档案库(此操作可能需要一段时间)...
2011-3-316:40:21oracle.sysman.emcp.EMReposConfiginvoke
信息:已成功删除资料档案库
已成功完成EnterpriseManager的配置
EMCA结束于2011-3-316:40:21
[oracle@gc~]$
SQL>altertablespaceundotbs1adddatafile;如果报undotbs过小
SQL>altersystemsetsession_cached_cursors=201scope=spfile;
系统已更改。
SQL>altersystemsetprocesses=501scope=spfile;
系统已更改。
SQL>shutdownimmediate
Startup
oracle123
oracle123
安装AgentPSU
Setuppatch9345913(9345906)[oracle@gcagent11g]$exportORACLE_HOME=/home/oracle/Oracle/Middleware/agent11g
[oracle@gcagent11g]$cd/u01/app/ora11g/product/11.2.0/db_1/OPatch
[oracle@gcOPatch]$./opatchlsinventory
InvokingOPatch11.2.0.1.5
Oracle中间补丁程序安装程序版本11.2.0.1.5
版权所有(c)2010,OracleCorporation。保留所有权利。
Oracle主目录:/home/oracle/Oracle/Middleware/agent11g
主产品清单:/u01/app/oraInventory
从:/etc/oraInst.loc
OPatch版本:11.2.0.1.5
OUI版本:11.1.0.8.0
OUI位置:/home/oracle/Oracle/Middleware/agent11g/oui
日志文件位置:/home/oracle/Oracle/Middleware/agent11g/cfgtoollogs/opatch/opatch2011-08-07_10-17-02上午.log
Patchhistoryfile:/home/oracle/Oracle/Middleware/agent11g/cfgtoollogs/opatch/opatch_history.txt
OPatchdetectstheMiddlewareHomeas"/home/oracle/Oracle/Middleware"
LsinventoryOutputfilelocation:/home/oracle/Oracle/Middleware/agent11g/cfgtoollogs/opatch/lsinv/lsinventory2011-08-07_10-17-02上午.txt
--------------------------------------------------------------------------------
已安装的顶级产品(1):
OracleManagementAgent11.1.0.1.0
此Oracle主目录中已安装1个产品。
中间补丁程序(4):
Patch8240469:appliedonSatAug0601:59:07CST2011
UniquePatchID:12108719
Createdon13Jan2010,15:16:03hrsPST8PDT
Bugsfixed:
8240469
Patch8685010:appliedonSatAug0601:58:37CST2011
UniquePatchID:12136632
Createdon21Jan2010,14:42:11hrsUS/Pacific
Bugsfixed:
8685010
Patch7568506:appliedonSatAug0601:58:30CST2011
Createdon3Dec2008,02:06:34hrsUS/Eastern
Bugsfixed:
7568506
Patch5336126:appliedonSatAug0601:58:19CST2011
Createdon11Nov2008,12:48:26hrsUS/Pacific
Bugsfixed:
5336126
--------------------------------------------------------------------------------
OPatchsucceeded.
[oracle@gcOPatch]$./opatchprereqCheckConflictAgainstOHWithDetail-phBaseDir./9345913
InvokingOPatch11.2.0.1.5
Oracle中间补丁程序安装程序版本11.2.0.1.5
版权所有(c)2010,OracleCorporation。保留所有权利。
PREREQsession
Oracle主目录:/home/oracle/Oracle/Middleware/agent11g
主产品清单:/u01/app/oraInventory
从:/etc/oraInst.loc
OPatch版本:11.2.0.1.5
OUI版本:11.1.0.8.0
OUI位置:/home/oracle/Oracle/Middleware/agent11g/oui
日志文件位置:/home/oracle/Oracle/Middleware/agent11g/cfgtoollogs/opatch/opatch2011-08-07_10-30-35上午.log
Patchhistoryfile:/home/oracle/Oracle/Middleware/agent11g/cfgtoollogs/opatch/opatch_history.txt
OPatchdetectstheMiddlewareHomeas"/home/oracle/Oracle/Middleware"
Invokingprereq"checkconflictagainstohwithdetail"
Prereq"checkConflictAgainstOHWithDetail"passed.
OPatchsucceeded.
[oracle@gc~]$cd/home/oracle/Oracle/Middleware/agent11g/bin
[oracle@gcbin]$./emctlstopagent
[oracle@gcbin]$cd./9345913
[oracle@gc9345913]$/u01/app/ora11g/product/11.2.0/db_1/OPatch/opatchapply
InvokingOPatch11.2.0.1.5
Oracle中间补丁程序安装程序版本11.2.0.1.5
版权所有(c)2010,OracleCorporation。保留所有权利。
Oracle主目录:/home/oracle/Oracle/Middleware/agent11g
主产品清单:/u01/app/oraInventory
从:/etc/oraInst.loc
OPatch版本:11.2.0.1.5
OUI版本:11.1.0.8.0
OUI位置:/home/oracle/Oracle/Middleware/agent11g/oui
日志文件位置:/home/oracle/Oracle/Middleware/agent11g/cfgtoollogs/opatch/opatch2011-08-07_10-37-13上午.log
Patchhistoryfile:/home/oracle/Oracle/Middleware/agent11g/cfgtoollogs/opatch/opatch_history.txt
OPatchdetectstheMiddlewareHomeas"/home/oracle/Oracle/Middleware"
ApplySession将中间补丁程序'9345913'应用到OH'/home/oracle/Oracle/Middleware/agent11g'
Runningprerequisitechecks...
提供电子邮件地址以用于接收有关安全问题的通知,安装OracleConfigurationManager并启动它。如果您使用MyOracle
Support电子邮件地址/用户名,操作将更简单。
有关详细信息,请访问
电子邮件地址/用户名:
尚未提供电子邮件地址以接收有关安全问题的通知。
是否不希望收到有关安全问题(是[Y],否
)
的通知:Y
OPatch从产品清单中检测到非集群Oracle主目录,将仅对本地系统打补丁。
请关闭本地系统上在此ORACLE_HOME之外运行的Oracle实例。
(Oracle主目录='/home/oracle/Oracle/Middleware/agent11g')
本地系统是否已准备打补丁?[y|n]
y
UserRespondedwith:Y
为Oracle主目录备份文件和产品清单(不是用于自动回退)
正在备份受补丁程序'9345913'影响的文件以用于还原。此操作将需要一些时间...
正在备份受补丁程序'9345913'影响的文件以用于回退。此操作将需要一些时间...
Executionof'sh/u01/software/psu/ORACLE_PSU_2011-7-21/11G/GRID_CONTROL/11.1.0.1.4_Enterprise_Manager_Agent_home/Patch_9345913/9345913/custom/scripts/pre-apply9345913':
ReturnCode=0
正在为组件oracle.sysman.top.agent,11.1.0.1.0打补丁...
用"sysman/lib/libnmeb.a/nmebb.o"更新归档文件"/home/oracle/Oracle/Middleware/agent11g/sysman/lib/libnmeb.a"
用"sysman/lib/libnmee.a/nmeetm.o"更新归档文件"/home/oracle/Oracle/Middleware/agent11g/sysman/lib/libnmee.a"
用"sysman/lib/libnmem.a/nmemdisp.o"更新归档文件"/home/oracle/Oracle/Middleware/agent11g/sysman/lib/libnmem.a"
用"sysman/lib/libnmec.a/nmecmgr.o"更新归档文件"/home/oracle/Oracle/Middleware/agent11g/sysman/lib/libnmec.a"
用"sysman/lib/libnmec.a/nmecs.o"更新归档文件"/home/oracle/Oracle/Middleware/agent11g/sysman/lib/libnmec.a"
用"sysman/lib/libnmehu.a/nmehum.o"更新归档文件"/home/oracle/Oracle/Middleware/agent11g/sysman/lib/libnmehu.a"
用"sysman/lib/libnmejc.a/nmejcap.o"更新归档文件"/home/oracle/Oracle/Middleware/agent11g/sysman/lib/libnmejc.a"
用"sysman/lib/libnmesched.a/nmesse.o"更新归档文件"/home/oracle/Oracle/Middleware/agent11g/sysman/lib/libnmesched.a"
用"sysman/lib/libnmesched.a/nmessr.o"更新归档文件"/home/oracle/Oracle/Middleware/agent11g/sysman/lib/libnmesched.a"
用"sysman/lib/libnmevq.a/nmevqd.o"更新归档文件"/home/oracle/Oracle/Middleware/agent11g/sysman/lib/libnmevq.a"
用"sysman/lib/libnmevc.a/nmevc.o"更新归档文件"/home/oracle/Oracle/Middleware/agent11g/sysman/lib/libnmevc.a"
用"sysman/lib/libnmevc.a/nmevco.o"更新归档文件"/home/oracle/Oracle/Middleware/agent11g/sysman/lib/libnmevc.a"
用"/sysman/jlib/emagentSDK.jar/oracle/sysman/emSDK/emd/conf/InventoryLoader.class"更新jar文件"/home/oracle/Oracle/Middleware/agent11g/sysman/jlib/emagentSDK.jar"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/bin/AgentSubAgent.pm"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/scripts/alertlog.pl"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/scripts/alertlogViewer.pl"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/scripts/oracle_db_files.pl"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/scripts/has/HasCluster.pm"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/default_collection/rac_database.xml"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/metadata/dyn_props.xmlp"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/metadata/osm_instance.xml"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/lib/libnmemso.def"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/scripts/semd_common.pl"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/scripts/failedLogin.pl"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/scripts/has/HasCluster.pm"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/scripts/has/clustgtinst.pl"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/discover/eventBasedDiscovery.pl"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/default_collection/cluster.xml"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/default_collection/database.xmlp"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/default_collection/has.xml"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/default_collection/instance.xmlp"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/metadata/cluster.xml"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/metadata/has.xml"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/metadata/oracle_database.xml"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/metadata/rac_database.xml"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/metadata/database.xmlp"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/metadata/instance.xmlp"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/discover/oracledb.pl"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/discover/host.pl"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/discover/csa_collector.pl"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/scripts/emdiscoveryhelper.pm"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/scripts/alertlogAdr.pl"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/scripts/alertlogAdrAs.pl"
将文件复制到"/home/oracle/Oracle/Middleware/agent11g/sysman/admin/scripts/osm/ecmCloneHome.pl"
正在对目标libnmevq运行make命令
正在对目标libnmevc运行make命令
正在对目标libnmemso运行make命令
正在对目标emagent运行make命令
ApplySession将中间补丁程序'9345913'添加到产品清单
Verifyingtheupdate...
InventorycheckOK:PatchID9345913isregisteredinOracleHomeinventorywithpropermeta-data.
FilescheckOK:FilesfromPatchID9345913arepresentinOracleHome.
Executionof'sh/u01/software/psu/ORACLE_PSU_2011-7-21/11G/GRID_CONTROL/11.1.0.1.4_Enterprise_Manager_Agent_home/Patch_9345913/9345913/custom/scripts/post-apply9345913':
ReturnCode=0
本地系统已打补丁,可以重新启动。
OPatchsucceeded.
[oracle@gc~]$cdOracle/Middleware/agent11g/bin
[oracle@gcbin]$./emctlstartagent
Checkpatch9345913(9345906)
[oracle@gc9345913]$/u01/app/ora11g/product/11.2.0/db_1/OPatch/opatchlsinventory
InvokingOPatch11.2.0.1.5
Oracle中间补丁程序安装程序版本11.2.0.1.5
版权所有(c)2010,OracleCorporation。保留所有权利。
Oracle主目录:/home/oracle/Oracle/Middleware/agent11g
主产品清单:/u01/app/oraInventory
从:/etc/oraInst.loc
OPatch版本:11.2.0.1.5
OUI版本:11.1.0.8.0
OUI位置:/home/oracle/Oracle/Middleware/agent11g/oui
日志文件位置:/home/oracle/Oracle/Middleware/agent11g/cfgtoollogs/opatch/opatch2011-08-07_10-41-32上午.log
Patchhistoryfile:/home/oracle/Oracle/Middleware/agent11g/cfgtoollogs/opatch/opatch_history.txt
OPatchdetectstheMiddlewareHomeas"/home/oracle/Oracle/Middleware"
LsinventoryOutputfilelocation:/home/oracle/Oracle/Middleware/agent11g/cfgtoollogs/opatch/lsinv/lsinventory2011-08-07_10-41-32上午.txt
--------------------------------------------------------------------------------
已安装的顶级产品(1):
OracleManagementAgent11.1.0.1.0
此Oracle主目录中已安装1个产品。
中间补丁程序(5):
Patch9345913:appliedonSunAug0710:37:49CST2011
UniquePatchID:13944002
Createdon29Jun2011,03:57:45hrsPST8PDT
Bugsfixed:
9724244,10118817,10170020,9626253,10029486,9556885,9789944
9659466,10158523,11735638,9579384,9687366,10082106,9956393,9882856
9728084,10297881,9482559,10236207,9676134,9500047,11932967,9383791
9320333,10392806,9486541,9710001,9385658,10260369,9775511,9828187
Patch8240469:appliedonSatAug0601:59:07CST2011
UniquePatchID:12108719
Createdon13Jan2010,15:16:03hrsPST8PDT
Bugsfixed:
8240469
Patch8685010:appliedonSatAug0601:58:37CST2011
UniquePatchID:12136632
Createdon21Jan2010,14:42:11hrsUS/Pacific
Bugsfixed:
8685010
Patch7568506:appliedonSatAug0601:58:30CST2011
Createdon3Dec2008,02:06:34hrsUS/Eastern
Bugsfixed:
7568506
Patch5336126:appliedonSatAug0601:58:19CST2011
Createdon11Nov2008,12:48:26hrsUS/Pacific
Bugsfixed:
5336126
--------------------------------------------------------------------------------
OPatchsucceeded.
安装OMSPSU
Setuppatch12423703(11727299)[oracle@gcoms11g]$exportORACLE_HOME=/home/oracle/Oracle/Middleware/oms11g
[oracle@gcoms11g]$$ORACLE_HOME/bin/emctlstopoms
[oracle@gcoms11g]$cd/u01/app/ora11g/product/11.2.0/db_1/OPatch
[oracle@gcOPatch]$./opatchlsinventory
InvokingOPatch11.2.0.1.5
Oracle中间补丁程序安装程序版本11.2.0.1.5
版权所有(c)2010,OracleCorporation。保留所有权利。
Oracle主目录:/home/oracle/Oracle/Middleware/oms11g
主产品清单:/u01/app/oraInventory
从:/etc/oraInst.loc
OPatch版本:11.2.0.1.5
OUI版本:11.1.0.8.0
OUI位置:/home/oracle/Oracle/Middleware/oms11g/oui
日志文件位置:/home/oracle/Oracle/Middleware/oms11g/cfgtoollogs/opatch/opatch2011-08-07_10-52-29上午.log
Patchhistoryfile:/home/oracle/Oracle/Middleware/oms11g/cfgtoollogs/opatch/opatch_history.txt
OPatchdetectstheMiddlewareHomeas"/home/oracle/Oracle/Middleware"
LsinventoryOutputfilelocation:/home/oracle/Oracle/Middleware/oms11g/cfgtoollogs/opatch/lsinv/lsinventory2011-08-07_10-52-29上午.txt
--------------------------------------------------------------------------------
已安装的顶级产品(1):
OracleEnterpriseManagerGridConsole11.1.0.1.0
此Oracle主目录中已安装1个产品。
中间补丁程序(2):
Patch9367763:appliedonSatAug0601:12:10CST2011
UniquePatchID:12255254
Createdon1Mar2010,22:34:50hrsPST8PDT
Bugsfixed:
9367763
Patch9207217:appliedonSatAug0601:11:59CST2011
UniquePatchID:12151251
Createdon27Jan2010,15:49:36hrsUS/Pacific
Bugsfixed:
9207217
--------------------------------------------------------------------------------
OPatchsucceeded.
[oracle@gcOPatch]$./opatchprereqCheckConflictAgainstOHWithDetail-phBaseDir./9345913
InvokingOPatch11.2.0.1.5
Oracle中间补丁程序安装程序版本11.2.0.1.5
版权所有(c)2010,OracleCorporation。保留所有权利。
PREREQsession
Oracle主目录:/home/oracle/Oracle/Middleware/oms11g
主产品清单:/u01/app/oraInventory
从:/etc/oraInst.loc
OPatch版本:11.2.0.1.5
OUI版本:11.1.0.8.0
OUI位置:/home/oracle/Oracle/Middleware/oms11g/oui
日志文件位置:/home/oracle/Oracle/Middleware/oms11g/cfgtoollogs/opatch/opatch2011-08-07_10-54-37上午.log
Patchhistoryfile:/home/oracle/Oracle/Middleware/oms11g/cfgtoollogs/opatch/opatch_history.txt
OPatchdetectstheMiddlewareHomeas"/home/oracle/Oracle/Middleware"
Invokingprereq"checkconflictagainstohwithdetail"
Prereq"checkConflictAgainstOHWithDetail"passed.
OPatchsucceeded.
[oracle@gc~]$cd/home/oracle/Oracle/Middleware/oms11g/bin
[oracle@gcbin]$./emctlstopoms-all
[oracle@gc~]$cd./12423703
[oracle@gc12423703]$/u01/app/ora11g/product/11.2.0/db_1/OPatch/opatchapply
InvokingOPatch11.2.0.1.5
Oracle中间补丁程序安装程序版本11.2.0.1.5
版权所有(c)2010,OracleCorporation。保留所有权利。
Oracle主目录:/home/oracle/Oracle/Middleware/oms11g
主产品清单:/u01/app/oraInventory
从:/etc/oraInst.loc
OPatch版本:11.2.0.1.5
OUI版本:11.1.0.8.0
OUI位置:/home/oracle/Oracle/Middleware/oms11g//oui
日志文件位置:/home/oracle/Oracle/Middleware/oms11g/cfgtoollogs/opatch/opatch2011-08-07_11-19-10上午.log
Patchhistoryfile:/home/oracle/Oracle/Middleware/oms11g/cfgtoollogs/opatch/opatch_history.txt
OPatchdetectstheMiddlewareHomeas"/home/oracle/Oracle/Middleware"
ApplySession将中间补丁程序'12423703'应用到OH'/home/oracle/Oracle/Middleware/oms11g'
Executionof'sh/u01/software/psu/ORACLE_PSU_2011-7-21/11G/GRID_CONTROL/11.1.0.1.4_Enterprise_Manager_OMS_home/Patch_12423703/12423703/custom/scripts/init-apply12423703':
ReturnCode=0
Runningprerequisitechecks...
提供电子邮件地址以用于接收有关安全问题的通知,安装OracleConfigurationManager并启动它。如果您使用MyOracle
Support电子邮件地址/用户名,操作将更简单。
有关详细信息,请访问
电子邮件地址/用户名:
尚未提供电子邮件地址以接收有关安全问题的通知。
是否不希望收到有关安全问题(是[Y],否
)
的通知:Y
OPatch从产品清单中检测到非集群Oracle主目录,将仅对本地系统打补丁。
为Oracle主目录备份文件和产品清单(不是用于自动回退)
正在备份受补丁程序'12423703'影响的文件以用于还原。此操作将需要一些时间...
正在备份受补丁程序'12423703'影响的文件以用于回退。此操作将需要一些时间...
--这时运行时间可能会稍长些
Executionof'sh/u01/software/psu/ORACLE_PSU_2011-7-21/11G/GRID_CONTROL/11.1.0.1.4_Enterprise_Manager_OMS_home/Patch_12423703/12423703/custom/scripts/pre-apply12423703':
ReturnCode=0
正在为组件oracle.sysman.oms.core,11.1.0.1.0打补丁...
用"/sysman/jlib/emCORE.jar/oracle/sysman/eml/ecm/policy/PolicyViolationsController.class"更新jar文件"/home/oracle/Oracle/Middleware/oms11g/sysman/jlib/emCORE.jar"
….
…
Copyingfile:/home/oracle/Oracle/Middleware/wlserver_10.3/common/nodemanager/nodemanager.domainsto:/home/oracle/Oracle/Middleware/wlserver_10.3/common/emnodemanager/nodemanager.domains
ReturnCode=0
OPatchsucceeded.
$$ORACLE_HOME/bin/rcuJDBCEnginesysman@<host>:<port>:<SID>JDBC_SCRIPTapply.sql$PWD$ORACLE_HOME
[oracle@gc~]$cd./12423703
[oracle@gc12423703]$$ORACLE_HOME/bin/rcuJDBCEnginesysman/oracle123@gc.ums.com:1521:gcdbJDBC_SCRIPTapply.sql$PWD$ORACLE_HOME
--此处出现“问题1”,需要先打
[oracle@gc12423703]$$ORACLE_HOME/bin/emctlsecureconsole-self_signed
OracleEnterpriseManager11gRelease1GridControl
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
SecuringConsole...Started.
SecuringConsole...Successful
[oracle@gc12423703]$$ORACLE_HOME/bin/emctlstartoms
OracleEnterpriseManager11gRelease1GridControl
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
StartingWebTier...
WebTierSuccessfullyStarted
StartingOracleManagementServer...
OracleManagementServerSuccessfullyStarted
OracleManagementServerisUp
[oracle@gc12423703]$$ORACLE_HOME/bin/emclisync
错误:会话已失效。请运行emclilogin以建立会话。
[oracle@gcoms11g]$$ORACLE_HOME/bin/emclilogin-username=sysman-password=oracle123
登录成功
[oracle@gcoms11g]$$ORACLE_HOME/bin/emclisync
已成功同步
Checkpatch12423703(11727299)
[oracle@gcoms11g]$/u01/app/ora11g/product/11.2.0/db_1/OPatch/opatchlsinventory
InvokingOPatch11.2.0.1.5
Oracle中间补丁程序安装程序版本11.2.0.1.5
版权所有(c)2010,OracleCorporation。保留所有权利。
Oracle主目录:/home/oracle/Oracle/Middleware/oms11g
主产品清单:/u01/app/oraInventory
从:/etc/oraInst.loc
OPatch版本:11.2.0.1.5
OUI版本:11.1.0.8.0
OUI位置:/home/oracle/Oracle/Middleware/oms11g/oui
日志文件位置:/home/oracle/Oracle/Middleware/oms11g/cfgtoollogs/opatch/opatch2011-08-07_17-39-01下午.log
Patchhistoryfile:/home/oracle/Oracle/Middleware/oms11g/cfgtoollogs/opatch/opatch_history.txt
OPatchdetectstheMiddlewareHomeas"/home/oracle/Oracle/Middleware"
LsinventoryOutputfilelocation:/home/oracle/Oracle/Middleware/oms11g/cfgtoollogs/opatch/lsinv/lsinventory2011-08-07_17-39-01下午.txt
--------------------------------------------------------------------------------
已安装的顶级产品(1):
OracleEnterpriseManagerGridConsole11.1.0.1.0
此Oracle主目录中已安装1个产品。
中间补丁程序(4):
Patch12620174:appliedonSunAug0716:50:29CST2011
UniquePatchID:13908113
Createdon3Jun2011,02:07:37hrsPST8PDT
Bugsfixed:
12620174
Patch12423703:appliedonSunAug0712:42:46CST2011
UniquePatchID:13943874
Createdon6Jul2011,02:32:55hrsPST8PDT
Bugsfixed:
9804442,10122270,9930146,9576468,8638231,10108019,10372513,9535382
9928480,10114291,9543582,9276193,10278756,9892455,9476313,9911851
9506062,9876632,11900474,9386076,12657533,10372559,9803798
11076661,10418856,10043790,9646681,9965939,9500255,10307099
9390531,9662869,9462098,9544428,9747671,9489355,9706552,9562462
9570911,8859562,11808680,10638043,9937784,9723689,7340407,9575427
10204587,10177562,9935898,9734399,9504581,9558551,9446422,9874327
9586285,9548105,9313608,12423703,9308029,9534200,9184007,9684768
9341486,10122223,11683765,9241402,9838084,10307544,9537948
9849222,10118817,9919614,11696545,9903280,9888852,10636783
9558026,11728549,9342290,10410743,9151748,9953045,9221090,9559264
9491872,9952713,10257014,10213026,10015330,10036568,10042225
Patch9367763:appliedonSatAug0601:12:10CST2011
UniquePatchID:12255254
Createdon1Mar2010,22:34:50hrsPST8PDT
Bugsfixed:
9367763
Patch9207217:appliedonSatAug0601:11:59CST2011
UniquePatchID:12151251
Createdon27Jan2010,15:49:36hrsUS/Pacific
Bugsfixed:
9207217
--------------------------------------------------------------------------------
OPatchsucceeded.
二.安装主库
Hostnamehotel0110.1.5.241vi/etc/hosts
10.1.5.241hotel01
10.1.5.242hotel02
10.1.5.243hotel03
10.1.5.245gc.localdomaingc
hotel01首先安装数据库软件不建库不创建监听,然后安装GI的时候会自动创建监听并启动,一定要用GIRD的监听,不然ASM注册不到监听。最后安装AGENT
1、数据库软件
2、GI
3、Agent
4、最后安装,db,gi,agent最新补丁
注意:在安装主备库时,一定要按照上面的安装软件的顺序,否则可能会遇到在安装完db,gi后不能在gridcontrol发现home安装目标,所以要先安装完种软件,最后打补丁。
安装11.2.0.2dbsoftware
安装方法如GC的安装。安装11.2.0.2gi(GridInfrastructure)
unsetORACLE_HOMEenvWeblogic123
[root@hotel01~]#/u01/app/ora11g/product/11.2.0/grid/root.sh
RunningOracle11grootscript...
Thefollowingenvironmentvariablesaresetas:
ORACLE_OWNER=oracle
ORACLE_HOME=/u01/app/ora11g/product/11.2.0/grid
Enterthefullpathnameofthelocalbindirectory:[/usr/local/bin]:
Copyingdbhometo/usr/local/bin...
Copyingoraenvto/usr/local/bin...
Copyingcoraenvto/usr/local/bin...
Creating/etc/oratabfile...
Entrieswillbeaddedtothe/etc/oratabfileasneededby
DatabaseConfigurationAssistantwhenadatabaseiscreated
Finishedrunninggenericpartofrootscript.
Nowproduct-specificrootactionswillbeperformed.
Usingconfigurationparameterfile:/u01/app/ora11g/product/11.2.0/grid/crs/install/crsconfig_params
Creatingtracedirectory
LOCALADDMODE
CreatingOCRkeysforuser'oracle',privgrp'oinstall'..
Operationsuccessful.
LOCALONLYMODE
SuccessfullyaccumulatednecessaryOCRkeys.
CreatingOCRkeysforuser'root',privgrp'root'..
Operationsuccessful.
CRS-4664:Nodenjdywsuccessfullypinned.
Addingdaemontoinittab
ACFS-9459:ADVM/ACFSisnotsupportedonthisOSversion:'2.6.32-100.26.2.el5
'
hotel012011/06/0311:15:43/u01/app/ora11g/product/11.2.0/grid/cdata/hotel01/backup_20110603_111543.olr
SuccessfullyconfiguredOracleGridInfrastructureforaStandaloneServer
[oracle@hotel01~]$cd/u01/app/ora11g/product/11.2.0/grid/bin/
[oracle@hotel01bin]$./crs_stat-t
名称类型目标状态主机
------------------------------------------------------------
ora.DATA.dgora....up.typeONLINEONLINEhotel01
ora....ER.lsnrora....er.typeONLINEONLINEhotel01
ora.asmora.asm.typeONLINEONLINEhotel01
ora.cssdora.cssd.typeONLINEONLINEhotel01
ora.diskmonora....on.typeONLINEONLINEhotel01
ora.evmdora.evm.typeONLINEONLINEhotel01
ora.onsora.ons.typeOFFLINEOFFLINE
[oracle@hotel01bin]$
安装agent
Oraclewget
**
[oracle@hotel01~]$wget
--2011-03-0409:34:18--
正在解析主机gc...10.1.5.245
Connectingtogc|10.1.5.245|:4900...已连接。
WARNING:cannotverifygc'scertificate,issuedby`/O=EnterpriseManagerongc/OU=EnterpriseManagerongc/L=EnterpriseManagerongc/ST=CA/C=US/CN=gc':
Self-signedcertificateencountered.
已发出HTTP请求,正在等待回应...200OK
长度:38505(38K)[text/plain]
Savingto:`agentDownload.linux_x64'
100%[===================================================================================================================>]38,505--.-K/sin0.006s
2011-03-0409:34:18(6.28MB/s)-`agentDownload.linux_x64'saved[38505/38505]
[oracle@hotel01~]$
**
oracle
chmodu+xagentDownload.linux_x64
oracle
setup
[oracle@hotel01~]$./agentDownload.linux_x64-b/u01/app/-mgc-r4900-y
详细见
最后需要root执行/u01/app//agent11g/root.sh
[oracle@hotel01~]$cd/u01/app/agent11g/bin/
[oracle@hotel01bin]$./emctlstatusagent
OracleEnterpriseManager11gRelease1GridControl11.1.0.1.0
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
---------------------------------------------------------------
AgentVersion:11.1.0.1.0
OMSVersion:11.1.0.1.0
ProtocolVersion:11.1.0.0.0
AgentHome:/u01/app/agent11g
Agentbinaries:/u01/app/agent11g
AgentProcessID:9088
ParentProcessID:9066
AgentURL:
RepositoryURL:
Startedat:2011-03-0409:45:29
Startedbyuser:oracle
LastReload:2011-03-0409:45:29
Lastsuccessfulupload:2011-03-0409:51:30
TotalMegabytesofXMLfilesuploadedsofar:3.86
NumberofXMLfilespendingupload:0
SizeofXMLfilespendingupload(MB):0.00
Availablediskspaceonuploadfilesystem:66.88%
LastsuccessfulheartbeattoOMS:2011-03-0409:50:48
---------------------------------------------------------------
AgentisRunningandReady
如下图参考:此时目标应为1,安装应为3
安装主库各种补丁
setupnewop[
总计29688
drwxrwxr-x8
-rw-r--r--1oracleoinstall3035802604-1217:57p6880880_112000_Linux-x86-64.zip
[root@gc~]#cd/u01/app/ora11g/product/11.2.0/db_1/OPatch
[root@gcOPatch]#cd..
[root@gcgrid]#pwd
/u01/app/ora11g/product/11.2.0/db_1
[root@gcdb_1]#mvOPatchOPatch.b
[oracle@gcop]$pwd
/112db/psu/op
[oracle@gcop]$mvOPatch/u01/app/ora11g/product/11.2.0/db_1/
[oracle@gcop]$
[oracle@ptestOPatch]$exportORACLE_HOME=/u01/app/ora11g/product/11.2.0/db_1/
[root@gcOPatch]#./opatchversion
InvokingOPatch11.2.0.1.5
OPatchVersion:11.2.0.1.5
OPatchsucceeded.
安装oraclesoftwarePSU
Patch12419331(11724916)[oracle@gc2419331]$pwd
/112db/psu/db/2419331
[oracle@gc2419331]$/u01/app/ora11g/product/11.2.0/grid/OPatch/./opatchapply
InvokingOPatch11.2.0.1.5
checkPatch12419331(11724916)
[oracle@gcOPatch]$./opatchlsinventory
InvokingOPatch11.2.0.1.5
安装GIPSU(GridInfrastructurePatchSetUpdate)
readyforsetup[oracle@gcbin]$./crs_stop-all
[oracle@gcbin]$./crs_stat-t
名称类型目标状态主机
------------------------------------------------------------
ora.DATA.dgora....up.typeOFFLINEOFFLINE
ora....ER.lsnrora....er.typeOFFLINEOFFLINE
ora.asmora.asm.typeOFFLINEOFFLINE
ora.cssdora.cssd.typeOFFLINEOFFLINE
ora.diskmonora....on.typeOFFLINEOFFLINE
ora.evmdora.evm.typeOFFLINEOFFLINE
ora.onsora.ons.typeOFFLINEOFFLINE
0216:无法停止资源'ora.ons'。
[oracle@gcbin]$./crsctlstophas
CRS-4133:OracleHighAvailabilityServices已停止。
[oracle@gcbin]$./crs_stat-t
CRS-0184:无法与CRS守护程序通信。
SetGIpsustart
[oracle@hotel01gi]$pwd
/112db/psu/gi
[oracle@hotel01gi]$ll
drwxrwxr-x4oracleoinstall409604-0600:1411724916
drwxr-xr-x5oracleoinstall409604-0600:1312311357
-rw-r--r--1oracleoinstall42204-0600:14bundle.xml
-rw-r--r--1oracleoinstall24283309104-2011:19p12311357_112020_Linux-x86-64.zip
-rw-rw-r--1oracleoinstall10321104-1912:24README.html
-rw-r--r--1oracleoinstall2104-0600:14README.txt
[oracle@hotel01gi]$
Rootuser:
[root@hotel01~]cd/u01/app/ora11g/product/11.2.0/
[root@hotel0111.2.0]#ll
drwxrwxr-x2oracleoinstall409606-0309:53db_1
drwxr-x---67rootoinstall409606-0311:42grid
[root@hotel0111.2.0]#chown-Roracle:oinstallgrid
oracleuser:
[oracle@hotel01~]exportORACLE_HOME=/u01/app/ora11g/product/11.2.0/grid
[oracle@hotel01OPatch]$pwd
/u01/app/ora11g/product/11.2.0/db_1/OPatch
Patch12419353(12311357)
[oracle@hotel01OPatch]$./opatchnapply-oh/u01/app/ora11g/product/11.2.0/grid-local/112db/psu/gi/12419353
InvokingOPatch11.2.0.1.5
Oracle中间补丁程序安装程序版本11.2.0.1.5
版权所有(c)2010,OracleCorporation。保留所有权利。
UTILsession
Oracle主目录:/u01/app/ora11g/product/11.2.0/grid
主产品清单:/u01/app/oraInventory
从:/etc/oraInst.loc
OPatch版本:11.2.0.1.5
OUI版本:11.2.0.2.0
OUI位置:/u01/app/ora11g/product/11.2.0/grid/oui
日志文件位置:/u01/app/ora11g/product/11.2.0/grid/cfgtoollogs/opatch/opatch2011-06-03_11-51-04上午.log
Patchhistoryfile:/u01/app/ora11g/product/11.2.0/grid/cfgtoollogs/opatch/opatch_history.txt
Invokingutility"napply"
Checkingconflictamongpatches...
CheckingifOracleHomehascomponentsrequiredbypatches...
CheckingconflictsagainstOracleHome...
OPatchcontinueswiththesepatches:12419353
是否继续?[y|n]
y
UserRespondedwith:Y
Runningprerequisitechecks...
提供电子邮件地址以用于接收有关安全问题的通知,安装OracleConfigurationManager并启动它。如果您使用MyOracle
Support电子邮件地址/用户名,操作将更简单。
有关详细信息,请访问
电子邮件地址/用户名:
尚未提供电子邮件地址以接收有关安全问题的通知。
是否不希望收到有关安全问题(是[Y],否
)
的通知:Y
您选择了-local选项,因此OPatch将仅对本地系统打补丁。
请关闭本地系统上在此ORACLE_HOME之外运行的Oracle实例。
(Oracle主目录='/u01/app/ora11g/product/11.2.0/grid')
本地系统是否已准备打补丁?[y|n]
y
UserRespondedwith:Y
正在备份受补丁程序'NApply'影响的文件以用于还原。此操作将需要一些时间...
Applyingpatch12311357...
ApplySession将中间补丁程序'12311357'应用到OH'/u01/app/ora11g/product/11.2.0/grid'
正在备份受补丁程序'12311357'影响的文件以用于回退。此操作将需要一些时间...
正在为组件oracle.crs,11.2.0.2.0打补丁...
将文件复制到"/u01/app/ora11g/product/11.2.0/grid/bin/appagent.bin"
将文件复制到"/u01/app/ora11g/product/11.2.0/grid/bin/appvipcfg"
将文件复制到"/u01/app/ora11g/product/11.2.0/grid/bin/appvipcfg.pl"
checkPatch12419353(12311357)
[oracle@hotel01OPatch]$./opatchlsinventory
InvokingOPatch11.2.0.1.5
Oracle中间补丁程序安装程序版本11.2.0.1.5
版权所有(c)2010,OracleCorporation。保留所有权利。
Oracle主目录:/u01/app/ora11g/product/11.2.0/grid
主产品清单:/u01/app/oraInventory
从:/etc/oraInst.loc
OPatch版本:11.2.0.1.5
OUI版本:11.2.0.2.0
OUI位置:/u01/app/ora11g/product/11.2.0/grid/oui
日志文件位置:/u01/app/ora11g/product/11.2.0/grid/cfgtoollogs/opatch/opatch2011-08-07_19-42-23下午.log
Patchhistoryfile:/u01/app/ora11g/product/11.2.0/grid/cfgtoollogs/opatch/opatch_history.txt
LsinventoryOutputfilelocation:/u01/app/ora11g/product/11.2.0/grid/cfgtoollogs/opatch/lsinv/lsinventory2011-08-07_19-42-23下午.txt
--------------------------------------------------------------------------------
已安装的顶级产品(1):
OracleGridInfrastructure11.2.0.2.0
此Oracle主目录中已安装1个产品。
中间补丁程序(1):
Patch12419353:appliedonSunAug0719:41:15CST2011
UniquePatchID:13846303
Createdon17Jul2011,08:05:53hrsPST8PDT
Bugsfixed:
12419353,10157506,10178670,10425672,12311357,9959110,10272615
10314123,10014392,10089120,10057296,9864003,11775080,9916145
10044622,12399977,12421404,12340700,10056713,10637741,9939306
9902536,10007185,10376847,10038791,11741224,11655840,10048487
10322157,10260251,10052721,10028235,10027079,10357258,10045436
10231906,10622973,9891341,10072474,10036834,10029900,9974223
10016083,9918485,11781515,10040647,10069541,10029119,10233159
12332919,9812956,10036193,10015210,12340501,10621175,11877079
8906163,10111010,10115514,10104377,10057680,10280665,10078086
9944948,10146768,10052529,10011084,10012319,10073075,10233811
10299006,10248739,10236074,10128191,11071429,10019726,9975837
10253630,9949676,11936945,10637483,10157622,11698552,10385838
10053985,10425674,9812970,11828633,11899801,10083789,9876201
10073372,9963327,11077756,10375649,9336825,11682409,10062301
10018215,10105195,10419987,10071992,10634513,9926027,10103954
10028343,11866171,10065216,9907089,9897335,10190153,11744313
10175855,10284828,10028637,10361177,9979706,10324594,10015460
9971646,11782423,11654726,9978765,10398810,11904778,10397652
9915329,10107380,10110969,10305361,10331452,10083009,10631693
10008467,10048027,10040109,9944978,10033106,9978195,11840629
10042143,10284693,10638381,9679401,11663339,10075643,10205290
10124517,11069614,9593552,10168006,12677816,11807012,11846686
9867867,10228079,10015603,10241696,9942881,10252497,10283058
10157625,10283167,9906432,10216878,10045316,10425675,10061534
11789566,10283549,10311856,10150020,12421420,12378675,10113899
10069698,9861790,10087118,10056808,10146744,10326548,10019796
9975343,9936659,10244210,10029794,10266447,10193581,12318560
11804097,10070563,10268642,10283596
--------------------------------------------------------------------------------
OPatchsucceeded.
Patch12419331(11724916)
[oracle@gcOPatch]$./opatchnapply-oh/u01/app/ora11g/product/11.2.0/grid-local/112db/psu/gi/12419331
checkPatch12419331(11724916)
[oracle@hotel01OPatch]$./opatchlsinventory
InvokingOPatch11.2.0.1.5
Oracle中间补丁程序安装程序版本11.2.0.1.5
版权所有(c)2010,OracleCorporation。保留所有权利。
Oracle主目录:/u01/app/ora11g/product/11.2.0/grid
主产品清单:/u01/app/oraInventory
从:/etc/oraInst.loc
OPatch版本:11.2.0.1.5
OUI版本:11.2.0.2.0
OUI位置:/u01/app/ora11g/product/11.2.0/grid/oui
日志文件位置:/u01/app/ora11g/product/11.2.0/grid/cfgtoollogs/opatch/opatch2011-08-07_20-04-17下午.log
Patchhistoryfile:/u01/app/ora11g/product/11.2.0/grid/cfgtoollogs/opatch/opatch_history.txt
LsinventoryOutputfilelocation:/u01/app/ora11g/product/11.2.0/grid/cfgtoollogs/opatch/lsinv/lsinventory2011-08-07_20-04-17下午.txt
--------------------------------------------------------------------------------
已安装的顶级产品(1):
OracleGridInfrastructure11.2.0.2.0
此Oracle主目录中已安装1个产品。
中间补丁程序(2):
Patch12419331:appliedonSunAug0719:53:19CST2011
UniquePatchID:13846303
Createdon11Jul2011,07:34:02hrsPST8PDT
Bugsfixed:
10151017,10158965,11724916,10190642,12586486,12586487,10129643
12586488,12586489,10018789,9744252,10248523,9956713,10356513
9715581,9770451,10378005,10170431,10425676,10222719,10126094
9591812,10127360,10132870,10094201,9443361,10193846,11664046
11069199,10324294,10245086,12586490,10205230,12586491,10052141
12586492,12586493,12586494,10142788,11818335,11830776,12586495
9905049,11830777,12586496,11830778,6892311,10040921,10077191
10358019,12431716,10219576,10258337,11707699,10264680,10209232
11651810,10102506,11067567,9881076,10278372,10040531,10621169
10155605,10082277,10356782,10218814,9078442,9788588,10157249
9735237,10317487,12326246,11707302,10310299,10636231,10230571
11065646,12419321,10368698,10079168,10013431,10228151,10233732
10324526,8223165,10238786,10217802,10061015,9953542,9572787
10052956,10080579,11699057,12620422,10332111,10227288,10329146
10332589,10110863,10073683,9869401,10019218,10229719,11664719
9539440,10373381,9735282,9748749,11724984,10022980,10411618
11800854,12419331,11674485,10187168,6523037,10648873,9724970
10053725,10084145,10367188,11800170,11695285,10157402,9651350,10299224
Patch12419353:appliedonSunAug0719:41:15CST2011
UniquePatchID:13846303
Createdon17Jul2011,08:05:53hrsPST8PDT
Bugsfixed:
12419353,10157506,10178670,10425672,12311357,9959110,10272615
10314123,10014392,10089120,10057296,9864003,11775080,9916145
10044622,12399977,12421404,12340700,10056713,10637741,9939306
9902536,10007185,10376847,10038791,11741224,11655840,10048487
10322157,10260251,10052721,10028235,10027079,10357258,10045436
10231906,10622973,9891341,10072474,10036834,10029900,9974223
10016083,9918485,11781515,10040647,10069541,10029119,10233159
12332919,9812956,10036193,10015210,12340501,10621175,11877079
8906163,10111010,10115514,10104377,10057680,10280665,10078086
9944948,10146768,10052529,10011084,10012319,10073075,10233811
10299006,10248739,10236074,10128191,11071429,10019726,9975837
10253630,9949676,11936945,10637483,10157622,11698552,10385838
10053985,10425674,9812970,11828633,11899801,10083789,9876201
10073372,9963327,11077756,10375649,9336825,11682409,10062301
10018215,10105195,10419987,10071992,10634513,9926027,10103954
10028343,11866171,10065216,9907089,9897335,10190153,11744313
10175855,10284828,10028637,10361177,9979706,10324594,10015460
9971646,11782423,11654726,9978765,10398810,11904778,10397652
9915329,10107380,10110969,10305361,10331452,10083009,10631693
10008467,10048027,10040109,9944978,10033106,9978195,11840629
10042143,10284693,10638381,9679401,11663339,10075643,10205290
10124517,11069614,9593552,10168006,12677816,11807012,11846686
9867867,10228079,10015603,10241696,9942881,10252497,10283058
10157625,10283167,9906432,10216878,10045316,10425675,10061534
11789566,10283549,10311856,10150020,12421420,12378675,10113899
10069698,9861790,10087118,10056808,10146744,10326548,10019796
9975343,9936659,10244210,10029794,10266447,10193581,12318560
11804097,10070563,10268642,10283596
--------------------------------------------------------------------------------
OPatchsucceeded.
[oracle@hotel01bin]$./crsctlstarthas
CRS-4123:OracleHighAvailabilityServices已启动
安装agentPSU
按上GCagentPUS安装方法。
创建数据库
先安装GIASM那么监听会自动创建然后再创建
ASM
参考如下图:
三.配置第一个DG
10.1.5.242hotel02首先安装数据库软件不建库不创建监听,然后安装GI的时候会自动创建监听并启动,一定要用GIRD的监听,不然ASM注册不到监听。最后安装AGENT
1、数据库软件,升级Opatch
2、GI
3、Agent
4、打db,gi,agent各种补丁
打软件补丁(2419331)、GI补丁(12419353、12419331)、agent补丁(9345913)
注意:在安装主备库时,一定要按照上面的安装软件的顺序,否则可能会遇到在安装完db,gi后不能在gridcontrol发现home安装目标,所以要先安装完种软件,最后打补丁。
Vi/etc/hosts
10.1.5.241hotel01
10.1.5.242hotel02
10.1.5.243hotel03
10.1.5.245gc.localdomaingc
~
[oracle@OEL02~]$lsnrctlstatus
LSNRCTLfor
Copyright(c)1991,2010,Oracle.Allrightsreserved.
正在连接到(ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
LISTENER的STATUS
------------------------
别名LISTENER
版本TNSLSNRfor
启动日期09-3月-201121:15:42
正常运行时间0天13小时13分14秒
跟踪级别off
安全性ON:LocalOSAuthentication
SNMPOFF
监听程序参数文件/u01/app/ora11g/product/11.2.0/grid/network/admin/listener.ora
监听程序日志文件/u01/app/ora11g/diag/tnslsnr/OEL02/listener/alert/log.xml
监听端点概要...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=OEL02)(PORT=1521)))
服务摘要..
服务"+ASM"包含1个实例。
实例"+ASM",状态READY,包含此服务的1个处理程序...
命令执行成功
开始配置DG
[root@hotel02~]#cat/etc/oratab
#Backupfileis/u01/app/ora11g/product/11.2.0/db_1/srvm/admin/oratab.bak.oel02lineaddedbyAgent
#
#ThisfileisusedbyORACLEutilities.Itiscreatedbyroot.sh
#andupdatedbytheDatabaseConfigurationAssistantwhencreating
#adatabase.
#Acolon,':',isusedasthefieldterminator.Anewlineterminates
#theentry.Linesbeginningwithapoundsign,'#',arecomments.
#
#Entriesareoftheform:
#$ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
#Thefirstandsecondfieldsarethesystemidentifierandhome
#directoryofthedatabaserespectively.Thethirdfiledindicates
#tothedbstartutilitythatthedatabaseshould,"Y",orshouldnot,
#"N",bebroughtupatsystemboottime.
#
#Multipleentrieswiththesame$ORACLE_SIDarenotallowed.
#
#
+ASM:/u01/app/ora11g/product/11.2.0/grid:N
#*:/u01/app/agent11g:N
#*:/u01/app/agent11g:N
*:/u01/app/agent11g:N
pridb1:/u01/app/ora11g/product/11.2.0/db_1:N
pridb:/u01/app/ora11g/product/11.2.0/db_1:N#lineaddedbyAgent
[root@hotel02~]#
新添加第二个DG
10.1.5.243OEL03首先安装数据库软件不建库不创建监听,然后安装GI的时候会自动创建监听并启动,一定要用GIRD的监听,不然ASM注册不到监听。最后安装AGENT
1、数据库软件
2、GI
3、Agent
4、安装db,gi,agent的各种补丁
Vi/etc/hosts
10.1.5.241hotel01
10.1.5.242hotel02
10.1.5.243hotel03
10.1.5.245gc.localdomaingc
[oracle@OEL03~]$wget
[oracle@OEL03~]$chmodu+xagentDownload.linux_x64
./agentDownload.linux_x64-b/u01/app/-mgc-r4900–y
用GC添加DG的第二个节点
打开只读并且恢复
开始实时复制备库状态
SQL>selectstatus,instance_namefromv$instance;
STATUSINSTANCE_NAME
----------------------------
MOUNTEDpridb1
SQL>
Openreadonly之后
SQL>selectstatus,instance_namefromv$instance;
STATUSINSTANCE_NAME
----------------------------
OPENpridb1
SQL>selectopen_modefromv$database;
OPEN_MODE
--------------------
READONLYWITHAPPLY
sqlplussystem/oracle
Pridb主库
SQL>createtablet1asselect*fromdba_objectswhererownum<1000;
表已创建。
SQL>
Pridb1pridb2
SQL>selectcount(*)fromt1;
COUNT(*)
----------
999
备注:安装包括主库和备库,都不需要用netca创建监听,安装GI的时候会自动创建监听并启动
目录/u01/app/ora11g/product/11.2.0/grid/network/admin/listener.ora
四.后期配置管理
数据库备份策略
(1)在gc服务器配置recoverycatalog管理各节点的数据库备份建catalog用户及表空间
[oracle@gcsh]$!sql
sqlplus"/assysdba"
SQL>createtablespacerman_tbsdatafile'/u01/app/ora11g/oradata/gcdb/rman_tbs01.dbf'size200m;
SQL>createuserrmanidentifiedbyrmandefaulttablespacerman_tbs;
用户已创建。
SQL>grantconnect,resource,recovery_catalog_ownertorman;
授权成功。
SQL>exit
修改tnsnames.ora如下:
GCDB=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(HOST=gc.localdomain)(PORT=1521))
(CONNECT_DATA=
(SERVER=DEDICATED)
(SERVICE_NAME=gcdb)
)
)
htdb1_241=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(HOST=10.1.5.241)(PORT=1521))
(CONNECT_DATA=
(SERVER=DEDICATED)
(SERVICE_NAME=htdb1)
)
)
htdb2_242=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(HOST=10.1.5.242)(PORT=1521))
(CONNECT_DATA=
(SERVER=DEDICATED)
(SERVICE_NAME=htdb2)
)
)
htdb3_243=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(HOST=10.1.5.243)(PORT=1521))
(CONNECT_DATA=
(SERVER=DEDICATED)
(SERVICE_NAME=htdb3)
)
)
创建recoverycatalog:
[oracle@gcadmin]$rmancatalogrman/rman@gcdb
RMAN>createcatalog;
恢复目录已创建
(2)注册目标主数据库:
[oracle@gc~]$rmancatalogrman/rman@gcdbtargetsys/oracle123@htdb1_241
RMAN>registerdatabase;
注册在恢复目录中的数据库
正在启动全部恢复目录的resync
完成全部resync
RMAN>reportschema;
RMAN>CONFIGURERETENTIONPOLICYTOREDUNDANCY2;
RMAN>CONFIGUREARCHIVELOGDELETIONPOLICYTOAPPLIEDONALLSTANDBY;
(3)配置RMAN的主备库DB_UNIQUE_NAM参数(此步可选)。
当使用下面的命令时所用到RESYNCCATALOGFROMDB_UNIQUE_NAME。配置方法如下:
CONFIGUREDB_UNIQUE_NAMEBOSTONCONNECTIDENTIFIER'boston_conn_str';
注意:主备库密码文件的sysdba密码必需相同,'boston_conn_str'是在主库配置备库的的tns连接服务别名。
RMAN>CONFIGUREDB_UNIQUE_NAME'HTDB2'CONNECTIDENTIFIER'htdb2_242';
RMAN>CONFIGUREDB_UNIQUE_NAME'HTDB3'CONNECTIDENTIFIER'htdb3_243';
RMAN>LISTDB_UNIQUE_NAMEOFDATABASE;
数据库列表
数据库关键字数据库名称数据库ID数据库角色Db_unique_name
----------------------------------------------------------------
1HTDB21139129460PRIMARYHTDB1
1HTDB21139129460STANDBYHTDB3
1HTDB21139129460STANDBYHTDB2
RMAN>RESYNCCATALOGFROMDB_UNIQUE_NAME'HTDB2';
从DB_UNIQUE_NAME为HTDB2的数据库进行重新同步
在执行完上面的resync语句后,主库的CONFIGURE就会同步到备。可以分别用showall查看主备库配置。
(4)创建数据库备份和归档删除脚本
主库备份脚本:
[oracle@gcsh]$catrmanback241.sh
#!/bin/bash
./home/oracle/.bash_profile
rmancatalogrman/rman@gcdbtargetsys/oracle123@htdb1_241msglog/home/oracle/log/rmanbak241.log<<EOF
run{
allocatechannelc1typedisk;
allocatechannelc2typedisk;
allocatechannelc3typedisk;
allocatechannelc4typedisk;
backupascompressedBACKUPSETdatabaseincludecurrentcontrolfile;
backupascompressedBACKUPSETarchivelogallnotbackedupdeleteallinput;
deletenopromptobsoletedevicetypedisk;
releasechannelc1;
releasechannelc2;
releasechannelc3;
releasechannelc4;
}
exit
EOF
Exit
备库归档删除脚本:
[oracle@gcsh]$catdelarchive_242.sh
./home/oracle/.bash_profile
rmancatalogrman/rman@gcdbtargetsys/oracle123@htdb2_242msglog/home/oracle/log/delarchive242.log<<EOF
run{
deletenopromptarchivelogall;
}
exit
EOF
Exit
创建作业执行:
[oracle@gcsh]$crontab-l
01***/home/oracle/sh/rmanbak241.sh
02***/home/oracle/sh/delarchive_242.sh
02***/home/oracle/sh/delarchive_243.sh
注意:如果在备库配置了下面的参数,备库会根据FRA的存储空间自动删除归档日志
CONFIGUREARCHIVELOGDELETIONPOLICYTOAPPLIEDONALLSTANDBY;
下面是alert日志删除归档的记录:
SunSep0420:24:472011
DeletedOraclemanagedfile+FRA/htdb3/archivelog/2011_08_23/thread_1_seq_74.285.759929211
ArchivedLogentry188addedforthread1sequence170ID0x31d23a74dest1:
SunSep0422:14:102011
Standbycontrolfileconsistentwithprimary
RFS[3]:Selectedlog6forthread1sequence172dbid835029032branch759004266
SunSep0422:14:102011
MediaRecoveryWaitingforthread1sequence172(intransit)
RecoveryofOnlineRedoLog:Thread1Group6Seq172Readingmem0
Mem#0:+DATA/htdb3/onlinelog/group_6.279.759061067
Mem#1:+FRA/htdb3/onlinelog/group_6.275.759061067
SunSep0422:14:112011
DeletedOraclemanagedfile+FRA/htdb3/archivelog/2011_08_23/thread_1_seq_75.284.759929221
ArchivedLogentry189addedforthread1sequence171ID0x31d23a74dest1:
MonSep0501:16:382011
Standbycontrolfileconsistentwithprimary
RFS[3]:Selectedlog7forthread1sequence173dbid835029032branch759004266
MonSep0501:16:382011
MediaRecoveryWaitingforthread1sequence173(intransit)
RecoveryofOnlineRedoLog:Thread1Group7Seq173Readingmem0
Mem#0:+DATA/htdb3/onlinelog/group_7.280.759061069
Mem#1:+FRA/htdb3/onlinelog/group_7.276.759061069
打开闪回功能
主库:SQL>startupmount
ORACLE例程已经启动。
TotalSystemGlobalArea2438529024bytes
FixedSize2228920bytes
VariableSize1375735112bytes
DatabaseBuffers1040187392bytes
RedoBuffers20377600bytes
数据库装载完毕。
SQL>alterdatabaseflashbackon;
SQL>alterdatabaseopen;
SQL>selectflashback_onfromv$database;
FLASHBACK_ON
------------------
YES
备库:
SQL>shutdownimmediate
SQL>startupmount
SQL>alterdatabaseflashbackon;
alterdatabaseflashbackon
第1行出现错误:
ORA-01153:激活了不兼容的介质恢复
SQL>alterdatabaserecovermanagedstandbydatabasecancel;
SQL>alterdatabaseflashbackon;
SQL>alterdatabaseopen;
五.安装过程中的问题
问题1:未找到文件WFMLRSVCApp.ear1.数据库安装包的第二个包没有解压缩:10098816_112020_Linux-x86-64_2of7.zip,出现下面的错误:
问题2:ORACLE_MIDDLEWARE_HOME_LOCATION子目录已经存在
在安装gridcontrol时,可能会由于在安装过程中异常中断,比如网络中断、机器突然重启、磁盘空间不够的情况。都会导致gc安装失败。
再次安装时会出现下面的问题:
解决办法:
这时就需要把安装gridcontrol先卸载,下面就是卸载gc的方法:
trythis:
/etc/oratab
andalsoyouhavetoremovefollowingfourentriesfromeachofdirectoriesthatstoresinventoryinformation:
Locateyourcentralinventorydirectoryfrom/etc/oraInst.loc
inventory_loc=/u00/app/oraInventory
ls-l
backup
ContentsXML
cdContentsXML
viinventory.xml
deletealltheentriesfor
#<HOMENAME="oms11g1"LOC="/u00/app/oracle/product/11.2.0/Middleware/oms11g"TYPE="O"IDX="3"/>
#<HOMENAME="agent11g1"LOC="/u00/app/oracle/product/11.2.0/Middleware/agent11g"TYPE="O"IDX="4"/>
#<HOMENAME="common11g1"LOC="/u00/app/oracle/product/11.2.0/Middleware/oracle_common"TYPE="O"IDX="5"/>
#<HOMENAME="webtier11g1"LOC="/u00/app/oracle/product/11.2.0/Middleware/Oracle_WT"TYPE="O"IDX="6"/>
AlsonotethatunderdirectoryBackups,therearefurtherdirectoriesandyouneedtoremovetheseentriesfromeachandeveryinventory.xml.
cdbackup
grep-iinventory*/*/in*
onceyouremovealltheentries.
inmycase
cd/u00/app/oracle/product/11.2.0/Middleware.
rm-rfoms11gagent11goracle_commonOracle_WT.
注意:如果在执行完上面的操作后,再返回安装界面后点击下一步仍然出现上面的问题,这时可能需要正在安装的界面关掉,然后再重新启动安装界面,在到这步一时就可过去。
问题3:patch12423703后续操作报错
在打完patch12423703后,执行下面的后续操作时报错。
[oracle@gc12423703]$$ORACLE_HOME/bin/rcuJDBCEnginesysman/oracle123@gc.ums.com:1521:gcdbJDBC_SCRIPTapply.sql$PWD$ORACLE_HOME
…..
>>>ASQLErroroccurred!:
ORA-06512:在line480
oracle.sysman.assistants.common.dbutil.SQLFatalErrorException:java.sql.SQLException:ORA-20110:UnexpectederrorexecutingMGMT_SET_JOB_Q_PROC.CheckifpatchofBug#12620174hasbeenapplied.Error:ORA-06576:不是有效的函数或过程名.RefertoMyOracleSupportnote1326515.1foradditionalinformation.
ORA-06512:在line480
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.onException(JDBCEngine.java:673)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.executeSql(JDBCEngine.java:637)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.executeSql(JDBCEngine.java:581)
atoracle.sysman.assistants.common.dbutil.jdbc.OracleDMLStatement.execute(ANSISQLStatementType.java:769)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.executeNextSQLStatement(JDBCEngine.java:1193)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.parseNexecuteScript(JDBCEngine.java:1097)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.main(JDBCEngine.java:1992)
Causedby:java.sql.SQLException:ORA-20110:UnexpectederrorexecutingMGMT_SET_JOB_Q_PROC.CheckifpatchofBug#12620174hasbeenapplied.Error:ORA-06576:不是有效的函数或过程名.RefertoMyOracleSupportnote1326515.1foradditionalinformation.
ORA-06512:在line480
atoracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
atoracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
atoracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
atoracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
atoracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
atoracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
atoracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
atoracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:953)
atoracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1223)
atoracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
atoracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
atoracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.runSqlStatement(JDBCEngine.java:853)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.callRunSqlStatement(JDBCEngine.java:587)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.executeSql(JDBCEngine.java:602)
...5more
解决办法:安装
参考matalink的文档1326515.1
修改时间14-JUL-2011类型BULLETIN状态PUBLISHED |
[align=center][/align]
Appliesto:
EnterpriseManagerGridControl-Version:11.1.0.1to11.1.0.1-Release:11.1to11.1
EnterpriseManagerGridControl-Version:11.1.0.1to11.1.0.1[Release:11.1to11.1]
Informationinthisdocumentappliestoanyplatform.
Purpose
GridControlpatchesfortheOracleManagementServercontainingSQLchangesaregraduallydeliveredinanewfashiontoaddresssecurity,easeofuseandtroubleshootingconcerns.
Thisdocumentexplainsthedifferenterrorsandtheirresolution,andcontainsaswellaFAQsection.
OMS-side
ScopeandApplication
TheaudienceforthisdocumentisGridControladministrators.
TroubleshootingtheImprovedPatchingSolutionforGridControl11.1GCManagementServer
WrongSYSMANPassword
IncasethewrongSYSMANpasswordisentered,theoutputisprettymuchself-explanatory:
$ORACLE_HOME/bin/rcuJDBCEnginesysman@host:port:sidJDBC_SCRIPTapply.sql$PWD$ORACLE_HOME
Pleaseenterdatabasepassword:
ASQLErroroccurred!
Invalidusername/password.
Pleaseentervalidusername/password
Remedy:EntertheappropriateSYSMANpasswordattheprompt.Ifnecessary,contactyourDBAtogetitreset.
SYSMANaccountislocked
IncasetheSYSMANaccountislocked,theoutputisprettymuchself-explanatory:
$ORACLE_HOME/bin/rcuJDBCEnginesysman@host:port:sidJDBC_SCRIPTapply.sql$PWD$ORACLE_HOME
Pleaseenterdatabasepassword:
ASQLErroroccurred!
ORA-28000:theaccountislocked
Remedy:ContactyourDBAtounlocktheSYSMANaccount
Non-SYSMANaccountisused
Incaseonemistakenlyusesanon-SYSMANaccounttoapplythepatch,theoutputis:
$ORACLE_HOME/bin/rcuJDBCEnginesysman@host:port:sidJDBC_SCRIPTapply.sql$PWD$ORACLE_HOME
Pleaseenterdatabasepassword:
######SQLPatchingoperationhasstarted.ThePre-requisitescheck######
######maytakeupto3minutes.Pleasedonotcanceltheoperation.######
######RefertoMyOracleSupportnote1326515.1formoreinformation######
#####StartPatchPre-requisitesCheck######
Errorencountered.Cleaningupinprereq-checkexceptionblock
######PatchPre-requisitescheckFAILED.ExitingPatchingprocess.######
>>>ASQLErroroccurred!
java.sql.SQLException:ORA-20101:CurrentUserisSYS,notSYSMAN.RetrythesamecommandconnectingasSYSMANuser.RefertoMyOracleSupportnote1326515.1foradditionalinformation.
ORA-06512:atline480
Remedy:Usetheappropriateaccount(generallySYSMAN)asdescribedinthepatchREADME.txt
InvalidobjectsinSYSMANschema
IncasethereareinvalidobjectsinSYSMANschemawhileapplyingthepatch,theoutputis:
$ORACLE_HOME/bin/rcuJDBCEnginesysman@host:port:sidJDBC_SCRIPTapply.sql$PWD$ORACLE_HOME
Pleaseenterdatabasepassword:
######SQLPatchingoperationhasstarted.ThePre-requisitescheck######
######maytakeupto3minutes.Pleasedonotcanceltheoperation.######
######RefertoMyOracleSupportnote1326515.1formoreinformation######
#####StartPatchPre-requisitesCheck######
job_queue_processesvaluebeforepatching
-------------------------------
SIDJobQueuevalue
-------------------------------
repos10
--------------------------------
Valueofjob_queue_processesissetto0
######PatchPre-requisitesCheckSUCCESSFUL######
######ExecutionoftheSQLfilesinthepatchwasSUCCESSFUL######
######StartPatchPostValidation######
job_queue_processesvalueafterpatching
-------------------------------
SIDJobQueuevalue
-------------------------------
repos10
--------------------------------
InvalidObjectscountis:1
----------------------------------------------------------------------
#####PatchPostValidationSUCCESSFUL######
######SQLPatchingoperationSUCCESSFUL######
-------------------------INFORMATION--------------------------------
UsethefollowingQuerytoknowtheinvalidobjectsinSYSMANschema:
SELECTobject_name,object_type,subobject_name
FROMall_objectsWHERE
status!='VALID'
ANDowner='SYSMAN'
ORDERBY1,2,3;
RefertoMyOracleSupportnote1326515.1foradditionalinformation.
---------------------------------------------------------------------
CompletedSQLscriptexecutionnormally.
<n>scriptswereprocessed
Remedy:WorkwithyourDBAtorecompileinvalidobjectsfromtheSYSMANschema
Parameterjob_queue_processesissetto0
Thedatabaseparameterjob_queue_processesistemporarilysetto0duringtheSQLpatchingoperation.However,thisparametershouldgenerallybesetto10forGridControltoworkproperly.Thisiswhythepatchingutilitydisplaysawarningincasethejob_queue_processesparameterissetto0priortostartingthepatchingoperation,asshowninthesnippetbelow:
---------------------------INFORMATION---------------------------
Valueofjob_queue_processesis0.Pleasesetittoapositive
valuefornormalfunctioningofEnterpriseManager.
Useoneofthebelowcommandsasapplicable:
-Setthevalueofjob_queue_processestoNonALLinstances:
-"execsys.mgmt_set_job_q_proc(<N>);"
-Setthevalueofjob_queue_processestoNoninstance'SID':
-"execsys.mgmt_set_job_q_proc(<N>,'<SID>');"
RefertoMyOracleSupportnote1326515.1foradditionalinformation.
--------------------------------------------------------------------
Remedy:AskyourDBAtosetthejob_queue_processesparametertoanappropriatevalue
DBMSJobsarestillrunning
TheGridControlproductreliesonacoupleofDBMSjobstooperatenormally.Thesejobsneedstobestoppedpriortostartingthepatchingoperation.Thepatchingutilityinitiallychecksifsuchjobsarerunningandifsomearerunning,itwouldwaitfor3minutesforthemtocompletebeforestartingthepatchingexercise.
Thisiswhyweseethefollowingsnippetatthebeginningofthepatchingoperation:
######SQLPatchingoperationhasstarted.ThePre-requisitescheck######
######maytakeupto3minutes.Pleasedonotcanceltheoperation.######
######RefertoMyOracleSupportnote1326515.1formoreinformation######
IncaseoneormultipleDBMSjobsarestillrunningafter3minutes,thepatchingutilityfailsanddisplaysthefollowingoutput:
$ORACLE_HOME/bin/rcuJDBCEnginesysman@host:port:sidJDBC_SCRIPTapply.sql$PWD$ORACLE_HOME
Pleaseenterdatabasepassword:
######SQLPatchingoperationhasstarted.ThePre-requisitescheck######
######maytakeupto3minutes.Pleasedonotcanceltheoperation.######
######RefertoMyOracleSupportnote1326515.1formoreinformation######
#####StartPatchPre-requisitesCheck######
job_queue_processesvaluebeforepatching
-------------------------------
SIDJobQueuevalue
-------------------------------
repos10
--------------------------------
Valueofjob_queue_processesissetto0
Errorencountered.Cleaningupinprereq-checkexceptionblock
Revertingbacktotheoriginalvalueofjob_queue_processes
job_queue_processvaluesafterrestoringduetoerrorsinprereq-check
-------------------------------
SIDJobQueuevalue
-------------------------------
repos10
--------------------------------
######PatchPre-requisitescheckFAILED.ExitingPatchingprocess.######
>>>ASQLErroroccurred!
java.sql.SQLException:ORA-20106:ExitingthescriptsincesomeDBMSjobsarestillrunningintheRepository.Pleasere-runthescriptafterthisqueryreturnszerorows.SELECTl.id2job,l.sid,to_char(last_date,'DD-MON-YYYY:HH24.MI.SS')last_date,to_char(this_date,'DD-MON-YYYY:HH24.MI.SS')this_date,l.inst_idinstanceFROMsys.job$j,gv$locklWHEREl.type='JQ'ANDj.job(+)=l.id2ORDERBY5,4;.RefertoMyOracleSupportnote1326515.1foradditionalinformation.
ORA-06512:atline480
Remedy:FollowtheinstructionsgivenintheerrormessagetocheckwhenallDBMSjobsarestopped,thenre-runthepatchingoperation.Ifneeded,contactyourDBAtofigureoutwhythesejobsarestillrunning.
Prerequisite
Thisisthecasewhereoneattemptstoapplyapatchbuiltwiththenewpatchingsolutionbutforgottoinstalltheprerequisite
Ifthesysmanpasswordisnotprovidedonthecommandline,thisoperationfailswith:
$ORACLE_HOME/bin/rcuJDBCEnginesysman@host:port:sidJDBC_SCRIPTapply.sql$PWD$ORACLE_HOME
Exceptioninthread"main"java.lang.StringIndexOutOfBoundsException:Stringindexoutofrange:0
atjava.lang.String.charAt(String.java:686)
atoracle.NET.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:386)
atoracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:634)
atoracle.Net.ns.NSProtocol.connect(NSProtocol.java:208)
atoracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:966)
atoracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:292)
atoracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)
atoracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
atoracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
atoracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
atjava.sql.DriverManager.getConnection(DriverManager.java:582)
atjava.sql.DriverManager.getConnection(DriverManager.java:154)
atoracle.sysman.assistants.common.dbutil.jdbc.ConnectionFactory.createConnection(ConnectionFactory.java:259)
atoracle.sysman.assistants.common.dbutil.jdbc.ConnectionFactory.createConnection(ConnectionFactory.java:142)
atoracle.sysman.assistants.common.dbutil.jdbc.ConnectionHelper.getConnection(ConnectionHelper.java:61)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.getConnection(JDBCEngine.java:889)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.connect(JDBCEngine.java:417)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.main(JDBCEngine.java:1982)
IftheSYSMANpasswordisprovidedonthecommandline,thisoperationfailswith:
$ORACLE_HOME/bin/rcuJDBCEnginesysman/password@host:port:sidJDBC_SCRIPTapply.sql$PWD$ORACLE_HOME
[somemorelines...]
oracle.sysman.assistants.common.dbutil.SQLFatalErrorException:java.sql.SQLException:ORA-20110:ORA-20110:UnexpectederrorexecutingMGMT_SET_JOB_Q_PROC.CheckifpatchofBug#12620174hasbeenapplied.Error:ORA-06576:notavalidfunctionorprocedurenameRefertoMyOracleSupportnote1326515.1foradditionalinformation
ORA-06512:atline471
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.onException(JDBCEngine.java:673)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.executeSql(JDBCEngine.java:637)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.executeSql(JDBCEngine.java:581)
atoracle.sysman.assistants.common.dbutil.jdbc.OracleDMLStatement.execute(ANSISQLStatementType.java:769)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.executeNextSQLStatement(JDBCEngine.java:1193)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.parseNexecuteScript(JDBCEngine.java:1097)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.main(JDBCEngine.java:1992)
Causedby:java.sql.SQLException:ORA-20110:ORA-20110:UnexpectederrorexecutingMGMT_SET_JOB_Q_PROC.CheckifpatchofBug#12620174hasbeenapplied.Error:ORA-06576:notavalidfunctionorprocedurenameRefertoMyOracleSupportnote1326515.1foradditionalinformation
ORA-06512:atline471
atoracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
atoracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
atoracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
atoracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
atoracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
atoracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
atoracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
atoracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:953)
atoracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1223)
atoracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
atoracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
atoracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.runSqlStatement(JDBCEngine.java:853)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.callRunSqlStatement(JDBCEngine.java:587)
atoracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.executeSql(JDBCEngine.java:602)
Remedy:Installtheprerequisite
FAQ
Q1:IsthelegacySQLpatchingmethodstillapplicable?
A1:Yes,butonlyforthelegacypatchesdeliveredpriortothenewpatchingsolution.
Q2:HowtoknowforsurewhichrcuJDBCEngineexactsyntaxtouse?
A2:AlwaysrefertotheREADMEshippedwiththepatchtofigureoutwhichexactsyntaxtouse.
Q3:WhatifIapplylegacypatcheswiththenewsolution?
A3:IfthepatchREADMEisfullyfollowed,thisisnotaproblem.
Q4:WhatifIapplyanewpatchandprerequisite
A4:Thepatchapplicationwillfail.Theoutputonthescreenwillbeprettymuchverbosebutitwillmentionthattheprerequisitepatchismissing.Seetheabovesection"Prerequisite
问题4:agent状态不正确
安装完agent后,agent状态不正确。
[oracle@hotel02bin]$./emctlstatusagent
OracleEnterpriseManager11gRelease1GridControl11.1.0.1.0
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
---------------------------------------------------------------
AgentVersion:11.1.0.1.0
OMSVersion:11.1.0.1.0
ProtocolVersion:11.1.0.0.0
AgentHome:/u01/app/agent11g
Agentbinaries:/u01/app/agent11g
AgentProcessID:10956
ParentProcessID:10928
AgentURL:
RepositoryURL:
Startedat:2011-08-0722:39:49
Startedbyuser:oracle
LastReload:2011-08-0722:43:16
Lastsuccessfulupload:(none)
Lastattemptedupload:(none)
TotalMegabytesofXMLfilesuploadedsofar:0.00
NumberofXMLfilespendingupload:34
SizeofXMLfilespendingupload(MB):2.21
Availablediskspaceonuploadfilesystem:17.80%
LastattemptedheartbeattoOMS:2011-08-0722:48:49
LastsuccessfulheartbeattoOMS:unknown
---------------------------------------------------------------
AgentisRunningandReady
[oracle@hotel01bin]$./emctluploadagent
OracleEnterpriseManager11gRelease1GridControl11.1.0.1.0
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
---------------------------------------------------------------
EMDuploaderror:uploadXMLFilesskipped::OMSversionnotcheckedyet.IfthisissuepersistschecktracefilesforpingtoOMSrelatederrors.
解决办法:
(1)修改/etc/hosts内容和格式
修改/etc/hosts为:
[oracle@hotel01bin]$cat/etc/hosts
#Donotremovethefollowingline,orvariousprograms
#thatrequirenetworkfunctionalitywillfail.
127.0.0.1hotel01localhost.localdomainlocalhost
::1localhost6.localdomain6localhost6
10.1.5.241hotel01
10.1.5.242hotel02
10.1.5.243hotel03
10.1.5.245gc.ums.comgc
[oracle@hotel01bin]$pwd
/u01/app/agent11g/bin
[oracle@hotel01bin]$./emctluploadagent
OracleEnterpriseManager11gRelease1GridControl11.1.0.1.0
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
---------------------------------------------------------------
EMDuploaderror:Uploadtimedoutbeforecompletion.
Numberoffilestouploadbeforetheupload:60,totalsize(MB):1.06.
Remainingnumberoffilestoupload:60,totalsize(MB):1.06.
[oracle@hotel01bin]$./emctluploadagent
OracleEnterpriseManager11gRelease1GridControl11.1.0.1.0
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
---------------------------------------------------------------
EMDuploadcompletedsuccessfully
[oracle@hotel01bin]$./emctlstatusagent
OracleEnterpriseManager11gRelease1GridControl11.1.0.1.0
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
---------------------------------------------------------------
AgentVersion:11.1.0.1.0
OMSVersion:11.1.0.1.0
ProtocolVersion:11.1.0.0.0
AgentHome:/u01/app/agent11g
Agentbinaries:/u01/app/agent11g
AgentProcessID:22024
ParentProcessID:21997
AgentURL:
RepositoryURL:
Startedat:2011-08-0723:30:39
Startedbyuser:oracle
LastReload:2011-08-0723:32:36
Lastsuccessfulupload:2011-08-0800:28:02
TotalMegabytesofXMLfilesuploadedsofar:3.18
NumberofXMLfilespendingupload:0
SizeofXMLfilespendingupload(MB):0.00
Availablediskspaceonuploadfilesystem:20.12%
LastsuccessfulheartbeattoOMS:2011-08-0800:28:25
---------------------------------------------------------------
AgentisRunningandReady
(2)Thisissueisaddressedinanunpublished
下面是gc_agnet11.1.0.1.0版本<AGENT_HOME>/sysman/log/emagent.trc日志的报错内容:
2012-02-0915:32:31,114Thread-1085823296ERRORpingManager:Didnotreceivevalidresponsetoping"ERROR-Agentisblocked.Blockedreasonis:Agentisout-of-syncwithrepository.Thismostlikelymeansthattheagentwasreinstalledorrecovered.PleasecontactanEMadministratortounblocktheagentbyperforminganagentresyncfromtheconsole.PleasecontactEMadminstratortounblocktheagent"
11.1AgentUploadisFailingWith"ERROR-Agentisblocked.Blockedreasonis:Agentisout-of-syncwithrepository"[ID1362430.1] | ||
[align=center][/align] | ||
修改时间27-SEP-2011类型PROBLEM状态REVIEWED |
[align=center][/align]
Appliesto:
EnterpriseManagerGridControl-Version:11.1.0.1andlater[Release:11.1andlater]Informationinthisdocumentappliestoanyplatform.
Symptoms
11.1Agentfailingtouploadwiththebelowerror:D:\Oracle\agent11g\BIN>emctluploadagent
OracleEnterpriseManager11gRelease1GridControl11.1.0.1.0
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
---------------------------------------------------------------
EMDuploaderror:uploadXMLFilesskipped::OMSversionnotcheckedyet.IfthisissuepersistschecktracefilesforpingtoOMSrelatederrors.
Inemagent.trcnoticedthebelowerror:
2011-09-2711:09:13,387Thread-3800ERRORpingManager:Didnotreceivevalidresponsetoping"ERROR-Agentisblocked.Blockedreasonis:Agentisout-of-syncwithrepository.Thismostlikelymeansthattheagentwasreinstalledorrecovered.PleasecontactanEMadministratortounblocktheagentbyperforminganagentresyncfromtheconsole.PleasecontactEMadminstratortounblocktheagent"
Logintothegridconsole>>Setup>>Agents>>Navigatetotheproblematicagenthomepage>>
"Uploadmetricdata"buttonisgreyedout.
Clickonagentresynchronizationgavethebelowerror:
oracle.sysman.emSDK.emd.comm.CommException:IOExceptioninreadingResponse::Connectionreset
Logedintoconsole>>setup>>patchingsetup>>gavetheagenturlunder"TestURL"andclickedontest>>workingfine.
[b]FromOMSboxAbletopingtheAgentboxwithoutanyproblem[/b].
Observedthebelowerrorsinemoms.trc:
2011-09-2713:17:42,866[EMUI_13_17_40_/console/admin/rep/emdConfig/emdTargetsMain$target=OIMPRDDALL01A.ahmsi.local_3A3872$type=oracle*_emd]ERRORemdConfig.EmdConfigTargetsDatagetEmdTargetsList.2043-IOExceptioninreadingResponse::Connectionreset
oracle.sysman.emSDK.emd.comm.CommException:IOExceptioninreadingResponse::Connectionreset
atoracle.sysman.emSDK.emd.comm.EMDClient.parseResponseStream(EMDClient.java:2861)
atoracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:2578)
atoracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest_(EMDClient.java:2511)
atoracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:2456)
atoracle.sysman.emSDK.emd.comm.EMDClient.getResponseForRequest(EMDClient.java:2405)
atoracle.sysman.emSDK.emd.comm.EMDClient.getMetadataTypes(EMDClient.java:658)
Cause
ThisissueisaddressedinanunpublishedAsperthebug,OMSisseedingincorrectAgentKeyinEMDClientduetowhichAgentisrejectingconnection.
Solution
1.Stoptheagent:<AGENT_HOME>/BIN>emctlstopagent
2.Securetheagentwhichwillgenerateanewkey:
<AGENT_HOME>/BIN>emctlsecureagent
3.Starttheagent:
<AGENT_HOME>/BIN>emctlstartagent
4.Logintothegridconsole>>Setup>>Agents>>Navigatetotheproblematicagenthomepage>>ClickonAgentresynchronization
点击右上角的“设置”
点击右上角的“代理”
点击不可用的代理连接
(3)TherepositoryURLisincorrect
下面是matalink解决办法:
11gAgentUploadFailswith"OMSversionnotcheckedYet".[ID1265052.1] | ||
[align=center][/align] | ||
修改时间10-APR-2011类型PROBLEM状态REVIEWED |
[align=center][/align]
Appliesto:
EnterpriseManagerGridControl-Version:10.2.0.1andlater[Release:10.2andlater]Informationinthisdocumentappliestoanyplatform.
Symptoms
10.2.0.xor11.1.0.1AgentfailstouploadtoOMSwithfollowingerrormessage:EMDuploaderror:uploadXMLFilesskipped::OMSversionnotcheckedyet.IfthisissuepersistschecktracefilesforpingtoOMSrelatederrors.
Cause
TherepositoryURLisincorrect.TheREPOSITORY_URLandtheEMD_URLfortheagentshouldusethesameprotocol.HTTPorHTTPS.
Inthiscase,theREPOSITORY_URLandEMD_URLcanbeseenfromtheAGENT_HOME/sysman/config/emd.propertiesorintheAGENT_HOME/bin:emctlstatusagent:
From<AGENT_HOME>/sysman/config/emd.properties:
EMD_URL=http://agent.machine.com:3872/emd/main
REPOSITORY_URL=https://oms.machine.com:4900/em/upload
$<AGENT_HOME>/bin/emctlstatusagent:
OracleEnterpriseManager11gRelease1GridControl11.1.0.1.0
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
---------------------------------------------------------------
AgentVersion:11.1.0.1.0
OMSVersion:11.1.0.1.0
ProtocolVersion:11.1.0.0.0
AgentHome:/oracle/product/em/agent11g
Agentbinaries:/oracle/product/em/agent11g
AgentProcessID:811074
ParentProcessID:983100
AgentURL:'target='_blank'>http://agent.machine.com:3872/emd/main/[/code] RepositoryURL:'target='_blank'>https://oms.machine.com:7799/em/upload/[/code] Startedat:2010-11-0813:21:43Startedbyuser:oracleLastReload:2010-11-0813:21:43Lastsuccessfulupload:(none)Lastattemptedupload:(none)TotalMegabytesofXMLfilesuploadedsofar:0.00NumberofXMLfilespendingupload:68SizeofXMLfilespendingupload(MB):33.09Availablediskspaceonuploadfilesystem:16.71%LastattemptedheartbeattoOMS:2010-11-0813:37:20LastsuccessfulheartbeattoOMS:unknown---------------------------------------------------------------AgentisRunningandReady
NOTE:TheREPOSITORY_URLisHTTPSandtheEMD_URLisHTTP.
BothshouldbeHTTPSiftheagentwassecuredsuccessfully.Solution
1.Stoptheagent:$<AGENT_HOME>/bin/emctlstopagent
2.BackupandUpdatetheAGENT_HOME/sysman/config/emd.propertiesfile.
ChangeREPOSITORY_URLto:'target='_blank'>https://oms.machine.com:4889/em/upload[/code] tohttp://oms.machine.com:4889/em/upload
NOTE:TheprotocolwaschangedfromHTTPStoHTTPandtheportwaschangedfromthesecureporttotheunsecureuploadport.
3.Re-secureandstarttheagent:$cd<AGENT_HOME/bin$./emctlsecureagent$./emctlstartagent$./emctluploadagent$./emctlstatusagent
P.S:ForWindowsplatform,"./"canbereplacedwith".\"
(4)TheOMSislockedinsecuremode
下面是10.1.0.2to10.2.0.5版本此问题的解决方法:
AgentUploadtoOMSFailsiftheOMSisLockedinSecureModeandAgentisnotSecured
InthisDocumentSymptoms Changes Cause Solution References
[align=center][/align]Appliesto:
EnterpriseManagerBasePlatform-Version:10.1.0.2to10.2.0.5-Release:10.1to10.2
Informationinthisdocumentappliestoanyplatform.
***Checkedforrelevanceon05-Oct-2011***Symptoms
AgentuploadtoOMSisfailing.The'emctlupload'commandreturns:
EMDuploaderror:uploadXMLFilesskipped::OMSversionnotcheckedyet..
OR
EMDuploaderror:FailedtouploadfileA*.xml:HTTPerror.
The<AGENT_HOME>/sysman/log/emagent.trcshows:2010-04-2911:44:54,190Thread-118266800ERRORpingManager:nmepm_pingReposURL:Cannotconnecttohttp://omsmachine.domain:4889/em/upload/:retStatus=-1
2010-04-2911:44:54,195Thread-121416624WARNhttp:nmehl_connect_internal:connectfailedto(omsmachine.domain:4889):Connectionrefused(error=111)2010-04-2911:44:54,195Thread-121416624ERRORupload:FxferSend:Cannotconnectto:http://omsmachine.domain:4889/em/upload/.retStatus=-1
TheAgentistryingtoaccess'http://omsmachine.domain:4889/em/upload/'URLandgetsa'Connectionrefused'error.
The<OMS_HOME>/sysman/log/emoms.trcfilecanshowerrorssuchas:OMSHandshakeprocessFailure.806-OMSHandshakefailed.(AGENTURL=http://agentmachine.domain:3872/emd/main/)(ERROR=X-ORCL-EMAKMISSING)
Inthe10.2.0.5OMSversions,thereisnoerrorintheemoms.trcfile.Butthe<OMS_HOME>/Apache/Apache/log/access_logshows:20.20.20.20-[29/Apr/2010:13:49:31+0530]"GET/em/upload/?ACTION=FIRST_HEARTBEAT&EMD_URL=http%3a%2f%2fagentmachine%2edomain%3a3872%2femd%2fmain%2f&HEARTBEAT_TIME=2010-04-29+13%3a52%3a09&OUTSTANDING_SEVS=TRUE&EMD_UPTIME=2010-04-29+13%3a42%3a32&OLDEST_COLL_TIME=2010-04-29+13%3a52%3a09&INSTALL_TYPE=agent&AGENT_TZ=Asia%2fCalcutta&BOUNCE_CTR=12&X-ORCL-EMOV=4%2e0%2e0&X-ORCL-EMCV=10%2e2%2e0%2e5%2e0&X-ORCL-EMSV=10%2e2%2e0%2e5%2e0HTTP/1.1"403346
Theerrorcode'403'indicatesthattheaccesstothe'/em/upload'isforbidden.
TryingtoaccesstheOMSunsecureuploadurl:http://omsmachine.domain:4889/em/uploadfromabrowseralsoreturns:
Forbidden
Youdon'thavepermissiontoaccess/em/uploadonthisserver.
--------------------------------------------------------------------------------
Oracle-Application-Server-10g/10.1.2.2.0Oracle-HTTP-ServerServeratomsmachine.domainPort4889Changes
OMShasbeenrecentlylockedforsecureuploadmode.Cause
TheOMSislockedinsecuremode,henceisacceptinguploadsonlyfromAgentswhicharesecuredwiththeOMSandsendingtheuploadstothehttpsuploadURL.
IfanyAgenttriestouploadtothehttpURL,theconnectionwillberejected.Solution
1.EnsurethattheREPOSITORY_URLconfiguredinthe<AGENT_HOME>/sysman/config/emd.propertiesfilehasthecorrecthostnameoftheOMSmachine.
ReferNote737373.1:Communication:AgenttoOMSCommunicationFailsiftheAgent'sREPOSITORY_URLParameterhasIncorrectValue
2.IftheOMSissecuredandlocked(acceptsuploadsonlyinthehttpsmode),thensecuretheAgentalso.
Refer:
Note428874.1:HowtotelliftheEMOMSislockedorunlocked?
Note283091.1:HowToSecure/UnsecureTheGridControlComponents(Agent/OMS)In10gcd<AGENT_HOME>/binemctlsecureagent
ThiswillpromptyoufortheAgentRegistrationpassword,whichisneededforsecureoperationtocomplete.
IftheAgentRegistrationpasswordisnotknown,createanewoneusingthestepsinNote285490.1:GridControlSecurity:HowtoCreate/EdittheAgentRegistrationPasswordforAgenttoOMSSecureCommunication? References
NOTE:398487.1-SecuringGridControlAgentFailswith"InvalidAgentRegistrationPassword"WhentheRegistrationPasswordisIncorrect 问题5:GC安装失败后重装问题
相关内容
1.11删除SYSMAN和SYSMAN_MDS用户SQL>SELECTUSERNAMEFROMALL_USERSWHEREUSERNAMEIN('SYSMAN','SYSMAN_MDS');
USERNAME
-------------------------
SYSMAN
SQL>SELECTFILE_NAMEFROMDBA_DATA_FILESWHEREUPPER(TABLESPACE_NAME)LIKE'MGMT%';
norowsselected
如果只有SYSMAN用户,则使用如下方法删除:
$$ORACLE_HOME/bin/emca-deconfigdbcontroldb-reposdrop-SYS_PWD'iamENCY3'-SYSMAN_PWD'iamENCY3'
...
Enterthefollowinginformation:
DatabaseSID:EMREP
Listenerportnumber:1521
Doyouwishtocontinue?[yes(Y)/no(N)]:y
...
如果还含有SYSMAN_MDS用户,则使用如下方法删除(要求安装了OMS后操作):
$exportLD_LIBRARY_PATH=$OMS_HOME/lib
$$OMS_HOME/sysman/admin/emdrep/bin/RepManager<repository_database_host><repository_database_port><repository_database_sid>-actiondropall-dbUser<repository_database_user>-dbPassword<repository_database_password>-dbRole<repository_database_user_role>-mwHome<middleware_home>-mwOraHome<oms_oracle_home>-oracleHome<oms_oracle_home>
最后手工删除数据文件:
$rm-rfFILE_NAME
Hotel02:
Db:oldpsu
Gi:oldpsu
Agent:oldpsu
问题6:同样是问题4出现的错误,这次重新启动agent后正常
[oracle@gcbin]$./emctlstatusagent
OracleEnterpriseManager11gRelease1GridControl11.1.0.1.0
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
---------------------------------------------------------------
AgentVersion:11.1.0.1.0
OMSVersion:11.1.0.1.0
ProtocolVersion:11.1.0.0.0
AgentHome:/home/oracle/Oracle/Middleware/agent11g
Agentbinaries:/home/oracle/Oracle/Middleware/agent11g
AgentProcessID:4083
ParentProcessID:4054
AgentURL:https://gc.localdomain:3872/emd/main/
RepositoryURL:https://gc.localdomain:4900/em/upload
Startedat:2011-08-1508:47:37
Startedbyuser:oracle
LastReload:2011-08-1509:43:21
Lastsuccessfulupload:(none)
Lastattemptedupload:(none)
TotalMegabytesofXMLfilesuploadedsofar:0.00
NumberofXMLfilespendingupload:56
SizeofXMLfilespendingupload(MB):7.60
Availablediskspaceonuploadfilesystem:20.61%
LastattemptedheartbeattoOMS:2011-08-1509:44:23
LastsuccessfulheartbeattoOMS:unknown
---------------------------------------------------------------
AgentisRunningandReady
[oracle@gcbin]$./emctluploadagent
OracleEnterpriseManager11gRelease1GridControl11.1.0.1.0
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
---------------------------------------------------------------
EMDuploaderror:uploadXMLFilesskipped::OMSversionnotcheckedyet.IfthisissuepersistschecktracefilesforpingtoOMSrelatederrors.
[oracle@gcbin]$./emctlstopagent
OracleEnterpriseManager11gRelease1GridControl11.1.0.1.0
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
Stoppingagent...stopped.
[oracle@gcbin]$./emctlstartagent
OracleEnterpriseManager11gRelease1GridControl11.1.0.1.0
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
Startingagent................started.
[oracle@gcbin]$./emctlstatusagent
OracleEnterpriseManager11gRelease1GridControl11.1.0.1.0
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
---------------------------------------------------------------
AgentVersion:11.1.0.1.0
OMSVersion:11.1.0.1.0
ProtocolVersion:11.1.0.0.0
AgentHome:/home/oracle/Oracle/Middleware/agent11g
Agentbinaries:/home/oracle/Oracle/Middleware/agent11g
AgentProcessID:9437
ParentProcessID:9399
AgentURL:https://gc.localdomain:3872/emd/main/
RepositoryURL:https://gc.localdomain:4900/em/upload
Startedat:2011-08-1509:46:37
Startedbyuser:oracle
LastReload:2011-08-1509:47:15
Lastsuccessfulupload:(none)
Lastattemptedupload:(none)
TotalMegabytesofXMLfilesuploadedsofar:0.00
NumberofXMLfilespendingupload:65
SizeofXMLfilespendingupload(MB):8.27
Availablediskspaceonuploadfilesystem:20.60%
LastsuccessfulheartbeattoOMS:2011-08-1509:47:03
---------------------------------------------------------------
AgentisRunningandReady
[oracle@gcbin]$./emctluploadagent
OracleEnterpriseManager11gRelease1GridControl11.1.0.1.0
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
---------------------------------------------------------------
EMDuploaderror:Uploadtimedoutbeforecompletion.
Numberoffilestouploadbeforetheupload:83,totalsize(MB):7.46.
Remainingnumberoffilestoupload:83,totalsize(MB):7.46.
[oracle@gcbin]$./emctluploadagent
OracleEnterpriseManager11gRelease1GridControl11.1.0.1.0
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
---------------------------------------------------------------
^C[oracle@gcbin]$lsnrctlstatus
LSNRCTLforLinux:Version11.2.0.2.0-Productionon15-8月-201109:49:23
Copyright(c)1991,2010,Oracle.Allrightsreserved.
正在连接到(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=gc.localdomain)(PORT=1521)))
LISTENER的STATUS
------------------------
别名LISTENER
版本TNSLSNRforLinux:Version11.2.0.2.0-Production
启动日期15-8月-201109:42:02
正常运行时间0天0小时7分21秒
跟踪级别off
安全性ON:LocalOSAuthentication
SNMPOFF
监听程序参数文件/u01/app/ora11g/product/11.2.0/db_1/network/admin/listener.ora
监听程序日志文件/u01/app/ora11g/diag/tnslsnr/gc/listener/alert/log.xml
监听端点概要...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=gc.localdomain)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
服务摘要..
服务"gcdb"包含1个实例。
实例"gcdb",状态READY,包含此服务的1个处理程序...
服务"gcdbXDB"包含1个实例。
实例"gcdb",状态READY,包含此服务的1个处理程序...
命令执行成功
[oracle@gcbin]$./emctluploadagent
OracleEnterpriseManager11gRelease1GridControl11.1.0.1.0
Copyright(c)1996,2010OracleCorporation.Allrightsreserved.
---------------------------------------------------------------
EMDuploadcompletedsuccessfully
问题6:卸载agent
AgentisNotRunning
[oracle@oel01bin]$exportLANG=en_US
[oracle@oel01bin]$cd..
[oracle@oel01agent11g]$cdoui/bin/
[oracle@oel01bin]$./runInstaller-silent-deinstall-removeallfiles-removeAllPatchesREMOVE_HOMES="{/u01/app/agent11g}"
StartingOracleUniversalInstaller...
问题7:安装完db,gi后,gc显示监听没有启动
当安装完db,gi软件(不建库)后,gridcontrol显示监听没有启动,而且手动启动一直处于挂起状态。
解决:当创建完数据库后,监听状态会自动显示正常
参考matalink文档:
问题8:修改sys密码后gridcontrol无法连接数据库,无监控数据。
原因:
当修改数据库(主备)的监控用(sys)户密码后,当grid监控资料库的无法再通过以前的用户验证,所以要重输入一次监控用户的新密码,保存到资料库。
解决办法:
重新输入密码测试连接。
相关文章推荐
- Oracle Grid control 11g及Active DataGuard 11g安装部署(一)
- Oracle Grid control 11g及Active DataGuard 11g安装部署(一)
- Oracle Grid control 11g及Active DataGuard 11g安装部署(二)
- Oracle Grid control 11g及Active DataGuard 11g安装部署(二)
- 部署oracle 11g standone,安装grid时,以root执行第二个脚本报错
- Oracle Grid Control 11g for linux安装和配置指南
- Oracle EM Grid Control 11g 服务端和agent安装
- 【原】Oracle Grid Control 11G安装总结
- Oracle 10R2 EM GRID CONTROL安装及Agent部署指南
- Oracle EM Grid Control 11g 服务端和agent安装
- Oracle Grid Control 11g for linux安装和配置指南
- Oracle Grid Control 11g for linux安装和配置指南
- [oracle]部署ORACLE 11G ACTIVE DATAGUARD(ADG)
- Oracle EM Grid Control 11g 服务端和agent安装
- Centos6.3 x64安装部署Oracle 11G R2
- 在OEL6.1下安装ORACLE 11G R2和ASM(用grid安装包)[未曾亲自试过]
- 安装oracle 11g 保护Database Control时出错,Database Control已在非安全模式下启动
- Oracle Grid Control应用篇---部署
- 探索ORACLE之11g DataGuard_04 Oracle EnterPrise Manager OEM部署
- RHEL4.5 下安装 Oracle EM Grid Control 10.2.0.1 -- 0.概述