9iAS and Informix jdbc driver
Hi,
How do I configure 9iAS release 2 data source to access Informix database using Invformix JDBC driver? Has any one done it and can share the procedure?
Sam
Samir -
I've not done this, but this is the general idea.
btw - we ship the DataDirect JDBC drivers with 9iAS to facilitate connections to other databases such as DB2, SS, Informix, etc.
What you want to do is:
a) Take the JDBC library you wish to use and put it into the j2ee/home/lib directory (bounce the server since this directory is read at startup time and the classpath constructed. Dynamic additions are not picked up)
b) Define an emulated datasource in the j2ee/home/config/data-sources.xml file using the driver class and specific URL connection string for the JDBC driver you want to use:
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="InformixDS"
location="jdbc/if/CoreDS"
xa-location="jdbc/if/xa/XADS"
ejb-location="jdbc/if/DS"
connection-driver="informix.some.packaged.JDBCDriver"
username="scott"
password="tiger"
url="jdbc:informix:....."
/>
** the connection-driver and URL attributes will be determined by the specific JDBC driver you are using
c) Use the datasource like any other data source at this point - you should be able to lookup the datasource using the location entries and get a connection.
If you are using the Oracle9iAS environment as opposed to the standalone environment, then the same set of tasks should be applied using the facilities provided (ie the EM console) by that distribution.
-steve-
Similar Messages
-
WebLogic Informix JDBC driver query
We are developing an application with WL6.1 Express. One of the databases
we need to connect to is Informix 7.2. Since WL's jDriver can work with
Informix, I'd assume we do not need to buy any additional drivers from IBM.
1) Is my assumption correct?
2) Not having worked with Informix before, what needs to be done on the
Informix server to enable this connection?
3) Is the WL jDriver for Informix reliable or are we better off buying the
Informix JDBC driver?
Appreciate any advice on the matter, thanks.Kai wrote:
>
We are developing an application with WL6.1 Express. One of the databases
we need to connect to is Informix 7.2. Since WL's jDriver can work with
Informix, I'd assume we do not need to buy any additional drivers from IBM.
1) Is my assumption correct?yes.
2) Not having worked with Informix before, what needs to be done on the
Informix server to enable this connection?that should be documented in our stuff.
3) Is the WL jDriver for Informix reliable or are we better off buying the
Informix JDBC driver?The one from Informix is better. Last time I checked, Informix's driver was free.
Unless it is expensive, I recommend it.
Joe Weinstein
>
Appreciate any advice on the matter, thanks.--
B.E.A. is now hiring! (12/14/01) If interested send a resume to [email protected]
DIRECTOR OF PRODUCT PLANS AND STRATEGY San Francisco, CA
E-SALES BUSINESS DEVELOPMENT REPRESENTATIVE Dallas, TX
SOFTWARE ENGINEER (DBA) Liberty Corner, NJ
SENIOR WEB DEVELOPER San Jose, CA
SOFTWARE ENGINEER (ALL LEVELS), CARY, NORTH CAROLINA San Jose, CA
SR. PRODUCT MANAGER Bellevue, WA
SR. WEB DESIGNER San Jose, CA
Channel Marketing Manager - EMEA Region London, GBR
DIRECTOR OF MARKETING STRATEGY, APPLICATION SERVERS San Jose, CA
SENIOR SOFTWARE ENGINEER (PLATFORM) San Jose, CA
E-COMMERCE INTEGRATION ARCHITECT San Jose, CA
QUALITY ASSURANCE ENGINEER Redmond, WA
Services Development Manager (Business Development Manager - Services) Paris, FRA; Munich, DEU
SENIOR SOFTWARE ENGINEER (PLATFORM) Redmond, WA
E-Marketing Programs Specialist EMEA London, GBR
BUSINESS DEVELOPMENT DIRECTOR - E COMMERCE INTEGRATION San Jose, CA
MANAGER, E-SALES Plano, TX -
I am using oracle as database and weblogic 4.5. I have copied the classes12.zip file in lib directory of weblogic. I am getting the error that oracle.sql.* and oracle.jdbc.driver.* not found when i am importing these packages in a jsp file. what i need to do to import oracle driver packages?I put it in the classpath also.
Please Advice!
Thanks in advance
AnuPamaHi Anupama,
First of all I would be surprised if you would not like to use the connection pooling feature of weblogic (in which case you might not be needing the import the classes directly), and would like to open direct connections to your database. Anyways for doing that I would recommend you to check out the readme doc that ships
along with the jdbc oracle (classes12.zip etc). I am giving an excerpt over here:
These are a few simple things that you should do in your JDBC program:
1. Import the necessary JDBC classes in your programs that use JDBC.
For example:
import java.sql.*;
import java.math.*;
2. Register the Oracle driver before before calling other JDBC APIs.
(This is not needed if you are using the JDBC Server-side Internal
Driver because registration is done automatically in the server.)
To register the Oracle driver, make sure the following statement
is executed at least once in your Java session:
DriverManager.registerDriver(
new oracle.jdbc.driver.OracleDriver());
3. Open a connection to the database with the getConnection call.
Different connection URLs should be used for different JDBC
drivers. The following examples demonstrate the different URLs.
For the JDBC OCI8 Driver:
Connection conn = DriverManager.getConnection(
"jdbc:oracle:oci8:@<database>",
"scott", "tiger");
where <database> is either an entry in tnsnames.ora or a SQL*net
name-value pair.
For the JDBC Thin Driver, or Server-side Thin Driver:
Connection conn = DriverManager.getConnection(
"jdbc:oracle:thin:@<database>",
"scott", "tiger");
where <database> is either a string of the form
<host>:<port>:<sid> or a SQL*net name-value pair.
For the JDBC Server-side Internal Driver:
Connection conn = DriverManager.getConnection(
"jdbc:oracle:kprb:");
Note that the trailing ':' character is necessary. When you use
the Server-side Internal Driver, you always connect to the
database you are executing in. You can also do this:
Connection conn
= new oracle.jdbc.driver.OracleDriver().defaultConnection();
Hope this helps,
Thanks,
Anupama wrote:
I am using oracle as database and weblogic 4.5. I have copied the classes12.zip file in lib directory of weblogic. I am getting the error that oracle.sql.* and oracle.jdbc.driver.* not found when i am importing these packages in a jsp file. what i need to do to import oracle driver packages?I put it in the classpath also.
Please Advice!
Thanks in advance
AnuPama--
Apurb Kumar -
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] -
Hi,
I am connecting to Informix server using JDBC in a stand alone application. After every 20 or 25 connections being made to database, before issuing a new connection, JVM takes about 3 to 4 minutes between issuing or getting the connections. if I use the verbose option, this is what it seems to loop at before proceding, any clue on what might be happening.
[Signaling in VM: java/lang/reflect/InvocationTargetException, message: ]
at java.lang.reflect.Constructor.newInstance(Native Method)
at com.informix.jdbc.IfxDriver.connect(IfxDriver.java:249)
at java.sql.DriverManager.getConnection(DriverManager.java:543)
at java.sql.DriverManager.getConnection(DriverManager.java:163)
at com.walmart.javaapps.DBInformix.doIt(DBInformix.java:3829)
at com.walmart.javaapps.DBInformix.main(DBInformix.java:3803)I tried, you have better chance of finding something
on google than IBM site.
We have escalated the issue to IBM, we are waiting for
response from them, and waiting to find out what they
have to say about it.
If i hear somethign ,I will post it here.sorry to hear that.
do you have source for the driver? because i'd take a look at line 249 of com.informix.jdbc.IfxDriver and see what the heck's it's doing. -
Hello,
I want to deploy the JDBC driver for Oracle databases as described in OSS 1138877 on a brand-new PI7.1 (SP06 Stack) installation. Unfortunately, I can't find com.sap.aii.adapter.lib.sda on the system, so I can't add the ojdbc14.jar file and deplay it using JSPM.
Where can I get it from?
Thank you and best regards,
Herwighey,
The JDBC driver installation is different for PI 7.1.
The dowload/modify/deploy .sap.aii.adapter.lib.sda method was used in the earlier versions.(mentioned in the How to guides)
Look at the SAP documentation below -
http://help.sap.com/saphelp_nwpi71/helpdata/en/cf/128a42f802a01ae10000000a155106/frameset.htm
Arvind R -
How to deploy MS Sql Server 2005 and 2008 jdbc driver
Hi SAP Guru's
Can somebody tell me how to deploy the jdbc driver of MS SQL Server 2005 and 2008 on SDM.
According to the SAP instruction we should have 3 files(mssqlserver.jar,msbase.jar,msutil.jar) but in 2005 driver file we only have 1 file i.e sqljdbc.jar so how do i deploy it .
Secondly i cannot deploy it on visual administrator as well and when i am doing the File to jdbc scenarion i am getting this error
" Accessing database connection "jdbc.sqlserver://localhost:1433;DatabaseName=Employee failed DriverManagerException. Cannot establish connection to URL jdbc.sqlserver://localhost:1433;DatabaseName=Employee SAPClassNotFoundException com.microsoft.sqlserver.jdbc.SQLServerDriver".
can somebody please upload the screen shots on mediafire or any other site so that i will solve my problem.Hello,
*OS: First of all: *
3 files (msbase.jar,mssqlserver.jar and msutility.jar )should be zipped to aii_af_jmsproviderlib.zip file only for UNIX OS.
For Windows OS only sqljdbc.jar file which in every version of JDBC driver should be zipped to aii_af_jmsproviderlib.zip.
You can deploy JDBC driver through SDM tool which mention in guide below:
New version of JDBC driver installation guiade:
External Driver Configuration for Process Integration 7.0
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60237e74-ef19-2b10-5a9b-b35cc6a28e83
Drivertool from this guide you can find at https://www.sdn.sap.com/irj/sdn/howtoguides
Then Exchange Infrastructure How-to Guides for SAP NetWeaver 2004 HYPERLINK "https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f04ce027-934d-2a10-5a8f-fa0b1ed4d88f"
How to Install and Configure External Drivers for JDBC & JMS
AdaptersHYPERLINK "https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e00262f5-934d-2a10-b99c-9bc63c2a7768"
Download attached system files (ZIP 16KB)
Any questions - let me know
BR,
Dzmitry -
Dynamically loading and registering JDBC driver from an archive (zip - jar)
I'm programming an JDBC driver tester.
I have to load dynamically any driver from an archive (jar or zip) after the user uploaded it.
I think i did it well with my ClassLoader, i can get an instance of the driver and use any method like (getMinorVersion()) but when i registering it fail.
There is no error but the driver is not registered.
I rode the DriverManager log (with his logwriter) and he says :
skipping: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@5439fe]
skipping: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@2b7db1]
(two times, it looks curious isn't it ?)
This is a part of my code :
Driver pilote = (Driver)Class.forName(driverClass.getName(), true,this).newInstance();
System.out.println("Minor Version = "+ pilote.getMinorVersion());
PrintWriter printwriter = new PrintWriter(new OutputStreamWriter(System.out));
DriverManager.setLogWriter(printwriter);
DriverManager.registerDriver(pilote);
System.out.println("Driver registered\n");I have made a simple test :
public static void main(String[] param)
System.out.println("Loading Driver from JAR ...");
try
File jar = new File("c://mbm//drivers//oracle.jar");
URL aurl[] = {jar.toURL()};
URLClassLoader urlclassloader = new URLClassLoader(aurl, ClassLoader.getSystemClassLoader());
Class.forName("oracle.jdbc.driver.OracleDriver", true, urlclassloader);
PrintWriter printwriter = new PrintWriter(new OutputStreamWriter(System.out));
DriverManager.setLogWriter(printwriter);
Enumeration listDriver = DriverManager.getDrivers();
System.out.println("[---------Drivers-----------]");
while (listDriver.hasMoreElements())
Driver driver = (Driver) listDriver.nextElement();
System.out.println("->> "+driver.getClass().getName());
catch (MalformedURLException e)
e.printStackTrace();
catch (ClassNotFoundException e)
e.printStackTrace();
This displays that :
Loading Driver from JAR ...
skipping: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@9ec21d67]
[---------Drivers-----------]
D:\www\tomcat\webapps\mbm\WEB-INF\classes>
I think there is in this case only one instance -
Hi,
i tried to find a way to connect the UCCX8 with my MySql database. I got the MySql JDBC Driver but i can't install this on my UCCX8 server.
I use UCCX 8.0.1. Is there any way to connect mysql with UCCX8? Supported or unsupported?
Thanks for all...
ChristianIf you check the compatibility Matrix here:
http://www.cisco.com/en/US/docs/voice_ip_comm/cust_contact/contact_center/crs/express_compatibility/matrix/crscomtx.pdf
MySQL is not listed as compatible. And so will not be supported... -
Hi! I want to know if you know a good JDBC Driver 4 for use with Informix.
Thanks a lot!
Raulget the latest from:
http://www14.software.ibm.com/webapp/download/product.jsp?cat=data&S_TACT=&S_CMP=&id=MBEN-4ZKP2T&s=c&type=
hassan -
Character encoding and Sybase JDBC driver
Hi,
I have an issue with the Sybase JDBC driver we are using. We have characters in our database, e.g., canon with a ~ over the n. When I do a getString from the ResultSet, I see a ? instead of the character. I'm specifying utf8 as the encoding in the properties in the WLS console. I tried utf16 or ucs2, but I got exceptions from the Sybase JDBC driver at start up.
Any help would be greatly appreciated.Pat Bumpus wrote:
Hi,
I have an issue with the Sybase JDBC driver we are using. We have characters in our database, e.g., canon with a ~ over the n. When I do a getString from the ResultSet, I see a ? instead of the character. I'm specifying utf8 as the encoding in the properties in the WLS console. I tried utf16 or ucs2, but I got exceptions from the Sybase JDBC driver at start up.
Any help would be greatly appreciated.Which Sybase driver are you using?
Joe -
Install and configuring JDBC Driver in SAP Java stack
Hi Experts,
We are fetching data from GRC to BIW, for this we are using UD Connect in biw.
For this we need to configure and installed the JDBC Connectors.
Please suggest how to go about this.
Thanks,
VijayHi
Check this SAP Notes
1347514 - How to setup and configure the webi/deski JDBC connection for the Microsoft SQL Server 2005 and Oracle 9i&10g Database
1602614 - How To Install And Configure Microsoft SQL JDBC Drivers
831162 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 / PI 7.3 JDBC Adapter
Check the SCN blog
Michal's PI tips: JDBC/JMS driver deployment - now more forceMode=true
Configuring the JDBC Adapter - Advanced Adapter Engine - SAP Library
Regards
Ram -
Informix JDBC: Failed to load Informix JDBC Driver
hi:
I use workbench to migration informix 7.3 to Oracle 8.1The informix file ifxjdbc.jar needs to be put in the Omeb\drivers
directory.
Turloch
Oracle Migration Workbench Team -
hello,
i have asked this question before also .
my question is can i use jdbc driver in handhelds(PDA) so that i can connect my database which is residing on desktop through my java program.
i got answer that there is no jdbc driver that can be put on handhelds but now i have came to know that i can use hsqldb jdbc driver and postgresql jdbc driver in handhelds to access desktop database.
so i am very much confused that whether i can use jdbc driver in handhelds on not?
kindly help me
thanking u in advance
its
abhishek choprahi,
thanks for reply. ya i visited that site .but its not free as u have said.
but i inquired about hsqldb jdbc driver in their forum and mailing lists and they have said that hsqldb drivers can be used on handheld devices to access desktop database.
same thing for postgresql jdbc driver. they all r telling that drivers came in the form of jar file and we can deploye it on handheld (pda) with the java application
so sir how can i get confirmed about it.
about ur another option to use intermediate servelets to access database is also good. but problem will be that when we have to access that via http call and for it we require internet connection to access to servlet which is on our lan network(if am not wrong) . i have doubt that is internet connection is required to communicate to servlet if we connect to our pda in network.
please suggest me.
thanking u
its
abhishek -
Hello for all
I'm using informix JDBC driver and when I make a select with union it returns the error messages:
java.sql.SQLException: Corresponding column types must be compatible for each UNION statement.
java.sql.SQLException: Must have the same number of selected columns in each UNION element.
Please, help me
Thanksthis is a problem in your SQL-statement:
there should be equal number of columns and they should be all of the same type:
select id, description, url from table1
union
select description from table2is wrong....
select id, description, url from table1
union
select number,name, address from table2is right, because the number of columns is equal and the type is equal...
Consider this: you are appending the output of one query with another.... it all should match in order for it to be 1 table....
hth,
SurfMan
Maybe you are looking for
-
I want my home page intergrated with the YAHOO tool bar
I tried numerous times downloading FireFox 33 integrated with Yahoo toolbar, and it will NOT download. I had it loaded in this computer a few weeks ago however lost it when I had infection problems. HELP!
-
Diffrent webi report get opened in infoview
Hi, When user A double click the webi report, the other report get reported. It is very strange, because opened report should be not view by the user A, The system was cluster, and when use Server A it happened on some report, but server B there is n
-
Why does the iPad make the same noise when it connects to a charger that doesn't charge it as one that will charge it??? I would expect that it would make an unusual noise if plugged into a generic USB charger that does not have enough oomph to charg
-
I need a digital voice recorder best suited for recording my voice for chorus and quartet rehearsals
I'm looking for a small digital Sony voice recorder best suited for recording singing for chorus and quartet rehearsals. I received model ICD-AX412 but don't think that's the right one for this. I found a couple other models PCMD50 and PCMM10 online
-
How do I play the .wav file google mail sends me on my Iphone 5?
I have cable phone service that sends out a .wav file of any voicemails I recieve to my e-mail account. I use google mail on my Iphone, and cannot play the .wav file that is attached to that e-mail. When I click on the "audio message box", it bring