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>