How to change the Host name for OEM screen in Oracle 10g
The host name earlier was servername.abc.net , but now it should be only servername .
When I go to the web based OEM or DB Control in Oracle 10g, it shows the OEM screen. On the same screen I see the error
java.lang.Exception: UnknownHostException sending request :: servername.abc.net
I want the host name to be servername not servername.abc.net
Which oracle file needs to be changed..?
This is something that is tied up on the application server install. When you install, oracle would pick up the hostname.domain as your url. It all depends on the default hostname on the server. I encountered somewhat a similar problem on iAS 10g install, and the solution was to set the default hostname properly. If you are very desperate to change the host information, my suggestion is to consult the Oracle. Metalink has a script to change the hostname information for iAS. You may want to take a look into it to see what are all the XML files you have to make the changes on to.
Life is a journey, not a destination!
You can delete the target in grid control, edit the agent targets.xml (take a backup first) and then bounce the agent and rediscover it in grid. Please note this may not work, the agent has a habit of rewriting parts of the targets.xml when you bounce it. Also, when you discover the target again in grid manually, i believe you can call it what you like. Try it out on a test server first.
I suspect a similar set of steps for database control, but I don't use it so couldn't be sure.
Click Here to Expand Forum to Full Width