Let's Join and share our day to day activities, Views, Knowledge, Questions and achievements in Oracle Database (8i / 9i / 10g or 11g)

Jul 29, 2011

CREATE DBCONSOLE CERTIFICATE WITH 10YEAR VALIDITY

=========================================================================
Interim Patch for Base Bug: 8350262
=========================================================================

Date: Sep 10, 2010
-------------------------------------------------------------------------
 Platform Patch for      : Generic
 Product Patched         : 10.2.0.4.0
 Product Version         : Enterprise Manager Database Control

Bugs Fixed by this patch:
-------------------------
8350262:CREATE DBCONSOLE CERT WITH 10YEAR VALIDITY

Patch Preinstall Steps:
-----------------------

1. For non-recommended patches, you must have the exact symptoms
   described in the service request (SR).

2. Verify the OUI Inventory.

OPatch needs access to a valid OUI inventory to apply patches.
Validate the OUI inventory with the following command:

  % opatch lsinventory

If the command errors out, contact Oracle Support and work to validate
and verify the inventory setup before proceeding.

3. Please use the latest Version of OPatch.

Oracle recommends that all customers be on the latest version of OPatch.
Please review the following metalink note and follow the instructions
to update to the latest version if needed:

 https://metalink.oracle.com/metalink/plsql/ml2_documents.showNOT?p_id=224346.1

4. Confirm executables appear in your system PATH.

The patching process will use the unzip and the opatch executables.  After
sourcing the ORACLE_HOME environment, confirm both of these exist before
continuing:

  - "which opatch"
  - "which unzip"

If either of these executables do not show in the PATH, correct the problem
before proceeding.

5. Create a location for storing the unzipped patch.  This location
will be referred to later in the document as .

6. Unzip the patch zip file into the .

  unzip -d p8350262_102040_Generic.zip

7. Shut down services running from the ORACLE_HOME.

Before applying this patch, do a clean shut down of all services
running from the ORACLE_HOME.

Patch Installation Steps:
-------------------------

1. Shutdown EM DB Console using the following command.

       % $ORACLE_HOME/bin/emctl stop dbconsole

2. Set your current directory to the directory where the patch
   is located:
    % cd /8350262

   Ensure that the directory containing the opatch script appears in
   your $PATH; then enter the following command:
    % opatch apply
   
3. Start EM DB Console using the following command.

      % $ORACLE_HOME/bin/emctl start dbconsole

NOTE:
------
There may be cases when Starting dbconsole may fail post 31-Dec-2010.
In this case, Please set ORACLE_HOME to your Database Home & ORACLE_SID
and run the following from the patch folder.
   % ./killDBConsole


Patch Deinstallation Instructions:
----------------------------------
1. Shutdown EM DB Console using the following command.

       % $ORACLE_HOME/bin/emctl stop dbconsole

2. Set your current directory to the directory where the patch
   is located:
    % cd /8350262

3. Ensure that the directory containing the opatch script appears in
   your $PATH; then run the following command:-
   %  opatch rollback -id 8350262
  
4. Start EM DB Console using the following command.

      % $ORACLE_HOME/bin/emctl start dbconsole




========================
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Administrator>cd\

C:\>set ORACLE_HOME=D:\oracle\product\10.2.0\db_1

C:\>echo %ORACLE_HOME%
D:\oracle\product\10.2.0\db_1

C:\>set PATH=%PATH%;%ORACLE_HOME%\OPatch

C:\>echo %path%
D:\oracle\product\10.2.0\db_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\NetApp\SnapDrive\;D:\oracle\p
roduct\10.2.0\db_1\OPatch

C:\>d:

D:\>cd p8350262_10204_Generic

D:\p8350262_10204_Generic>cd 8350262

D:\p8350262_10204_Generic\8350262>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       : D:\oracle\product\10.2.0\db_1
Central Inventory : C:\Program Files\Oracle\Inventory
   from           : n/a
OPatch version    : 10.2.0.4.2
OUI version       : 10.2.0.4.0
OUI location      : D:\oracle\product\10.2.0\db_1\oui
Log file location : D:\oracle\product\10.2.0\db_1\cfgtoollogs\opatch\opatch2011-01-28_11-0
9-44AM.log

ApplySession applying interim patch '8350262' to OH 'D:\oracle\product\10.2.0\db_1'

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...

******************************************************************************************
*
Oracle Configuration Manager is installed but not configured.  OCM enables Oracle to
provide superior, proactive support for our customers. Oracle strongly recommends customer
s
configure OCM. To complete the configuration of OCM, refer to the OCM Installation and
Administration Guide (http://www.oracle.com/technology/documentation/ocm.html).
******************************************************************************************
*

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 "D:\oracle\product\10.2.0\db_1\sysman\jlib\emCORE.jar" with "\sysman\jli
b\emCORE.jar\oracle\sysman\eml\sec\fsc\FSWalletUtil.class"
Updating jar file "D:\oracle\product\10.2.0\db_1\sysman\jlib\emCORE.jar" with "\sysman\jli
b\emCORE.jar\oracle\sysman\eml\sec\rep\RepWalletUtil.class"
Updating jar file "D:\oracle\product\10.2.0\db_1\sysman\jlib\emCORE.jar" with "\sysman\jli
b\emCORE.jar\oracle\sysman\eml\sec\util\RootCert.class"
Updating jar file "D:\oracle\product\10.2.0\db_1\sysman\jlib\emCORE.jar" with "\sysman\jli
b\emCORE.jar\oracle\sysman\eml\sec\util\SecConstants.class"
Updating jar file "D:\oracle\product\10.2.0\db_1\sysman\jlib\emd_java.jar" with "\sysman\j
lib\emd_java.jar\oracle\sysman\eml\sec\fsc\FSWalletUtil.class"
Updating jar file "D:\oracle\product\10.2.0\db_1\sysman\jlib\emd_java.jar" with "\sysman\j
lib\emd_java.jar\oracle\sysman\eml\sec\rep\RepWalletUtil.class"
Updating jar file "D:\oracle\product\10.2.0\db_1\sysman\jlib\emd_java.jar" with "\sysman\j
lib\emd_java.jar\oracle\sysman\eml\sec\util\RootCert.class"
Updating jar file "D:\oracle\product\10.2.0\db_1\sysman\jlib\emd_java.jar" with "\sysman\j
lib\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 me
ta-data.
Files check OK: Files from Patch ID 8350262 are present in Oracle Home.
--------------------------------------------------------------------------------
The following warnings have occurred during OPatch execution:
1) OUI-67294:
******************************************************************************************
*
Oracle Configuration Manager is installed but not configured.  OCM enables Oracle to
provide superior, proactive support for our customers. Oracle strongly recommends customer
s
configure OCM. To complete the configuration of OCM, refer to the OCM Installation and
Administration Guide (http://www.oracle.com/technology/documentation/ocm.html).
******************************************************************************************
*

--------------------------------------------------------------------------------
OPatch Session completed with warnings.

OPatch completed with warnings.

D:\p8350262_10204_Generic\8350262>set ORACLE_SID=LALPROD

D:\p8350262_10204_Generic\8350262>EMCTL START DBCONSOLE
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
https://infradb1:1158/em/console/aboutApplication
Invalid arguments

Unknown command option START
Usage::
   Oracle Enterprise Manager 10g Database Control commands:
       emctl start| stop| status| setpasswd dbconsole
       emctl status dbconsole [-secure]
       emctl secure

       emctl set ssl test|off|on em
       emctl set ldap
emctl blackout options can be listed by typing "emctl blackout"
emctl config options can be listed by typing "emctl config"
emctl secure options can be listed by typing "emctl secure"
emctl ilint  options can be listed by typing "emctl ilint"
emctl deploy  options can be listed by typing "emctl deploy"

D:\p8350262_10204_Generic\8350262>emctl start dbconsole -secure
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
https://infradb1:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ...The OracleDBConsoleLALPROD serv
ice is starting...........................................................................
..........................................................................................
................................
The OracleDBConsoleLALPROD service could not be started.

A service specific error occurred: 1.

More help is available by typing NET HELPMSG 3547.


D:\p8350262_10204_Generic\8350262>



oracle.sysman.eml.mntr.emdRepPwd=xxxxxxxxxxxxxx

to

oracle.sysman.eml.mntr.emdRepPwd=


replace with sysman password

2. Then change below line

oracle.sysman.eml.mntr.emdRepPwdEncrypted=TRUE

to

oracle.sysman.eml.mntr.emdRepPwdEncrypted=FALSE

emctl secure dbconsole -reset

1 comment:

  1. i don't underestand where i should these change?

    oracle.sysman.eml.mntr.emdRepPwd=xxxxxxxxxxxxxx
    to
    oracle.sysman.eml.mntr.emdRepPwd=

    ReplyDelete