Unable To Determine Local Host From URL REPOSITORY_URL

Filed in Linux Tips , Online , Software , Technology 6 comments

How to enable Oracle Enterprise Manager for Oracle 10g Database Control Release 10.2.0.4?

Hey, it easy right. Just type the following command to start the OracleDBConsole:

emctl start dbconsole

But, how about if the following statement came out?

Unable to determine local host from URL REPOSITORY_URL=http://your-url.com.my:%EM_UPLOAD_PORT%/em/upload as shown on picture below:

OracleDBConsole - Unable to determine local host from URL REPOSITORY_URL

Hurm, I don’t wanna say why this error come out but to overcome this error is pretty easy.

The very first thing is, add your machine host name in hosts file:

127.0.0.1       localhost
10.xx.xx.xx  machine-host-name(without "http://")

The location of hosts file (in Windows) is C:\WINDOWS\system32\drivers\etc\hosts

Then, drop current Database Console repository by issuing the following command:

emca -deconfig dbcontrol db -repos drop

Drop Database Console Repository

p/s: Database SID, listener port (default 1521), SYS AND SYSMAN password is required

Wait until “Enterprise Manager configuration completed successfully“. This may take about 10 minutes to drop current Database Console Repository.

Then, we need to create it back with fresh configuration by issuing the following command:

emca -deconfig dbcontrol db -repos create

Create Database Console Repository

p/s: Database SID, listener port (default 1521), SYS, DBSNMP AND SYSMAN password is required

Once Enterprise Manager configuration has been completed successfully, the Database Control URL will be given. In my example, the DBConsole given was http://my-host-machine-name:5500/em

Finally, try to access web OEM via the URL given. It should work.

p/s: I am done all this step on Windows Server 2008, but I thought that this step can be apply to other UNIX base operating system as well.

Posted by Far East   @   12 July 2009 6 comments
Tags : ,
Try us on Wibiya!

Share This Post

RSS Digg Twitter StumbleUpon Delicious Technorati

6 Comments

Comments
Aug 17, 2009
4:23 pm
#1 Rad :

Very helpful information.

Thanks a lot

Author Aug 20, 2009
8:26 am
#2 Far East :

You are welcome Rad, its easy to solve. But we were never think about that..lol.. :D

Nov 12, 2009
4:27 pm
#3 Sven :

Hi,
Thanks for the info, but instead of
emca -deconfig dbcontrol db -repos create

I had to use
emca -config dbcontrol db -repos create

This is on Oracle 10.

Author Feb 2, 2010
5:48 am
#4 Far East :

Thanks Sven for additional info :)

Jan 24, 2011
7:58 pm

Please correct your Repository Creation command from
emca -deconfig dbcontrol db -repos create

to

emca -config dbcontrol db -repos create

Thanks

Trackbacks to this post.
Leave a Comment

Previous Post
«
Next Post
»
Delighted Black designed by Christian Myspace In conjunction with Ping Services   |   French Teacher Jobs   |   Maths Teacher Jobs

Password Reset

Please enter your e-mail address. You will receive a new password via e-mail.