This article describes the Oracle 10g OEM General error in detail

Source: Internet
Author: User
Tags time zone names

This article will detail the Oracle 10g OEM general error -------Unknown host specified workaround, you need to know the friend can refer to the following

refer to the detailed source: http://www.jb51.net/article/32135.htm

Reinstall the Oracleon the notebook,after the installation is complete, the OEM console can be used , but log off after logging back or restart the system after logging in, or the notebook using the network environment has changed, you may encounter problems. These problems encountered the solution used, but long time no toss forget, today put these problems and solutions recorded here.

1, the network environment changes cause unable to start

The phenomenon of this problem is that OEMscannot be started. Use the command line as follows:

Copy the code code as follows :

C:/users/administrator>set Oracle_sid=test

C:/users/administrator>emctl Stop Dbconsol

Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0

Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.

Http://IP:1158/em/console/aboutApplication

.....

ip Address) is changed, resulting in oracle ip address construction oem address, not the one you installed ip http://ip:1158/em

google Search method reconstruction oem But this is a tedious and lengthy approach, And often encounter inexplicable mistakes.  

I use the simplest solution is to modify the $ORACLE _home/bin/emctl.bat file, open this file, at the beginning of the file or the appropriate location (for example, my is in the line setlocal after that) add the following 2 Line code:

Copy the code code as follows :

Set Oracle_sid=test

Set Oracle_hostname=laidye

Note thatthe Oracle_hostname will be set to the name of the ORACLE read and set when you initially installed, and install the oem in no network environment is often the name of your computer, you can see $ORACLE _home/hostname_sid this folder. This way, no matter how the network environment you use changes, you can start the OEM normally .

2, after landing page display error

2.1, error java.lang.Exception:Exception in sending Request:: null

The root cause of this problem is the time zone setting problem, and the workaround is to modify the time zone of the configuration file.

Stop the OEM, then open the $ORACLE _home/hostname_sid/sysman/config/emd.properties, and the last line

Agenttzregion=gmt

Change into

Agenttzregion=asia/shanghai

Specific time zone names can be viewed $ORACLE _home/sysman/admin/supportedtzs.lst or via data query Select tzname from V$timezone_ Names

In general, this setting is complete and then restarted. You may also encounter this error: Database error Io exception : Unknown host specified

2.2, database error Io exception : Unknown host specified

If this is the case, then manually register the configuration under the new configured time zone parameter, using the following command:

Copy the code code as follows :

Set Oracle_sid=youdbsid

Emctl Stop Dbconsole

Emctl Config Agent Gettz

Emctl Start Dbconsol

-the end-

Related Article

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.