| Doc ID: | 863631.1 | Type: | FAQ | |
| Modified Date : | 28-JUL-2009 | Status: | PUBLISHED | |
In this Document
Purpose
Questions and Answers
What is Oracle Enterprise Manager Database Control / DB Console?
How do I get dbconsole software?
How to install Enterprise manager database control software if not installed by default or is corrupt?
How many databases can be monitored using database control?
How many database console can be configured per server?
Where is the repository of database console hosted?
Is it possible to have database console repository in separate database?
How to create/configure database control?
How to access Dbconsole?
How to start dbconsole?
How to stop dbconsole?
How to check status of different components of database console?
What are the default ports used by database console?
What are different EMCA commands available?
How to change the default timeout session in dbconsole.
Where are the configuration files stored under oracle home?
What are important configuration files for dbconsole?
What is monitoring user for database console?
How to change dbsnmp password?
How to change the dbconsole repository SYSMAN user password?
How to change Dbconsole language to English?
How to change dbconsole related ports in 10.1 database?
How to change dbconsole related ports in 10.2 database?
Is it possible to configure database console for a database running on Active/Passive High Availability Environments? and how ?
While dropping and creating the database console do I need down time on production databases?
What action needs to be taken if the hostname or SID of the database server is changed?
Where are dbconsole files located and how to manage dbconsole log files?
How to reconfigure database console configuration files without loosing configuration information within the repository?
Is it possible to run emca command in silent mode? and how ?
How to Trace / Debug the EMCA Tool in 10g and 11g
What should be done if the hostname is changed where DBConsole is running? Or Why Dbconsole stops working if the hostname/domain name is changed?
How to run EMCA commands I silent mode?
How to setup Database Control for SSL (HTTPS) secure connection?
How to change password of MGMT_VIEW user for database console?
How dbconsole is deployed on RAC database having multiple instances?
What is the difference between 10.1 Dbconsole and 10.2 Dbconsole?
How to check Dbconsole configuration using emca? Or How to find the Dbconsole upload host in cluster Dbconsole configuration?
How remove an instance from DB Control monitoring?
How to add an instance to RAC DB Control monitoring?
How to drop DB Control configuration file keeping the repository?
How to set preferred credentials from dbconsole.
How to define blackout in dbconsole
How to enable/disable Management Pack from Dbconsole?
How to launch iSQL*Plus from DBconsole?
How to monitor Alert Log Content from dbconsole?
How to verify Database Console is installed and configured under oracle_home?
References
Applies to:
Enterprise Manager Grid Control - Version: 10.2.0.1 to 11.1.0.7Information in this document applies to any platform.
Purpose
This document addresses the frequently asked questions related to Enterprise Manager Database console.Questions and Answers
What is Oracle Enterprise Manager Database Control / DB Console?
Oracle Enterprise Manager Database Control (DBConsole) is the Web-based interface for managing an Oracle database. The Web-based Database Control is the primary tool for managing your Oracle database. It is installed with the database. Using Database Control, you can perform administrative tasks such as creating schema objects (tables, views, indexes, and so on), managing user security, managing database memory and storage, backing up and recovering your database, and importing and exporting data. You can also view performance and status information about your database. It does provide a full set of administration and monitoring tools that allow administrators to quickly and effectively monitor and administer a single Oracle database environment (host server, listener and database). Along with the Database console following components are installed.
* A web-based console that provides a GUI interface.
* A local version of the management service that works with the local database.
* A local version of the management repository. The repository is installed in the local database, which is used to contain configuration and historical information for one, single database environment.
* A local version of the management agent that sends monitoring data to the local management service.
How do I get dbconsole software?
Dbconsole software is shipped along with the database installation, no separate software is required for Database control. Along with Standard database installation “Oracle Enterprise Manager Console DB 10.2.0.x.0” component is installed which brings in the database console software.How to install Enterprise manager database control software if not installed by default or is corrupt?
1. Run the latest Oracle Installer that is installed on the server.2. Select the products.xml from the original RDBMS software distribution and the existing RBDMS Oracle Home when prompted.
3. Use the 'Custom' installation method and select the Enterprise Manager, Database Control component. Proceed with the install.
4. After installation has succeeded, install the latest patchset once again. You need not perform any post-installation tasks if the patchset was applied previously.
5. Enterprise Manager can be configured for each database using <ORACLE_HOME>/bin/emca.
Refer Note 343977.1 How To Install DB Control Software In a 10g Database Oracle Home If Not Previously Installed or Overwritten By A Patchset
How many databases can be monitored using database control?
Only one database can be monitored using database console. Db console is configured for one database and can manage the same database for which it’s configured. It’s not possible to have multiple databases in single database console. To monitor multiple databases using single console need to use Enterprise Manager Grid control.How many database console can be configured per server?
The DB Control has a limitation of 19 Database Control per machine, due to port conflicts with the AGENT_PORT, DBCONTROL_HTTP_PORT, RMI_PORT and JMS_PORT. Follow the workaround as per Note 353857.1 How To Configure More Than 19 Db Control Consoles Per Machine?to configure more that 19 database console on a host.
Where is the repository of database console hosted?
Dbconsole repository is created in the same database under SYSMAN schema. SYSMAN user is the repository owner and is the super user for database console administration.Is it possible to have database console repository in separate database?
NO, It’s not possible to host the database console repository in separate database. Emca command creates the dbconsole repository in same database by default and there is no way to change this.How to create/configure database control?
Database console can be configured for the database using DBCA UI tool and emca command line utility. Using DBCA one can configure the database to create/drop database console. Emca (Enterprise Manager Configuration Assistant) is command line utility, which has all the option to configure/create/drop database console. To configure database control using emca referNote 278100.1 How To Drop, Create And Recreate DB Control In A 10g Database.
How to access Dbconsole?
Dbconsole can be accessed using the URL from browser. By default the URL is of following format:http://hostname:<port>/em/
or
https://hostname:<port>/em/Dbconsole URL can be accessed using both http and https, in 10.2 and 11g database console is secured by default and the URL is https by default. To get the exact URL one can adopt any of follow methods:
- Get the dbconsole URL using the command
ORACLE_HOME/bin/emctl status dbconsole
[bin]$ ./emctl status dbconsole
TZ set to US/Central
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://hostname:5500/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------- Check the parameter REPOSITORY_URL in the file ORACLE_HOME/<hostname_SID>/sysman/config/emd.propeties
REPOSITORY_URL=http://hostname.oracle.com:1158/em/upload/How to start dbconsole?
On Unix1. Set the ORACLE_HOME and ORACLE_SID
$ export ORACLE_HOME=<oralce home path>
$ export ORACLE_SID=<SID>
2. Start the dbconsole
$ ORACLE_HOME/bin/./emctl start dbconsole1. Set the ORACLE_HOME and ORACLE_SID
cmd> set ORACLE_HOME=<oralce home path>
cmd> set ORACLE_SID=<SID>
2. Start the dbconsole
cmd> ORACLE_HOME\bin\emctl start dbconsoleHow to stop dbconsole?
On Unix1. Set the ORACLE_HOME and ORACLE_SID
$ export ORACLE_HOME=<oralce home path>
$ export ORACLE_SID=<SID>
2. Start the dbconsole
$ ORACLE_HOME/bin/./emctl stop dbconsoleOn Windows
1. Set the ORACLE_HOME and ORACLE_SID
cmd> set ORACLE_HOME=<oralce home path>
cmd> set ORACLE_SID=<SID>
2. Start the dbconsole
cmd> ORACLE_HOME\bin\emctl stop dbconsoleHow to check status of different components of database console?
Following commands can be used to check the status of database console and agent.Check the status of dbconsole
ORACLE_HOME\bin\emctl status dbconsoleORACLE_HOME\bin\emctl status agentWhat are the default ports used by database console?
DB Control UI10gR1 10gR2
5500 1158
DB Control Agent
10gR1 10gR2
1830 3938
DB Control Remote Method Invocation (RMI)
10gR1 10gR2
5520
Refer Note 235298.1 Overview of Default Ports Usd by EM 10g Grid Control, DB Control and AS Control
What are different EMCA commands available?
For all the commands available with 10g refer Note.330130.1 Overview Of The EMCA Commands Available for DB Control 10.2 Installations:How to change the default timeout session in dbconsole.
1. Stop the dbconsole$ emctl stop dbconsole2. Take a backup of emoms.properties file under $ORACLE_HOME/<hostname_sid>/sysman/config directory and add the following line:
oracle.sysman.eml.maxInactiveTime=<time in minutes>3. Update the WEB.xml in the $ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/em/em/WEB-INF with:
<session-config><session-timeout>-1</session-timeout></session-config>
-1 means no timeout
Any positive number means a number of minutes before the session gets logged out.4. Then restart dbconsole.
emctl start dbconsoleWhere are the configuration files stored under oracle home?
All the dbconsole configuration files are stored under the directory named <hostname_SID> where hostname is the hostname of the server and SID is the SID of the database. This directory is created under oracle_home during dbconsole creation. All the configuration and xml files are present under this directory for a dbconsole configuration. Also one unique <hostname_sid> directory exists for each of the database console under oracle_home. If there are 2 database running under same oracle_home then there are two directory created namely:Hostname_SID1
Hostname_SID2
What are important configuration files for dbconsole?
emd.properties under ORACLE_HOME/<hostname_sid>/sysman/config/This file contains all the operational parameters for the dbconsole Agent. For more details on this file refer to Note 235290.1 Understanding the Enterprise Manager Management Agent 10g 'emd.properties' File:
emoms.properties under ORACLE_HOME/<hostname_sid>/sysman/config/
This file contains all the operational parameters for the Dbconsole Management Service.
emomslogging.properties under ORACLE_HOME/<hostname_sid>/sysman/config/
This file holds the logging mode for Dbconsole service.
targets.xml under ORACLE_HOME/<hostname_sid>/sysman/emd/
This file contains the definition of targets like host, listener and database.
What is monitoring user for database console?
By default DBSNMP is the monitoring user for database console. This user is used by database console agent to connect to the database and collect default metrics. The DBSNMP user is created during database creation and should be solely used as monitoring user for database console.How to change dbsnmp password?
To change the database console monitoring user dbsnmp password refer to the steps described in Note 259387.1 How to Change the Password of the 10g Database User Dbsnmp:How to change the dbconsole repository SYSMAN user password?
To change SYSMAN user password need to follow some additional steps to update dbconsole configuration files. Refer to Note 259379.1 How to change the password of the 10g database user sysman for detail instructions on how to change sysman user password.How to change Dbconsole language to English?
Some information visible in dbconsole is based on the client browser setting (indeed the operating system language, namely, if the browser is used from a windows client).Even having everything switched to English the information in the dbconsole is shown translated into the OS language, even if the underlying info (from database table) is given in English as well;
To change the language to English refer Note 370178.1 How To Change The DB Console Language To English:
How to change dbconsole related ports in 10.1 database?
To change dbconsole ports in 10.1 refer to Note 289966.1 - How to Change the Port Numbers for DB Control 10.1.x.xHow to change dbconsole related ports in 10.2 database?
To change dbconsole ports in 10.2 refer Note 395755.1 - How to change ports for DB Control 10.2.x.xIs it possible to configure database console for a database running on Active/Passive High Availability Environments? and how ?
Yes starting from 10.2.0.2 and above dbconsole can be configured for databases running on Active/Passive High Availability Environments. Refer to note for configuration steps. Note 362524.1 - Configure DB Control 10.2, 11g for use in Active/Passive High Availability EnvironmentsWhile dropping and creating the database console do I need down time on production databases?
The emca command, when recreating or dropping the repository, requires the database to be quiesced. This means that, temporarily, no operations are possible on the database and new users cannot login.If there are active sessions on the database at the time the quiesce operation will hang pending their completion, during which time no new users will be able to connect.
Therefore it is important to understand that running these commands may/will cause the database to be unavailable during the time that the repository is being dropped and should not be run on a production database unless you are fully aware of the possible impact to database availability and have planned for this eventuality
Refer Note 375946.1 Running EMCA Results in Database quiesce And No New connections or Operations Can Be Performed During the DB Control Repository Creation
What action needs to be taken if the hostname or SID of the database server is changed?
If there is a hostname or SID change for the database server then the database console needs to be recreated. There is no other solution if the hostname or SID is changed other that recreating the database console. All database console configuration files are created under the hostname_sid directory and the configuration files along with the repository keeps reference of the hostname, which is why dbconsole needs to be reconfigured if there is change in hostname/sid.Refer : Note 293678.1 How To Reconfigure DB Control After a Hostname, Domain name or Listener Change Has Occurred On The Server
Where are dbconsole files located and how to manage dbconsole log files?
Dbconsole log files are located at $ORACLE_HOME/<hostname>_<sid>/sysman/log/To manage these log files refer Note 452284.1 How to manage DB Console Log and Trace files
How to reconfigure database console configuration files without loosing configuration information within the repository?
Yes it is possible to reconfigure only the configuration files without loosing database console repository database. For detail steps refer Note 419484.1 How To Reconfigure Dbcontrol Configuration Files Without Losing The Repository Data (i.e. Jobs, etc)Is it possible to run emca command in silent mode? and how ?
Use emca commands can be executed in silent mode by passing the variables in response file. For details refer Note 344502.1 How To Run EMCA In Silent Mode By Using the -Silent and -RespFile OptionsHow to Trace / Debug the EMCA Tool in 10g and 11g
For tracing emca tool refer Note 330689.1 How to Trace / Debug the EMCA Tool in 10g and 11gWhat should be done if the hostname is changed where DBConsole is running? Or Why Dbconsole stops working if the hostname/domain name is changed?
DB Control is the standalone management tool for a 10g Database. The configuration files and repository used by DB Control contain specific information about the database, host and listener. If the Hostname, Domain name, or Listener configuration changes after an installation, DB Control may consider those targets as being down or unavailable because it doesn't know about the new names or configuration. For this reason, you may have to (from time-to-time) recreated the DB Control configuration files and repositoryRefer Note 293678.1 How To Reconfigure DB Control After a Hostname, Domain name
or Listener Change Has Occurred On The Server
How to run EMCA commands I silent mode?
EMCA can use a response file to populate the required values. By using a response file, you can basically run EMCA in silent (non-interactive) mode.Create a response file that includes the values to be passed to EMCA. The file can be named any name that follows standard file naming procedures. For example how to run the command Refer Note 344502.1 How To Run EMCA In Silent Mode By Using the -Silent and -RespFile Options
How to setup Database Control for SSL (HTTPS) secure connection?
In 10.2 the database console is secure by default, but if it’s required to secure and unsecure the database console manually use following commands;To secure dbconsole
emctl secure dbconsole
To Unsecure dbconsole
emctl unsecure dbconsole
For more details refer Note 276950.1 How to setup Enterprise Manager Database Control for SSL (HTTPS) secure connection
How to change password of MGMT_VIEW user for database console?
MGMT_VIEW is an internal user used by database console for which the password is set at the time of dbconsole configuration. Normally there is no need to reset the password for this user as its never required and known to external user. If for any specific issue it’s required to change MGMT_VIEW password then follow the steps mentioned inNote 455450.1 How To Change the 10.2 Database Control MGMT_VIEW Password
How dbconsole is deployed on RAC database having multiple instances?
In 10.2.x.x DB Control on a RAC cluster with n nodes, a dbconsole is installed only on the node from which the DB Control is deployed. One agent on each node is deployed to reports to that same unique dbconsole management service. It is however possible to later reconfigure the DB Control to have more than one dbconsole started and to have agents reporting to several dbconsole.
In 10.1.x.x a dbconsole is deployed on each node of the cluster. Each agent on each node reported to each dbconsole management service on the same node.
What is the difference between 10.1 Dbconsole and 10.2 Dbconsole?
In 10.1.x.x, when a DB Control was deployed on a RAC cluster with n nodes, a dbconsole was started on each node of the cluster. Each agent on each node reported to each dbconsole management service on the same node.In 10.2.x.x, to improve performance and reduce the workload on the RAC database/instances,when a DB Control is first deployed on a RAC cluster with n nodes, a dbconsole is started only on the node from which the DB Control is deployed. Each agent on each node reports to that same unique dbconsole management service.
It is however possible to later reconfigure the DB Control to have more than one dbconsole started and to have agents reporting to several dbconsole.
How to check Dbconsole configuration using emca? Or How to find the Dbconsole upload host in cluster Dbconsole configuration?
To check the DB Control configuration on the cluster:$emca -displayConfig dbcontrol -cluster
INFO:
**************** Current Configuration ****************
INSTANCE NODE DBCONTROL_UPLOAD_HOST
---------- ---------- ---------------------
EM1021 node1 node1.mycompany.com
EM1022 node2 node1.mycompany.com
EM1023 node3 node1.mycompany.comHow remove an instance from DB Control monitoring?
If you plan to remove an instance from the RAC database, you must first remove the instance from DB Control monitoring.You can also remove an instance from DB Control monitoring simply because you are not interested to monitor this particular instance.
Removing an instance from DB Control monitoring does not remove the instance from the RAC database.
This command can be run from any node in the cluster, except from the node from where runs the instance for which we want to stop the monitoring.
For example if we want to stop monitoring the instance on node2, we can run the following command either from node1 or from node3:
$ emca -deleteInst db
Enter the following information:
Node name: node2
Database unique name: EM102
Database SID: EM1022Refer Note 395162.1 How to manage DB Control 10.2 for RAC Database with emca
Remove an instance from DB Control monitoring
How to add an instance to RAC DB Control monitoring?
If you have added an instance to the RAC database and if you plan to monitor it with the DB Control, you must add the instance to DB Control monitoring.$ emca -addInst db
Enter the following information:
Node name: node2
Database unique name: EM102
Database SID: EM1022Add an instance to DB Control monitoring
How to drop DB Control configuration file keeping the repository?
$ emca -deconfig dbcontrol db -clusterEnter the following information:
- Database unique name
This emca command does the following:
- stop the DB Control (dbconsole, agent) on all nodes of the cluster
- remove all DB Control related directories on all nodes of the cluster
Refer Note <395162.1> How to manage DB Control 10.2 for RAC Database with emca
Drop DB Control keeping the repository
How to set preferred credentials from dbconsole.
1. Login to the database console from browser.2. Go to Preferences at the top of the Database Home page.
3. Click on Preferred Credentials in the left hand pane.
4. Here the preferred credentials screen will appear for the database host and listener targets.
5. Click on Set Credentials column corresponding to each of the target and fill in the credentials.
6. After filling the credentials Click on test, if test is successful click on Apply.
How to define blackout in dbconsole
1. Login to the dbconsole as administrator user.2. Click on Setup.
3. Click on Blackout in the left pane.
4. Click on the Create Button to launch the blackout creation Wizard.
5. Enter the blackout name, select the target and click on Next.
6. Define the blackout schedule on the schedule step and click on Next.
7. Review the settings and click on Finish button. You will receive confirmation message for the blackout created.
8. Later you can view the blackout settings from the blackout page clicking on the
Viewbuttton.
How to enable/disable Management Pack from Dbconsole?
To control Management Pack Access go to Setup -> Management Pack Access.Select appropriate option and click on Apply. With 10G Dbconsole following management packs are available.
Database Diagnostics Pack
Database Tuning Pack
Database Configuration Pack
How to launch iSQL*Plus from DBconsole?
iSQL*Plus can be launched directly from dbconsole. Go to the DBconsole home page and click on the link ‘iSQL*Plus’ under ‘Related Links’. Note that iSQL*Plus service should be running.How to monitor Alert Log Content from dbconsole?
Latest entries in alert log file can be monitored using dbconsole. Go to Dbconsole Home page and click on "Alert Log Content" under "Related Links". The page launches the alert log content with most recent alert log entries. On this page there is search option by start and end date.How to verify Database Console is installed and configured under oracle_home?
- Check output of "opatch lsinventory -detail" and following components should be installed.Enterprise Manager Agent Core
Enterprise Manager Agent DB
Enterprise Manager Baseline
Enterprise Manager Common Files
Enterprise Manager Minimal Integration
Enterprise Manager plugin Common Files
Enterprise Manager plugin Common Files
Enterprise Manager Repository Core
Enterprise Manager Repository DB
If above components are installed it means the Dbconsole software is installed,
- Check the presence of <hostname_sid> under oracle_home and OC4J_DBConsole_<hostanme>_<SID> under oracle_home/oc4j/j2ee, which confirm the dbconsole is configured for particular database.
References
Note 235290.1 - Understanding the Enterprise Manager Management Agent 10g 'emd.properties' FileNote 235298.1 - Overview of Default Ports Used by EM 10g Grid Control, DB Control and AS Control
Note 259379.1 - How to change the password of the 10g database user sysman
Note 259387.1 - How to Change the Password of the 10g Database User Dbsnmp
Note 276950.1 - How to setup Enterprise Manager Database Control for SSL (HTTPS) secure connection
Note 278100.1 - How To Drop, Create And Recreate DB Control In A 10g Database
Note 289966.1 - How to Change the Port Numbers for DB Control 10.1.x.x
Note 293678.1 - How To Reconfigure DB Control After a Hostname, Domainname or Listener Change Has Occurred On The Server
Note 330689.1 - How to Trace / Debug the EMCA Tool in 10g and 11g
Note 343977.1 - How To Install DB Control Software In A 10g Database Oracle Home If Not Previously Installed or Overwritten By A Patchset
Note 344502.1 - How To Run EMCA In Silent Mode By Using the -Silent and -RespFile Options
Note 353857.1 - How To Configure More Than 19 Db Control Consoles Per Machine?
Note 362524.1 - Configure DB Control 10.2, 11g for use in Active/Passive High Availability Environments
Note 375946.1 - Running EMCA Results in Database quiesce And No New Connections or Operations Can Be Performed During the DB Control Repository Creation
Note 395162.1 - How to manage DB Control 10.2 for RAC Database with emca
Note 395755.1 - How to change ports for DB Control 10.2.x.x
Note 419484.1 - How To Reconfigure DBControl Configuration Files Without Losing The Repository Data (ie. Jobs, etc)
Note 452284.1 - How to manage DB Console Log and Trace files
Note 455450.1 - How To Change the 10.2 Database Control MGMT_VIEW Password
ไม่มีความคิดเห็น:
แสดงความคิดเห็น