Shut down SAP and the database.
# su - <sapsid>adm $ stopsap all ... # su - ora<sapsid> $ lsnrctl stop |
(For SAP 3.1x only) Adjust the Oracle alert file parameter in the init<SAPSID>.ora file.
By default, SAP uses the prefix "?/..." in the init<SAPSID>.ora file to denote the relative path from $ORACLE_HOME. The Sun Cluster fault monitors cannot parse the prefix, but instead require the full path name to the alert file. Therefore, you must edit the /oracle/<SAPSID>/dbs/init<SAPSID>.ora file and define the dump destination parameters as follows:
background_dump_dest = /oracle/<SAPSID>/saptrace/background |
Register and activate the database.
Run the hareg(1M) command from only one node. For example, for Oracle:
# hareg -s -r oracle -h DBloghost # hareg -y oracle |
Set up the database instance.
See Chapter 5, Setting Up and Administering Sun Cluster HA for Oracle, for more information.
For example, for Oracle:
# haoracle insert <SAPSID> DBloghost 60 10 120 300 \ user/password /oracle/<SAPSID>/dbs/init<SAPSID>.ora LISTENER |
Start fault monitoring for the database instance.
For example:
# haoracle start <SAPSID> |
Test switchover of the HA-DBMS.
For example:
# scadmin switch clustername phys-hahost2 DBloghost |