Recreate Oracle ASM password

Oracle ASM password must use pure alphanumerics. It will cuase some problems (i.e. emctl could not start) if not follow this rule. Here are steps to make emctl work:

1> Remove the old ASM password
cd $GRID_HOME
mv orapw+ASM orapw+ASM.orig

2> Create a new password
orapwd file=orapw+ASM password=

3> Setup Env
export ORACLE_SID=+ASM
export ORACLE_HOME=$GRID_HOME

4> Create ASM User
sqlplus / as sysasm
create user asmsnmp identified by
grant sysdba to asmsnmp;

5> Drop EMCA
emca -deconfig dbcontrol db -repos drop

6> Create EMCA
emca -config dbcontrol db -repos recreate



/u01/app/grid/product/11.2.0/dbhome_1/dbs >emca -config dbcontrol db -repos recreate
STARTED EMCA at Jan 11, 2011 4:18:47 PMEM Configuration Assistant, Version 11.2.0.0.2 ProductionCopyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:Database SID: HPUX03
Listener port number: 1521
Listener ORACLE_HOME [ /u01/app/grid/product/11.2.0/dbhome_1 ]: /u01/app/oracle/product/11.2.0/dbhome_1
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
ASM ORACLE_HOME [ /u01/app/grid/product/11.2.0/dbhome_1 ]:
ASM SID [ +ASM ]:
ASM port [ 1521 ]:
ASM username [ ASMSNMP ]:
ASM user password: -----------------------------------------------------------------

You have specified the following settings
Database ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbhome_1
Local hostname ................ 10.10.43.90
Listener ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/dbhome_1
Listener port number ................ 1521
Database SID ................ HPUX03
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
ASM ORACLE_HOME ................ /u01/app/grid/product/11.2.0/dbhome_1
ASM SID ................ +ASM
ASM port ................ 1521
ASM user role ................
SYSDBAASM username ................
ASMSNMP

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Jan 11, 2011 4:20:12 PM oracle.sysman.emcp.EMConfig performINFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/HPUX03/emca_2011_01_11_16_18_46.log.Jan 11, 2011 4:20:13 PM oracle.sysman.emcp.EMReposConfig invokeINFO: Dropping the EM repository (this may take a while) ...Jan 11, 2011 4:20:14 PM oracle.sysman.emcp.EMReposConfig invokeINFO: Repository successfully droppedJan 11, 2011 4:20:15 PM oracle.sysman.emcp.EMReposConfig createRepositoryINFO: Creating the EM repository (this may take a while) ...

Comments

Popular posts from this blog

VIOS TIPs

Configure Solaris 10 LDOM on Solaris 11.4

Change P410i from HBA mode to Raid mdoe