oracle+10g+cpu补丁,2011年后安装ORACLE 10G 10.2.0.5 EM,必须打补丁Patch 8350262

emca -config dbcontrol db -repos create

报错:

INFO: Starting Database Control (this may take a while)

...

Apr 24, 2011 11:24:57 PM oracle.sysman.emcp.util.PlatformInterface

executeCommand

WARNING: Error executing /oracle/product/10.2.0/db_1/bin/emctl

start dbconsole

Apr 24, 2011 11:24:57 PM oracle.sysman.emcp.EMConfig perform

SEVERE: Error starting Database Control

Refer to the log file at

/oracle/product/10.2.0/db_1/cfgtoollogs/emca/ora10g/emca_2011-04-24_11-15-10-PM.log

for more details.

Could not complete the configuration. Refer to the log file at

/oracle/product/10.2.0/db_1/cfgtoollogs/emca/ora10g/emca_2011-04-24_11-15-10-PM.log

for more details.

[oracle@yydxxyy ~]$ emctl start dbconsole

TZ set to PRC

Oracle Enterprise Manager 10g Database Control Release

10.2.0.5.0 Copyright (c) 1996, 2010 Oracle Corporation. All

rights reserved.

http://yydxxyy.localdomain:1158/em/console/aboutApplication

- An instance of Oracle Enterprise Manager 10g

Database Control is already running.

[oracle@yydxxyy ~]$ emctl stop dbconsole

TZ set to PRC

Oracle Enterprise Manager 10g Database Control Release

10.2.0.5.0 Copyright (c) 1996, 2010 Oracle Corporation. All

rights reserved.

http://yydxxyy.localdomain:1158/em/console/aboutApplication

Stopping Oracle Enterprise Manager 10g Database Control ...

--- Failed to shutdown DBConsole Gracefully ---

failed.

检查

/oracle/product/10.2.0/db_1/yydxxyy.localdomain_ora10g/sysman/log/emdctl.trc

2011-04-24 23:51:51 Thread-4134726432 ERROR ssl: Open wallet

failed, ret = 28750

2011-04-24 23:51:51 Thread-4134726432 ERROR ssl:

nmehlenv_openWallet failed

2011-04-24 23:51:51 Thread-4134726432 ERROR http: 5: Unable to

initialize ssl connection with server, aborting connection

attempt

通过查询support发现是因为The Root Certificate Authority

(CA) expired on 31-DEC-2010 00:00:0

root授权信息过期导致,oracle官方给出的解决办法是打Patch

8350262,然后按照oracle给出的建议操作即可解决,具体解决步骤如下:

Recovering from Configuration Errors on a Single Instance

Database

1. Ignore any errors and continue with the installation or upgrade.

The database will be created without errors.

2. Apply Patch 8350262 to your Oracle Home installation using

OPatch.

opatch apply

Invoking OPatch 10.2.0.4.2

Oracle Interim Patch Installer version 10.2.0.4.2

Copyright (c) 2007, Oracle Corporation. All rights reserved.

Oracle Home : /myhost

Central Inventory : /scratch/pchebrol/oraInventory

from : /etc/oraInst.loc

OPatch version : 10.2.0.4.2

OUI version : 10.2.0.4.0

OUI location : /myhost/oui

Log file location :

/myhost/cfgtoollogs/opatch/opatch2011-01-02_11-00-00AM.log

ApplySession applying interim patch '8350262' to OH

'/myhost'

Running prerequisite checks...

OPatch detected non-cluster Oracle Home from the inventory and

will patch the local system only.

Backing up files and inventory (not for auto-rollback) for the

Oracle Home

Backing up files affected by the patch '8350262' for restore. This

might take a while...

Backing up files affected by the patch '8350262' for rollback. This

might take a while...

Patching component oracle.sysman.agent.core,

10.2.0.4.0a...

Updating jar file "/myhost/sysman/jlib/emCORE.jar" with

"/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/fsc/FSWalletUtil.class"

Updating jar file "/myhost/sysman/jlib/emCORE.jar" with

"/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/rep/RepWalletUtil.class"

Updating jar file "/myhost/sysman/jlib/emCORE.jar" with

"/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/util/RootCert.class"

Updating jar file "/myhost/sysman/jlib/emCORE.jar" with

"/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/util/SecConstants.class"

Updating jar file "/myhost/sysman/jlib/emd_java.jar" with

"/sysman/jlib/emd_

java.jar/oracle/sysman/eml/sec/fsc/FSWalletUtil.class"

Updating jar file "/myhost/sysman/jlib/emd_java.jar" with

"/sysman/jlib/emd_

java.jar/oracle/sysman/eml/sec/rep/RepWalletUtil.class"

Updating jar file "/myhost/sysman/jlib/emd_java.jar" with

"/sysman/jlib/emd_

java.jar/oracle/sysman/eml/sec/util/RootCert.class"

Updating jar file "/myhost/sysman/jlib/emd_java.jar" with

"/sysman/jlib/emd_

java.jar/oracle/sysman/eml/sec/util/SecConstants.class"

ApplySession adding interim patch '8350262' to inventory

Verifying the update...

Inventory check OK: Patch ID 8350262 is registered in Oracle Home

inventory with proper meta-data.

Files check OK: Files from Patch ID 8350262 are present in Oracle

Home.

OPatch succeeded.

3. After applying the patch, force stop the Database Control

(dbconsole) process using the killDBConsole script bundled with the

patch. Note that the dbconsole process cannot be stopped using the

emctl stop dbconsole command, as EMCTL is unable to connect to the

process.

To execute the killDBConsole script:

Set the ORACLE_HOME and ORACLE_SID environment variables.

Execute

/killDBConsole.

Note for Windows Platform Only:

It is not necessary to force stop the dbconsole process on the

Windows platform, because the process will

already be in a stopped state at the end of the failed

configuration attempt.

The killDBConsole script output is shown below:

$ /killDBConsole

ORACLE_HOME=/myhost/db_1

ORACLE_SID=caem31

State directory = /myhost/db_1/staxd10_caem31

WatchDog PID = 802932

DBconsole PID = 577716

EMAgent PID = 512156

Killing WatchDog (pid=802932) ...

Successfully killed process 802932

Killing DBConsole (pid=577716) ...

Successfully killed process 577716

Killing EMAgent (pid=512156) ...

Successfully killed process 512156

4. Re-secure Database Control with the following command:

/bin/emctl secure

dbconsole -reset

You will be prompted twice to confirm that the Root key must be

overwritten. In both cases, enter upper-case "Y" as the response.

Any other response (including lower-case "y") will cause the

command to terminate without completing. If this happens, the

command can be re-invoked.

$ ./emctl secure dbconsole -reset

Oracle Enterprise Manager 10g Database Control Release

10.2.0.4.0

Copyright (c) 1996, 2007 Oracle Corporation. All rights

reserved.

https://myhost:5501/em/console/aboutApplication

Enter Enterprise Manager Root Password :

DBCONSOLE already stopped... Done.

Agent is already stopped... Done.

Securing dbconsole... Started.

Checking Repository... Done.

Checking Em Key... Done.

Checking Repository for an existing Enterprise Manager Root

Key...

WARNING! An Enterprise Manager Root Key already exists in

the Repository. This operation will replace your Enterprise

Manager Root Key.

All existing Agents that use HTTPS will need to be

reconfigured if you proceed. Do you wish to continue and

overwrite your Root Key

(Y/N) ?

Y

Are you sure ? Reset of the Enterprise Manager Root Key

will mean that you will need to reconfigure each Agent

that is associated with this OMS before they will be

able to upload any data to it. Monitoring of Targets

associated with these Agents will be unavailable until

after they are reconfigured.

(Y/N) ?

Y

Generating Enterprise Manager Root Key (this takes a minute)...

Done.Fetching Root Certificate from

the Repository... Done.

Updating HTTPS port in emoms.properties file... Done.

Generating Java Keystore... Done.

Securing OMS ... Done.

Generating Oracle Wallet Password for Agent.... Done.

Generating wallet for Agent ... Done.

Copying the wallet for agent use... Done.

Storing agent key in repository... Done.

Storing agent key for agent ... Done.

Configuring Agent...

Configuring Agent for HTTPS in DBCONSOLE mode... Done.

EMD_URL set in /myhost/myhost/sysman/config/emd.properties

Done.

Configuring Key store.. Done.

Securing dbconsole... Sucessful.

5. Re-start Database Control with the following command:

/bin/emctl start

dbconsole

Recovering from Configuration Errors in an Oracle Real

Application Clusters (RAC) Environment

1. Ignore any errors and continue with the upgrade, so that the

database is upgraded without errors.

2. Apply Patch 8350262 to your Oracle Home installation. Note

that the OPatch utility will apply the patch to all nodes in the

cluster, as shown below:

../OPatch/opatch apply

Invoking OPatch 10.2.0.4.2

Oracle Interim Patch Installer version 10.2.0.4.2

Copyright (c) 2007, Oracle Corporation. All rights reserved.

Oracle Home : /myhost/oracle/product/10.2.0/db_1

Central Inventory : /myhost/app/oraInventory

from : /etc/oraInst.loc

OPatch version : 10.2.0.4.2

OUI version : 10.2.0.4.0

OUI location : /myhost/oracle/product/10.2.0/db_1/oui

Log file location :

/myhost/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2011-01-01_

21-30-27PM.log

ApplySession applying interim patch '8350262' to OH

'/myhost/oracle/product/10.2.0/db_1'

Running prerequisite checks...

OPatch detected the node list and the local node from the

inventory. OPatch will patch the local

system then propagate the patch to the remote nodes.

Backing up files and inventory (not for auto-rollback) for the

Oracle Home

Backing up files affected by the patch '8350262' for restore. This

might take a while...

Backing up files affected by the patch '8350262' for rollback. This

might take a while...

Patching component oracle.sysman.agent.core,

10.2.0.4.0a...

Updating jar file

"/myhost/oracle/product/10.2.0/db_1/sysman/jlib/emCORE.jar"

with

“/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/fsc/FSWalletUtil.class"

Updating jar file

"/myhost/oracle/product/10.2.0/db_1/sysman/jlib/emCORE.jar"

with

"/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/rep/RepWalletUtil.class"

Updating jar file

"/myhost/oracle/product/10.2.0/db_1/sysman/jlib/emCORE.jar"

with

"/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/util/RootCert.class"

Updating jar file

"/myhost/oracle/product/10.2.0/db_1/sysman/jlib/emCORE.jar"

with

"/sysman/jlib/emCORE.jar/oracle/sysman/eml/sec/util/SecConstants.class"

Updating jar file

"/myhost/oracle/product/10.2.0/db_1/sysman/jlib/emd_java.jar"

with

"/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/fsc/FSWalletUtil.class"

Updating jar file

"/myhost/oracle/product/10.2.0/db_1/sysman/jlib/emd_java.jar"

with

"/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/rep/RepWalletUtil.class"

Updating jar file

"/myhost/oracle/product/10.2.0/db_1/sysman/jlib/emd_java.jar"

with

"/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/util/RootCert.class"

Updating jar file

"/myhost/oracle/product/10.2.0/db_1/sysman/jlib/emd_java.jar"

with

"/sysman/jlib/emd_java.jar/oracle/sysman/eml/sec/util/SecConstants.class"

ApplySession adding interim patch '8350262' to inventory

Verifying the update...

Inventory check OK: Patch ID 8350262 is registered in Oracle Home

inventory with proper meta-data.

Files check OK: Files from Patch ID 8350262 are present in Oracle

Home.

Patching in rolling mode.

Updating nodes 'myhost'

Apply-related files are:

FP =

:/myhost/oracle/product/10.2.0/db_1/.patch_storage/8350262_Sep_14_2010_04_59_44/rac/copy_

files.txt"

DP =

"/myhost/oracle/product/10.2.0/db_1/.patch_storage/8350262_Sep_14_2010_04_59_44/rac/copy_

dirs.txt"

MP =

"/myhost/oracle/product/10.2.0/db_1/.patch_storage/8350262_Sep_14_2010_04_59_44/rac/make_

cmds.txt"

RC =

"/myhost/oracle/product/10.2.0/db_1/.patch_storage/8350262_Sep_14_2010_04_59_44/rac/remote_

cmds.txt"

Instantiating the file

"/myhost/oracle/product/10.2.0/db_1/.patch_storage/8350262_Sep_14_2010_04_59_

44/rac/copy_files.txt.instantiated" by replacing $ORACLE_HOME in

"/myhost/oracle/product/10.2.0/db_

1/.patch_storage/8350262_Sep_14_2010_04_59_44/rac/copy_files.txt"

with actual path.

Propagating files to remote nodes...

Instantiating the file

"/myhost/oracle/product/10.2.0/db_1/.patch_storage/8350262_Sep_14_2010_04_59_

44/rac/copy_dirs.txt.instantiated" by replacing $ORACLE_HOME in

"/myhost/oracle/product/10.2.0/db_

1/.patch_storage/8350262_Sep_14_2010_04_59_44/rac/copy_dirs.txt"

with actual path.

Propagating directories to remote nodes...

OPatch succeeded.

3. After applying the patch, force stop the Database Control

(dbconsole) process by executing the

killDBConsole script bundled with the patch on each node in the

cluster. Note that the dbconsole

process cannot be stopped using the emctl stop dbconsole command,

as EMCTL is unable to connect

to the process.

To execute the killDBConsole script:

Set the ORACLE_HOME and ORACLE_SID environment variables.

Execute

/killDBConsole

Note for Windows Platform Only:

It is not necessary to force stop the dbconsole process on the

Windows platform, because the process will

already be in a stopped state at the end of the failed

configuration attempt.

The killDBConsole script output is shown below:

$ /killDBConsole

ORACLE_HOME=/myhost/catest/db_1

ORACLE_SID=caem31

State directory = /myhost/catest/db_1/staxd10_caem31

WatchDog PID = 802932

DBconsole PID = 577716

EMAgent PID = 512156

Killing WatchDog (pid=802932) ...

Successfully killed process 802932

Killing DBConsole (pid=577716) ...

Successfully killed process 577716

Killing EMAgent (pid=512156) ...

Successfully killed process 512156

4. Re-secure Database Control on the first cluster node with the

following command:

/bin/emctl secure

dbconsole -reset

You will be prompted twice to confirm that the Root key must be

overwritten. In both cases, enter upper-case "Y" as the response.

Any other response (including lower-case "y") will cause the

command to terminate without completing. If this happens, the

command can be re-invoked.

$ ./emctl secure dbconsole -reset

Oracle Enterprise Manager 10g Database Control Release

10.2.0.4.0

Copyright (c) 1996, 2007 Oracle Corporation. All rights

reserved.

https://myhost:5501/em/console/aboutApplication

Enter Enterprise Manager Root Password :

DBCONSOLE already stopped... Done.

Agent is already stopped... Done.

Securing dbconsole... Started.

Checking Repository... Done.

Checking Em Key... Done.

Checking Repository for an existing Enterprise Manager Root

Key...

WARNING! An Enterprise Manager Root Key already exists in

the Repository. This operation will replace your Enterprise

Manager Root Key.

All existing Agents that use HTTPS will need to be

reconfigured if you proceed. Do you wish to continue and

overwrite your Root Key

(Y/N) ?

Y

Are you sure ? Reset of the Enterprise Manager Root Key

will mean that you will need to reconfigure each Agent

that is associated with this OMS before they will be

able to upload any data to it. Monitoring of Targets

associated with these Agents will be unavailable until

after they are reconfigured.

(Y/N) ?

Y

Generating Enterprise Manager Root Key (this takes a minute)...

Done.Fetching Root Certificate from

the Repository... Done.

Updating HTTPS port in emoms.properties file... Done.

Generating Java Keystore... Done.

Securing OMS ... Done.

Generating Oracle Wallet Password for Agent.... Done.

Generating wallet for Agent ... Done.

Copying the wallet for agent use... Done.

Storing agent key in repository... Done.

Storing agent key for agent ... Done.

Configuring Agent...

Configuring Agent for HTTPS in DBCONSOLE mode... Done.

EMD_URL set in /myhost/sysman/config/emd.properties

Done.

Configuring Key store.. Done.

Securing dbconsole... Sucessful.

5. Re-secure Database Control on the remaining cluster nodes

with the following command. Note that the -reset switch is not

included with this command:

/bin/emctl secure

dbconsole

[myhost bin]$ ./emctl secure dbconsole

Oracle Enterprise Manager 10g Database Control Release

10.2.0.4.0

Copyright (c) 1996, 2007 Oracle Corporation. All rights

reserved.

https://myhost:1158/em/console/aboutApplication

Enter Enterprise Manager Root password :

Enter a Hostname for this OMS : myhost

DBCONSOLE already stopped... Done.

Agent is already stopped... Done.

Securing dbconsole... Started.

Checking Repository... Done.

Checking Em Key... Done.

Checking Repository for an existing Enterprise Manager Root Key...

Done.

Fetching Root Certificate from the Repository... Done.

Updating HTTPS port in emoms.properties file... Done.

Generating Java Keystore... Done.

Securing OMS ... Done.

Generating Oracle Wallet Password for Agent.... Done.

Generating wallet for Agent ... Done.

Copying the wallet for agent use... Done.

Storing agent key in repository... Done.

Storing agent key for agent ... Done.

Configuring Agent...

Configuring Agent for HTTPS in DBCONSOLE mode... Done.

EMD_URL set in

/myhost/oracle/product/10.2.0/db_1/myhost/sysman/c

onfig/emd.properties

Done.

Configuring Key store.. Done.

Securing dbconsole... Sucessful.

6. Re-start Database Control by executing the following command

on each node in the cluster:

/bin/emctl start

dbconsole

总结就是EM有问题了,一定要去$ORACLE_HOME/类似主机名的目录sysman/log看agent和emctl.trc

emdb.nohup里报错,解决那些报错。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值