CPM - Common Oracle Database Errors

CPM - Common Oracle Database Errors

327
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 15:55 PM


Symptom



Native error: 12154 Message: [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified
Native error: 12514 Message: [Oracle][ODBC][Ora]ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Native error: 12560 Message: [Oracle][ODBC][Ora]ORA-12560: TNS:protocol adapter error
Native error: 1017 Message: [Oracle][ODBC][Ora]ORA-01017: invalid username/password; logon denied
Native error: 12504 Message: [Oracle][ODBC][Ora]ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
Native error: 28040 Message: [Oracle][ODBC][Ora]ORA-28040: No matching authentication protocol
Native error: 922 Message: [Oracle][ODBC][Ora]ORA-00922: missing or invalid option
Native error: 28221 Message: [Oracle][ODBC][Ora]ORA-28221: REPLACE not specified
Native error: 28000 Message: [Oracle][ODBC][Ora]ORA-28000: the account is locked
Native error: 1031 Message: [Oracle][ODBC][Ora]ORA-01031: insufficient privileges
Native error: 12170 Message: [Oracle][ODBC][Ora]ORA-12170: TNS:Connect timeout occurred
Native error: 12547 Message: [Oracle][ODBC][Ora]ORA-12547: TNS:lost contact

 


Environment


Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)

CPM Oracle Database Plugin
 


Cause



ORA-12154: A connection to a database or other service is being requested using a connection alias but the alias specified cannot be resolved into a connect descriptor using one of the configured naming methods.

ORA-12514: The connection request received by the listener specified a service name (usually for a database service) that either has not been dynamically registered with the listener or that has not been statically configured in the listener's listener.ora configuration file.

ORA-12560: A lower level communication protocol adapter error occurred.

ORA-01017: An invalid credential was provided when accessing the Oracle Database or you were not authorized to access this database.

ORA-12504: The listener was not configured with a default service and SERVICE_NAME was missing from the CONNECT_DATA received by the listener.

ORA-28040: No common authentication protocol was found between the database client and server.

ORA-00922: An invalid form or syntax of a command was entered.

ORA-28221: An attempt was made to change the password with the password verification function enabled and the original password was not specified in the REPLACE clause. This is required if the user does not have ALTER USER system privilege.

ORA-28000: Incorrect credentials were used for too many consecutive failed login attempts, or the account was locked by an administrator, or the user was a common user locked in the root container.

ORA-01031: A database operation was attempted without the required privilege(s).

ORA-12170: The connection request cannot be completed within the allotted time interval. This may be a result of network or system delays, a firewall not allowing the connection, no network connectivity between client and server, or it may indicate a denial-of-service attack on the database server.

ORA-12547: Partner (target device) has unexpectedly gone dropped the connection, usually during process startup.

 


Resolution



ORA-12154: 
  • Check for mistakes in the connection string that you used:
    • Ensure that the syntax is valid.
    • Ensure that the driver name exactly matches the driver installed on the CPM.
  • If you have a sqlnet.ora file containing a NAMES.DIRECTORY_PATH parameter, then ensure that the parameter contains valid values.
  • Ensure that EZCONNECT is listed as the first method in the NAMES.DIRECTORY_PATH parameter.
  • If you are using an alias from a tnsnames.ora file:
    • Verify that the tnsnames.ora file exists, is in the proper directory, and is accessible.
    • Ensure that the alias exists in one of the tnsnames.ora files.
    • Ensure that there are no syntax errors anywhere in the tnsnames.ora file or files. Look for unmatched parentheses or stray characters. Ensure that magic quotes are not used.
  • If you are using LDAP directory naming:
    • Verify that the net service name or database name used as the connect identifier is configured in the directory.
    • Verify that the LDAP directory server is up and that it is accessible.
    • Verify that the default context being used is correct by specifying a fully qualified net service name or a full LDAP DN as the connect identifier.

ORA-12514: 
  • Check for mistakes in the specified connection string.
  • Ensure that the SERVICE_NAME parameter in the connection string or the tnsnames.ora file connect descriptor specifies a service known by the listener.
  • Wait a moment and try to connect again. The database instance registration may not be complete.

ORA-12560: 
  • Check for lower level network transport errors in the error stack for additional information.
  • Ensure that the protocol specification used in the address for the connection is correct.
  • For further details, turn on network tracing and rerun the operation. Turn off tracing when the operation is complete.

ORA-01017: 
  • Ensure that the password stored in the Vault is the correct password for accessing the database.
  • Ensure that the password stored in the Vault does not contain any of the characters listed in the PasswordForbiddenChars parameter on the platform.
  • Ensure that the account has the needed permissions to access the database.

ORA-12504: 
  • Configure DEFAULT_SERVICE parameter in LISTENER.ORA with a valid service name:
    • The ‘database’ property of the object in PVWA should match the SERVICE_NAME in the LISTENER.ORA file on the target.
  • Check that the connect descriptor corresponding to the service name in TNSNAMES.ORA has a SERVICE_NAME or SID component in the CONNECT_DATA.

ORA-28040: 
  • Set the values of the SQLNET.ALLOWED_LOGON_VERSION_SERVER and SQLNET.ALLOWED_LOGON_VERSION_CLIENT parameters on both the client (CPM) and on the server (target) to values that match the minimum software version supported in the system.
  • This error is also raised when the client is authenticating to a user account which was created without a verifier suitable for the client software version. In this situation, the password of the account must be reset to generate the required verifier and allow the authentication to proceed successfully.

ORA-00922: 
  • Check the command syntax.
  • Ensure that the password stored in the Vault does not contain any of the characters listed in the PasswordForbiddenChars parameter on the platform.

ORA-28221: 
  • Provide the original password in the REPLACE clause and retry the operation:
    • Update the change command format from:
      • alter user %USER% identified by "%NEWPASSWORD%";
​​​​​​​​​​​​​​To:
  • alter user %USER% identified by "%NEWPASSWORD%" replace "%OLDPASSWORD%";

ORA-28000:
  • Wait for the PASSWORD_LOCK_TIME to elapse before retrying or contact the DBA to unlock the account manually using the ALTER USER command with the ACCOUNT UNLOCK clause.
  • Update the reconcile command to on the platform to automatically unlock the target account:
    • Update the reconcile command format from:
      • ​​​​​​​alter user %USER% identified by "%NEWPASSWORD%";
​​​​​​​​​​​​​​​​​​​​​To:
  • alter user %USER% account unlock identified by "%NEWPASSWORD%";

ORA-01031: 
  • Ask your database administrator or security administrator to grant you the required privilege(s).

ORA-12170: 
  • Ensure that there is network connectivity between client and server, and that the destination is reachable.
  • Ensure that there is no firewall in place between client and server. If there is, disable the firewall or configure it to allow the network traffic.
  • If the error occurred in your application, then:
    • Set CONNECT_TIMEOUT or TRANSPORT_CONNECT_TIMEOUT to a larger value if they are used in an Easy Connect or tnsnames.ora connection string. Or, set one or all of the parameters SQLNET.OUTBOUND_CONNECT_TIMEOUT, SQLNET.RECV_TIMEOUT, or TCP.CONNECT_TIMEOUT in the client sqlnet.ora file to a larger value. The connection string parameters have higher precedence than the corresponding sqlnet.ora parameters.


ORA-12547: 
  • Investigate the target device for the cause of the dropped connection.

 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000xOICAY&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail