Cloud Control – target/agent cleanup

Se você não conseguir remover um target/agent via console, vá direto no repositório (logue via sysman) e execute:

SQL> select target_name,target_type from mgmt_targets where target_name like ‘FLUIGDB%’;

TARGET_NAME
——————————————————————————–
TARGET_TYPE
—————————————————————-
FLUIGDB-02.cp.totvs.com.br/server
oracle_si_server_map

FLUIGDB-02.cp.totvs.com.br
host

FLUIGDB-02.cp.totvs.com.br:3872
oracle_emd
SQL> exec mgmt_admin.delete_target(‘FLUIGDB-02.cp.totvs.com.br/server’,’oracle_si_server_map’);

PL/SQL procedure successfully completed.

SQL> exec mgmt_admin.delete_target(‘FLUIGDB-02.cp.totvs.com.br’,’host’);

PL/SQL procedure successfully completed.

 

agent cleanup:

SQL> exec mgmt_admin.cleanup_agent(‘FLUIGDB-02.cp.totvs.com.br:3872’);

PL/SQL procedure successfully completed.

SQL>

Author: reguchi

Oracle ACE, OCP 12c, OCE 12c MAA, OCE Exadata, RHCE, AWS CSAA, OCI CSAA. Technology geek, homebrewer, dad.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s