Recived the following error while adding a database(which was removed earlier)through Oracle Grid Control 10.2.0.5.
Database Instance Configuration Result
TESTA:
java.sql.SQLException: ORA-20600: The specified target is in the process of being deleted.(target name = TESTA)(target type = oracle_database)(target guid = 48BA0AB2565D68E6437E6F5062A7426F) ORA-06512: at "SYSMAN.TARGETS_INSERT_TRIGGER", line 46 ORA-04088: error during execution of trigger 'SYSMAN.TARGETS_INSERT_TRIGGER' ORA-06512: at "SYSMAN.EM_TARGET", line 2117 ORA-06512: at "SYSMAN.MGMT_TARGET", line 2701 ORA-06512: at line 1
SQL> select TARGET_NAME from mgmt_targets_delete;
TARGET_NAME
-----------
TESTA
The above entry needs to be deleted.For the purose we tried executing the below script, which resulted in an error.
SQL> begin
2 mgmt_admin.delete_target('TESTA','oracle_database');
3 end;
4 /
begin
*
ERROR at line 1:
ORA-20206: Target does not exist:
ORA-06512: at "SYSMAN.MGMT_ADMIN", line 462
ORA-06512: at "SYSMAN.MGMT_ADMIN", line 624
ORA-06512: at line 2
After some google search we could find another proc to achieve the required.
SQL> begin
2 mgmt_admin.delete_target_internal('TESTA','oracle_database');
3 end;
4 /
PL/SQL procedure successfully completed.
SQL>
Once this was done, we were able to add a new database Grid Control Target.
No comments:
Post a Comment