Anda di halaman 1dari 4

Configure database in OEM :

--------------------------------------------------------------------------------
-
--On Cluster we need an agent for each database;
--If an agent is needed for this database, clone it using document
"clone_oem_agent_virtualIP.txt" or
"clone_oem_agent_host.txt" depending on type of agent
--------------------------------------------------------------------------------
-
**DONE** To add database and listener
1. Log in to OEM
2. Go to Targets>>Databases
Click on "add" button
3. Enter the hostname(Virtual hostname/IP for cluster),
Click "continue" button, it will list avilable targets
4. Select newly created DB and listener
5. Click on "configure" symbol.
In new page enter dbsnmp password and make sure that port no. is correct
.
Click on "Test Connection" button
Once it's successful click "Next"
6. Select a suitable group for DB(for eg :WV DBs it's "DBA - Databases WVDC" )
Press OK to save configuration
--If a new agent was created for this database, add the host to group
1. Log in to OEM
2. Go to Targets>>Groups
Depending on type agent installed (Virtual IP/ agent on physical host) add it to
corresponding group
3. Select either "DBA - Hosts VIPs", "DBA - Hosts WVDC", "DBA - Hosts Webster"
Click on "Configure"
4. Click on "search" button and add the host and press "OK"
--------------------------------------------------------------------------------
--------------------------
**DONE** Apply monitoring Templates
1. Log in to OEM
2. Go to Setup>>"Monitoring Templates"
3. Select "XX_Database_Test" and Click on "apply"
Note: In case of OEM Prod, use template "XRX DB Monitoring Template"
4. Click on "Add" and select the new database created
Select "Template will only override metrics that are common to both temp
late and target."
5. Click on .OK.
6. If needed repeat same steps
for physical host using template "XX_Hosts" or
for VIP using template "Cluster"
--------------------------------------------------------------------------------
----------
**DONE** Register the database in the rman catalog
1. Log in to OEM
2. Go to Database>>"Availability">>"Recovery Catalog Settings"
3. Select "Use Recovery Catalog"
Recovery Catalog select rmanp_svr
Recovery Catalog Username rman
Recovery Catalog Password rman11g
Click "OK"
--------------------------------------------------------------------------------
-----------
**DONE** Submit Jobs
1. Log in to OEM
2. Go to Jobs>>"Job Library"
3. Select backup job depending on type of backup for eg "COMPRESS_BACKUP","RMAN
DISK BACKUP"
4. Click On "Submit" and give suitable name and descrption
Click on "add" and select the newly created database
5. Click on "Schedule" tab
Select suitable schedule
Press "submit" button to create the job
6. Enter backup job details in T:\WVIM\CoreServices\DBA\Doc\BackupSchedule.xls
7. Follow steps 2 to 6 to submit any other type of job
--------------------------------------------------------------------------------
------------
bbal$ cat clone_oem_agent_virtualIP.txt
OEM AGENT CLONING
--------------------------------------------------------------------------------
---------
**DONE** Take Backup of Agent Home from Source and Copy it to Destination.
--On Source server

1.Tar the Agent Oracle home that you want to clone (take any existing agent home
for reference)
oemgcmon$ pwd
/source_SID/apps/oracle/product
oemgcmon$ ls -ltr
total 4
drwxr-xr-x 55 oemgcmon dba 1536 Jun 16 22:34 agent10g
oemgcmon$ sudo tar -cvf agent10g_17Jun.tar agent10g

2.Perform a file transfer (scp) of this zipped Oracle home onto the destination
host
oemgcmon$ mv agent10g_17Jun.tar /$SID/apps/oracle/product
NOW REST OF THE STEPS NEEDS TO BE DONE ON DESTINATION SERVER
-- On Destination Server
-- CHANGE sid name here. If you ever reconnect, set these again
export SID=$SID
export ORACLE_HOME=/$SID/apps/oracle/product/agent10g
3.In the destination host, uncompress the Agent Oracle home
oemgcmon$ pwd
/$SID/apps/oracle/product
oemgcmon$ sudo tar -xvf agent10g_17Jun.tar

--------------------------------------------------------------------------------
-----------
**DONE**Remove following files from destination host agent
cd $ORACLE_HOME
rm -r sysman/emd/state/*
rm -r sysman/emd/collection/*
rm -r sysman/emd/upload/*
rm sysman/emd/lastupld.xml
rm sysman/emd/agntstmp.txt
rm sysman/emd/blackouts.xml
--------------------------------------------------------------------------------
---------------
**DONE**Clone the Agent
On the destination host, make sure /var/opt/oracle/oraInst_$SID.loc exists and i
s pointing to correct location so we can use -invPtrloc to point to correct loca
tion
export SID=$SID
export ORACLE_HOST_NAME=$SID_svr.wvdc.xerox.net
export ORACLE_HOME=/$SID/apps/oracle/product/agent10g
oemgcmon$ vi /var/opt/oracle/oraInst_$SID.loc
cd $ORACLE_HOME/oui/bin/
oemgcmon$ ./runInstaller -invPtrloc /var/opt/oracle/oraInst_$SID.loc -clone -for
ceClone ORACLE_HOME=$ORACLE_HOME ORACLE_HOME_NAME=Agent10g_$SID ORACLE_HOST_NAME
=$ORACLE_HOST_NAME -noconfig -silent
Once Clone completes successfully,it will ask to run root.sh
sudo find $ORACLE_HOME -name root.sh -ok {} \;

--------------------------------------------------------------------------------
----------
**DONE**Change port used by agent if necessary
cd $ORACLE_HOME/sysman/config
gpush -s emd.properties
**** Must use sid name here!
vi emd.properties
EMD_URL=http://$SID_svr.wvdc.xerox.net:3863/emd/main/
:wq

--Check value for EMD_URL and make sure that hostname and port are correct
--------------------------------------------------------------------------------
-----------
**DONE** Run config to configure targets under this new agent
oemgcmon$ $ORACLE_HOME/bin/agentca -f -i /var/opt/oracle/oraInst_$SID.loc
Run the newly cloned Agent root.sh script
sudo find $ORACLE_HOME -name root.sh -ok {} \;
--------------------------------------------------------------------------------
-------
**DONE** Delete unnecessary targets
-- Agent config step will discover many targets on the server.
-- Delete all except the 3 for this database - HOST, database and listener
cd $ORACLE_HOME/sysman/emd
gpush -s targets.xml
vi targets.xml
--Delete unwanted targets
--------------------------------------------------------------------------------
-------
**DONE** Secure the agent if not secured
cd $ORACLE_HOME/bin
./emctl status agent
--secure agent using below command if Agent URL is not https
./emctl secure agent
./emctl start agent
--------------------------------------------------------------------------------
--------

Anda mungkin juga menyukai