[JTA_Start_0]Exception getting connection for Oracle DB

Hi All,
I am facing a problem when I am going to insert data in a table (Oracle DB) using JTA Command Action block. I have deployed  the Oracle JDBC driver and Configured the data source in http://<server<:port>>/nwa->Configuration Management -> Infrastructure.  But when I am trying to insert data using the JTA Command Action block for inserting data in a table it is throwing error.I am running with XMII 12.1 SP5 and Oracle 11g.
Here is the error details.
[ERROR] [JTA_Start_0]Exception getting connection for jdbc/ODS_ORACLE_SBX was ResourceException occurred in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.connector.exceptions.BaseResourceException: Cannot get connection for 0 seconds. Possible reasons: 1) Connections are cached within SystemThread(can be any server service or any code invoked within SystemThread in the SAP J2EE Engine) or they are allocated from a non transactional ConnectionFactory. In case of transactional ConnectionFactory used from Application Thread there is an automatic mechanism which detects unclosed connections, 2)The pool size of adapter "ODS_ORACLE_SBX" is not enough according to the current load of the system . In case 1) the solution is to check for cached connections using the Connector Service list_conns command or in case 2), to increase the size of the pool.
Note: ODS_ORACLE_SBX is the Data source name which I have configured.
If I increase the min pool size from 0 to 5 or more than 0 then Data source is getting red means not Available.
Can anybody provide any help.
Thanks in advance
Chandan
Edited by: Chandan Jash on May 3, 2011 4:25 AM

You set up your Oracle DB connection by following the path 'xMII Menu -> Data Services -> Data Servers -> New'.
Re: Configure Oracle in MII 12.0
Regards,
Chanti.

Similar Messages

  • How we build Java Database Connectivity for Oracle 8i Database

    Can any one send me a sample code for Java Database Connectivity for Oracle 8i Database
    it will be a grat help
    Thanks & Regards
    Rasika

    You don't need a DSN if you use Oracle's JDBC driver.
    You didn't read ANY of the previous replies. What makes you think this one willk help? Or any instruction, for that matter?
    Sounds like you just want someone to give it to you. OK, I'll bite, but you have to figure out the rest:
    import java.sql.*;
    import java.util.*;
    * Command line app that allows a user to connect with a database and
    * execute any valid SQL against it
    public class DataConnection
        public static final String DEFAULT_DRIVER   = "sun.jdbc.odbc.JdbcOdbcDriver";
        public static final String DEFAULT_URL      = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\Edu\\Java\\Forum\\DataConnection.mdb";
        public static final String DEFAULT_USERNAME = "admin";
        public static final String DEFAULT_PASSWORD = "";
        public static final String DEFAULT_DRIVER   = "com.mysql.jdbc.Driver";
        public static final String DEFAULT_URL      = "jdbc:mysql://localhost:3306/hibernate";
        public static final String DEFAULT_USERNAME = "admin";
        public static final String DEFAULT_PASSWORD = "";
        /** Database connection */
        private Connection connection;
         * Driver for the DataConnection
         * @param command line arguments
         * <ol start='0'>
         * <li>SQL query string</li>
         * <li>JDBC driver class</li>
         * <li>database URL</li>
         * <li>username</li>
         * <li>password</li>
         * </ol>
        public static void main(String [] args)
            DataConnection db = null;
            try
                if (args.length > 0)
                    String sql      = args[0];
                    String driver   = ((args.length > 1) ? args[1] : DEFAULT_DRIVER);
                    String url      = ((args.length > 2) ? args[2] : DEFAULT_URL);
                    String username = ((args.length > 3) ? args[3] : DEFAULT_USERNAME);
                    String password = ((args.length > 4) ? args[4] : DEFAULT_PASSWORD);
                    System.out.println("sql     : " + sql);
                    System.out.println("driver  : " + driver);
                    System.out.println("url     : " + url);
                    System.out.println("username: " + username);
                    System.out.println("password: " + password);
                    db = new DataConnection(driver, url, username, password);
                    System.out.println("Connection established");
                    Object result = db.executeSQL(sql);
                    System.out.println(result);
                else
                    System.out.println("Usage: db.DataConnection <sql> <driver> <url> <username> <password>");
            catch (SQLException e)
                System.err.println("SQL error: " + e.getErrorCode());
                System.err.println("SQL state: " + e.getSQLState());
                e.printStackTrace(System.err);
            catch (Exception e)
                e.printStackTrace(System.err);
            finally
                if (db != null)
                    db.close();
                db = null;
         * Create a DataConnection
         * @throws SQLException if the database connection fails
         * @throws ClassNotFoundException if the driver class can't be loaded
        public DataConnection() throws SQLException,ClassNotFoundException
            this(DEFAULT_DRIVER, DEFAULT_URL, DEFAULT_USERNAME, DEFAULT_PASSWORD);
         * Create a DataConnection
         * @throws SQLException if the database connection fails
         * @throws ClassNotFoundException if the driver class can't be loaded
        public DataConnection(final String driver,
                              final String url,
                              final String username,
                              final String password)
            throws SQLException,ClassNotFoundException
            Class.forName(driver);
            this.connection = DriverManager.getConnection(url, username, password);
         * Get Driver properties
         * @param database URL
         * @return list of driver properties
         * @throws SQLException if the query fails
        public List getDriverProperties(final String url)
            throws SQLException
            List driverProperties   = new ArrayList();
            Driver driver           = DriverManager.getDriver(url);
            if (driver != null)
                DriverPropertyInfo[] info = driver.getPropertyInfo(url, null);
                if (info != null)
                    driverProperties    = Arrays.asList(info);
            return driverProperties;
         * Clean up the connection
        public void close()
            close(this.connection);
         * Execute ANY SQL statement
         * @param SQL statement to execute
         * @returns list of row values if a ResultSet is returned,
         * OR an altered row count object if not
         * @throws SQLException if the query fails
        public Object executeSQL(final String sql) throws SQLException
            Object returnValue;
            Statement statement = null;
            ResultSet rs = null;
            try
                statement = this.connection.createStatement();
                boolean hasResultSet    = statement.execute(sql);
                if (hasResultSet)
                    rs                      = statement.getResultSet();
                    ResultSetMetaData meta  = rs.getMetaData();
                    int numColumns          = meta.getColumnCount();
                    List rows               = new ArrayList();
                    while (rs.next())
                        Map thisRow = new LinkedHashMap();
                        for (int i = 1; i <= numColumns; ++i)
                            String columnName   = meta.getColumnName(i);
                            Object value        = rs.getObject(columnName);
                            thisRow.put(columnName, value);
                        rows.add(thisRow);
                    returnValue = rows;
            else
                int updateCount = statement.getUpdateCount();
                returnValue     = new Integer(updateCount);
            finally
                close(rs);
                close(statement);
            return returnValue;
         * Close a database connection
         * @param connection to close
        public static final void close(Connection connection)
            try
                if (connection != null)
                    connection.close();
                    connection = null;
            catch (SQLException e)
                e.printStackTrace();
         * Close a statement
         * @param statement to close
        public static final void close(Statement statement)
            try
                if (statement != null)
                    statement.close();
                    statement = null;
            catch (SQLException e)
                e.printStackTrace();
         * Close a result set
         * @param rs to close
        public static final void close(ResultSet rs)
            try
                if (rs != null)
                    rs.close();
                    rs = null;
            catch (SQLException e)
                e.printStackTrace();
         * Close a database connection and statement
         * @param connection to close
         * @param statement to close
        public static final void close(Connection connection, Statement statement)
            close(statement);
            close(connection);
         * Close a database connection, statement, and result set
         * @param connection to close
         * @param statement to close
         * @param rs to close
        public static final void close(Connection connection,
                                       Statement statement,
                                       ResultSet rs)
            close(rs);
            close(statement);
            close(connection);
    }%

  • Can't Create the ODBC connection for Oracle 10g

    Hi,
         I am working with Oracle 10g Database Release 2 in windows XP professional. I am trying to create an ODBC connection for oracle but become failure because its generating the following errors:
    system error code 998
    could not locate the setup or translator library
    Please help me how can I solve this problem and create the ODBC connection for oracle 10g database.
    Best Regards,

    mwz wrote:
    I am trying to create an ODBC connection for oracle but become failure because its generating the following errors:
    system error code 998
    could not locate the setup or translator libraryThe symptom described is typical of an incorrect system env PATH setting (used by the data source admin tool), compared to that of the Oracle Home (specifically, path $OH/bin). The odbc driver config routine will search directories listed in PATH variable for necessary libraries (Client dll's). If some library fails to load (from e.g. oraoci*.dll or oraclient10.dll) it will probably error out, as in your case.
    Are you creating the odbc dsn on the databse server host or on some other machine? I.e. are you using the db host as a client or not?

  • Sql exception when connecting to oracle database

    When trying to connect to an oracle database using the code below i get an sql error. i put the code below it and the stack trace below the code. any help would be great
    Connection connection = null;
            try {
                // Load the JDBC driver
                String driverName = "oracle.jdbc.driver.OracleDriver";
                Class.forName(driverName);
                //  Create a connection to the database
                String serverName = "192.168.0.2";
                String portNumber = "1158";
                String sid = "orcl";
                String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
                // String url = "jdbc:oracle:oci:@orcl";
                String username = "system";
                String password = "mmsi";
                connection = DriverManager.getConnection(url, username, password);
            } catch (ClassNotFoundException e) {
                System.out.println("Class Not Found Exception in connection to db");
            } catch (SQLException e) {
                System.out.println("SQL Exception in connecting to Database ");
                e.printStackTrace();
    stackTrace------------------------------------------------------------------------------
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    SQL Exception in connecting to Database
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
            at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
    before this.start
    got to doaction
            at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:420)
            at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
            at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
            at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
            at java.sql.DriverManager.getConnection(DriverManager.java:525)
            at java.sql.DriverManager.getConnection(DriverManager.java:171)
            at mmsiserver.conversation.<init>(conversation.java:190)
            at mmsiserver.Server.run(Server.java:105)
    Exception in thread "Thread-0" java.lang.NullPointerException
            at mmsiserver.conversation.doAction(conversation.java:218)
            at mmsiserver.conversation.<init>(conversation.java:202)
            at mmsiserver.Server.run(Server.java:105)Message was edited by:
    pcpitcher1

    Please read this
    http://forum.java.sun.com/thread.jspa?threadID=512566&start=0&tstart=0

  • JDBC Connection for Oracle

    Hello Experts,
    I'm having some trouble getting a JDBC connection to work correctly and I am in need of some advice.
    Background:
    I have setup a test Portal 7.00 SP14 with an Oracle 10.2.0.2.0 database on a Windows 2003 X64 server.  The Portal system was up and running and connecting to a WAS6.20 systems.  We do not have BI or XI in our landscape.
    I needed to connect to an Oracle 10.2.0.3.0 database from visual composer to read some data from tables to do a proof of concept. From what I understand this connection will be a JDBC connection.  I have setup a new system using the JDBC template, assisnged an alias, and entered the connection URL .  I was unable to connect. 
    I read that I need to add the driver using Visual Composer.  I did so with the following instructions:
    Install JDBC Driver
    • Start the Visual Administrator
    • Logon at WebAS
    • Open: Server, Services, JDBC Connector, Drivers
    • Choose “Create New Driver or DataSource” on the toolbar
    • Specify an arbitrary name for your driver entry such as “OracleDriver” and click OK
    • Now search for the Oracle JDBC Driver JAR file on your local harddisk.
    I restarted the Java instance with SMICM after completing this task Java will not start.  Is there anyway to roll back that change to get Java back up and running? 
    Also is there a better way to go about making this oracle connection?
    Best Regards,
    Edited by: Troy Loseke on Feb 20, 2008 8:30 AM

    Hi,
    although [this guide|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/92d80512-0a01-0010-32a3-cd3735bd9275] is for Visual Composer I find it very helpful in setting up JDBC connections to databases. There is a very deltailed section about setting up a system to a MS SQL Server and the relevant data if you want to connect to Oracle:
    4.2 BI JDBC Connector to Oracle
    Located at:
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    Driver: oracle.jdbc.driver.OracleDriver
    URL: jdbc:oracle:<drivertype>:@<database>
    jdbc:oracle:thin:@myhost:1521:orcl
    Hope this helps,
    Holger.

  • Could not get connections for 2 databases at the same time

    Hi, I have a session bean which calls 2 entity beans in one method. The 2 entity
    beans are located in different databases (different datasources and different
    pools). When running, I got the following error:
    Couldn't get connection:
    java.sql.SQLException: Connection has already been created in this tx context
    for pool named iitga_jdbc. Illegal attempt to create connection from another pool:
    iitdbmap_jdbc
    It seems WebLogic only allows one database connection within one method.
    Thanks,

    Hi Henry,
    If you want two beans bound to different database, you need
    to use XA pools with TXDataSources because in this case you
    have a distributed transaction.
    Set up you pools using XA drivers and make sure you use
    TXDatasources.
    If you tell us which database you use we may come up with
    sample pool configurations.
    "Henry Hiu" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hi, I have a session bean which calls 2 entity beans in one method. The 2entity
    beans are located in different databases (different datasources anddifferent
    pools). When running, I got the following error:
    Couldn't get connection:
    java.sql.SQLException: Connection has already been created in this txcontext
    for pool named iitga_jdbc. Illegal attempt to create connection fromanother pool:
    iitdbmap_jdbcRegards,
    Slava imeshev

  • I have internet service on iMac but cannot get connection for Blu ray with airport express.

    Why am I not getting internet connection for blu ray on tv with airport express?

    Which exact model of the AirPort Express do you have?
    Did the Blu Ray player connect wirelessly to the Express before or has it never been able to connect to it at all?

  • "Get connected" for the dummies please!

    Hello,
    I bought this Palm TX more than a year ago and although my numerous efforts, still can't get connected to the internet. Would anybody tell me how to get connected in simple steps please?
    Please note the following:
    - My laptop uses Windows Vista and WiFi enabled
    - I am connected to broadband internet through a normal (not wireless) router 
    - I don't have any home networks
    Thank you
    Post relates to: Palm TX

    The TX is designed to connect to a wireless network.  Wifi is built into it for this purpose, and is very easy to use!  Wireless routers can be found for around $30 these days.
    Since you have no wireless network, you are limited to connecting via BlueTooth through a cell phone, or via the Hotsync cable to your computer.  The latter can be accomplished by purchasing a program called Softick PPP from softick.com.  (You can also use BlueTooth to connect if your computer has BlueTooth built into it.)
    I have connected mine through a cellphone and with my wireless network at home, but never via the cable.  It just didn't make sense to me to use my TX when a real computer is 3' away...
    WyreNut
    Post relates to: Centro (AT&T)
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Not getting connection with Oracle 10g

    Dear All,
    I have installed oracle 10 g on linux , but when I want to connect it gives error msg like this
    "Firefox can't establish a connection to the server at 127.0.0.1."
    Please give me reply

    user8451897 wrote:
    I have installed oracle 10 g on linux , but when I want to connect it gives error msg like this
    "Firefox can't establish a connection to the server at 127.0.0.1."What do you expect to access via HTTP on localhost (127.0.0.1)?
    Are you looking for Oracle's Enterprise Manager (OEM)? Are you looking for Oracle's XDB (XML database's webdav interface)? Are you looking for Apex (Oracle's Application Express)? Something else?
    Installing also does not mean that you have created any of these services. You typically needs to run dbca (Data Base Creation Assistant) to create a database instance first (which will also setup OEM for you). OEM, XDB and Apex also do not run on tcp port 80 as that requires root privs that the Oracle processes do not have.
    So you need to explain exactly what you are doing and what you are expecting.

  • Odbc connectivity for oracle lite

    Can Oracle lite be connected through ODBC for a windows front end application developed (other than developer 2000)

    Hi
    Can anyone please give the connect string to connect to Oracle Lite through ODBC driver from a VB.NET windows front end application?
    Regards
    Sangeetha

  • SQL Navigator not connected for oracle 11 Client

    Hi Team,
    i used sql navigator 5.5 to connect database then it shows error that is "ORA-12541: TNS:no listener".
    If connected local database, its connecting properly.
    Actually, I have Installed Oracle 11g release 1. Client. Now i have connected local database and checked. then Database connected.
    C:\Users\duvvuriv>sqlplus
    SQL*Plus: Release 11.1.0.6.0 - Production on Fri Jun 8 14:47:30 2012
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Enter user-name: / as sysdba
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> set lines 300
    SQL> select name,open_mode,log_mode from V$database;
    NAME OPEN_MODE LOG_MODE
    ORCL READ WRITE NOARCHIVELOG
    Please suggest,
    Thanks & Regards,
    Venkat

    I have installed on my pc Oracle 11g for windows 7 home edition 64 bit. Usually I use Navigator to develop
    or manage my DB, Navaigator 3.0 can be use with a 64 bit client? I have some problem with my previous edition.I assume by "DB Navigator" you mean "SQL Developer" because that's what this forum's about. Or if it's the Jdeveloper
    addon - go to the jdev fora.
    What's stopping you going [url http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html]here and downloading the x86_64 version?
    The licence is very liberal (for a proprietary product).
    Paul...
    Edited by: Paulie on Sep 2, 2011 11:37 AM

  • Where can I get documents for Oracle?

    I only have Installation Guide and Administrator's Reference for Oracle 8i. I want to particularly learn how to use tools of Oracle 8i. Where can I get documents for them?
    Thanks for your help,
    Xu

    The rest of the manuals used to be included on the same CD with the product software, but no more. I don't think you can download the complete documentation set (although you can browse it) but you can order one of their CD "packs" and a separate doc CD is included in that. If you get it under their evaluation/development license, it's just a media/shipping charge--something like $35 for the whole "pack."

  • Create database connection for oracle ver.8.1.7.4 unsucessful

    I trying create a database connection with jdeveloper 11g to db oracle ver.8.1.7.4, but the connection return error "Test failed: Unsupported Oracle database version". I selected connection type: "Oracle (JDBC)" and initially selected driver: "thin", after exchange to driver: "oci8", but return error: "Test failed: no ocijdbc11 in java.library.path". Created on menu > Tools > Preferences > JDBC driver options a new driver: "some.jdbc.Driver" pointing to Driver class: "some.jdbc.Driver", library: "oracle.jdbc.OracleDriver", class path: "c:\...\oracle\jdbc\lib\ojdbc14.jar".
    Tried to create with this driver with the option "Generic JDBC" pointing to this driver created and using jdbc url: "jdbc:oracle:thin:@//255.255.255.255:1521/ServerId", but return error: "Test failed: Driver class not found. Verify the Driver location"
    Now, i don´t know to do!!!

    John,
    i have the data corporate in this DB in this version. I have already tested with the oracle JDBC driver: "ojdbc14.jar" and works in the "Eclipse" IDE, but i want to use with jdev, understand? Can i test only with this jdbc driver if i set "generic JDBC"?, because if i set "oracle JDBC" this driver is pointing to oracle 11g driver. Is there a "step-by-step" to set this correct procedure? I cannot set "oracle JDBC" of list because the driver class is disabled.

  • Cache connect for Oracle

    We have an application which calls PL/SQL stored procedures in an Oracle 9 Db. Is there any way to use the cache connector for Oracle where the application will use the TT DB instead of the Oracle DB without needing extensive changes to the application?
    Any help is appreciated!

    Hi user487815,
    The TimesTen IMDB does not support PL/SQL stored procedures. For your application, you should select the performance critical procedures and convert them to either ODBC or JDBC SQL calls.
    -scheung

  • Help for getting connection with oracle database

    Hello,
    i have a problem to connect my java program with oracle databse.
    i have oracle 8 release. i tried all my best to connect but i
    can't. please help me. whenever i compile JdbcCheckup.java file
    which is distributed with oracle 8 release, it compile successfully.
    but whenever i run JdbcCheckup class file then it will generate an
    exception and that is -
    Exception in thread "main" java.lang.ClassNotFoundException:
    oracle.jdbc.driver.OracleDriver
         at java.lang.class.forname0(native method)
         at java.lang.class.forname(unknown source)
    and some other error message.
    But, by following yours given instruction, first, i unzip CLASSES111.zip
    in file which is distributed with oracle 8 realease in jdbc subdirectory
    into c:\temp directory and then run oracle installer(setup.exe) and point
    the installer to c:\temp and then i install the oracle JDBC drivers(beta)
    7.3.3.1.3 from the jdbc subfolder into oracle installer by selecting
    win95.prd for jdbc subfolder.
    After that i write into my autoexec.bat file,
    path d:\jdk\lib;d:\jdk\bin;c:\windows\command;C:\temp\BIN;c:\temp\jdbc\lib\classes111.zip
    and then i restart the machine and the i complile and run JdbcCheckup file
    But, i can't recognize my error to define class path or installing the
    driver. please help me in details so that i overcome this problem.
    because i am student of B.sc. in CIS of final year. i need to submit
    my project within some days. please reply me as early as possible.
    thanks
    hemonto
    email - [email protected]

    path d:\jdk\lib;d:\jdk\bin;c:\windows\command;C:\temp\BIN;c:\temp\jdbc\lib\classes111.zipYou've added classes111.zip to your PATH, not your CLASSPATH.
    Add it to your CLASSPATH using:
    set CLASSPATH=%CLASSPATH%;c:\temp\jdbc\lib\classes111.zip
    then try to compile/run again.

Maybe you are looking for

  • When connecting SharePoint Foundation 2013 contacts to Outlook 2013 in Outlook it is read only.

    Hello. When I connect Sharepoint 2013 Calendars and Contacts to Outlook 2013 I receive the message " You cannot make changes to contents of this read-only folder" if I try to insert a new contact or a new appointment in SharePoint through Outlook (in

  • Exception Explanation

    Exception in thread "main" java.lang.NullPointerException What that means?

  • Error while starting SAP PCo 2.1

    Hi,    When i start the Management Console of SAP PCo 2.1, I get an error which says 'Error Retreiving Destination Systems.  [Access to the database file is not allowed. [File Name: C:\Program Files ....\Configuration.sdf' ]].    Any clue of why this

  • Forecast Upload into DP

    Hi- we have uploaded forecast into dp using the APO-BW functionality. also have created the CVC. but then the data is not showing up on in the planning book for DP. it says livecache anchor not found. could anyone enlighten us on as to why this error

  • Import Solution Package (WSP) 2013 using VS 2012

    Anyone working/worked on SharePoint 2013 solution using VS 2012? I am trying to Import Solution Package (WSP) using VS 2012, but VS 2012 doesn't allow to import the solution. It throws an error with message saying that SharePoint Foundation/Server 20