My Oracle Support Banner

Error: 'java -cp $CLASSPATH Smartimport.SmartImport' or 'ORA-01017: invalid username/password; logon denied' While Running an Import Using SDK SmartImport API in ODI 12C (Doc ID 2163227.1)

Last updated on AUGUST 01, 2016

Applies to:

Oracle Data Integrator - Version 11.1.1.3.0 and later
Information in this document applies to any platform.
This issue was found on ODI 12.2.1.1 but could occur in other versions.

Symptoms

In Oracle Data Integrator (ODI) studio, when running a Smart Import using SDK API SmartImportServiceImpl the following error occurs:

ORA-01017: invalid username/password; logon denied

Using the command:

java -cp $CLASSPATH smartimport.SmartImport


an error like the following is received (error stack truncated for readability):

Jul 17, 2016 01:46:22 PM Connecting to database..
Exception in thread "main" oracle.odi.core.config.MasterRepositoryResourceFailureException: ODI-10182: Uncategorized exception during repository access. Could not get JDBC Connection;
nested exception is java.sql.SQLException: Exception occurred while getting connection: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
  at oracle.odi.core.repository.Repository.getMasterRepository(Repository.java:115)
  at oracle.odi.core.OdiInstance.createMasterRepository(OdiInstance.java:601) at oracle.odi.core.OdiInstance.(OdiInstance.java:852)
  at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:719)
  at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:667)
  at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:646)
  at smartimport.RunSmartImport.connectODIRepo(RunSmartImport.java:145)
  at smartimport.RunSmartImport.run(RunSmartImport.java:94) at smartimport.SmartImport.main(SmartImport.java:56)
Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Exception occurred while getting connection: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
  at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)
...
Caused by: java.sql.SQLException: Exception occurred while getting connection: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource: java.sql.SQLException: ORA-01017: invalid username/password; logon denied

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.