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?
 
FekratConnect With a Mentor Commented:
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
 
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 new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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
 
FekratCommented:
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
 
FekratConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.