Wednesday, May 14, 2014

EM12c: Unable to delete Database System target successfully

Problem: Tried removing Database System target from UI, but it fails with following error in emoms.trc :

 2014-04-23 17:06:28,234 [EMUI_17_06_28_/console/rac/conf/racTargetDelete] ERROR svlt.PageHandler

handleRequest.674 - java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
    at java.util.ArrayList.get(ArrayList.java:352)


Action: If the error continues while removing the Database system target, drop it via command line as given below:

$ cd $OMS_HOME/bin

$ ./emcli login -username=SYSMAN -password=<sysman_passwd>
 

$ ./emcli sync
 

$ ./emcli delete_target -name="<dbsys_name>" -type="oracle_dbsys"
replace <dbsys_name> with the database system target name, as shown in the All targets list.


It should remove database system target properly.