This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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: 62180
193
  • 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: 20099
101
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: 349
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
 
And inside of my fortune cookie was this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!