Http://localhost:1158/em cannot open 2

Source: Internet
Author: User
Tags metabase

After "Http://localhost:1158/em can't open 1" of some toss, EM still can't access.

So a different way

Original address: http://sjsky.javaeye.com/blog/644197

Oracle 10g replacement of host name or IP causes EM (dbconsole) to start failure solution:

PS: Replaced the host name or IP, if only a simple pl/sql connection database, you can not reconfigure EM,
You only need to change the two files in the Listener.ora and Tnsnames.ora under/oracle/product/10.2.0/db_1/network/admin,
The file: host=**** changed to the corresponding primary key name or IP can be.
If you need to start EM, the above changes will not meet our requirements, and need to reconfigure the relevant information.
->set oracle_sid=ora10g
->emca-repos recreate
...........
Enter the following information:
Database sid:ora10g
Listener Port number: 1521
SYS User's password:
Sysman User's password:
Do you want to continue? [Yes (Y)/no (N)]: Yes
...........
->emca-config Dbcontrol DB
Enter the following information:
Database sid:ora10g
Database control has been configured for DB ora10g
You have chosen to configure database control to manage databases ora10g
This action will remove the existing configuration and default settings and perform the configuration again
Do you want to continue? [Yes (Y)/no (N)]: Yes
Listener Port number: 1521
SYS User's password:
DBSNMP User's password:
Sysman User's password:
Email address of the notification (optional):
Notification of the outgoing (SMTP) server (optional):
-----------------------------------------------------------------
The following settings are specified
The database Oracle_home ... ... d:/oracle/product/10.2.0/db_1.....
Database host name .......... MICROSOF-029
Listen to the program port number ....... 1521
Database SID ... ora10g. ........
e-mail address of the notification ... .....
Notification of the outgoing (SMTP) server ........
-----------------------------------------------------------------
Do you want to continue? [Yes (Y)/no (N)]: Yes
->emctl Start Dbconsole
.....................
If you see the word that the service has started successfully, it means that the reconfiguration was successful.
Command parameters for EMCA
D:/oracle/product/10.2.0/db_1/bin/emca.bat [Action] [mode] [Database type] [tags] [parameters]
-H | --h | -help | --help: Print this help message
-version: Print Version
-config Dbcontrol DB [-repos (Create | recreate)] [-cluster] [-silent] [-backup][parameters]: Metabase Control for configuration database
-config centralagent (db | asm) [-cluster] [-silent] [parameters]: Configuration Center agent Management
-config all DB [-repos (Create | recreate)] [-cluster] [-silent] [-backup] [parameters]: Configure Database control and central agent management

-deconfig Dbcontrol DB [-repos drop] [-cluster] [-silent] [parameters]: Cancel configuration of the Database control
-deconfig centralagent (db | asm) [-cluster] [-silent] [parameters]: Canceling Configuration center agent Management
-deconfig all DB [-repos drop] [-cluster] [-silent] [parameters]: Canceling configuration of Database control and central agent management

-addinst (db | asm) [-silent] [parameters]: Configuring EM for a new RAC instance
-deleteinst (db | asm) [-silent] [parameters]: Canceling configuration of EM for the specified RAC instance

-reconfig ports [-cluster] [parameters]: Re-assign the Database control port
-reconfig Dbcontrol-cluster [-silent] [parameters]: Reconfiguring the RAC Database control deployment

-displayconfig Dbcontrol-cluster [-silent] [parameters]: Displays information about the RAC Database control configuration

-upgrade (db | asm | db_asm) [-cluster] [-silent] [parameters]: Upgrade the lower version of the EM configuration to the current version

-restore (db | asm | db_asm) [-cluster] [-silent] [parameters]: Restore the current version of the EM configuration to a lower version

Parameters and Options:
[Parameters]: [-respfile filename] [-paramname paramvalue]*
DB: Configuring operations on databases (including databases that use ASM)
ASM: Configure operations only on ASM instances
Db_asm: Perform an upgrade/restore operation on the database and ASM instances
-repos Create: Creating a new Database Control data archive
-repos drop: Delete the current database control data archive
-repos recreate: Delete the current database control data archive and recreate a
-cluster: Performing configuration operations on the RAC database
-silent: Perform a configuration operation without prompting for parameters
-backup: Configure automatic backup of the database

Parameters for Single Instance database
Host: Database host name
SID: Database Sid
PORT: Listener Port number
Oracle_home: Database Oracle_home
Host_user: Host user name for automatic backup
HOST_USER_PWD: Host user password for automatic backup
Backup_schedule: Automatic backup scheduling (hh:mm)
Email_address: Email address of the notification
MAIL_SERVER_NAME: Notification of the outgoing (SMTP) server
Asm_oh:asm Oracle_home
Asm_sid:asm SID
Asm_port:asm Port
Asm_user_role:asm User Role
ASM_USER_NAME:ASM User Name
Asm_user_pwd:asm User Password
Src_oh: Oracle_home of the database to be upgraded
DBSNMP_PWD:DBSNMP User's password
Sysman_pwd:sysman User's password
Sys_pwd:sys User's password
Dbcontrol_http_port:database Control HTTP Port
Agent_port:em Proxy Port
RMI Port for Rmi_port:database control
Jms_port:database control's JMS port

Additional parameters for the cluster database
Cluster_Name: Cluster Name
Db_unique_name: Unique name of the database
SERVICE_NAME: Service Name
Em_node:database Control Section Roll Call
Em_sid_list: Proxy SID list [comma delimited]

Some common commands for EMCA
PS: Set the ORACLE_SID environment variable first
Emca-repos create creates an EM repository
Emca-repos recreate rebuild an EM database
Emca-repos drop deletes an EM repository
Database control for the Emca-config Dbcontrol DB metabase
Emca-deconfig Dbcontrol DB Delete Database control configuration
Emca-reconfig ports to reconfigure the DB control port, the default port is 1158
Emca-reconfig Ports-dbcontrol_http_port 1160
Emca-reconfig Ports-agent_port 3940

Emctl Start dbconsole boot EM console service
Emctl Stop Dbconsole stops the EM console service
Emctl status Dbconsole View the state of the EM console service

Steps to configure Dbconsole
Emca-repos Create
Emca-config Dbcontrol DB
Emctl Start Dbconsole

To reconfigure Dbconsole
Emca-repos Drop
Emca-repos Create
Emca-config Dbcontrol DB
Emctl Start Dbconsole

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.