Manually Configure The Oracle 10g EM Dbconsole
Manually Configure The Oracle 10g EM Dbconsole
Oracle 10g installation, you can select the Oracle Enterprise Manager (OEM) interface that you want to use to manage the database. The following options are available:
o
This option is available only if an Oracle Management Agent is installed on the system. When the Installer detects an Oracle Management Agent on the system, it allows you to choose this option and specify the Oracle Management Service that you want to use to manage the database. If an Oracle Management Agent is not installed, you must choose to use Database Control to manage the database. However, if you install Oracle Management Agent after you install Oracle Database, you can then use Grid Control to manage this database.
o
Database Control
This option is selected by default if an Oracle Management Agent is not installed on the system. However, even if a Management Agent is installed, you can still choose to configure Database Control to manage the database. Custom installation If you choose the Custom installation type or the Advanced database configuration option during the installation, the Installer does not display the OEM setup screens. Instead, it runs the Database Configuration Assistant (DBCA) in interactive mode, which enables you to create a custom database. DBCA also enables you to specify the Oracle Enterprise Manager interface that you want to use. Furthermore, you can also use DBCA after the installation to configure Database Control for a database that was not previously configured to use it. However, if you decide to setup your own Database, you must install the Database Control manually. Setup your own Database and manually install the Database Control The Database Control relies on various underlying technologies to discover, monitor, and administer the Oracle Database environment. From the Database Control, you can monitor and administer a single Oracle Database instance. The Database Control Framework consists of the Database Control and its underlying technologies:
o
A local version of the Oracle Management Service designed to work with the local
database or clustered database. A local Oracle Management Repository installed in the local database and designed to store management data for the Database Control.
The following steps have to be performed. Create your own Database More information to setup your own Database can be found here:
o
For Linux
Create the Database Control Repository and setup the OC4J Application Server Make sure, that you can connect to the Repository Database (Test it with SQL*Plus). Examples for Setup Files can be found here: Windows LISTENER.ORA SQLNET.ORA TNSNAMES.ORA Linux listener.ora sqlnet.ora tnsnames.ora
# Akadia AG, Arvenweg 4, CH-3604 Thun listener.ora # -------------------------------------------------------------------------# File: listener.ora # # Autor: Martin Zahn Akadia AG 03.05.2004 # # Purpose: Configuration file for Oracle Listener # # Location: $TNS_ADMIN # # Certified: Oracle 10.1.0.2 on Gentoo Linux 2004.0 # -------------------------------------------------------------------------# Sets the number of seconds that the listener waits to get a # valid database query after it has been started. # Default: 10 CONNECT_TIMEOUT_LSNRAKI1 = 10 # Sets the directory for the listener's log file. LOG_DIRECTORY_LSNRAKI1 = /home/oracle/config/10.1.0 # Sets the name of the listener's log file. # The .log extension is added automatically. LOG_FILE_LSNRAKI1 = listenerAKI1.log # Sets the directory for the listener's trace file. TRACE_DIRECTORY_LSNRAKI1 = /home/oracle/config/10.1.0 # Sets the name of the listener's trace file. # The .trc extension is added automatically. TRACE_FILE_LSNRAKI1 = listenerAKI1.trc # Specifies desired tracing level. # Values: OFF/USER/ADMIN/SUPPORT/0-16 TRACE_LEVEL_LSNRAKI1 = OFF # Tells the listener to contact an Onames server and register itself # and its services with Onames. USE_PLUG_AND_PLAY_LSNRAKI1 = OFF # Tells the listener to save configuration changes to listener.ora when # it shuts down. Changed parameter values will be written to the file, # while preserving formatting and comments. SAVE_CONFIG_ON_STOP_LISTENER = OFF # Sets the number of seconds that the network listener sleeps # before responding to the first listener control status command. STARTUP_WAIT_TIME_LSNRAKI1 = 0 LSNRAKI1 = (DESCRIPTION_LIST = (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = akira)(PORT = 1521)) ) (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = AKI1)) ) ) SID_LIST_LSNRAKI1 = (SID_LIST = (SID_DESC = (ORACLE_HOME = /opt/oracle/product/10.1.0) (SID_NAME = AKI1) ) ) # Akadia AG, Arvenweg 4, CH-3604 Thun sqlnet.ora # -------------------------------------------------------------------------# File: sqlnet.ora # # Autor: Martin Zahn Akadia AG 10.03.2004 # # Purpose: Configuration File for all Net8 Clients # # Location: $TNS_ADMIN # # Certified: Oracle 10.1.0.2 on Gentoo Linux (2004.0) # -------------------------------------------------------------------------# TRACE_LEVEL_CLIENT = OFF NAMES.DIRECTORY_PATH= (TNSNAMES) SQLNET.CRYPTO_SEED = 4fhfguweotcadsfdsafjkdsfqp5f201p45mxskdlfdasf AUTOMATIC_IPC = ON NAMES.DEFAULT_DOMAIN = WORLD BEQUEATH_DETACH = NO SQLNET.EXPIRE_TIME = 10 NAME.DEFAULT_ZONE = WORLD USE_DEDICATED_SERVER = ON # Akadia AG, Arvenweg 4, CH-3604 Thun tnsnames.ora # -------------------------------------------------------------------------# File: tnsnames.ora # # Autor: Martin Zahn Akadia AG 10.03.2004 # # Purpose: Configuration File for all Net Clients # # Location: $TNS_ADMIN # # Certified: Oracle 10.1.0.2 on Gentoo Linux (2004.0) # -------------------------------------------------------------------------# AKI1= (DESCRIPTION= (ADDRESS_LIST=
(ADDRESS=(PROTOCOL=TCP)(HOST=akira)(PORT=1521)) ) (CONNECT_DATA= (SERVICE_NAME=AKI1) ) ) AKI1.WORLD= (DESCRIPTION= (ADDRESS_LIST= (ADDRESS=(PROTOCOL=TCP)(HOST=akira)(PORT=1521)) ) (CONNECT_DATA= (SERVICE_NAME=AKI1.WORLD) ) ) Now start the Oracle EM dbconsole Build Script ($ORACLE_HOME/bin/emca for Linux and $ORACLE_HOME\Bin\emca.bat for Windows). $ emca -repos create $ emca -config dbcontrol db STARTED EMCA at Fri May 14 10:43:22 MEST 2004 Enter the following information about the database to be configured. Listener port number: 1521 Database SID: AKI1 Service name: AKI1.WORLD Email address for notification: martin dot zahn at akadia dot ch Email gateway for notification: mailhost Password for dbsnmp: xxxxxxx Password for sysman: xxxxxxx Password for sys: xxxxxxx --------------------------------------------------------You have specified the following settings Database ORACLE_HOME: /opt/oracle/product/10.1.0 Enterprise Manager ORACLE_HOME: /opt/oracle/product/10.1.0 Database host name ..........: akira Listener port number .........: 1521 Database SID .................: AKI1 Service name .................: AKI1 Email address for notification: martin dot zahn at akadia dot ch Email gateway for notification: mailhost --------------------------------------------------------Do you wish to continue? [yes/no]: yes AM oracle.sysman.emcp.EMConfig updateReposVars
INFO: Updating file ../config/repository.variables ... Now wait about 10 Minutes to complete! M oracle.sysman.emcp.EMConfig createRepository INFO: Creating repository ... M oracle.sysman.emcp.EMConfig perform INFO: Repository was created successfully M oracle.sysman.emcp.util.PortQuery findUsedPorts INFO: Searching services file for used port AM oracle.sysman.emcp.EMConfig getProperties ........... ........... INFO: Starting the DBConsole ... AM oracle.sysman.emcp.EMConfig perform INFO: DBConsole is started successfully INFO: >>>>>>>>>>> The Enterprise Manager URL ishttp://akira:5500/em <<<<<<<<<<< Enterprise Manager configuration is completed successfully FINISHED EMCA at Fri May 14 10:55:25 MEST 2004 Try to connect to the database Control http://akira:5500/em
If you look at the installed schemas, you can now find the SYSMAN schema, which is the database Control Repository. Troubleshooting If you have troubles to connect, check your local configuration which can be found in $ORACLE_HOME/<hostname>_<SERVICE_NAME>. For Example our DbConsole
Setup Directory looks as follows: $ pwd /opt/oracle/product/10.1.0/akira_AKI1/sysman/config $ ls -l -rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r-b64InternetCertificate.txt emagentlogging.properties emd.properties emomsintg.xml emomslogging.properties emoms.properties OUIinventories.add
The most important file is emoms.properties, where you can find all the configuration parameters. #Fri May 14 10:54:49 CEST 2004 oracle.sysman.emSDK.svlt.ConsoleServerName= akira_Management_Service oracle.sysman.eml.mntr.emdRepPwd=0b878f6184e8319d emdrep.ping.pingCommand=/bin/ping <hostname> oracle.sysman.eml.mntr.emdRepPort=1521 oracle.sysman.eml.mntr.emdRepDBName=AKI1.WORLD oracle.sysman.emSDK.svlt.ConsoleMode=standalone oracle.sysman.emRep.dbConn.statementCacheSize=30 oracle.sysman.db.isqlplusUrl= http\://akira\:5560/isqlplus/dynamic oracle.sysman.emSDK.svlt.ConsoleServerPort=5500 oracle.sysman.eml.mntr.emdRepRAC=FALSE oracle.sysman.emSDK.emd.rt.useMonitoringCred=true oracle.sysman.eml.mntr.emdRepPwdEncrypted=TRUE oracle.sysman.db.isqlplusWebDBAUrl= http\://akira\:5560/isqlplus/dba/dynamic oracle.sysman.emSDK.svlt.ConsoleServerHost=akira oracle.sysman.emSDK.svlt.ConsoleServerHTTPSPort=5500 oracle.sysman.eml.mntr.emdRepServer=akira oracle.sysman.eml.mntr.emdRepSID=AKI1 oracle.sysman.emSDK.sec.ReuseLogonPassword=true oracle.sysman.eml.mntr.emdRepConnectDescriptor= (DESCRIPTION\=(ADDRESS_LIST\= (ADDRESS\=(PROTOCOL\=TCP)(HOST\=akira)(PORT\ =1521)))(CONNECT_DATA\=(SERVICE_NAME\=AKI1))) oracle.sysman.eml.mntr.emdRepUser=SYSMAN oracle.sysman.db.adm.conn.statementCacheSize=2 oracle.sysman.db.perf.conn.statementCacheSize=30 Automatically start and stop the DB-Console $ emctl start dbconsole $ emctl stop dbconsole
$ emctl status dbconsole Oracle Enterprise Manager 10g Database Control Release 10.1.0.2.0 Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved. http://akira:5500/em/console/aboutApplication Oracle Enterprise Manager 10g is running. --------------------------------------------------Logs are generated in directory /opt/oracle/product/10.1.0/akira_AKI1/sysman/log