How to change oracle report server name ?

for example, my report server was rep_appserver, then i want to rename it to rep_test.

Here some step to accomplish it,

1.   stop mid-tier
$ORACLE_HOME\opmn\bin\opmnctl stopall

2.   stop em website
$ORACLE_HOME\bin\emctl stop iasconsole

3.   rename $ORACLE_HOME\reports\conf\rep_<old_report_server_name>.conf to something else or delete it

4.   rename $ORACLE_HOME\reports\server\rep_<old_report_server_name>.dat to something else or delete it

5.   edit $ORACLE_HOME\reports\conf\rwservlet.properties file then change the SERVER parameter to new report server name(remember this new name has to be a unique name)

6.   create a backup copy of the $ORACLE_HOME\sysman\emd\targets.xml file

7.   open $ORACLE_HOME\sysman\emd\targets.xml, find old report server name and then replace it to new report server name

8.   save new targets.xml file

9.   open $ORACLE_HOME\opmn\conf\opmn.xml, old report server name and then replace it to new report server name, if you can find it, try to search for opmn.xml in $ORACLE_HOME.

10. start em website
$ORACLE_HOME\bin\emctl start iasconsole

11. start mid-tier
$ORACLE_HOME\opmn\bin\opmnctl startall