JDBC Driver: MS Access
I need to connect locally to a mdb file on a Windows OS and manipulate its data. I have tried the sun.jdbc.odbc.JdbcOdbcDriver but it does not support primary keys manipulation. I have read numerous topics about JDBC drivers for MS Access, some of them also in this forum. The suggested drivers I found so far are commercial; I definitely need a non-commercial one for testing purposes. So please do not respond to this post, advertising commercial drivers (like HXTT for example).
I've had a look at http://jackcess.sourceforge.net/ but it requires specific code syntax and I would like to use a driver without rewriting my application. Then I've found http://rmijdbc.objectweb.org/ but it only allows remote access to an already existent JDBC driver.
Any suggestion about a non-commercial JDBC driver for MS Access? Thanks in advance.
When I try:java.sql.ResultSet rs_PrimaryKeys =
Database_MetaData.getPrimaryKeys(null, null,
for_TableName); with the
sun.jdbc.odbc.JdbcOdbcDriver, it's reported that "the
driver does not support this operation yet". Right, but that doesn't mean you can't work around it.
Besides,
it does not allow to do
rs_Columns.getString("sameIntValueHere");more than one time within the same rowwise iteration
of rs_Columns.next()
There's no workaround for that. It's just the nature of streams/iterators/cursors.
Any
ideas/suggestions for a workaround will be more than
gladly received! This issue is causing me headaches
for days and I've finally decided to share my
struggle here...You can work around the primary key problem.
As far as the ResultSet question goes, you should not be using ResultSets that way. Iterate through the ResultSet, load the data into an object or data structure, and close it right away in the narrowest scope possible.
%
Similar Messages
-
URGENT!Can I user a THIN jdbc driver to access a CLOB field from oracle 8.0.5 DB?
I think you'd need to contact Oracle support to get access to older versions of the driver.
Since 8.0.5 isn't supported any longer, however, is it possible for you to update your Oracle client to one of the supported releases-- 8.1.7 or 9i?
Justin -
Weblogic 8.1 has type 4 JDBC driver to access oracle8.1.7
Hi,
Does WebLogic 8.1 has a type 4 JDBC driver that can be used to access Oracle 8.1.7.2/
BLOB data ?. Does any one have example for updateBLOB using wl type4 JDBC driver for oracle?
Thanks,
Anant
Anant wrote:
> Hi,
> Does WebLogic 8.1 has a type 4 JDBC driver that can be used to access Oracle 8.1.7.2/
> BLOB data ?. Does any one have example for updateBLOB using wl type4 JDBC driver for oracle?
>
> Thanks,
> Anant
You might get better responses to this if you post it in
weblogic.developer.interest.jdbc
~Ryan Upton
-
JDBC driver for Microsoft Access
Hi, I have gone through the blogs and threads related to this topic. I found contradicting threads one saying we need to deploy Access JDBC driver and another saying no need to deploy JDBC driver for Access.
Integrate PI7.0 with MS Access 2003 Database - Says need to install driver for Access
Re: Problem when connecting to MS Access through JDBC Adapter. - Says no need to install driver for Access
I am now confused if I need to ask my Basis team to deploy driver for this. If some one has executed this scenario successfully, could you please confirm whether a driver needs to be installed or not. Also if it is required to install a driver, could you please let me know from where I can download the driver.
My PI version is 7.1 and Access version is MS Access 2007. PI is deployed on Linux.
Without asking for deploying driver I have configured scenario File->PI->Access and I am getting below error in my receiver JDBC communication channel.
"Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error when attempting to get processing resources: com.sap.aii.af.lib.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Can not establish connection:: SAPClassNotFoundException: jdbc.odbc.JdbcOdbcDriver";
Please suggest how to resolve this issue.
Regards, PrasadHi .
The format for Access 2007 is accdb . Are you using this format or MDB?
Anyway try this:
Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=C:\Test\TestDB.accdb;Uid=Admin;Pwd=; -
Where can I download a JDBC driver for MAXDB
Hi,
I want to update my jdbc driver to access maxdb because I am using a version created four years ago but the database is the most updated. I have visited the maxdb web site, but I did not found any jdbc driver.
Thanks in advance.
RosaSome years ago we changed the default cursor behavior of our driver from TYPE_SCROLL_SENSITIVE to TYPE_FORWARD_ONLY. The reasons to change it were a better performance when fetching resultsets and also the conformance to the JDBC specification.
So the default cursor behavior of our JDBC driver is now TYPE_FORWARD_ONLY. You can change the cursor behavior when you create a statement.
java.sql.Statement ; stmt = connection.createStatement(
ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
Also some newer JDBC drivers have a connect option
defaultresultsettype=[TYPE_FORWARD_ONLY|TYPE_SCROLL_INSENSITIVE|TYPE_SCROLL_SENSITIVE]
Regards,
Marco -
Help!
I've created a simple program that should connect to a client of mine using jdbc. I was given the driver class which I have imported and added to my build path. I deploy the application and it errors saying it cannot find the class. Here is the code:
public void wdDoInit()
//@@begin wdDoInit()
IWDMessageManager mm = wdThis.wdGetAPI().getComponent().getMessageManager();
String host = "host";
int port = 1433;
String SID = "hostsid";
String user = "username";
String pass = "pwd";
String driver_class = "net.sourceforge.jtds.jdbc.Driver";
String access = "jdbc:jtds:sqlserver://" + host + ":1433" + "/" + SID;
Connection con;
try
try
Driver driver = (Driver)Class.forName(driver_class).newInstance();
} catch (Exception e)
mm.reportWarning("msg = " + e.toString());
con = DriverManager.getConnection(access, user, pass);
} catch (SQLException e)
mm.reportWarning("Error: " + e.getMessage());Hi Steve,
Put jar file with JDBC driver to lib folder under your WD project and it will be included to wda and ear files.
BTW, may be it is beeter to register driver and datasource instead of using direct connect to DB? See how to register data source http://help.sap.com/saphelp_nw04/helpdata/en/b0/6e62f30cbe9e44977c78dbdc7a6b27/frameset.htm
Best regards, Maksim Rashchynski. -
How can I access the oracle/sql server jdbc driver class files from my cust
I have a war file in which I have custom DataSource i.e mypackage.Datasource class. Its basically the need of my application. In this class we connect to datasource and link some of our programming artifacts .
I have deployed the oracle jdbc driver and deploy my application as ear with datasources.xml in the meta inf file. Inspite of that my code fails to load the jdbc driver classes.
Here is the extract of the code :
Class.forName("oracle.jdbc.OracleDriver").newInstance();
String url = "jdbc:oracle:thin:@dataserver:1521:orcl";
Connection conn = DriverManager.getConnection(url, "weblims3", "labware");
if(conn != null){
out.println("the connection to the database have been achieved");
out.println("conn object achived= " + conn);
Class.forname fails in this case. I can see the ojdbc5.jar the driver jar in usr\sap\CE1\J00\j2ee\cluster\bin\ext\ojdbc5 . I even put the ojdbc.jar in web-inf/lib and application lib but does not help at all. Hope I have explained my problem clearly.
I deployed the jdbc driver in the name of ojdbc5 .
I am stuck here. It will be great help if anyone can help me in this. Thanks in advance.Bent,
You can access the database from your Java portlet, just like from any other Java/JSP environment. Yes, you can use JDBC, as well as BC4J.
The Discussion Forum portlet was built using BC4J, take a look at it's source to see how it was done.
Also, check out Re: BC4J Java portlet anyone?, it contains a lot of useful information too.
Peter -
Java.sql.SQLException: Error accessing jdbc driver
Hi,
We are using WebLogic Server 7.0 as Application Server.
We now create a connection pool named regPool and
a Tx datasource named regDS.
When we get the connection from the datasource, exception occurred.
java.sql.SQLException: Error accessing jdbc driver: driverURL =
jdbc:weblogic:pool:regPool, props = {enableTwoPhaseCommit=false,
jdbcTxDataSource=true, connectionPoolID=regPool}
at
weblogic.jdbc.jts.Driver.wrapAndThrowSQLException(Driver.java:323)
at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:377)
at weblogic.jdbc.jts.Driver.connect(Driver.java:129)
at
weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java
:265)
So I guess that why we can't use CMP for finding data. Here is the error when we call the finder.
javax.ejb.FinderException: Exception in findAllEmr while preparing or
executing statement: 'null'
java.sql.SQLException: Cannot obtain connection after 30 seconds. ,
Exception = Access not allowed
java.sql.SQLException: Cannot obtain connection after 30 seconds. ,
Exception = Access not allowed
at
weblogic.jdbc.jts.Connection.wrapAndThrowSQLException(Connection.java:694)
According to the exception message, it looks
like the connection fail between WLS and Oracle 9.2.
Here is a scenario I think you should need to know.
I change the table-name in the weblogic-cmp-rdbms-jar.xml
to a name that doesn't exist in the database.
Then, re-package the EJB, copy it to server and restart the server.
A exception occurred that says the table doesn't exist.
So, in this case, it looks like the datasource works and
connection is fine.
Any recommendation will be appreciated.
Jimmy ChangHi!
I am a default user to the databse server. I connect to the database with '\' as the username and blank passoword(I mean with Network authentication may be).When I am trying to create connection using
con = DriverManager.getConnection("jdbc:oracle:thin:@DRACINAL2:BSAJ", "/","" )
it gives me followint error
ava.sql.SQLException: Null user or password not supported in THIN driver
void oracle.jdbc.dbaccess.DBError.throwSqlException(java.lang.String, java.lang.String, int)
void oracle.jdbc.dbaccess.DBError.throwSqlException(int, java.lang.Object)
void oracle.jdbc.dbaccess.DBError.check_error(int)
oracle.jdbc.dbaccess.DBConversion oracle.jdbc.ttc7.TTC7Protocol.logon(java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
void oracle.jdbc.driver.OracleConnection.<init>(oracle.jdbc.dbaccess.DBAccess, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
java.sql.Connection oracle.jdbc.driver.OracleDriver.getConnectionInstance(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
java.sql.Connection oracle.jdbc.driver.OracleDriver.connect(java.lang.String, java.util.Properties)
java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties, java.lang.ClassLoader)
java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.lang.String, java.lang.String)
void textPack.GenTextFile.main(java.lang.String[])
How should I go about it?
Thanks for your help.
-Sreekanth Varidhireddy -
hi, this is ravi kiran.
I am trying to connect to ms-access using jdbc, there is now way that i can use jdbc-odbc bridge to connect to ms-access(because it needs creation of a dsn).
I have been searching for a freeware jdbc driver for ms-access, but i am not able to find one.
Is there any jdbc driver for ms-access that is freeware.
help me.
thanx in advance.You can use JDBC-ODBC without creating a DSN in your system ODBC settings.
http://forum.java.sun.com/thread.jspa?threadID=5123254&start=4 -
Err : "Access Not Allowed to oracle.jdbc.driver.OraclePreparedStatement"
Hi,
How to resolve the error "Access Not Allowed to oracle.jdbc.driver.OraclePreparedStatement"
in jdeveloper?
Or
Can you please give me some sample pgms which uses oracle.jdbc.driver.OraclePreparedStatement?
Thanks in advance,
Senthil Kumar M.This is the error from the trace logs...
application [XMII] Cannot send an HTTP error response [500 Application error occurred during request processing. (details: com.sap.xmii.Illuminator.logging.LHException: com.sap.xmii.Illuminator.logging.LHException: java.lang.NoClassDefFoundError: oracle.jdbc.driver.OraclePreparedStatement)].
The error is: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: The stream is closed.
Exception id: [0050569D6ACD006A0000010C000023D300046F4B653C90D7]
I could not find anything on the SDN regarding this message, so I may need to open up an OSS note.
Thanks
Skip Ford -
JDBC driver error to connect to an MS Access DB
Hi All,
We have created a file to JDBC scenario on XI 3.0. My XI server is on a Linux server and the db the receiver CC is trying to connect to is an MS Access 2007.
The CC parameters are configured as follow:
JDBC Driver: jdbc.odbc.JdbcOdbcDriver
Connection: jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=
xxxxxx\xxxxx\Test.mdb
On the communication monitoring we are getting the following error message:
Error when attempting to get processing resources: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL 'jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=
xxxxxx\xxxxx\Test.mdb': java.lang.NullPointerException
In regards with the above message and after reviewing several posts, I have two questions I would like to confirm with you:
a- Do I have to perform a JDBC driver deployment to connect to a MS Access DB? If so, which one.
b- Is there a suitable JDBC driver on Linux to connect to a MS Access DB? If there is not such a driver, Is there any available workaround for this?
Please, let us know your recommendations about this or what I should check to identify the cause of the above error.
Thanks and best regardsHi All, in order to discard any possible issue between Linux and MS access connection, we are currently in the process on configuring a J2SE Plain Adapter Engine on a Windows environment. However, after configuring a JDBC receiver scenario we are getting the following error message in the adapter logs:
Classname=com.sap.aii.messaging.adapter.ModuleXMB2DB
Version=30
Mode=XMB2DB_XML
XI.httport=xxxx
XI.httpService=/db/receiver
db.jdbcDriver=sun.jdbc.odbc.JdbcOdbcDriver
db.connectionURL=jdbc:odbc:Driver={Microsoft Acces Driver (*.mdb)};=<Path to the mdb file>
Error log
15:50:23 (4311): ERROR: Attempt to access JDBC connection failed with "[Microsoft][ODBC Microsoft Access Driver]Optional feature not implemented"
Attempt to initialize JDBC adapter failed
15:50:23 (4340): JDBC adapter initialized with database error. Proceed
15:50:23 (4303): JDBC adapter listener started
Then, the Mode parameter was changed to XMB2DB and the error log is as follow:
15:36:14 (4315): ERROR: Attempt to initialize transform class com.sap.aii.messaging.adapter.Payload2DBBinding failed with exception com.sap.aii.messaging.adapter.trans.TransformException: Error 'com.sap.aii.messaging.adapter.trans.TransformException: Error: Parameter 'db.table' missing' initializing class payload2DBBinding
15:36:14 (4304): Unable to start JDBC adapter (not initialized)
According to our scenario the required mode would be XMB2DB_XML. Could you please let us know the cause of the u201COptional feature not implementedu201D error message is?
The following data may be helpful:
OS version: Windows 2003 Server SP2
JRE (1.6.0_16-b01)
Weu2019ll wait for your recommendations.
Thanks and best regards -
JDBC Driver for MS Access on Unix
Does anyone know of a JDBC driver that will allow a Java program to connect to an MS Access database that resides on the same server as the Java program, and the server is a Unix server ?
In the documentation I don't find what is a AccessServer.
I think that i have to use the remote access but i don't understand
what i have to do with the port of the server. In the server Tomcat
receive at the port 9080....i can use this port for remote access the mdb file???HXTT Access supports remote access and embedded access. I guess that you can use embedded mode so that you needn't to setup a listening port for AccessServer. More question or requirement, you can seek prompt support at
http://www.hxtt.net/support.jsp?product=access
. -
Accessing Informatica File Archive Service using its native JDBC driver
Good morning,
Using the Informatica ILM suite, we've retired a number of database applications (which ran on Oracle) into the so-called Optimized File Archive, or OFA.
The information stored in there can be accessed using their File Archive Service, or FAS.
To allow access for certain tools, they've also got an ODBC and JDBC driver (from the original company that created the archive bit, RainStor), to be able to get to tables in archives.
I've been able to set it up for Aquafold's Aqua Data Studio (ADS), but given that that is shareware I've only got an evaluation version, expiring in 2 weeks.
Since SQLdeveloper, like ADS, is a Java-based tool, and it also allows for third party JDBC drivers, I'm inclined to think that somehow SQLdeveloper should also be able to connect to those archives. Unfortunately, I always get an error message: "Invalid connection information specified. Verify the URL format for the specified driver"
There are some slight differences between ADS and SQLdev in setting up such a JDBC connection.
In ADS, apart from providing user/pw, I have to specify following:
- name of the JDBC driver ("com.simba.client.core.SimbaJDBCDriver")
- location of the JDBC driver (e.g. "C:\Ora\RainStorJDBC-3.0.1.2.jar")
- JDBC URL of format "jdbc:simba://<host>:<port>;Archive=<archive>;ConnectionTimeout=3600;Parser=ORACLE"
In SQLdev I can import the JDBC driver (menu > Tools > Preferences, then under Database > Third Party JDBC Drivers), and in the Database Connection Screen create a new connection, provide the user/pw of the so-called Service Manager (from FAS), and choose Connection Type "Advanced" to then specify the "Custom JDBC URL", which would have to be the same as above. If I test the connection, I get an instant error:
"Status: Failure -Test failed: Invalid connection information specified. Verify the URL format for the specified driver".
Informatica's Global Customer Support are saying that SQLdev can't do it, but I'm just wondering whether some really bright lights in the Oracle community have found an alternative route to be able to connect to such FAS/OFA archives. Given the similarities between ADS and SQLdev, to me it seems it - somehow - has to be possible as well...
Thanks in advance for thinking about this problem/challenge.
Cheers!
Edited by: exapat on Dec 7, 2012 10:43 AM
Did some further investigations, on other third party drivers. Those ones (e.g. for SQL Server) - when loaded - create an extra tab in the connection screen.
The RainStor JDBC driver does not do that, and I can imagine that that's where it falls short.
If indeed the case, what could be done to overcome this?Hi,
Did some further investigations, on other third party drivers ... If indeed the case, what could be done to overcome this?That is the case. Currently browsing and migration support for third-party databases is limited to the following:
http://www.oracle.com/technetwork/developer-tools/sql-developer/supportedmigplatforms-086703.html
See section 1.1 for currently supported databases and section 1.3 for those planned for a future release.
To see an example of some (all?) of the extra bits needed to support browsing of a third-party database, find the extensions directory in your SQL Developer installation, look for
oracle.sqldeveloper.thirdparty.browsers.jarthen browse it to see the various class, properties, and xml files necessary for supporting connections to databases like mysql or sybase. You may conclude adding browsing support is not all that complicated. Migration support is an entirely different matter, however. Oracle is the thirdparty.browsers extension owner. Support for more third-party databases would normally be added by the SQL Developer group based on a database's general popularity or a feature request on the SQL Developer Exchange -- obviously a long-term proposition.
If you look at the [Extensions Exchange|http://www.oracle.com/technetwork/developer-tools/sql-developer/extensions-083825.html] maybe you can get some ideas how best to proceed if you have the resources to build your own extension to support RainStor.
Regards,
Gary
SQL Developer Team -
UCCX 8 access db_cra from script add informix jdbc driver
Hi,
I want to use the db_cra database for the last agent routing from the call flow script.
I will run a query which serach wihtin the last 24 hours which agent talked to the customer the last time.
The problem is, that I'm not able to add the informix db into the uccx database subsystems.
I can only select these driver classes:
net.sourceforge.jtds.idbc.driver
com.ibm.db2.jcc.DB2Driver
oracle.jdbc.driver.OrcaleDriver
com.sybase.jdbc2.jdbc.SybDriver
But for the Informix Db I think I would need the driver class:
com.informix.jdbc.IfxDriver.
Has anyone a idea how to add a driver class or how to access the db_cra from the script?
I know that it is possible to use a differnt database (like MSSQL) and write each time a agent gets a call the data to this db and access this one for last agent routing functions. But I want to use the db_cra for this.
thanks
MarkusHi,
there is no way to do it that way.
You can't access the Informix DB directly from UCCX script.
But you can use a SQL server as a middleware. So you have to setup a SQL server and add the Informix db as a linked server.
Now you should be able to access the SQL server from the UCCX script.
Kind regards
Markus
CONET Solutions GmbH
Markus Schweitzer,
Theodor-Heuss-Allee 19, 53773 Hennef
Tel.: +49 2242 939-676, Fax: +49 2242 939-393
Mobil: +49 173 5486337
Internet: http://www.conet.de, mailto: [email protected] -
Data Access Objects : JDBC Driver Not Found
Hi,
I am having a strange problem accessing JDBC Driver ( for Informix Database, if this
information helps )
I am using Data Access Objects ( DAOs ) to fetch multiple records.
The DAO is accessed from Session Bean for this case.
The constructor of the DAO does the JNDI lookup for the TxDataSource
and set it to a class attribute of the DAO. This DataSource is pointing
to a connection pool
In the getConnection() private method if DAO we use this DataSource
to pickup a onnection from the pool and fire a sql query.
This public method say getMultipleRecords( query conditions ) of DAO
returns a number of macthing records to the Session Bean.
This approach works fine in general. But sometimes I get an
java.sql.SQLException
SQLException ERROR MESSAGE is:
"Error accessing jdbc driver: driverURL = jdbc:weblogic:pool:myConnPool, props= {enableTwoPhaseCommit=true,
connectionPoolID=myConnPool}"
Once this exception occurs every time the method is called the same exception keep
coming.
Once I restart the server this API starts working again.
Could anyone give any reason why this exception might occur.
Please send an e-mail to [email protected] while replying to this message.
Thanks in advance
GunajitHi Gunajit
you need to ensure that the connections are properly closed. If you are
closing the connections properly, increase the number of connections in the
connection pool.
hth
sree
"Gunajit" <[email protected]> wrote in message
news:3ce082ca$[email protected]..
>
Hi,
I am having a strange problem accessing JDBC Driver ( for InformixDatabase, if this
information helps )
I am using Data Access Objects ( DAOs ) to fetch multiple records.
The DAO is accessed from Session Bean for this case.
The constructor of the DAO does the JNDI lookup for the TxDataSource
and set it to a class attribute of the DAO. This DataSource is pointing
to a connection pool
In the getConnection() private method if DAO we use this DataSource
to pickup a onnection from the pool and fire a sql query.
This public method say getMultipleRecords( query conditions ) of DAO
returns a number of macthing records to the Session Bean.
This approach works fine in general. But sometimes I get an
java.sql.SQLException
SQLException ERROR MESSAGE is:
"Error accessing jdbc driver: driverURL = jdbc:weblogic:pool:myConnPool,props= {enableTwoPhaseCommit=true,
connectionPoolID=myConnPool}"
Once this exception occurs every time the method is called the sameexception keep
coming.
Once I restart the server this API starts working again.
Could anyone give any reason why this exception might occur.
Please send an e-mail to [email protected] while replying to this
message.
>
Thanks in advance
Gunajit
Maybe you are looking for
-
F.01 (RFBILA00) not taking the period specified on selection screen for com
Hi Experts, Whenever we execute this report, it always takes the output from the start of the year. It does not take into account the u201Cfromu201D and u201CTou201D period which we specify on the selection screen. How to modify this report? Not able
-
Planning ETM Equipment in PS Project ( SAP EC&O Solution) ...
Hello Everybody My question is related to EC&O solution for construction industry. I m planning machine hours of ETM (Equipment & Tools Management) equipment in my project. I have done all the necessary settings required and are getting requirement g
-
Hi I have seen apex have some webservices support, I have a application there have a API based on XML-RPC, could I "talk" to this application using apex webservices? Best Regards Jesper Vels
-
Skype to Go editing not possible
I cannot edit or add new contact in Skype To Go . Any solutions?
-
HT4623 ive tried to update my iphone 16gb but it freezers on the instalment why?
my mum got given a iphone 3gs 16gb for christmas and it needed updating to 6.1.0 so we updated it but it just freezers when installing it all the screen is just the apple sign with a loading bar and stops half way thru can you help??