• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Oracle 12.2 database connectivity issue (ORA-28040: No matching authentication protocol)  RSS feed

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Thanks in advance!!!

I am facing database connectivity problem, can you please help me!!

Description:

I was connecting to oracle database server using db connection required properties . It is connecting to db server in local. Next I created ExecutableJar using ant build tool and ran that jar in Linux redhat server using command java -jar myjar.jar , then i am getting below error while connecting to db server.

Note: From local its connecting and from server its not connecting. Oracle TNS properties are same in both local and server.


org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (ORA-28040: No matching authentication protocol
)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
        at com.hp.gib.dao.CiTMonImpl.loadLogFileRecord(CiTMonImpl.java:32)
        at com.hp.gib.monitor.CiTitgMonitor.checkAppLog(CiTitgMonitor.java:20)
        at com.hp.gib.monitor.CiTMonitor.checkDbLog(CiTMonitor.java:108)
        at com.hp.gib.monitor.CiTMonitor.monCit(CiTMonitor.java:79)
        at com.hp.gib.monitor.CiTMonitor.executeInternal(CiTMonitor.java:69)
        at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: java.sql.SQLException: ORA-28040: No matching authentication protocol

        at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:494)
        at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:441)
        at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:436)
        at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:546)
 
Marshal
Posts: 59762
188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please show us what files you have in your .jar file. Also how are you setting the CLASSPATH for your .jar? What are the differences from the original application? What dependency files do you have, and are they also in the server?
 
Bartender
Posts: 19668
92
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you're annoying Oracle itself, I think we need to see your connection URL. Your classpaths and network definitions are probably OK, or you'd never have been able to contact the Oracle server.
 
Ranch Hand
Posts: 341
2
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using 12.2  JDBC drivers ?

Check if you are using the same jar files in both situations.
 
meruva surendra
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

German Gonzalez-Morris wrote:Are you using 12.2  JDBC drivers ?

Check if you are using the same jar files in both situations.



Yes.. I am using 12.2 jdbc drivers, In both server and local i am using the same ojdbc8.jar file.
 
meruva surendra
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Holloway wrote:Since you're annoying Oracle itself, I think we need to see your connection URL. Your classpaths and network definitions are probably OK, or you'd never have been able to contact the Oracle server.




Note:Security purpose i modified the password and hostname
Connection Properties:

gibItg.jdbc.url=jdbc:oracle:thin:@(DESCRIPTION=(SDU=32768)(enable=broken)(LOAD_BALANCE=yes)(ADDRESS=(PROTOCOL=TCP)(HOST=zc4t01234.itcs.houston.nynetwork.net)(PORT=1525))(CONNECT_DATA =(SERVICE_NAME = ABCDI)))
gibItg.jdbc.user=log4j
gibItg.jdbc.password=f5NCYRqKd7HKv9KIavABCDEF==
gibItg.jdbc.maxStatements=250
gibItg.jdbc.maxPoolSize=5
gibItg.jdbc.minPoolSize=1
gibItg.jdbc.initialPoolSize=2
gibItg.jdbc.schema=STAGING
gibItg.jdbc.loginTimeout=7200
gibItg.jdbc.sid=ABCDI
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!