Changed listener port, now Database Control doesn't work

I changed my Oracle database listener to run on port 6002 (from 1521).
The database comes up, and I can access it via sqlplus, but the Database Control HTML app still thinks the database is on port 1521 and reports that everything is DOWN.
I can't administer the DB from a GUI now...
How can I fix this?
scott_davisAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Fekrat El WehediInfrastructure Architect / Oracle DBACommented:
Try the following steps:
1. Stop DB Control by executing the command emctl stop dbconsole
2. Modify the agent to reflect the new port number. Edit $ORACLE_HOME/<hostname_sid>/sysman/emd/targets.xml
Two entries in this file. One is for the database and another for the listener, each pointing to the default port of 1521.
3. Modify $ORACLE_HOME/<hostname_sid>/sysman/config/emoms.properties to reflect the new port. Two entries have to be modified here as well. emdRepPort and emdRepConnectDescriptor should reflect the new port number.
4. Last but not least start up database console with emctl start dbconsole and verify that you can login successfully.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
scott_davisAuthor Commented:
This is what I get trying step1.
C:\Documents and Settings\Administrator>emctl stop dbconsole
Environment variable ORACLE_SID not defined. Please define it.
0
scott_davisAuthor Commented:
And my $ORACLE_HOME/db_1/sysman/emd/targets.xml file is virtually empty.
Here are the contents:
<?xml version = "1.0"?>
<Targets>
</Targets>
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

scott_davisAuthor Commented:
And there is no emoms.properties file in the directory:
$ORACLE_HOME/<hostname_sid>/sysman/config
(in fact, the directory is empty)
0
scott_davisAuthor Commented:
FYI
Attached is a screnshot of what Database Control looks like
screenshot.jpg
0
Fekrat El WehediInfrastructure Architect / Oracle DBACommented:
When you look for those files you will find them in $oracle_home/db_1/servername.domainname/sysman/emd/targets.xml
similarly when it comes to the emoms.properties file.
0
Fekrat El WehediInfrastructure Architect / Oracle DBACommented:
just a correction to the earlier path
$oracle_home/db_1/servername.domainname_sid/sysman/emd/targets.xml
similarly when it comes to the emoms.properties file.
0
scott_davisAuthor Commented:
Aha!
I see them.
Will try your suggestions and get back shortly.
0
scott_davisAuthor Commented:
Thank you.
Your suggestions worked.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.