Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JDBC client for Times ten database throwing error while creating connection

876759Jul 20 2011 — edited Aug 4 2011
java.sql.SQLException: Problems with loading native library/missing methods: no ttJdbcCS1121 in java.library.path
at com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcO dbcConnection.java:1757)
at com.timesten.jdbc.TimesTenDataSource.getConnection (TimesTenDataSource.java:148)
at com.sapient.Test.main(Test.java:42)


This is the java code

try {
// The newInstance() call is a work around for some
// broken Java implementations

Class.forName("com.timesten.jdbc.TimesTenDriver"). newInstance();


} catch (Exception ex) {
// handle the error
}
}

public static void main(String[] args) {
// TODO Auto-generated method stub

Connection conn=null;
try {


TimesTenDataSource ds = new TimesTenDataSource();
ds.setUser("root"); // User name to log in to TimesTen.
ds.setPassword("admin"); // Password to log in to TimesTen.
ds.setUrl("jdbc:timesten:client:dsn=times_ten");

Connection conn1= ds.getConnection();


// Please help soon

Thanks
Shah Imran Alam
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 1 2011
Added on Jul 20 2011
3 comments
440 views