IBM DB2 JDBC Universal Driver
Hello,
On page 36 of the DF XI3.0 Installation Guide, there is a link for the IBM DB2 JDBC Universal Driver. When I click on this link I get the following error:
Downloads Message
2005-01-13 12:10:16.882164R download was not found in the database
Thanks for the help!
Jason
Hello
Thanks Scott for your reply. We have resolved this issue in house as follows:
- our Systems Support team installed the DB2 Connect client software on the DF server
- copied the jar file to the leselect/drivers directory
Also, because we are using the z series we needed an additional driver db2jcc_license_cisuz.jar which was copied into the same drivers dir.
Thanks!
Jason
Similar Messages
-
What's wrong with COM.ibm.db2.jdbc.app.DB2Driver?
Hello everybody,
first of all I posted this on
http://www-105.ibm.com/developerworks/java_df.nsf/AllViewTemplate?OpenForm&RestrictToCategory=33
so you can check the IBM forum as well, may be some IBM gurus can comment this...
I'm using the COM.ibm.db2.jdbc.app.Driver shipped with DB2Connect v6.1, v7.1 (tested both on NT and SunOS 5.6, 5.8), the database is DB2 v6, v7 running on an OS390. I am pretty confused:DatabaseMetaData.getProcedureColumns(catalog, schemaPattern, namePattern)cannot handle the namePattern parameter correct. It works only with "", null and "%". Passing any other value results in :COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2] SQL0206N "PROCEDURE " ist in dem verwendeten Kontext ung�ltig. SQLSTATE=42703
at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_SQLException(SQLExceptionGenerator.java:241)
at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_SQLException(SQLExceptionGenerator.java:186)
at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.check_return_code(SQLExceptionGenerator.java:419)
at COM.ibm.db2.jdbc.app.DB2DatabaseMetaData.getProcedures(DB2DatabaseMetaData.java:1446)I think that even if the pattern doesn't match any procedure the function should return an empty ResultSet. The only "solution" is to scroll all the procedures in the ResultSet until you find the passing ones. Does IBM think this is serious?
I have dug a bit and found another incompatibitly with the JDBC specification: the names of the result set columns returned by DatabaseMetaData.getProcedureColumns() as returned by the DB2Driver:
PROCEDURE_CAT
PROCEDURE_SCHEM
PROCEDURE_NAME
COLUMN_NAME
COLUMN_TYPE
DATA_TYPE
TYPE_NAME
COLUMN_SIZE
BUFFER_LENGTH
DECIMAL_DIGITS
NUM_PREC_RADIX
NULLABLE
REMARKS
Here comes the JDBC specification:
<quote>
Each procedure description has the the following columns:
PROCEDURE_CAT String => procedure catalog (may be null)
PROCEDURE_SCHEM String => procedure schema (may be null)
PROCEDURE_NAME String => procedure name
COLUMN_NAME String => column/parameter name
COLUMN_TYPE Short => kind of column/parameter:
procedureColumnUnknown - nobody knows
procedureColumnIn - IN parameter
procedureColumnInOut - INOUT parameter
procedureColumnOut - OUT parameter
procedureColumnReturn - procedure return value
procedureColumnResult - result column in ResultSet
DATA_TYPE short => SQL type from java.sql.Types
TYPE_NAME String => SQL type name, for a UDT type the type name is fully qualified
PRECISION int => precision
LENGTH int => length in bytes of data
SCALE short => scale
RADIX short => radix
NULLABLE short => can it contain NULL.
procedureNoNulls - does not allow NULL values
procedureNullable - allows NULL values
procedureNullableUnknown - nullability unknown
REMARKS String => comment describing parameter/column </quote>
I would appreciate your comments.
Regards,
Anton Maleev
IT Consultant, Software Engineer
Frankfurt, Germany
mailto: [email protected]Futhermore, when you call DatabaseMetaData.getProcedures(catalog, schemaPattern, "%") when you specified schemaPattern it returns all the procedures no mather if the schema matches the pattern...
-
No Suitable Driver Exception and COM.ibm.db2.jdbc.app.DB2Driver
Greetings,
I am attempting to connect to a DB2 UDB (6.1) on an AIX (4.x) box from a win95 box and have cobbled some code together to do this. Despite loading and verifying that the driver loads, I get nothing but the SQLException: "No Suitable Driver". My Java code follows for comment. Thanks in advance...
import java.lang.reflect.*;
import java.sql.*;
import java.io.*;
class db2JDBCtest
static Driver driver = null;
static final String url = "jdbc:db2//1xx.x.x4x.xx/";
public static void main(String args[]) {
Connection con = null;
// GET CONNECTION
try
driver = (Driver)Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();
System.out.println(driver);
if (args.length == 3) {
con = DriverManager.getConnection(url + args[0], args[1], args[2]);
else{
System.out.println("\nUsage: java db2JDBCtest [databasealias username password]\n");
System.exit( - 1 );}
// GET CONNECTION WARNINGS
SQLWarning warning = null; {
warning = con.getWarnings();
if (warning == null){
System.out.println("No Warnings");
return; }
while (warning != null) {
System.out.println("Warning: "+warning);
warning = warning.getNextWarning();
// CREATE PREPARED STATEMENT
PreparedStatement prepstmt;
prepstmt = con.prepareStatement("select * from MDM.DEALER where 1=0");
// GET RESULTS !
ResultSet resultset = prepstmt.executeQuery();
System.out.println(resultset);
prepstmt.close();
catch
(Exception e){
System.out.println(e);
}1)IBM document says that you use COM.ibm.jdbc.net.DB2Driver when you use Applets
2)For applications use COM.ibm.jdbc.app.DB2Driver
3)Both these files are in db2java.zip file
4)db2java.zip is the DB2 driver just like classes111.zip is the driver for Oracle
6)You need to put db2java.zip in your classpath.
5)If you are using COM.ibm.jdbc.net.DB2Driver and you are getting "COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0616E Error opening socket
. SQLSTATE=08S01 "
you need to run "db2jstrt" on the target host(machine running DB2) with the specified port as the parameter
6)If you are using COM.ibm.jdbc.app.DB2Driver and getting " java.sql.SQLException: No suitable driver ", most probably db2java.zip is not in classpath.
7)Note : you need to install DB2 client software on the application machine, just putting the zip file does not work.
8)There is a Java file at IBM that walks you thru the connection.
ftp://ftp.software.ibm.com/software/websphere/info/tools/jdbctest
Just download in into the client machine, compile and run it. -
Cannot load driver COM.ibm.db2.jdbc.app.DB2Driver
Hi ,
I need help on this matter and will really appreciate.
I have installed Jdeveloper 11g and Weblogic 11gR1 on windows. I am trying to configure my weblogic server for JDBC-Datasourse to connect to DB2 and get this error.
cannot load driver COM.ibm.db2.jdbc.app.DB2Driver
This is how my classpath and path looks
classpath :.;C:\Program Files\JDEdwards\BPMBroker\JRE\1.3\lib\ext\QTJava.zip;C:\Program Files\Java\jdk1.6.0_20\lib\tools.jar;C:\Program Files\Java\jdk1.6.0_20\lib\dt.jar;C:\Program Files\Java\jre6\lib\rt.jar;C:\Sun\db2java.zip;C:\Sun\COM\ibm\db2\jdbc\app\DB2Driver.class;C:\Program Files\IBM\WebSphere\AppServer\derby\lib\deprecated\db2jcc.jar;C:\Program Files\IBM\WebSphere\AppServer\derby\lib\deprecated\db2jcc_license_cu.jar;
path : C:\Program Files\Java\jdk1.6.0_20\bin;C:\Sun\db2java.zip;
I don't know what to do and everytime i try to test my connection i get this error .
Please help.
Thank youI added Driver Classname =com.ibm.db2.jcc.DB2Driver
and now it no longer gives me cannot load driver COM.ibm.db2.jdbc.app.DB2Driver.
But now i am getting
Execution failed due to a distribution protocol error that caused deallocation of the conversation. A DRDA Data Stream Syntax Error was detected. Reason: 0x1 DB2ConnectionCorrelator: null
com.ibm.db2.jcc.b.cb.l(cb.java:1207)
com.ibm.db2.jcc.b.cb.c(cb.java:357)
com.ibm.db2.jcc.b.cb.v(cb.java:1440)
com.ibm.db2.jcc.b.db.a(db.java:42)
com.ibm.db2.jcc.b.b.e(b.java:1165)
com.ibm.db2.jcc.b.b.b(b.java:1090)
com.ibm.db2.jcc.b.b.q(b.java:925)
com.ibm.db2.jcc.b.b.a(b.java:665)
com.ibm.db2.jcc.b.b.a(b.java:654)
com.ibm.db2.jcc.b.b.<init>(b.java:293)
com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:165)
com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:505)
com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:450)
sun.reflect.GeneratedMethodAccessor196.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:870)
org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)
org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:478)
org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:306)
Please help.
Thanks -
Getting class (COM.ibm.db2.jdbc.app.DB2Connection)
We are migrating from Websphere 3.5 to 4.0 and I am setting up my WSAD 4.0 on my local system. DB2 7.2 is the database for the application.
When i configure the Data Source, all works fine, but when I run the application, i get the following error.
The class (COM.ibm.db2.jdbc.app.DB2Connection) does not implement javax.sql.ConnectionPoolDataSource or javax.sql.XADataSource
My JDBC driver is in the file db2java.zip. Can anyone tell me what is the way to remove this error and If i need to download some new drivers, where can i get them from?sorry to say this but we also fed up with all those things and using db2 is 1 of the worst thing in the world if u get enough help from anywhere.. plz inform me also...
-
Applet using COM.ibm.db2.jdbc.app.DB2Driver
Hi,
I have an applet that is downloaded from a webserver which then needs to access the local db2java.zip file. It was my understanding if you use the COM.ibm.db2.jdbc.app.DB2Driver it would allow you to access the local copy of that file in your classpath. I also understand that if you use COM.ibm.db2.jdbc.net.DB2Driver you can access the db2java.zip on the server. I unfortunately need to access the local db2java.zip file. I am upgrading from Java 1.2.2 to Java 1.3.1 and it is not allowing this connection. I also changed my java.policy file and have created my own certificate as well, I understand all that.
Here is the section of my code that fails...
java.sql.Driver d = (java.sql.Driver) Class.forName(getDriver()).newInstance();
WHSConnection.con = DriverManager.getConnection(getURL(), getUser(), getPassword());
WHSConnection.con.setAutoCommit(true);
System.out.println("Database Connection Successful");
} catch (java.lang.Throwable except) {
except.printStackTrace();
System.out.println("Database Connection Failed");
Any suggestions would be appreciated. Thanks ~AYes, I forgot to mention that I stopped all DB2 Services and ran the file "runjdbc2.bat"... When I run Java 1.2.2 everything works great. When I run 1.3.1 it attempts to locate the db2java.zip classes on the server and not locally... Here is the error message I receive...
java.lang.ClassNotFoundException: java.io.FileNotFoundException: http://www.example.com/Java131/COM/ibm/db2/jdbc/app/DB2Driver.class
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
at sun.plugin.protocol.jdk12.http.HttpURLConnection.checkCookieHeader(Unknown Source)
at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at Serverlet.WHSConnection.getConnection(WHSConnection.java:159)
at Serverlet.MainApplet.onOk(MainApplet.java:522)
at Serverlet.MainApplet.connEtoM1(MainApplet.java:60)
at Serverlet.MainApplet.actionPerformed(MainApplet.java:29)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Database Connection Failed -
Class not found error for COM.ibm.db2.jdbc.app.DB2Driver
i have written this code:
import java.io.*;
import java.sql.*;
public class tryjdbc
{ public static void main (String args[])
{ try
{ Class.forName("COM.ibm.db2.jdbc.app.DB2Driver"); }
catch (java.lang.ClassNotFoundException e)
{ System.out.print(e.getMessage()); }
and once i try to run it, it gives out a class not found exception error.
I haven't changed anything with the classpath since I don't think the problem is with the classpath. I have read in the IBM Developer Kit for Java documentaton that the AS/400 Developer Kit for Java automatically adds the db2_class.jar file to the classpath. So why do I get a class not found exception error?I was using Web Spehere 4.0.3 and trying to connect to a database on DB2 7.2. I was just following a tutorial and trying to get a handle on Web Sphere. I am running all of these on a Windows 2000 Operating System. Here are some of my observations :
a. db2java.zip packaged under %DB2ROOT%\SQLLIB\JAVA, does not work.
b. CLASSPATH needs to be set to %DB2ROOT%\sqllib\java12\db2java.zip
c. Include this as one of the packages in the package defined in
WebSphere, using the Java Perspective.
d. Ensure that case sensitivity is respected. All though the package
shows up as COM.ibm.db2.jdbc.app.DB2Driver, for some reason, it
will only accept com.ibm.db2.jdbc.app.DB2Driver.
With these settings, I was able to connect to a db2 database.
I am a little puzzled on the following. I did not include java.io package, but still it could print the messages. Did anybody have a similar experience
Thanks for this posting. -
Hi All,
when executing an application and attempting to connect to DB2 I get;
error java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver
I've added the 'db2java.zip' library to the java.conf file (and the native db2 libs) and can make db2 connections using the database connect via the IDE. But not when executing my application - what am I missing.
TIA
BillHi Deepak,
I added the db2java.zip to the
project properties/libraries/classpath
and it works fine. (well my code fails - but that's another problem <g>.)
Thanks for all your help.
Bill -
Com.ibm.db2.jdbc.app.DB2DBException
Hi,
Iam trying to upload a .csv file into DB2(AS400).After 256th row in csv file iam getting the following exception.pls help me as to how to take care.
the number of rows i wish to uplaod are 897.
iam using javazoom.upload.UploadBean for uploading
thanks in advance
GowriHello Ashvini,
Can you answer the simple questions:
1. Are you able to upload smaller files into Database?
2. For huge files, are u able to write the file localay in the server and see the entire contents?
3. Can you post the entire stack trace?
4. Did you check Google?
Thanks and regards,
Pazhanikanthan. P -
No suitable driver found error while connecting to remote IBM DB2 database.
While trying to connect to IBM DB2 database on a remote location, though the connection was successful from 'Application Resources', following trace could be recovered while performing 'Run' from 'AppModule':
ERROR:
(oracle.jbo.DMLException) JBO-26061: Error while opening JDBC connection.
----- Level 1: Detail 0 -----
(java.sql.SQLException) No suitable driver found for jdbc:as400://XX.XXX.XX.XXX;naming=system;libraries=TEST;translate binary=true;prompt=false
[891] (oracle.adf.model.bc4j.DataControlFactoryImpl.SyncMode = Immediate
[892] Creating a new pool resource
[893] BC4JDeployPlatform: LOCAL
[894] Propertymanager: skipping reload of file and system based properties
[895] {{ begin Loading BC4J properties
[896] -----------------------------------------------------------
[897] BC4J Property jbo.default.language='en' -->(MetaObjectManager) from System Default
[898] BC4J Property jbo.default.country='US' -->(MetaObjectManager) from System Default
[899] Skipping empty Property jbo.default.locale.variant from System Default
[900] BC4J Property DeployPlatform='LOCAL' -->(SessionImpl) from Client Environment
[901] Skipping empty Property ConnectionMode from System Default
[902] Skipping empty Property HostName from System Default
[903] Skipping empty Property ConnectionPort from System Default
[904] BC4J Property jbo.locking.mode='optimistic' -->(MetaObjectManager) from Client Environment
[905] BC4J Property jbo.txn.disconnect_level='0' -->(SessionImpl) from System Default
[906] Skipping empty Property ApplicationPath from System Default
[907] BC4J Property AppModuleJndiName='model.AppModule' -->(SessionImpl) from Client Environment
[908] Skipping empty Property java.naming.security.principal from System Default
[909] Skipping empty Property java.naming.security.credentials from System Default
[910] Skipping empty Property jbo.user.principal from System Default
[911] BC4J Property jbo.simulate.remote='false' -->(SessionImpl) from System Default
[912] BC4J Property jbo.security.context='oracle.security.jazn' -->(MetaObjectManager) from System Default
[913] Skipping empty Property jbo.object.marshaller from System Default
[914] BC4J Property jbo.use.pers.coll='false' -->(SessionImpl) from System Default
[915] BC4J Property jbo.pers.max.rows.per.node='70' -->(SessionImpl) from System Default
[916] BC4J Property jbo.pers.max.active.nodes='30' -->(SessionImpl) from System Default
[917] BC4J Property jbo.validation.threshold='10' -->(SessionImpl) from System Default
[918] BC4J Property jbo.sparse.array.threshold='20' -->(SessionImpl) from System Default
[919] Skipping empty Property jbo.pcoll.mgr from System Default
[920] BC4J Property jbo.txn_table_name='PS_TXN' -->(SessionImpl) from System Default
[921] BC4J Property jbo.txn_seq_name='PS_TXN_seq' -->(SessionImpl) from System Default
[922] BC4J Property jbo.txn_seq_inc='50' -->(SessionImpl) from System Default
[923] BC4J Property jbo.control_table_name='PCOLL_CONTROL' -->(MetaObjectManager) from System Default
[924] BC4J Property jbo.stringmanager.factory.class='use_default' -->(SessionImpl) from System Default
[925] BC4J Property jbo.domain.date.suppress_zero_time='true' -->(MetaObjectManager) from System Default
[926] BC4J Property jbo.domain.bind_sql_date='true' -->(MetaObjectManager) from System Default
[927] BC4J Property jbo.domain.string.as.bytes.for.raw='false' -->(MetaObjectManager) from System Default
[928] BC4J Property jbo.fetch.mode='AS.NEEDED' -->(MetaObjectManager) from System Default
[929] BC4J Property jbo.323.compatible='false' -->(MetaObjectManager) from System Default
[930] BC4J Property jbo.903.compatible='false' -->(MetaObjectManager) from System Default
[931] Skipping empty Property JBODynamicObjectsPackage from System Default
[932] BC4J Property MetaObjectContextFactory='oracle.jbo.mom.xml.DefaultMomContextFactory' -->(MetaObjectManager) from System Default
[933] BC4J Property jbo.load.components.lazily='false' -->(MetaObjectManager) from System Default
[934] BC4J Property MetaObjectContext='oracle.jbo.mom.xml.XMLContextImpl' -->(MetaObjectManager) from System Default
[935] BC4J Property java.naming.factory.initial='oracle.jbo.common.JboInitialContextFactory' -->(SessionImpl) from Client Environment
[936] BC4J Property IsLazyLoadingTrue='true' -->(MetaObjectManager) from Client Environment
[937] BC4J Property oracle.jbo.usemds='true' -->(MetaObjectManager) from System Default
[938] BC4J Property oracle.adfm.usemds='true' -->(MetaObjectManager) from System Default
[939] BC4J Property ActivateSharedDataHandle='false' -->(MetaObjectManager) from System Default
[940] Skipping empty Property HandleName from System Default
[941] Skipping empty Property Factory-Substitution-List from System Default
[942] BC4J Property jbo.project='model.Model' -->(Configuration) from Client Environment
[943] BC4J Property jbo.max.cursors='50' -->(MetaObjectManager) from System Default
[944] WARNING: Property jbo.dofailoverset to null
[945] Skipping empty Property jbo.dofailover from null
[946] WARNING: Property jbo.envinfoproviderset to null
[947] Skipping empty Property jbo.envinfoprovider from null
[948] Skipping empty Property jbo.rowid_am_conn_name from System Default
[949] Skipping empty Property jbo.rowid_am_datasource_name from System Default
[950] WARNING: Property jbo.ampool.writecookietoclientset to null
[951] Skipping empty Property jbo.ampool.writecookietoclient from null
[952] WARNING: Property jbo.doconnectionpoolingset to null
[953] Skipping empty Property jbo.doconnectionpooling from null
[954] WARNING: Property jbo.recyclethresholdset to null
[955] Skipping empty Property jbo.recyclethreshold from null
[956] WARNING: Property jbo.ampool.dynamicjdbccredentialsset to null
[957] Skipping empty Property jbo.ampool.dynamicjdbccredentials from null
[958] BC4J Property jbo.ampool.resetnontransactionalstate='true' -->(SessionImpl) from System Default
[959] BC4J Property jbo.ampool.sessioncookiefactoryclass='oracle.jbo.common.ampool.DefaultSessionCookieFactory' -->(Configuration) from Client Environment
[960] WARNING: Property jbo.ampool.connectionstrategyclassset to null
[961] Skipping empty Property jbo.ampool.connectionstrategyclass from null
[962] WARNING: Property jbo.ampool.maxpoolsizeset to null
[963] Skipping empty Property jbo.ampool.maxpoolsize from null
[964] BC4J Property jbo.ampool.initpoolsize='0' -->(Configuration) from Client Environment
[965] WARNING: Property jbo.ampool.monitorsleepintervalset to null
[966] Skipping empty Property jbo.ampool.monitorsleepinterval from null
[967] WARNING: Property jbo.ampool.minavailablesizeset to null
[968] Skipping empty Property jbo.ampool.minavailablesize from null
[969] WARNING: Property jbo.ampool.maxavailablesizeset to null
[970] Skipping empty Property jbo.ampool.maxavailablesize from null
[971] WARNING: Property jbo.ampool.maxinactiveageset to null
[972] Skipping empty Property jbo.ampool.maxinactiveage from null
[973] WARNING: Property jbo.ampool.timetoliveset to null
[974] Skipping empty Property jbo.ampool.timetolive from null
[975] WARNING: Property jbo.ampool.doampoolingset to null
[976] Skipping empty Property jbo.ampool.doampooling from null
[977] WARNING: Property jbo.ampool.issupportspassivationset to null
[978] Skipping empty Property jbo.ampool.issupportspassivation from null
[979] BC4J Property jbo.ampool.isuseexclusive='true' -->(SessionImpl) from System Default
[980] BC4J Property jbo.passivationstore='null' -->(SessionImpl) from System Default
[981] BC4J Property jbo.saveforlater='false' -->(SessionImpl) from System Default
[982] BC4J Property jbo.snapshotstore.undo='persistent' -->(SessionImpl) from System Default
[983] BC4J Property jbo.maxpassivationstacksize='10' -->(SessionImpl) from System Default
[984] BC4J Property jbo.txn.handleafterpostexc='false' -->(SessionImpl) from System Default
[985] BC4J Property jbo.connectfailover='true' -->(SessionImpl) from System Default
[986] BC4J Property jbo.datasource_naming_factory='oracle.jbo.server.DataSourceContextFactory' -->(MetaObjectManager) from System Default
[987] WARNING: Property jbo.maxpoolcookieageset to null
[988] Skipping empty Property jbo.maxpoolcookieage from null
[989] WARNING: Property PoolClassNameset to null
[990] Skipping empty Property PoolClassName from null
[991] BC4J Property jbo.maxpoolsize='4096' -->(MetaObjectManager) from System Default
[992] BC4J Property jbo.initpoolsize='0' -->(MetaObjectManager) from System Default
[993] BC4J Property jbo.poolrequesttimeout='30000' -->(MetaObjectManager) from System Default
[994] BC4J Property jbo.poolmonitorsleepinterval='600000' -->(MetaObjectManager) from System Default
[995] BC4J Property jbo.poolminavailablesize='5' -->(MetaObjectManager) from System Default
[996] BC4J Property jbo.poolmaxavailablesize='25' -->(MetaObjectManager) from System Default
[997] BC4J Property jbo.poolmaxinactiveage='600000' -->(MetaObjectManager) from System Default
[998] BC4J Property jbo.pooltimetolive='-1' -->(MetaObjectManager) from System Default
[999] BC4J Property jbo.qcpool.monitorsleepinterval='1800000' -->(SessionImpl) from System Default
[1000] BC4J Property jbo.qcpool.maxinactiveage='900000' -->(SessionImpl) from System Default
[1001] BC4J Property jbo.qcpool.maxweight='-1' -->(SessionImpl) from System Default
[1002] BC4J Property RELEASE_MODE='Stateful' -->(MetaObjectManager) from System Default
[1003] BC4J Property jbo.assoc.consistent='true' -->(MetaObjectManager) from System Default
[1004] BC4J Property jbo.viewlink.consistent='DEFAULT' -->(MetaObjectManager) from System Default
[1005] BC4J Property jbo.finder.range.size='DEFAULT' -->(MetaObjectManager) from System Default
[1006] BC4J Property jbo.passivation.TrackInsert='true' -->(MetaObjectManager) from System Default
[1007] Skipping empty Property jbo.ViewCriteriaAdapter from System Default
[1008] BC4J Property jbo.SQLBuilder='DB2' -->(MetaObjectManager) from Client Environment
[1009] BC4J Property jbo.ConnectionPoolManager='oracle.jbo.server.ConnectionPoolManagerImpl' -->(MetaObjectManager) from System Default
[1010] BC4J Property jbo.TypeMapEntries='OracleApps' -->(MetaObjectManager) from Client Environment
[1011] Skipping empty Property jbo.sql92.JdbcDriverClass from System Default
[1012] BC4J Property jbo.sql92.LockTrailer='FOR UPDATE' -->(MetaObjectManager) from System Default
[1013] BC4J Property jbo.jdbc.trace='false' -->(MetaObjectManager) from System Default
[1014] BC4J Property jbo.abstract.base.check='true' -->(MetaObjectManager) from System Default
[1015] BC4J Property jbo.assoc.where.early.set='false' -->(MetaObjectManager) from System Default
[1016] BC4J Property jbo.use.findbykey.for.assoc='true' -->(MetaObjectManager) from System Default
[1017] BC4J Property jbo.sql92.DbTimeQuery='select sysdate from dual' -->(MetaObjectManager) from System Default
[1018] BC4J Property oracle.jbo.defineColumnLength='skipDefines' -->(MetaObjectManager) from System Default
[1019] BC4J Property jbo.jdbc_bytes_conversion='jdbc' -->(MetaObjectManager) from System Default
[1020] Skipping empty Property jbo.tmpdir from System Default
[1021] Skipping empty Property jbo.server.internal_connection from System Default
[1022] BC4J Property SessionClass='oracle.jbo.server.SessionImpl' -->(SessionImpl) from System Default
[1023] Skipping empty Property TransactionFactory from System Default
[1024] Skipping empty Property jbo.def.mgr.listener from System Default
[1025] Skipping empty Property jbo.use.global.sub.map from System Default
[1026] BC4J Property jbo.debugoutput='console' -->(Diagnostic) from System Property
[1027] BC4J Property jbo.debug.prefix='DBG: ' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[1028] BC4J Property jbo.logging.show.timing='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[1029] BC4J Property jbo.logging.show.function='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[1030] BC4J Property jbo.logging.show.level='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[1031] BC4J Property jbo.logging.show.linecount='true' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[1032] BC4J Property jbo.logging.trace.threshold='6' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
[1033] BC4J Property jbo.jdbc.driver.verbose='false' -->(Diagnostic) from System Default
[1034] Skipping empty Property oracle.home from System Default
[1035] Skipping empty Property oc4j.name from System Default
[1036] Skipping empty Property jbo.shared.txn from System Default
[1037] BC4J Property oracle.adfm.useSharedTransactionForFrame='true' -->(MetaObjectManager) from System Default
[1038] BC4J Property oracle.adfm.joinNewFrameTransaction='false' -->(MetaObjectManager) from System Default
[1039] BC4J Property jbo.ejb.txntimeout='1830' -->(SessionImpl) from System Default
[1040] BC4J Property jbo.ejb.txntype='global' -->(SessionImpl) from System Default
[1041] BC4J Property jbo.ejb.txn.disconnect_on_completion='false' -->(SessionImpl) from System Default
[1042] BC4J Property jbo.ejb.useampool='false' -->(SessionImpl) from Client Environment
[1043] Skipping empty Property oracle.jbo.schema from System Default
[1044] BC4J Property jbo.xml.validation='false' -->(MetaObjectManager) from System Default
[1045] BC4J Property ord.RetrievePath='ordDeliverMedia' -->(MetaObjectManager) from System Default
[1046] BC4J Property ord.HttpMaxMemory='102400' -->(MetaObjectManager) from System Default
[1047] Skipping empty Property ord.HttpTempDir from System Default
[1048] BC4J Property ord.wmp.classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' -->(MetaObjectManager) from System Default
[1049] BC4J Property ord.qp.classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' -->(MetaObjectManager) from System Default
[1050] BC4J Property ord.rp.classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' -->(MetaObjectManager) from System Default
[1051] BC4J Property ord.wmp.codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' -->(MetaObjectManager) from System Default
[1052] BC4J Property ord.qp.codebase='http://www.apple.com/qtactivex/qtplugin.cab' -->(MetaObjectManager) from System Default
[1053] Skipping empty Property ord.rp.codebase from System Default
[1054] BC4J Property ord.wmp.plugins.page='http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&' -->(MetaObjectManager) from System Default
[1055] BC4J Property ord.qp.plugins.page='http://www.apple.com/quicktime/download/' -->(MetaObjectManager) from System Default
[1056] BC4J Property ord.rp.plugins.page='http://www.real.com/player/' -->(MetaObjectManager) from System Default
[1057] BC4J Property jbo.security.enforce='None' -->(SessionImpl) from System Default
[1058] BC4J Property jbo.security.loginmodule='oracle.security.jazn.oc4j.JAZNUserManager' -->(SessionImpl) from System Default
[1059] Skipping empty Property jbo.security.config from System Default
[1060] BC4J Property jbo.server.useNullDbTransaction='false' -->(SessionImpl) from System Default
[1061] BC4J Property jbo.domain.reopenblobstream='false' -->(MetaObjectManager) from System Default
[1062] BC4J Property jbo.server.retainAssocAccessor='false' -->(SessionImpl) from System Default
[1063] BC4J Property jbo.groovy.debug='false' -->(MetaObjectManager) from System Default
[1064] BC4J Property jbo.busevent.suspendpublication='false' -->(SessionImpl) from System Default
[1065] BC4J Property oracle.adfm.DefaultEventPolicy='NONE' -->(MetaObjectManager) from System Default
[1066] BC4J Property oracle.adfm.useRootFrameOnly='false' -->(MetaObjectManager) from System Default
[1067] Copying unknown Client property (user='TESTER') to session
[1068] Copying unknown Client property (FullProxyInterfaceName='model.common.AppModule') to session
[1069] Copying unknown Client property (jbo.applicationmoduleclassname='model.AppModule') to session
[1070] Copying unknown Client property (jbo.jdbc.username='TESTER') to session
[1071] Copying unknown Client property (BC4JConfigName='AppModuleLocal') to session
[1072] Copying unknown Client property (DsPasswd='workout') to session
[1073] Copying unknown Client property (JDBCName='ConnectTo146') to session
[1074] Copying unknown Client property (DsUserName='TESTER') to session
[1075] Copying unknown Client property (name='137E06086E5') to session
[1076] Copying unknown Client property (ApplicationName='model.AppModule') to session
[1077] Copying unknown Client property (LastUsedConfiguration='AppModuleLocal') to session
[1078] Copying unknown Client property (password='*****') to session
[1079] Copying unknown Client property (JDBCDataSource='java:comp/env/jdbc/ConnectTo146DS') to session
[1080] Copying unknown Client property (jbo.jdbc.connectstring='jdbc:as400:/;naming=system;libraries=QTEMP XAN4CDXA XAN4CDEM;translate binary=true;prompt=false') to session
[1081] Copying unknown Client property (DBconnection='jdbc:as400://;naming=system;libraries=QTEMP XAN4CDXA XAN4CDEM;translate binary=true;prompt=false') to session
[1082] Copying unknown Client property (jbo.jdbc.password='*****') to session
[1083] }} finished loading BC4J properties
[1084] -----------------------------------------------------------
[1085] Connected to Oracle JBO Server - Version: 11.1.2.61.83
[1086] mPCollUsePMgr is false
[1087] ViewObjectImpl.mDefaultMaxRowsPerNode is 70
[1088] ViewObjectImpl.mDefaultMaxActiveNodes is 30
[1089] Default locking mode changed to: optimistic
[1090] Created root application module: 'model.AppModule'
[1091] Locale is: 'en_US'
[1092] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
[1093] Trying connection: DataSource='oracle.jbo.server.ConnectionPoolDataSource@191d9ad'...
[1094] Using the oracle.jbo.server.ConnectionPoolDataSource to acquire a connection...
[1095] Creating a new pool resource
[1096] Trying connection/3: url='jdbc:as400:/*****' user='TESTER' password='*****' ...
[1097] DBTransactionImpl.initTransaction: Login failed
[1098] java.sql.SQLException: No suitable driver found for jdbc:as400:;naming=system;libraries=QTEMP XAN4CDXA XAN4CDEM;translate binary=true;prompt=false
at java.sql.DriverManager.getConnection(DriverManager.java:602)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:187)
at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:172)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:45)
at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:72)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:964)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9021)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:222)
at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:945)
at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:646)
at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:612)
at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:446)
[1099] A dead application module instance was detected
[1100] The application module instance was removed from the pool
[1101] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
[1102] Resetting AM=AppModule
[1103] An exception occured during checkout.
[1104] oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:207)
at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:172)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:45)
at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:72)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:964)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9021)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:222)
at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:945)
at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:646)
at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:612)
at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:446)
Caused by: java.sql.SQLException: No suitable driver found for jdbc:as400://naming=system;libraries=QTEMP XAN4CDXA XAN4CDEM;translate binary=true;prompt=false
at java.sql.DriverManager.getConnection(DriverManager.java:602)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:187)
at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
... 32 more
[1105] JUErrorHandlerDlg.reportException(oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper)
[1106] UIMessageBundle (language base) being initialized
Jun 12, 2012 4:38:26 PM oracle.jbo.jbotester.MainFrame exit
INFO: BC4J Tester exit code(-3)
Process exited with exit code -3.When you use DB2 SQL flavor, the ADF BC use the oracle.jbo.server.DB2SQLBuilderImpl class as an SQLBuilder. This class determines the JDBC driver class name as follows:
1) If the JBO configuration parameter jbo.sql92.JdbcDriverClass in not empty, then the JDBC driver class name is taken from there;
2) If the jbo.sql92JdbcDriverClass parameter is empty, then:
<ul><li>If the JDBC URL starts with "jdbc:db2://", then com.ibm.db2.jcc.DB2Driver
<li>If the JDBC URL starts with "jdbc:oracle:db2", then com.oracle.ias.jdbc.db2.DB2Driver
<li>If the JDBC URL starts with "jdbc:datadirect:db2", then com.ddtek.jdbc.db2.DB2Driver
<li>Otherwise, COM.ibm.db2.jdbc.app.DB2Driver</ul>
(Have a look at the source of the method DB2SQLBuilderImpl.getJDBCDriverClassName(String url) for more details).
It is seen from the log in your first post that the parameter jbo.sql92.JdbcDriverClass is empty. As far as your JDBC URL starts with neither of the prefixes specified above (e.g. your URL starts with "jdbc:as400://"), then you should specify the necessary JDBC driver class in the JBO configuration parameter jbo.sql92.JdbcDriverClass. (You can specify it in the AM configuration parameters or in adf-config.xml).
Dimitar -
Hi,
We are running WebLogic 10.3.0 on RHEL 5.3 with JRockit JDK 1.6 and DB2 Version 8 on mainframe running z/OS 1.9.
We are getting below exception in webLogic logs from connection pool connecting to DB2 database.
>
####<Jul 23, 2010 10:05:49 AM EDT> <Warning> <JDBC> <testing.us.test.net> <testingDB2> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1279893949615> <BEA-001129> <Received exception while creating connection for pool "TestDB2Pool": DB2 SQL Error: SQLCODE=-973, SQLSTATE=00000, SQLERRMC=MON_HEAP_SZ, DRIVER=3.53.70>
####<Jul 23, 2010 10:05:49 AM EDT> <Info> <JDBC> <testing.us.test.net> <testingDB2> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1279893949616> <BEA-001156> <Stack trace associated with message 001129 follows:
com.ibm.db2.jcc.b.SqlException: DB2 SQL Error: SQLCODE=-973, SQLSTATE=00000, SQLERRMC=MON_HEAP_SZ, DRIVER=3.53.70
at com.ibm.db2.jcc.b.bd.a(bd.java:679)
at com.ibm.db2.jcc.b.bd.a(bd.java:60)
at com.ibm.db2.jcc.b.bd.a(bd.java:127)
at com.ibm.db2.jcc.b.jb.a(jb.java:4016)
at com.ibm.db2.jcc.t4.bb.l(bb.java:403)
at com.ibm.db2.jcc.t4.bb.d(bb.java:141)
at com.ibm.db2.jcc.t4.b.Oc(b.java:1305)
at com.ibm.db2.jcc.t4.b.b(b.java:1225)
at com.ibm.db2.jcc.t4.b.B(b.java:5129)
at com.ibm.db2.jcc.t4.b.c(b.java:783)
at com.ibm.db2.jcc.t4.b.b(b.java:726)
at com.ibm.db2.jcc.t4.b.a(b.java:409)
at com.ibm.db2.jcc.t4.b.<init>(b.java:345)
at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:197)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:316)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:217)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1109)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1033)
at weblogic.common.resourcepool.ResourcePoolImpl.createResources(ResourcePoolImpl.java:574)
at weblogic.jdbc.wrapper.Connection.run(Connection.java:268)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
>
Below is snippet of my datasource configuration.
<?xml version='1.0' encoding='UTF-8'?>
<jdbc-data-source xmlns="http://www.bea.com/ns/weblogic/jdbc-data-source" xmlns:sec="http://www.bea.com/ns/weblogic/90/security" xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/jdbc-data-source http://www.bea.com/ns/weblogic/jdbc-data-source/1.0/jdbc-data-source.xsd">
<name>TestingDB2</name>
<jdbc-driver-params>
<url>jdbc:db2://DB2.testing.us.com:50003/TestingDB</url>
<driver-name>com.ibm.db2.jcc.DB2Driver</driver-name>
<properties>
<property>
<name>maxRetriesForClientReroute</name>
<value>2</value>
</property>
<property>
<name>retryIntervalForClientReroute</name>
<value>5</value>
</property>
<property>
<name>user</name>
<value>testuser</value>
</property>
<property>
<name>resultSetHoldability</name>
<value>2</value>
</property>
<property>
<name>enableSysplexWLB</name>
<value>true</value>
</property>
<property>
<name>enableConnectionConcentrator</name>
<value>true</value>
</property>
<property>
<name>databaseName</name>
<value>DB2QA</value>
</property>
<property>
<name>maxTransportObjects</name>
<value>108</value>
</property>
</properties>
<password-encrypted>{3DES}eh4WI16Xb8E=</password-encrypted>
</jdbc-driver-params>
<jdbc-connection-pool-params>
<initial-capacity>40</initial-capacity>
<max-capacity>215</max-capacity>
<capacity-increment>1</capacity-increment>
<shrink-frequency-seconds>300</shrink-frequency-seconds>
<highest-num-waiters>2147483647</highest-num-waiters>
<connection-creation-retry-frequency-seconds>15</connection-creation-retry-frequency-seconds>
<connection-reserve-timeout-seconds>10</connection-reserve-timeout-seconds>
<test-frequency-seconds>300</test-frequency-seconds>
<test-connections-on-reserve>true</test-connections-on-reserve>
<ignore-in-use-connections-enabled>true</ignore-in-use-connections-enabled>
<inactive-connection-timeout-seconds>300</inactive-connection-timeout-seconds>
<test-table-name>SYSIBM.SYSDUMMY</test-table-name>
<login-delay-seconds>1</login-delay-seconds>
<statement-cache-size>300</statement-cache-size>
<statement-cache-type>LRU</statement-cache-type>
<remove-infected-connections>true</remove-infected-connections>
<seconds-to-trust-an-idle-pool-connection>15</seconds-to-trust-an-idle-pool-connection>
<statement-timeout>-1</statement-timeout>
<pinned-to-thread>false</pinned-to-thread>
</jdbc-connection-pool-params>
<jdbc-data-source-params>
<jndi-name>TestingDB2</jndi-name>
<global-transactions-protocol>None</global-transactions-protocol>
</jdbc-data-source-params>
</jdbc-data-source>
Please help me on this.
- BoyelTThanks Joe. I will test the standalone client program you provided.
Below are links I found on web on SQL CODE -972 error message
http://www.dbforums.com/db2/875633-sqlcode-973-sqlstate-57011-drda_heap_sz-cobol-db2-error.html
http://publib.boulder.ibm.com/infocenter/tivihelp/v4r1/index.jsp?topic=/com.ibm.tpc_V411.doc/fqz0_r_tbs_db2_sql_973.html
http://www-01.ibm.com/support/docview.wss?uid=swg1IY55389
Below is explanation about this message
===============================================
SQL0973N Not enough storage is available in the "<heap-name>" heap to process the statement.
Explanation: All available memory for this heap has been used. The statement cannot be processed.
User Response: Terminate the application on receipt of this message (SQLCODE). Increase the configuration parameter for "<heap-name>" to increase the heap size.
===============================================
Can you please advise if this is the problem from DBMS side? -
Problem in mixing DB2 V8 type4 driver and DB2 V7 type3 driver
Hello,
I have an application using CMP on Weblogic server 6.1 SP4. This application connects to 2 datasources on DB2 V7 with a type3 driver.
One of the Database is migrating to DB2 V8 and we need to use type4 driver.
Then we have one datasource on DB2 V7 with type3 driver and one on DB2 V8 with type4 driver :
<JDBCConnectionPool CapacityIncrement="5"
DriverName="COM.ibm.db2.jdbc.net.DB2Driver"
InitialCapacity="5"
MaxCapacity="60" Name="pasrelv3Pool"
Properties="user=db2pasv3;password=db2pasv3;language=fr_FR"
RefreshMinutes="5" Targets="pasrelv3Server"
TestConnectionsOnReserve="true"
URL="jdbc:db2://db2_srv:60000/PASREL"/>
<JDBCConnectionPool CapacityIncrement="5"
DriverName="com.ibm.db2.jcc.DB2Driver"
InitialCapacity="5"
MaxCapacity="60" Name="pasrelv3ArchiPool"
Properties="user=db2;password=db2;language=fr_FR"
RefreshMinutes="5" Targets="pasrelv3Server"
TestConnectionsOnReserve="true"
URL="jdbc:db2://db2_srv:50002/E_PRO"/>
When we start Weblogic , it seems that weblogic.jdbc.common.internal.ConnectionEnvFactory register the type4 driver but try to use type3 for connection (bold code in the following).
Here is an extract of jdbc log :
JDBC log stream started at Wed Mar 28 14:25:23 CEST 2007
DriverManager.initialize: jdbc.drivers = null
JDBC DriverManager initialized
registerDriver: driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
DriverManager.getDriver("jdbc:db2://db2_srv:60000/PASREL")
trying driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
getDriver returning driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
Server db2_srv port 60000 source PASREL
Server db2_srv port 60000 source PASREL
Server db2_srv port 60000 source PASREL
Server db2_srv port 60000 source PASREL
Server db2_srv port 60000 source PASREL
DB2 Peak statements = 1
registerDriver: driver[className=com.ibm.db2.jcc.DB2Driver,com.ibm.db2.jcc.DB2Driver@3789b4ac]
DriverManager.getDriver("jdbc:db2://db2_srv:50002/E_PRO")
trying driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
getDriver returning driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
Server db2_srv port 50002 source E_PRO
SQLException: SQLState(08S01) vendor code(-99999)
COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0615E Erreur lors de la r?ception de donn?es provenant du socket. Le ser
veur ne r?pond pas. SQLSTATE=08S01
at COM.ibm.db2.jdbc.net.SQLExceptionGenerator.throwReceiveError(SQLExceptionGenerator.java:500)
at COM.ibm.db2.jdbc.net.DB2Request.receive(DB2Request.java:727)
at COM.ibm.db2.jdbc.net.DB2Request.sendAndRecv(DB2Request.java:587)
at COM.ibm.db2.jdbc.net.DB2Connection.SQLConnect(DB2Connection.java(Compiled Code))
at COM.ibm.db2.jdbc.net.DB2Connection.create(DB2Connection.java(Compiled Code))
at COM.ibm.db2.jdbc.net.DB2Connection.create(DB2Connection.java(Compiled Code))
at COM.ibm.db2.jdbc.net.DB2Connection.<init>(DB2Connection.java:245)
at COM.ibm.db2.jdbc.net.DB2Driver.connect(DB2Driver.java:215)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java(Compiled Code))
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java(Compiled Code))
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.java(Compiled Code))
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:283)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:671)
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:110)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java(Compiled Code))
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:286)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:239)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:199)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java(Compiled Code))
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java(Compiled Code))
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java(Compiled Code))
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
at $Proxy30.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:3015)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:376)
at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:164)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java(Compiled Code))
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java(Compiled Code))
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java(Compiled Code))
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
at $Proxy41.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.ja
va:480)
at weblogic.management.Admin.startApplicationManager(Admin.java:1309)
at weblogic.management.Admin.finish(Admin.java:650)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:547)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:214)
at weblogic.Server.main(Server.java:35)Cedric BEURTHERET wrote:
Hello,
I have an application using CMP on Weblogic server 6.1 SP4. This application connects to 2 datasources on DB2 V7 with a type3 driver.
One of the Database is migrating to DB2 V8 and we need to use type4 driver.
Then we have one datasource on DB2 V7 with type3 driver and one on DB2 V8 with type4 driver :
<JDBCConnectionPool CapacityIncrement="5"
DriverName="COM.ibm.db2.jdbc.net.DB2Driver"
InitialCapacity="5"
MaxCapacity="60" Name="pasrelv3Pool"
Properties="user=db2pasv3;password=db2pasv3;language=fr_FR"
RefreshMinutes="5" Targets="pasrelv3Server"
TestConnectionsOnReserve="true"
URL="jdbc:db2://db2_srv:60000/PASREL"/>
<JDBCConnectionPool CapacityIncrement="5"
DriverName="com.ibm.db2.jcc.DB2Driver"
InitialCapacity="5"
MaxCapacity="60" Name="pasrelv3ArchiPool"
Properties="user=db2;password=db2;language=fr_FR"
RefreshMinutes="5" Targets="pasrelv3Server"
TestConnectionsOnReserve="true"
URL="jdbc:db2://db2_srv:50002/E_PRO"/>Hi. I see the problem. We are loading both your
driver classes, but we are calling DriverManager.getDriver(URL)
to get the driver we use for making connections, and
unfortunately both the drivers you name take the same
URL, and the second pool is being given the first driver
by DriverManager. I suggest making an official support case
for this. This could be quickly fixed.
Joe
>
>
When we start Weblogic , it seems that weblogic.jdbc.common.internal.ConnectionEnvFactory register the type4 driver but try to use type3 for connection (bold code in the following).
Here is an extract of jdbc log :
JDBC log stream started at Wed Mar 28 14:25:23 CEST 2007
DriverManager.initialize: jdbc.drivers = null
JDBC DriverManager initialized
registerDriver: driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
DriverManager.getDriver("jdbc:db2://db2_srv:60000/PASREL")
trying driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
getDriver returning driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
Server db2_srv port 60000 source PASREL
Server db2_srv port 60000 source PASREL
Server db2_srv port 60000 source PASREL
Server db2_srv port 60000 source PASREL
Server db2_srv port 60000 source PASREL
DB2 Peak statements = 1
registerDriver: driver[className=com.ibm.db2.jcc.DB2Driver,com.ibm.db2.jcc.DB2Driver@3789b4ac]
DriverManager.getDriver("jdbc:db2://db2_srv:50002/E_PRO")
trying driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
getDriver returning driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver: JDBC 1.22 s030303]
Server db2_srv port 50002 source E_PRO
SQLException: SQLState(08S01) vendor code(-99999)
COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0615E Erreur lors de la r?ception de donn?es provenant du socket. Le ser
veur ne r?pond pas. SQLSTATE=08S01
at COM.ibm.db2.jdbc.net.SQLExceptionGenerator.throwReceiveError(SQLExceptionGenerator.java:500)
at COM.ibm.db2.jdbc.net.DB2Request.receive(DB2Request.java:727)
at COM.ibm.db2.jdbc.net.DB2Request.sendAndRecv(DB2Request.java:587)
at COM.ibm.db2.jdbc.net.DB2Connection.SQLConnect(DB2Connection.java(Compiled Code))
at COM.ibm.db2.jdbc.net.DB2Connection.create(DB2Connection.java(Compiled Code))
at COM.ibm.db2.jdbc.net.DB2Connection.create(DB2Connection.java(Compiled Code))
at COM.ibm.db2.jdbc.net.DB2Connection.<init>(DB2Connection.java:245)
at COM.ibm.db2.jdbc.net.DB2Driver.connect(DB2Driver.java:215)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java(Compiled Code))
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java(Compiled Code))
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.java(Compiled Code))
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:283)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:671)
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:110)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java(Compiled Code))
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:286)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:239)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:199)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java(Compiled Code))
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java(Compiled Code))
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java(Compiled Code))
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
at $Proxy30.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:3015)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:376)
at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:164)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java(Compiled Code))
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java(Compiled Code))
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java(Compiled Code))
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java(Compiled Code))
at $Proxy41.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.ja
va:480)
at weblogic.management.Admin.startApplicationManager(Admin.java:1309)
at weblogic.management.Admin.finish(Admin.java:650)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:547)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:214)
at weblogic.Server.main(Server.java:35) -
DB2 type 2 driver blocking WLS 8.1 SP2 on startup
Hi,
I use DB2 type 2 driver with WLS 8.1 SP2 and did configure a jdbc connection pool as described in edocs. But when I start the server and the server tries to deploy the jdbc connection pool, the server hangs. I took some thread dumps and the thread to load the driver seems to be stuck, as it always shows the same stack trace.
Did anybody manage to use this driver? Any suggestions?
Thanks,
Nicole
"Thread-1" id: 0x0x00000380 prio: 5 ACTIVE, NONDAEMON, GCABLE thread: 0x0xaf028500 lastj: 0x0xbfff8e74 at COM.ibm.db2.jdbc.app.DB2Driver.SQLAllocEnv(Native Method)@0xa026894e at COM.ibm.db2.jdbc.app.DB2Driver.<init>(Unknown Source)@0xa0268456 at java.lang.Class.newInstanceCached(Unknown Source)@0xa6e3e533 at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvFactory.java:46)@0xa0e5e9d2 at weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFactory.java:79)@0xa0e5e819 at weblogic.jdbc.common.internal.ConnectionPool.initPooledResourceFactory(ConnectionPool.java:514)@0xa0e5e298 at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:165)@0xa0e5d2d3 at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:880)@0xa0e59bf2 at weblogic.jdbc.common.internal.ConnectionPool.start(ConnectionPool.java:133)@0xa0e59994 at weblogic.jdbc.common.internal.ConnectionPoolManager.createAndStartPool(ConnectionPoolManager.java:291)@0xa0e58aa2 at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:178)@0xa0e58709 at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:330)@0xa0e572a1 at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:590)@0xa0e56e36 at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:568)@0xa0e56649 at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:240)@0xa0e56424 at COM.jrockit.reflect.NativeMethodInvoker.invoke0(Native Method)@0xa6de9752 at COM.jrockit.reflect.NativeMethodInvoker.invoke(Unknown Source)@0xa6de987c at COM.jrockit.reflect.VirtualNativeMethodInvoker.invoke(Unknown Source)@0xa5d989f4 at java.lang.reflect.Method.invoke(Unknown Source)@0xa6de938d at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:711)@0xa4911d6c at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:690)@0xa491196d at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:476)@0xa4910de7 at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)@0xa49109d7 at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)@0xa49103f4 at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:947)@0xa4910399 at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:908)@0xa4910276 at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)@0xa3623f4f at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)@0xa4d5d048 at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7271)@0xa0e56285 at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1210)@0xa0e5608e at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:362)@0xa0e55cca at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)@0xa0e55baa at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)@0xa177839b at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)@0xa1777f3e at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)@0xa6520534 at weblogic.Server.main(Server.java:32)@0xa65200a3 --- End of stack traceSorry, it is running now. There was a misspelling in the environment variable DB2INSTANCE and therefore the requested instance was not reachable. Still interesting, that this can even prevent the server from booting. Now that I corrected the variable in the environment, everything is fine.
Thanks,
Nicole -
Problem with DB2 Type 4 driver
Hi
The problem has been narrowed down to a problem with the IBM DB2 Type 4
driver (COM.ibm.db2.jdbc.net.DB2Driver). In some situations, it introduces a
100ms delay when sending parameters for a prepared statement (846 bytes in
the truss trace below). With the IBM app driver (type 2) we get the
performance that we expect.
In other words, this has to do with TCP/IP communication and whether this is
a JVM, DB2 or Solaris issue we don't know. Probably a combination.
Regards
Steffen Jensen
Nordija
Below, the Solaris truss trace that shows how the JDBC driver (in the WLS
VM) sends data and how the DB2 listener process receives it.
WLS
24092: 5.6607 send(7, "\001\0\003 N", 6, 0) = 6
24092: 5.6611 send(7, "\0 O\001\004\001FFE7FFFB".., 846, 0) = 846
24092: 5.6682 poll(0xFEC07A50, 0, 10) = 0
24092: 5.6882 poll(0xFEC07A50, 0, 10) = 0
24092: 5.7082 poll(0xFEC07A50, 0, 10) = 0
24092: 5.7282 poll(0xFEC07A50, 0, 10) = 0
24092: 5.7482 poll(0xFEC07A50, 0, 10) = 0
24092: 5.7625 read(7, "\0", 1) = 1
DB2 listener
24109: 5,6607 recv(5, "\001", 2, 0) = 2
24109: 5,6617 recv(5, "\0\003 N", 4, 0) = 4
24109: 5,7583 recv(5, "\0 O\001\004\001FFE7FFFB".., 846, 0) = 846
24109: 5,7606 semop(2883608, 0xFFBED4C0, 1) = 0
24109: semnum=0 semop=1 semflg=0
24109: 5,7618 semop(2883608, 0xFFBED5C0, 1) = 0
24109: semnum=1 semop=-1 semflg=0Hi
The problem has been narrowed down to a problem with the IBM DB2 Type 4
driver (COM.ibm.db2.jdbc.net.DB2Driver). In some situations, it introduces a
100ms delay when sending parameters for a prepared statement (846 bytes in
the truss trace below). With the IBM app driver (type 2) we get the
performance that we expect.
In other words, this has to do with TCP/IP communication and whether this is
a JVM, DB2 or Solaris issue we don't know. Probably a combination.
Regards
Steffen Jensen
Nordija
Below, the Solaris truss trace that shows how the JDBC driver (in the WLS
VM) sends data and how the DB2 listener process receives it.
WLS
24092: 5.6607 send(7, "\001\0\003 N", 6, 0) = 6
24092: 5.6611 send(7, "\0 O\001\004\001FFE7FFFB".., 846, 0) = 846
24092: 5.6682 poll(0xFEC07A50, 0, 10) = 0
24092: 5.6882 poll(0xFEC07A50, 0, 10) = 0
24092: 5.7082 poll(0xFEC07A50, 0, 10) = 0
24092: 5.7282 poll(0xFEC07A50, 0, 10) = 0
24092: 5.7482 poll(0xFEC07A50, 0, 10) = 0
24092: 5.7625 read(7, "\0", 1) = 1
DB2 listener
24109: 5,6607 recv(5, "\001", 2, 0) = 2
24109: 5,6617 recv(5, "\0\003 N", 4, 0) = 4
24109: 5,7583 recv(5, "\0 O\001\004\001FFE7FFFB".., 846, 0) = 846
24109: 5,7606 semop(2883608, 0xFFBED4C0, 1) = 0
24109: semnum=0 semop=1 semflg=0
24109: 5,7618 semop(2883608, 0xFFBED5C0, 1) = 0
24109: semnum=1 semop=-1 semflg=0 -
Legacy db2 jdbc 2.0 connectivity
i wish to use jdbc 2.0 batch capabilities with my COM.ibm.db2.jdbc.net.DB2Driver implementations that currently runs natively on an AIX 5.3 machine. My DB2 is 7.1 on a windows machine outside the firewall so i don't want to consider moving the implementation from the AIX box.
The 7.1 package seems to come with some jni dll interface to allow for jdbc 2.0. Since i want to keep the routine on the AIX box does anyone have any suggestions on what to do?
My searches only brought up a db2 8.0 type 4 driver that didn't work.
thanks in advance for the help,
graeme.well i'm hoping someone can help me find a good driver. that is why i mentioned the only one i could find. i never find traversing ibms sites for support downloads an easy task and was hoping someone who focusses on db2/nt would be able to provide assistance.
i've been very lucky on this site before, there are a lot of smart blokes around.
Maybe you are looking for
-
Word - Pages and image in the header
Morning. I've opened a Word file in Pages. The Word file contains in the header of the first page an image (corporate logo). In Pages 3.0.2 the image isn't adjusted on the right place but one line beneath. The problem is: I can not select the image t
-
Duplicate Routing with dependencies
Hi all, I'm trying to copy a Routing changing the Application (VERWE = 'C' instead of '1') I'm using the FM CARO_ROUTING_READ to take the original Routing and then call FM BAPI_ROUTING_CREATE passing tables TASK, MATERIALTASKALLOCATION, SEQUENCE and
-
New feature : wait on queue table in Forms?
Hi, in my new project it must be possible to create producer - consumer relationships on queue tables handled by Forms. How can I define a none busy wait on a queue ? Is this a feature in Forms 10i - asynchron event handling ? I think this is the mai
-
Hi, SAP support ask me to send them Nakisa logs (cds.log). Also they ask to clear file before (to minimize the size and remove info not regarding issue). But, after I backed up current file and cleared it (actually delete cds.log and create empty new
-
My google foo is failing me at the moment. Can someone point me in the right direction so as to find out where MDT logs what user authenticated against the WDS/MDT server to initiate a deployment? I've been digging around the MDT/WDS servers logs to