Anyone successfully using WL 6.0 and oracle.jdbc.xa.client.OracleXADataSource?

My final goal is to have two xa pools pointing to different db's and
have them in the same user transaction and do a 2 phase commit. I
can't get past connecting to a single xa datasource. I have "Grant
Select on DBA_PENDING_TRANSACTIONS to public".
My config.xml snippet:
<JDBCConnectionPool
Name="ModelXaPool"
Targets="WebApp"
URL="jdbc:oracle:thin:@SERVER1:1521:DB"
DriverName="oracle.jdbc.xa.client.OracleXADataSource"
InitialCapacity="2"
MaxCapacity="10"
CapacityIncrement="2"
Properties="user=uid;password=pw"
RefreshMinutes="10"
/>
<JDBCTxDataSource
EnableTwoPhaseCommit="true"
JNDIName="ModelManagerTxDataSource"
Name="ModelManagerTxDataSource"
PoolName="ModelManagerXaPool"
Targets="WebWORKS"
/>
My code snippet:
UserTransaction tx = msgCtx.getUserTransaction();
tx.begin();
java.sql.Connection conn =
(DataSource)ctx.lookup("ModelManagerTxDataSource")).getConnection();
Statement stmt = conn.createStatement();
The connection seems to be gotten just fine. On the createStatement,
I get the following exception.
java.sql.SQLException: Internal error: Cannot obtain XAConnection
Creation of XAConnection for pool ModelXaPool failed after
waitSecs:298
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:772)
at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:130)
at weblogic.jdbc.jta.Connection.createStatement(Connection.java:201)
at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionImpl.java:71)
at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.java:42)
Any suggestions/advice?
Thanks,
Dale

Hi Dale,
What version of Oracle are you using at least 8.1.7 is need to be able to
use Oracle thin driver/XA. Also the JDBCConnectionPool and TxDataSource tags
dont seem to match here. Both need to be targeted on to the same server. And
the name of the pool in TxDataSource need to match the pool you have on the
server.
To setup oracle for XA you need to make sure this script is run on the
server, initjvm.sql (It should be in your oracle installation rdbms scripts)
and then grant select permission on dba_pending_transactions.
Are you able to setup a connection pool with a non-XA driver?
sree
"Dale Bronk" <[email protected]> wrote in message
news:[email protected]...
My final goal is to have two xa pools pointing to different db's and
have them in the same user transaction and do a 2 phase commit. I
can't get past connecting to a single xa datasource. I have "Grant
Select on DBA_PENDING_TRANSACTIONS to public".
My config.xml snippet:
<JDBCConnectionPool
Name="ModelXaPool"
Targets="WebApp"
URL="jdbc:oracle:thin:@SERVER1:1521:DB"
DriverName="oracle.jdbc.xa.client.OracleXADataSource"
InitialCapacity="2"
MaxCapacity="10"
CapacityIncrement="2"
Properties="user=uid;password=pw"
RefreshMinutes="10"
/>
<JDBCTxDataSource
EnableTwoPhaseCommit="true"
JNDIName="ModelManagerTxDataSource"
Name="ModelManagerTxDataSource"
PoolName="ModelManagerXaPool"
Targets="WebWORKS"
/>
My code snippet:
UserTransaction tx = msgCtx.getUserTransaction();
tx.begin();
java.sql.Connection conn =
(DataSource)ctx.lookup("ModelManagerTxDataSource")).getConnection();
Statement stmt = conn.createStatement();
The connection seems to be gotten just fine. On the createStatement,
I get the following exception.
java.sql.SQLException: Internal error: Cannot obtain XAConnection
Creation of XAConnection for pool ModelXaPool failed after
waitSecs:298
atweblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:772)
at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:130)
at weblogic.jdbc.jta.Connection.createStatement(Connection.java:201)
atweblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionImpl.jav
a:71)
atweblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.java:42)
>
Any suggestions/advice?
Thanks,
Dale

Similar Messages

  • Connection Problem using oracle.jdbc.xa.client.OracleXADataSource

    Unable to get a connection from connection pool Realm1tx
    Actually there are 5 connection intialized but no connection is there in active pool.Sometimes when I
    go to weblogic console and refresh the connection comes alive temporarily.Can anyone help me out for
    fixing this problem
    Driver Used:
    oracle.jdbc.xa.client.OracleXADataSource
    Error Message
    Unknown error occurred: XA error: XAER_RMERR : A resource manager error has occured in the transaction
    branch start() failed on resource 'realm1tx' null sql=[SELECT Person$1.id,NULL,Person$1.id,NULL,NULL
    FROM Person Person$1 WHERE (Per
    son$1.securityId = 'admin')] throttle=[-1]
    java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured in the transaction
    branch start() failed on resource 'realm1tx' null
    Thanks in advance.
    Ragavendra.

    Which version of oracle thin driver are you using? Oracle 920 thin driver has some issues.
    Thanks,
    Mitesh
    Ragavendra wrote:
    Unable to get a connection from connection pool Realm1tx
    Actually there are 5 connection intialized but no connection is there in active pool.Sometimes when I
    go to weblogic console and refresh the connection comes alive temporarily.Can anyone help me out for
    fixing this problem
    Driver Used:
    oracle.jdbc.xa.client.OracleXADataSource
    Error Message
    Unknown error occurred: XA error: XAER_RMERR : A resource manager error has occured in the transaction
    branch start() failed on resource 'realm1tx' null sql=[SELECT Person$1.id,NULL,Person$1.id,NULL,NULL
    FROM Person Person$1 WHERE (Per
    son$1.securityId = 'admin')] throttle=[-1]
    java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured in the transaction
    branch start() failed on resource 'realm1tx' null
    Thanks in advance.
    Ragavendra.

  • Help!.... XA error: using Weblogic 6.1 and Oracle 8.1.6

              Hi,
              I am using Weblogic 6.1 with Oracle 8.1.7. I configured a TXDataSource as I wanted
              to use Container Managed Transaction through a Session Bean.
              Connection Pool Settings: -------------------------
              Name - myXAPool URL - jdbc:oracle:thin:@myServer:1521:myDb DriverClassname - oracle.jdbc.xa.client.OracleXADataSource
              TXDataSource Settings : -----------------------
              Name - myXADS
              JNDIName - myXADS
              PoolName - myXAPool
              Everything works fine but once in a while I get the following exception:
              java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured
              in the transaction branch start() failed on resource 'myXAPool' Unexpected error
              during start for XAResource 'myXAPool': null
              The connection pool size is 30 and the number connections high reached was 5,
              which means there are enough connections in the pool available at all time.
              It would be really great if you can help me out.
              Thanks in Advance, Sudhir.
              

    Hi Slava,
    Sorry about that Oracle instance I am using is 8.1.7.
    For the XA Driver I am using the one that comes with Weblogic in weblogic.jar.
    And my Weblogic version 6.1 Sp3.
    Thanks,
    Sudhir.
    "Slava Imeshev" <[email protected]> wrote:
    Hi Sudhir,
    Are you using an instance of 8.1.6 or 8.1.7? In the message header you
    say
    8.1.6.
    Regards,
    Slava Imeshev
    "Sudhir Babu" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I am using Weblogic 6.1 with Oracle 8.1.7. I configured a TXDataSourceas
    I wanted
    to use Container Managed Transaction through a Session Bean.
    Connection Pool Settings: -------------------------
    Name - myXAPool URL - jdbc:oracle:thin:@myServer:1521:myDb
    DriverClassname - oracle.jdbc.xa.client.OracleXADataSource
    TXDataSource Settings : -----------------------
    Name - myXADS
    JNDIName - myXADS
    PoolName - myXAPool
    Everything works fine but once in a while I get the following exception:
    java.sql.SQLException: XA error: XAER_RMERR : A resource manager errorhas
    occured
    in the transaction branch start() failed on resource 'myXAPool' Unexpectederror
    during start for XAResource 'myXAPool': null
    The connection pool size is 30 and the number connections high reachedwas
    5,
    which means there are enough connections in the pool available at alltime.
    It would be really great if you can help me out.
    Thanks in Advance, Sudhir.

  • XA error: using Weblogic 6.1 and Oracle 8.1.6

    Hi,
    I am using Weblogic 6.1 with Oracle 8.1.7. I configured a TXDataSource as I wanted
    to use Container Managed Transaction through a Session Bean.
    Connection Pool Settings: -------------------------
    Name - myXAPool URL - jdbc:oracle:thin:@myServer:1521:myDb
    DriverClassname - oracle.jdbc.xa.client.OracleXADataSource
    TXDataSource Settings : -----------------------
    Name - myXADS
    JNDIName - myXADS
    PoolName - myXAPool
    Everything works fine but once in a while I get the following exception:
    java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured
    in the transaction branch start() failed on resource 'myXAPool' Unexpected error
    during start for XAResource 'myXAPool': null
    The connection pool size is 30 and the number connections high reached was 5,
    which means there are enough connections in the pool available at all time.
    It would be really great if you can help me out.
    Thanks in Advance, Sudhir.

    Hi Slava,
    Sorry about that Oracle instance I am using is 8.1.7.
    For the XA Driver I am using the one that comes with Weblogic in weblogic.jar.
    And my Weblogic version 6.1 Sp3.
    Thanks,
    Sudhir.
    "Slava Imeshev" <[email protected]> wrote:
    Hi Sudhir,
    Are you using an instance of 8.1.6 or 8.1.7? In the message header you
    say
    8.1.6.
    Regards,
    Slava Imeshev
    "Sudhir Babu" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I am using Weblogic 6.1 with Oracle 8.1.7. I configured a TXDataSourceas
    I wanted
    to use Container Managed Transaction through a Session Bean.
    Connection Pool Settings: -------------------------
    Name - myXAPool URL - jdbc:oracle:thin:@myServer:1521:myDb
    DriverClassname - oracle.jdbc.xa.client.OracleXADataSource
    TXDataSource Settings : -----------------------
    Name - myXADS
    JNDIName - myXADS
    PoolName - myXAPool
    Everything works fine but once in a while I get the following exception:
    java.sql.SQLException: XA error: XAER_RMERR : A resource manager errorhas
    occured
    in the transaction branch start() failed on resource 'myXAPool' Unexpectederror
    during start for XAResource 'myXAPool': null
    The connection pool size is 30 and the number connections high reachedwas
    5,
    which means there are enough connections in the pool available at alltime.
    It would be really great if you can help me out.
    Thanks in Advance, Sudhir.

  • Has anyone successfully used Oracle EM as a Monitoring Solution??

    Hi All,
    This might be a wrong place to post ;) but anyways. My question is can we use Oracle EM as a Monitoring Solution? If so has anyone successfully used it?
    I have used Oracle EM over the years for mostly managing Databases. Eventually with the Middleware Support I have tried to use it to monitor Middleware Servers, earlier OC4J and recently WebLogic Servers. I however find that most people when talk about EM they think of it as a Business Transaction Monitoring Solution. (Lets keep BTM out for a while I know about that plugin but it is another full set of questions)
    Mostly I get questions as to can we "drill down the transactions" and see who initiated it and "what is being processed at this moment". Here transaction means Business Transaction as opposed "this thread is executing this particular piece of code". People want to know this piece of code is being executed "for Purchase Order XYZ" as opposed to just knowing that purchase order is being processed. If you know what i mean.
    No doubt OEM is great tool for an Admin but does it really sell itself as a monitoring solution? I have not seen a successful implementation so far with OEM being a central monitoring solution. If anyone has any experiences to share it would be great.

    I tried to look at that option. It is available only for the Database. I was looking something more towards say the web Services hosted or the Web Applications hosted on Weblogic instances. Can we find say the Web Service call which had the Purchase Order XYZ in its request, etc.

  • Has anyone successfully used a "WD My Book for Mac" via NAS (plugged into USB port on router) as a Time Machine back-up drive?

    Has anyone successfully used a "WD My Book for Mac" via NAS (plugged into USB port on router) as a Time Machine back-up drive? Apple support tech tried to tell me it wasn't possible and that the only NAS Time Machine could back up to is the Time Capsule, but I'm not buying it. I know it's doable, but I'm having a hard time figuring out which External HDDs will work and which ones won't.  If not My Book for Mac, is there an External HDD that will work? (Running OS X 10.9.1 - Mavericks, btw...)

    Given the nature of backups, my recommendation has always been to use a strategy that is unequivocally supported by Apple. As you already determined Apple Support unequivocally informed you that your proposal will not work, unless your router is an Apple AirPort Extreme or Time Capsule.
    The exhaustive list of devices supported by Time Machine amounts to the following:
    AirPort Time Capsule's built-in hard disk (any model)
    External USB hard disk drive connected to a Time Capsule (any model)
    External USB hard disk drive connected to an AirPort Extreme (current model only)
    A hard disk drive directly connected to your Mac
    That is all.
    Use whatever backup device you want, but you should be aware that this site is full of reports of misery from hapless individuals who had been using NAS devices for Time Machine backups, only to find that they were incomplete, corrupted, or useless when they were required. Apple won't care if you lose your data while using a Time Machine configuration specifically excluded from their technical support documents.

  • Has anyone successfully used the ZTE Open C with an AT&T microcell?

    I have a ZTE Open C and have had no issues with initial setup w/AT&T. However, like most newer phones the voice signal reception is very weak.
    I've had an AT&T Microcell before, but I don't have one now. For those that are unaware, the microcell allows 3G phones to connect via a 3G signal, but the call is routed through a home broadband internet connection.
    Has anyone successfully used a ZTE Open C w/Firefox OS AND used an AT&T microcell? If yes, did you need to do anything special on the phone or with Firefox OS.

    I don't use a ZTE Open C, however, I do have a ZTE Open (Original) on AT&T and so I'll see if I can help ;D
    I know someone who has a Microcell, and I have used it myself a few times. However, the microcell only works if you have entered in your phone number into settings of the Microcell.
    Check the Microcell settings.
    Check the data connection settings on your FxOS device
    Make sure your Microcell is properly connected to WiFi
    and check the AT&T support page for more info
    For a while, it actually hasn't actually worked for me. I apologize if this doesn't solve your problem :D

  • Has anyone successfully used the Intuit Quicken compatible with Lion upgrade for investment tracking?

    Has anyone successfully used the Intuit Quicken compatible with Lion upgrade for investment tracking?

    Although I gave up investment tracking for personal reasons (I had used Quicken Deluxe 2002 for many years for that reason), my understanding is that the new Quicken 2007 for Lion/Mt. Lion is completely the same feature wise as Quicken 2007 for PPC.  It will run on Snow Leopard, too.
    For $15, why not download it and just try it and LET US KNOW!

  • Anyone successful using external microphone?

    Anyone successful using external microphone?
    Tried using 1/8” external microphone input with RadioShack PZM microphones. The mic works in GarageBand, iMovie and VO tool work, but iChat will not use the microphone. Audio is visible in system preferences???
    Thank you,
    Shawn Bockoven

    1.     Opened package
    2.     Placed battery in microphone RadioShack 33-3022 Boundary
    3.     Plugged in mic using 1/8’ mini jack on iMac 2.0 10.4.2
    4.     Opened System Preferences and changed input to audio line-in port
    5.     Launched iChat 3.0
    6.     Opened video preview/preference and changed audio input to line in
    7.     Became very frustrated
    8.     Tested in GarageBand mic worked
    9.     Tested in iMovie mic worked
    10.     Tested using VO tool mic worked
    11.     Launched iChat again checked all setting mic does not work
    http://www.radioshack.com/product.asp?catalog%5Fname=CTLG&product%5Fid=33-3022

  • Help building an e-commerce site using DreamWeaver MX 2004 and Oracle 10G

    I'm new to using Oracle 10G. After reviewing several rdms's I've picked Oracle 10G as my rdms. I'm trying to build an ecommerce site using DreamWeaver MX 2004 and Oracle 10G. The website will be selling hardware and software products. I have a choice in DreamWeaver to go for a .asp or .jsp setup. I have several questions, here goes:
    1. Is there any book/tutorial/whitepaper out there that describes building an ecommerce site using Oracle 10G/9I/8I? Just some examples as how to make the datamodel regarding the shopping basket etc.
    2. I prefer DreamWeaver as it let's me make nice looking css style based pages without throttling too much through the code. Are there Oracle tools which allow me to make an advanced nice looking ecommerce site?
    I hope some of you can help me get started. Any effort is appreciated.
    Cheers

    I'm new to using Oracle 10G. After reviewing several rdms's I've picked Oracle 10G as my rdms. I'm trying to build an ecommerce site using DreamWeaver MX 2004 and Oracle 10G. The website will be selling hardware and software products. I have a choice in DreamWeaver to go for a .asp or .jsp setup. I have several questions, here goes:
    1. Is there any book/tutorial/whitepaper out there that describes building an ecommerce site using Oracle 10G/9I/8I? Just some examples as how to make the datamodel regarding the shopping basket etc.
    2. I prefer DreamWeaver as it let's me make nice looking css style based pages without throttling too much through the code. Are there Oracle tools which allow me to make an advanced nice looking ecommerce site?
    I hope some of you can help me get started. Any effort is appreciated.
    Cheers

  • Error oracle.sql.* and oracle.jdbc.driver.* not found when using oracle as a database

    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

    Hi 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

  • Kodo 3.4.1 and Oracle JDBC 11.1.0.6?

    Hi,
    did anybody already try using Kodo 3.4.1 and Oracle JDBC driver 11.1.0.6?
    We have been able to use it by specifying:
    kodo.jdbc.DBDictionary=oracle(BatchLimit=1000)
    but it does not run very smoothly and we get for example the
    following exception (but not always).
    NestedThrowablesStackTrace:
    [migrate-data] java.lang.ArrayIndexOutOfBoundsException: -32193
    [migrate-data] at
    oracle.jdbc.driver.OraclePreparedStatement.setupBindBuffers(OraclePreparedS
    tatement.java:2677) [migrate-data] at
    oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedState
    ment.java:9270) [migrate-data] at
    oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapp
    er.java:210) [migrate-data] at
    com.solarmetric.jdbc.DelegatingPreparedStatement.executeBatch(DelegatingPre
    paredStatement.java:325) [migrate-data] at
    com.solarmetric.jdbc.PoolConnection$PoolPreparedStatement.executeBatch(Pool
    Connection.java:375) [migrate-data] at
    com.solarmetric.jdbc.DelegatingPreparedStatement.executeBatch(DelegatingPre
    paredStatement.java:325) [migrate-data] at
    com.solarmetric.jdbc.DelegatingPreparedStatement.executeBatch(DelegatingPre
    paredStatement.java:325) [migrate-data] at
    com.solarmetric.jdbc.DelegatingPreparedStatement.executeBatch(DelegatingPre
    paredStatement.java:325)Any hints?
    Thanks,
    Werner

    Disabling SQL batching by specifying BatchLimit = 0 solved the
    problem temporarlyOf course this is not what we want, anybody else using this configuration?
    Werner

  • Can I include MQSeires JMS XADataSource and Oracle JDBC XADataSource in one transaction?

              When I try to use a XADataSource (using Oracle 8.1.6 XA JDBC driver) to update
              a table in onMessage() of a MDB (Message Driven Bean) using container managed
              transaction, an exception occured like this:
              java.sql.SQLException: ORA-06550: ? 1 ?, ? 14 ???: PLS-00201: ??? 'JAVA_XA.XA_START'
              ????? ORA-06550: ? 1 ?, ? 8 ???: PL/SQL: Statement ignored
              at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
              at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1311)
              at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:738 ) at
              oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja va:1313)
              at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav a:1232)
              at oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement .java:1353)
              at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:176 0) at
              oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme nt.java:1805)
              at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar edStatement.java:322)
              at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat ement.java:366)
              at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:10 2) at
              weblogic.transaction.internal.ServerResourceInfo.start(ServerResource Info.java:994)
              at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResour ceInfo.java:947)
              at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourc eInfo.java:206)
              at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se rverTransactionImpl.java:316)
              at weblogic.jdbc.common.internal.ConnectionEnv.test(ConnectionEnv.java:6 51) at
              weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator. java:444)
              at weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator. java:379)
              at weblogic.common.internal.ResourceAllocator.reserveWaitSecs(ResourceAl locator.java:369)
              at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.j ava:167)
              at weblogic.jdbc.common.internal.ConnectionPool.reserveWaitSecs(Connecti onPool.java:121)
              at weblogic.jdbc.jta.DataSource.getXAConnectionFromPool(DataSource.java: 861)
              at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:7 43) at
              weblogic.jdbc.jta.Connection.getXAConn(Connection.java:130) at weblogic.jdbc.jta.Connection.createStatement(Connection.java:201)
              at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionI mpl.java:71)
              at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.j ava:42)
              at MDB.onMessage(MDB.java:46) at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
              at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175) at com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:640)
              at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:355) java.sql.SQLException:
              ORA-06550: ? 1 ?, ? 14 ???: PLS-00201: ??? 'JAVA_XA.XA_START' ????? ORA-06550:
              ? 1 ?, ? 8 ???: PL/SQL: Statement ignored
              at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
              at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1311)
              at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:738 ) at
              oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja va:1313)
              at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav a:1232)
              at oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement .java:1353)
              at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:176 0) at
              oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme nt.java:1805)
              at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar edStatement.java:322)
              at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat ement.java:366)
              at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:10 2) at
              weblogic.jdbc.jta.DataSource.start(DataSource.java:324) at weblogic.transaction.internal.ServerResourceInfo.start(ServerResource
              Info.java:994) at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResour
              ceInfo.java:947) at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourc
              eInfo.java:206) at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se
              rverTransactionImpl.java:316) at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:817)
              at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:7 88) at
              weblogic.jdbc.jta.Connection.getXAConn(Connection.java:130) at weblogic.jdbc.jta.Connection.createStatement(Connection.java:201)
              at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionI mpl.java:71)
              at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.j ava:42)
              at MDB.onMessage(MDB.java:46) at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
              at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175) at com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:640)
              at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:355) java.sql.SQLException:
              XA error: XAER_RMERR : A resource manager error has occur ed in the transaction
              branch start() failed on resource 'jtaXAPool' null at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:822)
              at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:7 88) at
              weblogic.jdbc.jta.Connection.getXAConn(Connection.java:130) at weblogic.jdbc.jta.Connection.createStatement(Connection.java:201)
              at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionI mpl.java:71)
              at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.j ava:42)
              at MDB.onMessage(MDB.java:46) at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
              at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175) at com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:640)
              at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:355)
              Does that mean WLS 6.0 SP1 can not include JMS XADataSource and JDBC XADataSource
              in one distributed transaction managed by container?
              

              It should work. Check out the documentation on our developer center for
              more information. Developer.BEA.com
              Michael Girdley
              BEA Systems
              Learning WebLogic? http://learnweblogic.com
              "Sam Ni" <[email protected]> wrote in message
              news:[email protected]...
              >
              > When I try to use a XADataSource (using Oracle 8.1.6 XA JDBC driver) to
              update
              > a table in onMessage() of a MDB (Message Driven Bean) using container
              managed
              > transaction, an exception occured like this:
              >
              > java.sql.SQLException: ORA-06550: ? 1 ?, ? 14 ???: PLS-00201: ???
              'JAVA_XA.XA_START'
              > ????? ORA-06550: ? 1 ?, ? 8 ???: PL/SQL: Statement ignored
              >
              > at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114) at
              oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
              > at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542) at
              oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1311)
              > at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:738 )
              at
              > oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja
              va:1313)
              > at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
              a:1232)
              > at oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement
              .java:1353)
              > at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:176
              0) at
              > oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
              nt.java:1805)
              > at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
              edStatement.java:322)
              > at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
              ement.java:366)
              > at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:10
              2) at
              > weblogic.transaction.internal.ServerResourceInfo.start(ServerResource
              Info.java:994)
              > at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResour
              ceInfo.java:947)
              > at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourc
              eInfo.java:206)
              > at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se
              rverTransactionImpl.java:316)
              > at weblogic.jdbc.common.internal.ConnectionEnv.test(ConnectionEnv.java:6
              51) at
              > weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
              java:444)
              > at weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.
              java:379)
              > at weblogic.common.internal.ResourceAllocator.reserveWaitSecs(ResourceAl
              locator.java:369)
              > at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.j
              ava:167)
              > at weblogic.jdbc.common.internal.ConnectionPool.reserveWaitSecs(Connecti
              onPool.java:121)
              > at weblogic.jdbc.jta.DataSource.getXAConnectionFromPool(DataSource.java:
              861)
              > at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:7
              43) at
              > weblogic.jdbc.jta.Connection.getXAConn(Connection.java:130) at
              weblogic.jdbc.jta.Connection.createStatement(Connection.java:201)
              > at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionI
              mpl.java:71)
              > at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.j
              ava:42)
              > at MDB.onMessage(MDB.java:46) at
              weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
              > at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175) at
              com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:640)
              >
              >
              > at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:355)
              java.sql.SQLException:
              > ORA-06550: ? 1 ?, ? 14 ???: PLS-00201: ??? 'JAVA_XA.XA_START' ?????
              ORA-06550:
              > ? 1 ?, ? 8 ???: PL/SQL: Statement ignored
              >
              > at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114) at
              oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
              > at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542) at
              oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1311)
              > at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:738 )
              at
              > oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja
              va:1313)
              > at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
              a:1232)
              > at oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement
              .java:1353)
              > at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:176
              0) at
              > oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
              nt.java:1805)
              > at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
              edStatement.java:322)
              > at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
              ement.java:366)
              > at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:10
              2) at
              > weblogic.jdbc.jta.DataSource.start(DataSource.java:324) at
              weblogic.transaction.internal.ServerResourceInfo.start(ServerResource
              > Info.java:994) at
              weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResour
              > ceInfo.java:947) at
              weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourc
              > eInfo.java:206) at
              weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se
              > rverTransactionImpl.java:316) at
              weblogic.jdbc.jta.DataSource.enlist(DataSource.java:817)
              > at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:7
              88) at
              > weblogic.jdbc.jta.Connection.getXAConn(Connection.java:130) at
              weblogic.jdbc.jta.Connection.createStatement(Connection.java:201)
              > at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionI
              mpl.java:71)
              > at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.j
              ava:42)
              > at MDB.onMessage(MDB.java:46) at
              weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
              > at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175) at
              com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:640)
              >
              >
              > at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:355)
              java.sql.SQLException:
              > XA error: XAER_RMERR : A resource manager error has occur ed in the
              transaction
              > branch start() failed on resource 'jtaXAPool' null at
              weblogic.jdbc.jta.DataSource.enlist(DataSource.java:822)
              > at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:7
              88) at
              > weblogic.jdbc.jta.Connection.getXAConn(Connection.java:130) at
              weblogic.jdbc.jta.Connection.createStatement(Connection.java:201)
              > at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionI
              mpl.java:71)
              > at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.j
              ava:42)
              > at MDB.onMessage(MDB.java:46) at
              weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
              > at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175) at
              com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:640)
              >
              >
              > at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:355)
              >
              >
              > Does that mean WLS 6.0 SP1 can not include JMS XADataSource and JDBC
              XADataSource
              > in one distributed transaction managed by container?
              >
              >
              

  • Link error when using WebLogic 6.0 and Oracle 8.1.6

    I have installed WebLogic 6.0 on Solaris platform and verified that the
    server comes up
    and that I can connect to it via Netscape. Next step was to verify
    installation of WebLogic
    jDriver for Oracle. When I run the following:
    java utils.dbping ORACLE scott tiger
    I get the following error:
    Starting Loading jDriver/Oracle .....
    Error encountered:
    java.sql.SQLException: System.loadLibrary threw
    java.lang.UnsatisfiedLinkError
    with the message
    '/ldatae/bea/wlserver6.0/lib/solaris/oci816_8/libweblogicoci37.so:
    ld.so.1: /ldatae/bea/jdk130/jre/bin/../bin/sparc/native_threads/java:
    fatal: libgen.so.1: open failed: No such file or directory'.
    at
    weblogic.jdbcbase.oci.Driver.loadLibraryIfNeeded(Driver.java:202)
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:57)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:146)
    at utils.dbping.main(dbping.java:182)
    Anyone seen this? Help!!!
    Thanks in advance
    Mike Warren, Sr.
    [email protected]
    [att1.html]

    We do not offer a JDBC driver for Linux in version 5.1. In version 6.0,we
    do offer a type 4 driver for Linux.
    In version 5.1, I suggest trying the platform independent type 4 JDBC driver
    available for free from Oracle. It is supported (as is any JDBC driver)
    with WebLogic Server. To download it:
    Go to http://www.oracle.com and select the "Download" option.
    From the resulting page, use the "Select Utility or Driver" dropdown to
    select Oracle JDBC drivers
    From the resulting page, scroll down a little (since SQLJ stuff appears at
    the top).
    Or, to go directly there:
    http://technet.oracle.com/software/tech/java/sqlj_jdbc/software_index.htm
    Thanks,
    Michael
    Michael Girdley, BEA Systems Inc
    Learning WebLogic? Buy the book.
    http://www.learnweblogic.com/
    "Michael W. Warren, Sr." <[email protected]> wrote in message
    news:[email protected]..
    I have installed WebLogic 6.0 on Solaris platform and verified that the
    server comes up
    and that I can connect to it via Netscape. Next step was to verify
    installation of WebLogic
    jDriver for Oracle. When I run the following:
    java utils.dbping ORACLE scott tiger
    I get the following error:
    Starting Loading jDriver/Oracle .....
    Error encountered:
    java.sql.SQLException: System.loadLibrary threw
    java.lang.UnsatisfiedLinkError
    with the message
    '/ldatae/bea/wlserver6.0/lib/solaris/oci816_8/libweblogicoci37.so:
    ld.so.1: /ldatae/bea/jdk130/jre/bin/../bin/sparc/native_threads/java:
    fatal: libgen.so.1: open failed: No such file or directory'.
    at
    weblogic.jdbcbase.oci.Driver.loadLibraryIfNeeded(Driver.java:202)
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:57)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:146)
    at utils.dbping.main(dbping.java:182)
    Anyone seen this? Help!!!
    Thanks in advance
    Mike Warren, Sr.
    [email protected]

  • How to connect using netbean 6.5 and oracle lite 10g

    Hello everyone.. I am really really new in this kind of thing. My task is that I need to develop a simple system using netbean and oracle lite 10g..Does anyone can at least give me a little bit tutorial for a head start in order to connect them.. I really appreciate for those who answer this.. Thank you guys...

    you mean to connect from java to oracle lite server or client?
    -if it is server you mean then you probably need to run some oracle apis (e.g. the consolidator aps).
    String url="MOBILEADMIN/123@jdbc:oracle:thin:@MYSERVER:1521:MYDB" ;
    ResourceManager.initialize(url);
    rm = ResourceManager.getInstance();
    User usr = rm.getUser(user);
    for (Enumeration e = usr.getDevices(); e.hasMoreElements();) {
    Device dev = (Device)e.nextElement();
    }//AND you may continue from here in order to send commands to the devices
    -if you have a oracle repository at the back end and you want to connect to that then you can connect like:
    DriverManager.registerDriver ((Driver)Class.forName ("oracle.jdbc.driver.OracleDriver").newInstance ());
    String url="jdbc:oracle:thin:@myserver:port:database;
    c=DriverManager.getConnection( url,"username", "password" );
    s=c.createStatement();
    s.executeQuery("Select TRIM(CODES) AS CODES,TRIM(SURNAME)||'_'||TRIM(FIRSTNAME) AS NAME from MYDB.USERS");
    ResultSet rs =s.getResultSet();
    -now if you want to connect to the oracle lite client database then you may connect using the polite
    you should write something like (i havent tried it because i use handheld clients)
    String ConnectMe=("jdbc:polite:SCOTT/tiger:polite;DataDirectory=c:\Oracle_Home;Database=polite;IsolationLevel=SINGLE;USER;Autocommit=ON;CursorType=DYNAMIC")
    try {
    Connection conn = DriverManager.getConnection(ConnectMe)
    catch (SQLException e)
    (check the internet for jdbc:polite connection strings)
    gl

Maybe you are looking for