Creating txn datasource in weblogic 10.3

Hi,
Can anyone help me to create transactional datasources in weblogic 10.3. We are migrating our application from 8.1 to 10.3 and migrated existing datasources to 10.3. While executing ejb's it is giving the following error.
java.sql.SQLException: Connection has already been created in this tx context for pool named <Pool 1> Illegal attempt to create connection from another pool: <Pool 2>
In 8.1, we have only one connection pool associated with many txn datasources. In 10.3 created separate pool for each data source from same DB with following properties for txn.
--Supports global transaction with one-phase commit.
Used oracle.jdbc.OracleDriver driver class.
Thanks in advance.

You need to use an XA driver to span multiple resources such as oracle.jdbc.xa.client.OracleXADataSource
See this article, which has some info on XA even if you aren't using RAC
http://www.oracle.com/technology/products/weblogic/OracleWLS_RAC.pdf

Similar Messages

  • Different Options while creating a Datasource in Weblogic

    Hi
    I am using Weblogic 11 as Application Server .
    While in the process of creating a DataSource in Weblogic , i came across different options such as for Instance Connections , for Service Connections.
    Please tell me whats the difference in these two ??
    Whats the difference in Oracle Drivers (Thin) for Instance Connections versions 9 , 10 , 11
    Whats the difference in Oracle Drivers (Thin) for Service Connections 9 , 10 , 11
    Thanks in advance .

    Hi,
    Your query is replied by Joe Weistine (JDBC Expert) Please find the answer:
    http://forums.oracle.com/forums/message.jspa?messageID=4029371
    You can directly post your JDBC related querries to JDBC Forum directly to get to get Quick/appropriate/correct answers and attention from JDBC experts... WebLogic Server - JDBC (Forum ID)
    Thanks
    Jay SenSharma
    Edited by: Jay SenSharma on Jan 16, 2010 10:38 AM

  • Creating JDBC datasource in Weblogic 10

    I have a requirement to create JDBC datasource at runtime if necessary. Weblogic provides JMX services for creating datasource however this required credential of Admin Server (node manager).
    As my application is deployed in one of the managed node and as per the security policies admin credential will not be available..
    so how can I create a datasource at runtime on fly applicable only for my node.. this should not require admin credentials?
    Edited by: user5798282 on Apr 28, 2010 12:50 PM

    Thanks for your reply. However both seems to be way of creating datasource in weblogic 8 . The first one is deprecated in Weblogic 10, the 2nd one requires weblogic admin username and password

  • Ant - Create Connection Pool on WebLogic 10.1.3

    Hi,
    I have created the following build.xml file to create a Datasource on weblogic using ANT . The file is as follows:
    <?xml version="1.0" encoding="windows-1252" ?>
    <project name="deploy" default="all" basedir=".">
      <property file="build.properties"/>
      <path id="library.WL">
        <pathelement location="${wl.home}/server/lib/weblogic_sp.jar"/>
        <pathelement location="${wl.home}/server/lib/weblogic.jar"/>
        <pathelement location="${wl.home}/../modules/features/weblogic.server.modules_10.3.0.0.jar"/>
        <pathelement location="${wl.home}/server/lib/webservices.jar"/>
        <pathelement location="${wl.home}/../modules/org.apache.ant_1.6.5/lib/ant-all.jar"/>
        <pathelement location="${wl.home}/../modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar"/>
      </path>
      <taskdef name="wldeploy" classpathref="library.WL"
               classname="weblogic.ant.taskdefs.management.WLDeploy"/>
      <taskdef name="wlconfig" classpathref="library.WL"
               classname="weblogic.ant.taskdefs.management.WLConfig"/>
      <target name="init">
        <wlconfig username="${wl.username}" password="${wl.password}"
                  url="${wl.url}">
          <create type="JDBCConnectionPool" name="FinanceDSConnPool"
                  property="financedsconnpool">
            <set attribute="CapacityIncrement" value="1"/>
            <set attribute="DriverName" value="oracle.jdbc.OracleDriver"/>
            <set attribute="InitialCapacity" value="1"/>
            <set attribute="MaxCapacity" value="10"/>
            <set attribute="Password" value="${database.password}"/>
            <set attribute="Properties" value="user=${database.user}"/>
            <set attribute="RefreshMinutes" value="0"/>
            <set attribute="ShrinkPeriodMinutes" value="15"/>
            <set attribute="ShrinkingEnabled" value="true"/>
            <set attribute="TestConnectionsOnRelease" value="false"/>
            <set attribute="TestConnectionsOnReserve" value="false"/>
            <set attribute="URL" value="${database.connectString}"/>
            <set attribute="Targets" value="${wl.targetServer}"/>
          </create>
          <create type="JDBCTxDataSource" name="FinanceDS">
            <set attribute="JNDIName" value="jdbc/financeDS"/>
            <set attribute="XAServerEnabled" value="false"/>
            <set attribute="PoolName" value="FinanceDSConnPool"/>
            <set attribute="Targets" value="${wl.targetServer}"/>
          </create>
        </wlconfig>
      </target>
      <target name="deploy" depends="init"></target>
    </project>It fails with C:\deploy\build.xml:18: Unable to create mbean: Could not create provider JDBCCo
    nnectionPool . Can anyone see whats defined incorrectly?
    The build.properties file is as follows
    # D:/Oracle/wls10.3/jdeveloper/ant/bin in path
    # Ensure Java JDK 1.5 installed
    wl.home=D:/Oracle/wls10.3/wlserver_10.3
    wl.username=weblogic
    wl.password=weblogic
    wl.url=t3://womble:7001
    wl.targetServer = ADFServer
    database.connectString = jdbc:oracle:thin:@devbase1:1521:fin10r1
    database.user = symfinbto
    database.password = symfinbto

    WebLogic datasource may be created in the Administration Console. build.xml script and build.properties are not required.
    http://java.sys-con.com/node/325151

  • EBS datasource in WebLogic cluster using the EBS dbc file

    Hi All
    Please let me know if someone has successfully created EBS datasource in WebLogic cluster using the EBS dbc file.
    I have successfully created the datasource with one managed server but I am getting 'OAuth Mashaling Failure' error while adding the second managed server to this datasource.
    Thanks

    Thanks Hussein
    Here is the complete error:
    [wlst] Caused by: weblogic.common.ResourceException: weblogic.common.ResourceException: OAUTH marshaling failure
    [wlst] at weblogic.jdbc.common.internal.PooledConnectionEnvFactory.createResource(PooledConnectionEnvFactory.java:133)
    [wlst] at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1249)
    [wlst] at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1166)
    [wlst] at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:249)
    [wlst] at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1154)
    [wlst] at weblogic.jdbc.common.internal.ConnectionPool.start(ConnectionPool.java:154)
    [wlst] at weblogic.jdbc.common.internal.ConnectionPoolManager.createAndStartPool(ConnectionPoolManager.java:454)
    [wlst] at weblogic.jdbc.common.internal.ConnectionPoolManager.createAndStartPool(ConnectionPoolManager.java:372)
    [wlst] at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:255)

  • Problems creating Datasource in Weblogic for E-biz R12 DB

    Hi,
    I've got an instance of E-Business Release 12 on a 10.2.0.2.0 DB which I am trying to create a Datasource and connection pool for in Weblogic Server 11g. I have successfully set up connections for other DB's but I am unable to connect to this Ebiz DB. I go through the settings but when I click on 'Test Configuration' at the end, I get the following error message:
    Connection test failed.
    Message icon - Error The Network Adapter could not establish the connection
    oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:480)
    oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:413)
    oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)
    oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
    oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
    oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
    oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:275)
    oracle.jdbc.xa.client.OracleXADataSource.getPooledConnection(OracleXADataSource.java:454)
    oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:159)
    oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:105)
    com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:550)
    com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:450)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    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)
    I have set it up to use the database driver 'Oracle's (Thin XA) Driver for Instance Connections....' .
    I am wondering whether the DB version is compatible with this version of Weblogic Server and whether it may need to be patched if it isn't?
    I appreciate your help
    Edited by: user10248308 on 30-Sep-2009 08:55

    The "The Network Adapter could not establish the connection" message usually indicates a network / connectivity failure

  • Weblogic : Creating JDBC Datasources

    Dear All,
    I'm newbie in weblogic . Please anyone guide me to create JDBC datasources for POSTGRESQL in steps.I've googled a lot for this. but i couldn't make it out. I'm using weblogic latest release 11g.Thanks in advance.

    Steps to configure a datasource can be found here: http://download.oracle.com/docs/cd/E21764_01/apirefs.1111/e13952/taskhelp/jdbc/jdbc_datasources/CreateDataSources.html
    As your Database Type, you can select postgresql from the drop down list.
    You also have to add the jar file that contains the postgresql drivers to the classpath.
    You add this to the <middleware-home>/user_projects/domains/<domain-name>/lib directory (after this you have to restart your server)

  • Error got while creating a jdbc in Weblogic server 9.2

    Hi All,
    I am getting the following error
    +"Warning! Connectivity to backend database not verified. This is either because required connection pool attributes "TestConnectionsOnReserve" or "TestConnectionsOnRelease" have not been enabled, or an invalid value has been specified for attribute "TestTableName". Please check the server log for more details".+
    While creating a jdbc datasource in Weblogic 9.2. When I add the target and activate the setting and while testing only I am getting this error. While before adding target "Test connection" works good.
    Please help me in fixing this bug.
    Thank you in Advance.
    With regards
    John
    Edited by: user7329724 on Dec 16, 2008 11:25 AM
    Edited by: user7329724 on Dec 16, 2008 11:26 AM

    Please confirm the "Test Connections On Reserve" attribute is enabled. You can find this property in Administration Console--->Data Sources--->Your Data Source Name--->Configuration--->Connection Pool--->Advanced

  • Unable to resolve JNDI DataSource in weblogic 12c When you upgrade web application

    I create a datasource which jndi name is jdbc/allianzB2CDataSource and the target is AdminServer ,and i deploy a web application in AdminServer.In that web application,the code(base on spring framework) is:
    public static DataSource getJndiDataSource(String name) {
      JndiDataSourceLookup dsLookup = new JndiDataSourceLookup();
      Properties jndiEnvironment = new Properties();
      jndiEnvironment.put("java.naming.factory.initial",
      "weblogic.jndi.WLInitialContextFactory");
      dsLookup.setJndiEnvironment(jndiEnvironment);
      try {
      dsLookup.setResourceRef(false);
      return dsLookup.getDataSource(name);
      } catch (Exception e) {
      dsLookup.setResourceRef(true);
      return dsLookup.getDataSource(name);
    And the parameter is jdbc/allianzB2CDataSource,everything work fine,but when i restart or upgrate the web application,i got the error like this:
    javax.naming.NameNotFoundException: Unable to resolve 'jdbc.allianzB2CDataSource'. Resolved 'jdbc'; remaining name 'allianzB2CDataSource'
    Unable to resolve 'jdbc.allianzB2CDataSource'. Resolved 'jdbc'; remaining name 'allianzB2CDataSource'

    I create a datasource which jndi name is jdbc/allianzB2CDataSource and the target is AdminServer ,and i deploy a web application in AdminServer.In that web application,the code(base on spring framework) is:
    public static DataSource getJndiDataSource(String name) {
      JndiDataSourceLookup dsLookup = new JndiDataSourceLookup();
      Properties jndiEnvironment = new Properties();
      jndiEnvironment.put("java.naming.factory.initial",
      "weblogic.jndi.WLInitialContextFactory");
      dsLookup.setJndiEnvironment(jndiEnvironment);
      try {
      dsLookup.setResourceRef(false);
      return dsLookup.getDataSource(name);
      } catch (Exception e) {
      dsLookup.setResourceRef(true);
      return dsLookup.getDataSource(name);
    And the parameter is jdbc/allianzB2CDataSource,everything work fine,but when i restart or upgrate the web application,i got the error like this:
    javax.naming.NameNotFoundException: Unable to resolve 'jdbc.allianzB2CDataSource'. Resolved 'jdbc'; remaining name 'allianzB2CDataSource'
    Unable to resolve 'jdbc.allianzB2CDataSource'. Resolved 'jdbc'; remaining name 'allianzB2CDataSource'

  • Error while trying to use Ant and creating Jdbc Datasource

    I was following the documentation to auto-create my datasource in my weblogic server. I get an error while it is trying to link the datasource to the server. Does anybody have any ideas,it is almost like the query to get the server isn't working.
    Here is my ant task:
    <target name="setupJdbcDatasource">
         <wlconfig url="t3://localhost:7001" username="weblogic" password="weblogic">
         <query domain="MyDomain" type="Server" name="AdminServer" property="adminserver"/>
         <create type="JDBCConnectionPool" name="TestDatasource" property="DatasourceTest">
              <set attribute="CapacityIncrement" value="1"/>
              <set attribute="DriverName" value="weblogic.jdbcx.oracle.OracleDataSource"/>
              <set attribute="InitialCapacity" value="1"/>
              <set attribute="MaxCapacity" value="10"/>
              <set attribute="Password" value="cmuser"/>
              <set attribute="Properties" value="user=cmuser SID=ORCH serverName=10.13.5.144 portNumber=1521"/>
              <set attribute="RefreshMinutes" value="0"/>
              <set attribute="ShrinkPeriodMinutes" value="15"/>
              <set attribute="ShrinkingEnabled" value="true"/>
              <set attribute="TestConnectionsOnRelease" value="false"/>
              <set attribute="TestConnectionsOnReserve" value="false"/>
              <set attribute="URL" value="jdbc:bea:oracle://10.13.5.144:1521"/>
              <set attribute="Targets" value="${adminserver}"/>
         </create>
         </wlconfig>
    </target>
    My Domain is MyDomain, and server is AdminServer. The error I get is:
    [wlconfig] weblogic.management.DistributedManagementException : Distributed Management [1 exceptions]
    BUILD FAILED
    X:\ibutt_PCView\src\CM\build.xml:285: Error invoking MBean
    command: javax.management.MBeanException
    And in my server log:
    jdbcDataSourceBean=[MBeanServerInvocationHandler]com.bea:Name=CP-ConfigManagemen
    tTest,Type=weblogic.j2ee.descriptor.wl.JDBCDataSourceBean,Parent=[MyDomain]/JDBC
    SystemResources[CP-ConfigManagementTest],Path=JDBCResource
    <May 21, 2006 3:50:57 PM EDT> <Warning> <JDBC> <BEA-001129> <Received exception
    while creating connection for pool "ConfigManagementTest": [BEA][Oracle JDBC Dri
    ver]Missing connection information: no serverName specified.>
    <May 21, 2006 3:50:58 PM EDT> <Error> <Deployer> <BEA-149265> <Failure occured i
    n the execution of deployment request with ID '1148241051441' for task 'weblogic
    .deploy.configChangeTask.2'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:

    Hi. This seems like an XML parsing problem.
    Could you please try changing the driver
    properties from:
    <set attribute="Properties" value="user=cmuser SID=ORCH serverName=10.13.5.144 portNumber=1521"/>
    to:
    <set attribute="Properties" value="user=cmuser SID=ORCH"/>
    The server and port are already in the URL
    thanks,
    Joe

  • Can  not connect datasource in weblogic server

    I have written a test class. I create datasource in weblogic server 11g(datasource name =fdbusionline jndi name = 'jdbc/fdbusionline' ) and start weblogic server. but always report the following error:
    javax.naming.NameNotFoundException: Unable to resolve 'fdbusionline'. Resolved '' [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'fdbusionline'. Resolved '']; remaining name 'fdbusionline'
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at weblogic.jndi.internal.ServerNamingNode_1035_WLStub.lookup(Unknown Source)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:423)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:411)
    at com.fd.busionline.test.appinterface.impl.DataSourceTest.testConnectDataSource(DataSourceTest.java:54)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
    at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
    at oracle.jdevimpl.junit.runner.junit4.JUnit4Testable.run(JUnit4Testable.java:24)
    at oracle.jdevimpl.junit.runner.TestExecution.run(TestExecution.java:27)
    at oracle.jdevimpl.junit.runner.JUnitTestRunner.main(JUnitTestRunner.java:88)
    Caused by: javax.naming.NameNotFoundException: Unable to resolve 'fdbusionline'. Resolved ''
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
    at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    @test
    public void testConnectDataSource(){
    Connection conn = null;
    Context ctx = null;
    try{
    // Hashtable env = new Hashtable();
    // env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    // env.put(Context.PROVIDER_URL, "t3://localhost:7001");
    // env.put(InitialContext.SECURITY_PRINCIPAL, "weblogic");
    // env.put(InitialContext.SECURITY_CREDENTIALS, "!QAZ2wsx");
    Environment env=new Environment();
    env.setProviderUrl("t3://localhost:7001");
    env.setSecurityPrincipal("weblogic");
    env.setSecurityCredentials("!QAZ2wsx");
    ctx = new InitialContext();
    ctx=env.getInitialContext();
    Object obj = ctx.lookup("fdbusionline");// can not work
    Object obj = ctx.lookup("jdbc/fdbusionline"); // can not work
    DataSource ds = (DataSource) PortableRemoteObject.narrow(obj, DataSource.class);
    conn = ds.getConnection();
    Statement stmt = conn.createStatement();
    String sql = "select sysdate from dual";
    ResultSet rs = stmt.executeQuery(sql);
    while (rs.next()) {
    System.out.println(rs.getDate(1));
    } catch (Exception e) {
    e.printStackTrace();
    }finally{
    System.out.println("Test Datasource Connection");
    who can help me? Any help will be appreciated greatly

    Okay, but are you sure that the datasource is actually deployed? Does the server log or the management interface of weblogic actually report that the datasource was deployed succesfully under the name you specify? And did you double check if you don't have any name mismatches (such as a typo or an upper/lowercase mismatch)?
    I ask because the connection to the server appears to be working, but the lookup of the name gives no results - the only thing I can think of is that the resource really is not deployed even if you believe it is.
    A few observations:
    - you may want to put your JNDI credentials in a jndi.properties file in the root of the classpath in stead of hardcoding them (but you may hardcode for now as a quick test of course)
    - the correct lookup should be to "jdbc/fdbusionline", in other words you use the jndi-name.
    ctx = new InitialContext();
    ctx=env.getInitialContext();the env.getInitialContext() really is not necessary, I would remove it.

  • JDBC datasource in weblogic 7.0

    Hi
    I configured coldfusion mx in weblogic 7.0 successfully.
    I am able to execute cf files with 7001 port and localhost.
    I need access to the remote database (oracle 8) in cf thru' dsn.
    Where should I create DSN (in local system or in weblogic 7.0 connection pooling)?
    How should I get access to the remote database?
    If it is with connection pooling, can any one please help me how to create it and how it works?
    process : req-->(cf-->weblogic)-->database(remote)
    please give me asap.
    pcr

    Hi Purna,
    I need access to the remote database (oracle 8) in cf thru' dsn.
    Where should I create DSN (in local system or in weblogic 7.0 connection pooling)?
    How should I get access to the remote database? While using Oracle thin driver, you need to install Oracle client on ur comp.
    U can create a System DSN (Control Panel - Data sources ODBC)
    Create a new System DSN provided Oracle client is installed on ur comp and it installs the required DLL on ur comp.
    This will suffice ur DSN requirment in Coldfusion
    If it is with connection pooling, can any one please help me how to create it and how it works?
    process : req-->(cf-->weblogic)-->database(remote)Guess ur Cold Fusion pages will call jsp/servlets in Weblogic which in turn will tune to the remote database say Oracle.
    Weblogic 7.0 's console has its way of defining a connectionPool first and then create a Datasource mapped to this ConnectionPool
    In WLS Admin Console
    mydomain
    Services
    JDBC
    1. Connection Pools
    Configure a New Connection Pool
    Pool Name = oraclepool
    url = jdbc:oracle:thin:@<machinename>:1521:<oracleservicename>
    Driver classname = oracle.jdbc.driver.OracleDriver
    Properties = user=xxxxxx
    (Targets tab)
    click on the server (In Available) to move to (Chosen)
    2. Data Source
    Configure a new JDBC Data Source
    JNDI Name = <oraclejndi>
    PoolName = oraclepool
    (Targets tab)
    click on the server (In Available) to move to (Chosen)
    HTH,
    Seetesh

  • Connecting to TimesTen using DataSource in WebLogic on Linux

    We are trying to use weblogic 9.2 to connect to TimesTen7.0, both are on Linux.
    We have installed Oracle 10g client and then installed TimesTen 7.0 Client on the Linux server hosting weblogic.
    Created Client DSN in /var/TimesTen/sys.odbc.ini file as follows:
    [ODBC Data Sources]
    TTclientMaster=TimesTen 7.0 Client Driver
    [TTclientMaster]
    TTC_SERVER="TTServerHostName"
    TTC_SERVER_DSN=TTmaster
    When we are trying to create DataSource in weblogic Admin console it does not show up TTClient Driver in the list.
    We tried setting up using "Others" for driver and databasetype but then it asks for databasename which we don't have since TT uses DSN.
    We are looking for any pointers or references that can explain how to configure weblogic to use TimesTen using TT 7.0 client DSN.

    If you have access to a copy of TimesTen 6.0 you can look in the AppServer Configuration Guide (appsrv.pdf) that was shipped with that release. This guide is currently being rewritten and so is not yet available for 7.0.
    If you can't get hold of a copy, e-mail me at [email protected] and I'll send it to you.
    Chris

  • OSR - Oracle Service Registry won't create database datasource

    Current configuration:
    Oracle 10g database
    Oracle Service Registry 10gR3
    Oracle Weblogic application server 10.1.3
    I have tried many ways to install the registry (GUI, command prompt, config file) but my datasouce is not getting created. In the /log/install.log the flag to create the datasource is set to "yes" and the name is also set. I don't see any kind of msg/error in the install.log or in the weblogic log. One other thing the registry deploys just fine during installation so all the information seems to be ok. Since the datasource is not created, i get the following exception which is expected since there's no connection to the database:
    ERROR: account.com.systinet.uddi.account.database.DBAccountApiImpl - DatabaseCoreException: (12021) Cannot obtain new connection.
    ERROR: account.com.systinet.uddi.account.AccountCoreApiImpl - Initialization of accounts has failed in the database. Database is not running.
    ERROR: group.com.systinet.uddi.group.database.DBGroupApiImpl - DatabaseCoreException: (12021) Cannot obtain new connection.
    ERROR: group_core.com.systinet.uddi.group.GroupCoreApiImpl - Initialization of groups has failed in the database. The database is not running.
    The only way to make it work is to create the datasouce manually. In the environment that I'm running the less steps the better.
    So thank you for any ideas/help that you can give me!

    Oracle Service Registry Installation to Weblogic
    1. Run installation
    java -jar oracle-service-regisry-10.3.jar
    2. In the Oracle Service Registry installer proceed through the following screens
    * Installation Type screen: select 'Standalone' or other type of installation
    * Installation Directory screen: enter folder where OSR will be installed i.e:-
    /home/oracle/OSR/osrregistry_10_1_3
    * SMTP Configuration screen: (optional) accept defaults
    * Administrator Account Configuration screen: admin user account details
    * Database Setup screen: create new New Schema / Database or connect to existing schema
    * Database Selection screen: select Oracle or other database you may be using
    * Oracle screen: enter database details and schema information.
    3. Data Source screen: IGNORE this for Weblogic servers. Only affects Oracle Application Servers.
    4. JDBC Driver Selection screen: search and select JDBC driver i.e. JDBC 1.6 for Weblogic:-
    $WEBLOGIC_HOME/wlserver_10.3/server/ext/jdbc/oracle/11g/ojdbc6.jar
    5. Account Provide Selection screen: select 'Database'.
    6. Application Server Selection screen: MUST SELECT 'Oracle Weblogic 9.2 or 10.3'
    7. Deployment to Oracle Weblogic Application Server screen: enter correct Weblogic details such as:-
    * Weblogic HTTP Port: AdminServer port i.e. 7001 or a managed server port i.e. 7003
    * SSL Ports (optional): i.e. 7002
    * Hostname where WLS resides.
    * Application Server Context (name of application).
    8. Also on this screen there is the option "Deploy at the end of the installation" which will either deploy the OSR application to Weblogic after it is installed (selected option) or just deploy a WAR file to the command line and get deployed to Weblogic at a later stage (de-select option).
    9. Deployment Details screen: If selected Deploy at the end of the installation in the above screen, then the following screen will be displayed which allows you to enter details of where to deploy the application in Weblogic. Enter all relevant details:
    * Weblogic home: enter the folder where Weblogic resides (WebLogic server installation directory) i.e.
    $WEBLOGIC_HOME/wls_servber1013
    $WEBLOGIC_HOME/weblogic92
    * Java Home: enter the path of the JDK i.e.
    $WEBLOGIC_HOME/jdk160_05
    * Hostname: host of where to deploy application.
    * Admin Username | Password: admin details for weblogic server.
    10. The summary screen is shown regardless of if deployed to Weblogic or not. Press [Next] to install OSR.
    11. After successfully installing OSR a screen will detail that the installation has been successfully installed and with what tasks that need to be completed.
    Deploy OSR to Weblogic
    1. If in the installer the Deploy at the end of the installation option was not selected, then the OSR application needs to be deployed via the Weblogic console. So log into the Weblogic console, press Deployments and then Install.
    2. Install Application Assistant screen:
    * Enter the path where the OSR deployment WAR file (registry.war) resides. It is found in the following path:
    $OSR_HOME/conf/porting/weblogic/build
    * Select file file registry.war.
    3. Complete the rest of the installation/deployment whilst selecting a target server.
    POST INSTALLATION
    The following MUST be done to be able to log into the Oracle Service Registry consoles.
    1. Edit the following Weblogic file:-
    Linux
    $WEBLOGIC_HOME/user_projects/domains/<domain_name>/bin/startWebLogic.sh
    Windows
    %WEBLOGIC_HOME%/user_projects/domains/<domain_name>/bin/startWebLogic.cmd
    2. Modify the following line
    JAVA_OPTIONS="${SAVE_JAVA_OPTIONS}"
    to
    Linux
    JAVA_OPTIONS="${SAVE_JAVA_OPTIONS} -Djava.security.auth.login.config=$OSR_HOME/conf/jaas.config"
    Windows
    set JAVA_OPTIONS=%SAVE_JAVA_OPTIONS% -Djava.security.auth.login.config=%OSR_HOME%\conf\jaas.config
    OSR Console
    1. Go to the Oracle Service Registry on Weblogic
    Service Registry
    http://<host>:<port>/registry/uddi/web
    Business Service Registy
    http://<host>:<port>/registry/uddi/web
    2. Press Login and enter login credentials and should be able to successfully login.

  • Cannot create a DataSource with MySql...

    Hi all,
    I'm trying to create a DataSource with WLS 9.1.
    The DataBase I'm using is MySql 4.1.
    I have copied the mysql-connector.jar in the "lib" folder of my domain, but when I try to target the DataSource to the Server I get an error that Mysql Driver class is not found.
    Should I insert the driver somewhere else ? or should I add manually the file to the server classpath ?
    Thanks
    Francesco

    Francesco Marchioni wrote:
    Hi all,
    I'm trying to create a DataSource with WLS 9.1.
    The DataBase I'm using is MySql 4.1.
    I have copied the mysql-connector.jar in the "lib" folder of my domain, but when I try to target the DataSource to the Server I get an error that Mysql Driver class is not found.
    Should I insert the driver somewhere else ? or should I add manually the file to the server classpath ?
    Thanks
    Francescoedit the script that starts WebLogic. You will see a CLASSPATH definition
    is constructed and applied to the WebLogic call. Add your jar to that
    CLASSPATH.
    Joe

Maybe you are looking for

  • Has anyone ever received the error code B8007C54?cc=us

    I own a HP Photosmart C8180 All In One printer and when I plug the power cord in the printer tries to connect then gives me an error message of B8007C54.  Please let me know if anyone has ever received this message and what did you do to correct the

  • Inserting text after a picture

    hi I hve inserted a picture fro my camera role into pages, i now with to continue on with text however it will not let me type, when pressing the screen for the bar i get a paste option, i have already pasted the picture and dont need to paste it aga

  • FlashPaper 2 API calls in Flex 2?

    Does anyone know if you can access the FlashPaper 2 methods within a Flex 2 application? I can get it to display my FlashPaper file, but not resize it appropriately or get the current page, etc. Thanks, K___H

  • I created text in photoshop and it is printing pixelated and not vector.  How do I fix this?

    I created text in a photoshop file and it is printing in pixels, not vecotor.  How do I fix this?

  • Duplicating a Movie Button

    Hi all, I'm currently adapting a flash site and am very much a beginner in flash. I have a site, and all the navigation links are buttons, with a transition on rollover. I now need to add an additional nav link, but the original button transition is