[oracle@naikh]export OMS_HOME=/u01/oracle/product/oms10g
[oracle@naikh]export AGENT_HOME=/u01/oracle/product/agent10g
Starting Grid Control Services
$AGENT_HOME/bin/emctl start agent
$OMS_HOME/opmn/bin/opmnctl startall
Stopping Grid Control Services
$AGENT_HOME/bin/emctl stop agent
$OMS_HOME/opmn/bin/opmnctl stoptall
Status of the Grid Control Services
$AGENT_HOME/bin/emctl status agent
$OMS_HOME/bin/emctl status oms
$OMS_HOME/opmn/bin/opmnctl status
Wednesday, April 15, 2009
Sunday, April 5, 2009
Rebooting RAC servers
For some maintenance activity, if RAC servers need to be rebooted then the steps are:
1. Check the status of all the services
[oracle@naikh] cd $CRS_HOME/bin
[oracle@naikh] crs_stat -t
2. Stop the database
[oracle@naikh] srvctl stop database -d orcl
3. Stop nodeapps
[oracle@naikh] srvctl stop nodeapps hostname1
[oracle@naikh] srvctl stop nodeapps hostname2
4. Reboot the servers
Ask System admin to reboot the both the servers
5. Once the server is up check the status of all the services
[oracle@naikh] cd $CRS_HOME/bin
[oracle@naikh] crs_stat -t
6. Start the nodeapps if not automatically started.
[oracle@naikh] srvctl start nodeapps hostname1
[oracle@naikh] srvctl start nodeapps hostname2
7. Start the database if not automatically started.
[oracle@naikh] srvctl start database -d orcl
8. Make sure all the services are active
[oracle@naikh] cd $CRS_HOME/bin
[oracle@naikh] crs_stat -t
1. Check the status of all the services
[oracle@naikh] cd $CRS_HOME/bin
[oracle@naikh] crs_stat -t
2. Stop the database
[oracle@naikh] srvctl stop database -d orcl
3. Stop nodeapps
[oracle@naikh] srvctl stop nodeapps hostname1
[oracle@naikh] srvctl stop nodeapps hostname2
4. Reboot the servers
Ask System admin to reboot the both the servers
5. Once the server is up check the status of all the services
[oracle@naikh] cd $CRS_HOME/bin
[oracle@naikh] crs_stat -t
6. Start the nodeapps if not automatically started.
[oracle@naikh] srvctl start nodeapps hostname1
[oracle@naikh] srvctl start nodeapps hostname2
7. Start the database if not automatically started.
[oracle@naikh] srvctl start database -d orcl
8. Make sure all the services are active
[oracle@naikh] cd $CRS_HOME/bin
[oracle@naikh] crs_stat -t
RMAN Recovery Catalog
This article gives the steps to create the recovery catalog.
1. Identify the database where catalog needs to be created.
Here I am using rcvcat as the catalog database
2. Create the tablespace to store the catalog information.
SQL> CREATE TABLESPACE CATALOG_DATA
DATAFILE '/u01/oradata/rvcvat/catalog_data_01.dbf'
SIZE 500M;
3. Create the user that is going to be the catalog owner
IDENTIFIED BY RMAN
DEFAULT TABLESPACE CATALOG_DATA
TEMPORARY TABLESPACE TEMP;
SQL> GRANT RESOURCE TO RMAN;
SQL> GRANT CONNECT TO RMAN;
SQL> GRANT RECOVERY_CATALOG_OWNER TO RMAN;
SQL> ALTER USER RMAN DEFAULT ROLE ALL;
SQL> ALTER USER RMAN QUOTA UNLIMITED ON RMAN_DATA;
RMAN> create catalog;
[oracle@naikh]$ export ORACLE_SID=orcl
[oracle@naikh]$ rman target / catalog rman/rman@rvccat
RMAN> register database;
Subscribe to:
Posts (Atom)