While running “datapatch -verbose”, the following errors occur:
$ ./datapatch -verbose ... .. .
Unsupported named object type for bind parameter at /u01/app/oracle/product/19.0.0/dbhome_1/sqlpatch/sqlpatch.pm line 5827.
Please refer to MOS Note 1609718.1 and/or the invocation log /u01/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_52411_2025_01_01_10_37_20/sqlpatch_invocation.log for information on how to resolve the above errors.
Check line 5827 of file “/u01/app/oracle/product/19.0.0/dbhome_1/sqlpatch/sqlpatch.pm”:
This post demonstrate how to discover your Autonomous Database in OEM.
Here EM Agent on OMS (Oracle Management Service ) is used to remotely monitor the Autonomous Database ( ADB ).
Prerequisites
1. In this example an ADW will be discovered and monitored by the on-premise OEM by using OMS central agent for convenience .
2. Connect to the Autonomous Database (via Database Actions or SQL Developer) and unlock ADBSNMP user account.
SQL> alter user adbsnmp identified by "<password>" account unlock;
3. Check adbsnmp user and grant additional privileges required for ADB monitoring to the ADB_MONITOR role and then grant to ADBSNMP user, if not yet.
SQL> grant create session,select_catalog_role,select any dictionary to ADB_MONITOR;
SQL> grant ADB_MONITOR to adbsnmp;
4. Download Client Credential Wallet from Autonomous Database.
5. Configure Network Rules for communication between EM and ADB.
Network Requirement
Source
Destination
Port
Protocol
ADBSNMP Monitoring
Remote Agent Host
Autonomous Database Target
1521/1522
TCP
Upload to EM
Remote Agent Host
Oracle Management Service (OMS) Host
4903
TCP
Comm with Agent
Oracle Management Service (OMS) Host
Remote Agent host
3872
TCP
Verify from Remote Agent Host that you can access the DB service and EM Upload port:
$ telnet adb 1522
Trying xx.xx.xx.xx
Connected to adb
Escape character is '^]'.
$ telnet oem 4903
Trying xx.xx.xx.xx...
Connected to oem.
Escape character is '^]'.
6. Check for additional requirements for Service Gateway and IAM policies that are required for monitoring Autonomous Database in EM.
This step is not required here since we make use of on-premise OEM and its central agent.
Allow group EMGroup to manage autonomous-database in compartment <compartment_for_Autonomous_Database>
Allow group EMGroup to read resource-availability in compartment <compartment_for_Autonomous_Database>
Allow group EMGroup to read limits in compartment <compartment_for_Autonomous_Database>
Allow group EMGroup to manage orm-stacks in compartment <compartment_for_EM_stack>
Allow group EMGroup to manage instance-family in compartment <compartment_for_EM_stack>
Allow group EMGroup to manage volume-family in compartment <compartment_for_EM_stack>
Allow group EMGroup to manage load-balancers in compartment <compartment_for_EM_stack>
Allow group EMGroup to manage virtual-network-family in compartment <compartment_for_EM_stack>
Allow group EMGroup to manage file-family in compartment <compartment_for_EM_stack>
Allow group EMGroup to manage autonomous-database-family in compartment <compartment_for_EM_stack>
Allow group EMGroup to manage orm-jobs in compartment <compartment_for_EM_stack>
Allow group EMGroup to read resource-availability in compartment <compartment_for_EM_stack>
Allow group EMGroup to read limits in compartment <compartment_for_EM_stack>
We changed WebLogic user password for enforcing security principal, then WebLogic domain targets show down on OEM. Hence we need update the monitoring credentials on OEM for WebLogic domain.
1) Verify the correct Admin Server hostname and password are correct:
EM Console > Middleware Targets > click the WebLogic Domain > WebLogic Domain dropdown menu > choose WebLogic Server Administration Console
Log in with this username/password
and note the Administration Server hostname as indicated in
- the url at the top of the page > https://<AdminServerFQDN>:<port>/console/...
and/or
- under Servers > AdminServer(admin) > Machine column shows Administration Server hostname
This step is necessary only if this WebLogic Domain is monitored by multiple agents: 2) Put the WebLogic Domain target under blackout: Monitoring > Blackouts > Create… > > choose “Blackout” (Create) Choose “Enable Full blackout…” Add the WebLogic Domain target (select)
3) Modify the password for the WebLogic Server Administr Server using the hostname and password verified in step 1
There are 2 possible ways to navigate to the Monitoring Credentials in EM:
Setup (top right) > Security > Monitoring credentials > choose Oracle WebLogic Domain and click “Manage Monitoring Credentials” > choose the Domain and “Set Credentials” The is Domain and Node Manager credentials are set in separate places here Test and Save configuration
or
From the WebLogic Domain’s Home Page > under WebLogic Domain dropdown men > choose Target setup > Monitoring Credentials Both the Domain and Node Manager credentials are set on the same page Test and Save configuration
This step is necessary only if step 2 was implemented: 4) If Blackout has not already expired,
Monitoring > Blackouts > View by Blackout Name > choose blackout and “Stop”
5) Refresh WebLogic domain. From WebLogic Domain home page > WebLogic Domain dropdown > choose “Refresh WebLogic Domain”
EM 13c: Updating Monitoring Credentials For WebLogic Domain Target shows “Password at Management Agent does not match error” (Doc ID 2610563.1)