You are on page 1of 9

Unit 14:

Oracle Enterprise Manager and


Grid control Lab

© Copyright IBM Corporation 2013


Lab: Work with database control (1)
• Unlock dbnsmp account on one node:
$ export ORACLE_SID=racN1
$ sqlplus ‘/ as sysdba’
SQL> alter user dbsnmp account unlock;
SQL> alter user dbsnmp identified by oracle;

• Check TimeZone (echo $TZ) on the node to start the db console.


If it is not set to PS8PDT, set it that way: $ export TZ=PST8PDT
– Time zone must be valid and included in $ORACLE_HOME/sysman/admin/*tz*.lst for
dbcontrol to start

• Startup methods – use one of the following (one node only):


– DBCA (this would have been done whenyou created the database) method
$ORACLE_HOME/bin/emca –config dbcontrol db –cluster

© Copyright IBM Corporation 2013


Lab: Work with database control (2)
• IF you successfully started dbcontrol when you created the database, you would
see the following:

$ export ORACLE_UNQNAME=gpfsdb
$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
https://rac31:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory
/oracle11g/app/oracle/product/11.2.0/dbhome_1/rac31_gpfsdb/sysman/log

• If this is true, check the agent on each node, and start if not running
$ emctl status agent
$ emctl start agent
Lab: Work with database control (3)
IF you DID NOT successfully start dbcontrol when you created the database, do the following:
[oracle]$$ORACLE_HOME/bin/emca –config dbcontrol db –cluster
STARTED EMCA at Jan 3, 2014 10:16:46 AM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database unique name: racN
Listener port number: 1521
Cluster name: crsN
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Password for SYSMAN user: Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
ASM ORACLE_HOME [ /oracle/10g/db ]:
ASM port [ 1521 ]:
ASM user role [ SYSDBA ]:
ASM username [ SYS ]:
ASM user password

© Copyright IBM Corporation 2013


Lab: Work with database control (4)
• IF you DID NOT successfully start dbcontrol when you created
thedatabase:

–Don’t remember your cluster name? Try the following:

[grid]$ cd /tmp
[grid]$ ocrdump
search OCRDUMPFILE for the following lines:
[SYSTEM.css.clustername]
ORATEXT : crs
SECURITY : {USER_PERMISSION :
PROCR_ALL_ACCESS,
GROUP_PERMISSION : PROCR_READ, O
THER_PERMISSION : PROCR_READ, USER_NAME : root,
GROUP_NAME : system}

© Copyright IBM Corporation 2013


Choose Grid or database control using DBCA

© Copyright IBM Corporation 2013


Connect to DBCONSOLE: Log in as sys, "as sysdba"

© Copyright IBM Corporation 2013


DBCONSOLE: example

© Copyright IBM Corporation 2013


Some things to try
• Change SGA_TARGET under ADMINISTRATION-
>INITIALIZATION PARAMETERS
• Check out datafile information under
ADMINISTRATION->Datafiles
• Check out user information under ADMINISTRATION-
>Users
• Look at active sessions under PERFORMANCE and drill
down on System I/O, Network, and so on.

© Copyright IBM Corporation 2013