I was trying to configure database console on one 10g db on Linux box.

When I configured the dbconsole, the db port is 1521 and the hostname used the real machine name. I was trying to change the port to 1545 and using the VIP name (easy to remember).

It seems kinda messed up. I want to drop it and then recreate it.

When I use

emca -deconfig dbcontrol db -repos drop


emca -config dbcontrol db -repos recreate

always failed.

Is there any other better way to do this?