Can any DB2 guru help? Configuring AppServer to use DB2

Eventually, I need my EJB example to shuffle data between Oracle and DB2
databases.
I am currently trying to adapt my BMP entity (works with Oracle) to run with DB2
(personal edition). Have run into two problems.
1) Configuring the connection pool (via admin tool)
I've got:
- db2jcc.jar and db2jcc_license_cu.jar added into AppServer's classpath
-connection pool with com.ibm.db2.jcc.DB2SimpleDataSource as a javax.sql.DataSource
- validation as auto-commit; isolation as default for JDBC driver
- properties: name=moi password=pwd dataBaseName=mine driverType=4
portNumber=50000 serverName="mybox.here.com"
Attempt to "ping" this datasource fails "Error getting connection from EIS"; server log
has error in some helper function called from
com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleDataSource.java:171)
SqlException:userid length 0 is not allowed;
I've tried adding userid as an extra property (same as name) but that made no difference;
What else do I need to set in order to connect to DB2?
2) My eventual application will need transactions and so XADataSources; when
I was trying to set up connection I did try DB2XADataSource as a javax.sql.XADataSource.
But then i got an error that basically stated "type 4 driver not licensed for XA".
Is this some limitation of personal edition DB2?
How does one configure a DB2 XADataSource?

My last discussions with the folks at IBM indicate you must use the type 2 driver
Here is the config info:
db2.dbName=cts
db2.server=retriever.central
db2.port=50000
db2.classes=${jdbc.lib.class.path}/db2jcc.jar:${jdbc.lib.class.path}/db2jcc_license_cu.jar:${jdbc.lib.class.path}/db2java.zip
db2.dataSource=com.ibm.db2.jcc.DB2SimpleDataSource
db2.properties=user=${db2.user}:password=${db2.passwd}:databaseName=${db2.dbName}:driverType
=2:deferPrepares\=false
You would use the above properties when using asadmin or the gui for configuring the driver.
You must also have the following environment variables set and available to the appserver and to the appclient
LD_LIBRARY_PATH=/usr/db2user/sqllib/lib:${j2ee.home}/lib
DB2DIR=/opt/IBM/db2/V8.1
DB2INSTANCE=db2user
INSTHOME=/usr/db2user
VWSPATH=/usr/db2user/sqllib
THREADS_FLAG=native
The values of the above will depend on your configuration and are derived from invoking
[db2client user directory]/sqllib/db2cshrc or db2profile

Similar Messages

  • Can any body send HUM configuration settings

    hi,
    can any body send HUM configuration or documentation apart from standard liabrary, please.
    regards,'
    balajit

    Hi,
    Please check following best practices link. I hope this helps you.
    http://help.sap.com/bp_bblibrary/600/HTML/G74_BB_EN_US.htm
    Regards,
    Abhee

  • How to install windows 7 on my macbook pro mid 2009 using usb. right now aim using mavericks 10.9 can any one please help me. I tried to edit plist in boot camp but it went wrong please help me

    how to install windows 7 on my macbook pro mid 2009 using usb. right now iam using mavericks 10.9 can any one please help me. I tried to edit plist in boot camp but it went wrong please help me.
    Iam new to coding. please help me.

    try the solution posted by kunu here and report back
    https://discussions.apple.com/thread/5105056?tstart=0

  • I am not able to access my photos through the photo application... when I click on the photo app, I can see the camera roll but a transparent album screen is over it and I cannot click on the photos to see it... can any one please help ???

    I am not able to access my photos through the photo application... when I click on the photo app, I can see the camera roll, but a transparent "album" screen is over it and I cannot click on the photos to see it... can any one please help ???

    Known bug.  Quit the Camera App, double-tap the home key and delete Camera from the recent apps bar. Fire it up again, should be good.

  • I did hold the ALT cmand r key but i cant see the globe i dont know how i can fix my macbook pro late 2008 can any 1 plzzzz help me im very upsate but i live PAKISTAN in here i cant find os x lion disk i dont know what to do if i get the os x lion usb

    i did hold the ALT cmand r key but i cant see the globe i dont know how i can fix my macbook pro late 2008 can any 1 plzzzz help me im very upsate but i live PAKISTAN in here i cant find os x lion disk i dont know what to do if i get the os x lion usb

    That does not work on model year older then 2010 and really doesn't work on any older then late 2011 models.
    You will need a set of original system dvd disc thjat are always sypplied with every mac sold before Lion came out. Systems older then late release early 2011 models.
    If you don't have them you kcan order a replacement set from apple by calling them. Have the serial number of you mac handy.

  • I bought CS6 creative suite. As of now i need to work each application in separate separate system. Can any one please help me how to solve this problem.

    I bought CS6 creative suite. As of now i need to work each application in separate separate system. Can any one please help me how to solve this problem.
    I saw the below quote on Adobe forum
    "You may install software on up to two computers. These two computers can be Windows, Mac OS, or one each."
    If i install each application in single single system the system count is more than two. In this case, are we have any license issue? Please advice how the problem will solve?
    If possible please send the advise to my mail id: <Removed by Moderator>
    Thanks
    Uvaraj S

    I already answered that.  If you purchased a Suite then you can only install and activate it on two machines.  Even if you only insdtall one of the applications of that suite, it counts as one activation of the suite.  You cannot take the six or seven different applications that might be in a suite and install and activate them in six or seven different machines... only two machines.
    If your scenario will allow for it, one thing you can do is install the programs on all the different machines and only activate two of the machines at any given time.  If you need to activate a program on a third machine then you need to deactivate on one of the currently activate machines first so that you have an open activation to use again.  I do not remember if there is a limit to the total number of activations you can process for the life of the software.

  • Hi im using 4s and when i try to download apps its asking my credit card details. can any one please help me

    hi im using 4s and when i try to download apps its asking my credit card details. can any one please help me

    even when you are dowloading free app Apple needs to check that you have valid billing details but you will not be billed for downloading of free apps.  Go to settings/itunes & app store tap on ID there log in and check acocunt details there

  • Hi when i convert a pdf to word I get a inccorect conversion, can any one please help me

    hi when I convert a pdf to word document I get a inccorect conversion, can any one please help me

    Hey nikolays87340013,
    Thanks for your reply.
    Please let me know what version of Adobe Reader you are using.
    You might need to check for updates as well as repair installation from Reader Help menu.
    While converting scanned PDF into Word, OCR runs automatically and its quality largely depends upon the quality of scanned images and clarity of characters in the PDF.
    Please try the same conversion online after signing in at "https://cloud.acrobat.com/exportpdf" and check if the conversion quality varies.
    Let me know.
    Regards,
    Anubha

  • Can any one send CFM configuration document.

    hi all,
    can any one send CFM configuration document.
    it is urgent.
    Thanks
    Ramakrishna

    hi all,
    can any one send CFM configuration document.
    it is urgent.
    Thanks
    Ramakrishna

  • Can any one please send me sample programs using java mapping..

    <b>Can any one please send me sample programs using java mapping with input and output?</b>
    please let me know how to get started with java mapping?
    Prerequisites for java mapping ?
    What are the jars need to be deployed for SAX,DOM.  And how to do it in NWDS?
    Use of Execute() and setparameter() ... StreamTransformation?
    Some sample program using java mapping with simple logic(input and output)?

    Hi,
    Did you go thro these blogs?
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
    Nice blogs to start Java Mapping.
    Go thro this one too.
    /people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
    Regards,
    P.Venkat
    Message was edited by:
            Venkataramanan

  • Can any explain the following:  Background; my company uses google business app to host our email and calander.   Ok, I just set up a iCal event and invited 3 people.  1 internal claims he never got but it showed on his daughters iPod and she does not ema

    Can any explain the following:  Background; my company uses google business app to host our email and calander.   Ok, I just set up a iCal event and invited 3 people.  1 internal claims he never got but it showed on his daughters iPod and she does not email.

    Hello binbingogoABC,
    Shopping on BestBuy.com should be easy and fun and not fraught with the kind of trouble that you describe. I regret very much that this has been your experience.
    Using the information you provided when you signed up for Best Buy Unboxed I was able to locate your cancelled orders. I have requested more information from my back-office partners. As soon as I have additional details about your situation, I will reply again to this message. In the interim, I'm sorry that I must impose upon your patience.
    I'm very grateful that you wrote to us with your concerns.
    Sincerely,

  • Can any body please help me

    Hi all,
    I have got a microstar MS 6340 ver 1 motherboard and i tried installing a PCI 32m nvida graphics card under windows xp. when ever i turn the PC on, i get no screen and the machine keeps beeping. the motherboard has an onboard graphice card but i dont know how to diable it. i have searched the web and cant find the manual to help me or someone to tell me what to do. can some one please help me disable the onboard graphic's.
    Thanks a million.
    Ps. if any body knows where to get the manual from, can you please post the link for me.
    Cheers )  )  )

    wird... in the v1 manual there is no indication for integrated VGA.... no wonder your board is the ms6340M v1 (is it??)....
    and thats a little difference
    http://www.msi.com.tw/program/products/mainboard/mbd/pro_mbd_detail.php?UID=131&MODEL=MS-6340M
    here is the manual for this mainboard
    http://download.msi.com.tw/support/mnu_exe/E6340Mv1.0.exe
    there is the frame buffer seting but there is no disable option for the on board vga....
    try the new bios... (but check if this is the corect board!!!)
    this is the link for v4.7 bios
    http://download.msi.com.tw/support/bos_exe/6340v47.exe
    [size=15]but be cereful i'm not responsible for any miss flushes  [/SIZE]  

  • HT1349 my ipad has had all data and media deleted, i switch it on an it just shows that i n eed a connection to itunes, i went to the itunes site but could find nothing about reinstalling onto my ipad 2 can any one please help me

    my i pad has all the data and media deleted, it now shows me a diagram for connection to i tunes, I have visited i tunes but cannot find anywhere, that tells me to download to reinstall for my i pad can any one help me?

    You need to restore your iPad from iTunes. This assumes that you have a backup of your iPad either in iTunes or iCloud.
    Start iTunes.
    Plug in your iPad using the USB cable.
    Click on the iPad in the left hand column under "Devices".
    In the "Summary" tab, there are options to Back up, Update and Restore.
    Choose Restore and let it run.
    http://support.apple.com/kb/HT1414

  • Can Any One Please Help on this Requirement

    Hi All ,
                I am trying to creating a vendor in XK01 in Address screen im Enterying country as US , But System is showing this error (Incompete Address ; enter country ) im giving all the details , can any one explainn me where i am doing rong or while doing Configaration i need to maintain any specific setting for this particular Error . pls explain me , this is stoping everying of our work .
    thanks in andvance .
    Rafi .V

    Check out the account group for your vendor. May be, in your account group , it is mandatory to put the "Other Country" in the PO Box address.
    You can find account group config at
    SPRO > FI > Accounts receivable & accounts payable > Vendor account > Master data > Preparation for the creating vendor master > Defind acc group with screen layout (Vendors)... double click on your acc group... double click on general data... you will find the field settings for that account group ...
    Regards,
    Naimesh Patel

  • Can any Java expert help me? Urgent.

    I create a table---CourseDB in adatabase to store the Student ID ( student identification number) and the grades of the courses that they took.
    The structure of the table---CourseDB is:
    StudentID
    GradeofCourse1
    GradeofCourse2
    GradeofCourse3
    GradeofCourseN
    Here GradeofCourse1 means the grade of course 1, that the student obtained. GradeofCourse2, GradeofCourse3, GradeofCourseN have the same meaning.
    I want to use the following query to count the students
    who get g1 in course 1, and g2 in course 2, ......and gn in
    course n.
    Select COUNT(*)
    From CourseDB
    Where GradeofCourse1=g1 AND GradeofCourse2= g2
    ......AND GradeofCourseN=gn
    Here g1, g2,......,gn are grade, the values are: A,B,C,D.
    I want to consider all the possible combination of g1,g2,...,gn.
    The students take all the n courses:Course 1, Course 2,...., Course n, and may get A,B,C, or D in the n courses.
    For example:
    g1=A,g2=B,g3=C,.....,gn=D
    ( This means that the student gets A in Course 1, gets B in Course 2, gets C in Course 3,....., gets D in Course n. Many students may have the same situation. I want to know how many are the students?)
    Or:
    g1=B,g2=C,g3=D,......,gn=A
    To make the problem clear, I give a detail example:
    For example, there are two courses: course 1, course 2.
    I want to know how many stuent get "A" in course 1 and
    get "B" in course 2 at the same time.
    And I want to know all the grade combination of the two courses:
    course 1 course 2
    A A
    A B
    A C
    A D
    B A
    B B
    B C
    B D
    C A
    C B
    C C
    C D
    D A
    D B
    D C
    D D
    So that's 16 total combinations(4^2).
    My question is in the code how I can assign the values(A,B,C,D)
    to g1,g2,g3,.....,gn conveniently.
    The following "nested for loop" can solve the problem ( for example, there are 6 courses):
    for (char class1 = 'A'; class1 <= 'D'; class1++)
    for (char class2 = 'A'; class1 <= 'D'; class2++)
    for (char class3 = 'A'; class1 <= 'D'; class3++)
    for (char class4 = 'A'; class1 <= 'D'; class4++)
    for (char class5 = 'A'; class1 <= 'D'; class5++)
    for (char class6 = 'A'; class1 <= 'D'; class6++)
    select count(*)
    from CourseDB
    where GradeofCourse1=class1 AND GradeofCourse2 = class2 AND GradeofCourse3 = class3
    ....AND GradeofCourse6=class6
    But the problem is that in the "Where GradeofCourse1=class1 AND
    GradeofCourse2= class2 ......AND GradeofCourse6=class6" of the
    Query, the number of courses is not fixed, maybe six, maybe three,
    maybe four, so the depth of "nested for loop" can not be fixed.
    Can any Java expert give me some suggestions?
    Thanks in advance.
    Jack

    Jack,
    When you posted this on the other forum, it was quite a different question, but it has mutated to this point now. I believe what you want to do can be done with what MS Access calls a crosstab query and you can completely leave Java and any other programming language out of it. If you need to know how to do a crosstab query please take it to another forum.

Maybe you are looking for