Xsql jdbc config

I am now using XSQL servlet and try to run the demo. However, I have configed the JDBC setting in the xml config and change the connection parameter in the .xsql file.
The following exception throws:
Oracle XSQL Servlet Page Processor 1.0.0.0 (Production)
XSQL-007: Cannot acquire a database connection to process page.
IO 2'1`: The Network Adapter could not establish the connection
Can anyone help me

Have you modified the <connection> entries in the XSQLConfig.xml file to make the JDBC connection details appropriate for your database?

Similar Messages

  • Third Party JDBC Config Issue in JDeveloper 9.0.2

    I am running JDeveloper 9.0.2.822 on Windows 2000 Pro.
    I am attempting to setup a 3rd party JDBC driver in the Connection folder of the system navigator.
    The 3rd party driver is provided by Progress software for the Progress RDBMS.
    Outside of the JDeveloper environment, I am able to run a simple Java connect/query source . The requirements to use the driver include ensuring the Progress jar file with the driver is in the CLASSPATH and the Progress DLL (under bin) is in the PATH statement. If the DLL is not in the PATH, then attempting to connect throws the following exception: "no suitable driver".
    Inside JDeveloper, I am able to take the same source and, after I setup the CLASSPATH for the specific project under Project/Settings PATHS, the code executes here as well. It is able to connect to and query the Progress database.
    After setting-up the non-default drivers in jdev/bin/jdev.conf file, I attempted to setup the connection under Connection folder of the system navigator. When I test the connection, I get the same error described earlier when the PATH was not setup properly: "no suitable driver".
    (The Progress driver accesses the Progress database via JNI to the C++ DLL located in the another directory. This directory is visible to the driver by navigating PATH.)
    This is strange. When I run the java source in JDeveloper, it can connect and query the DB. Yet, when I try to connect to the same database via the same IDE using the Connection folder, it does not see/use the PATH to find that DLL.
    Anyone have any suggestions?

    That worked like a charm!! Thanks, Robert!
    Now that the connection works, when I try to drill-down beyond "table" in the System-Navigator, it shows no tables. Is that a limitation of 3rd party drivers? Will I still be able to use this connection to query the database when building the java source? Is there a link that discusses the limitations of 3rd party DB connections in JDeveloper?
    By the way, this is a SWEET product. Hands-down the best IDE I have ever used! Keep up the superior work!

  • JDBC Datasource creation via ANT doesn't expose the JNDI name

    I'm using the wlconfig ANT task to create a Datasource (& JDBC connectionpool) on the weblogic server. The datasource is created fine, and I can test it using the console.
    The problem is that the provided JNDI name isn't exposed in the JNDI tree. This seems to be related to the fact that the following element is generated in the config/jdbc/CP-PoolName-2164-jdbc.xml
    &lt;jdbc-data-source&gt;
    &lt;name&gt;PoolName&lt;/name&gt;
    &lt;internal-properties&gt;
    *&lt;property&gt;*
    *&lt;name&gt;LegacyType&lt;/name&gt;*
    *&lt;value&gt;1&lt;/value&gt;*
    *&lt;/property&gt;*
    When removing the LegacyType 1 property from the JDBC config xml, the JNDI name is exposed fine.
    I've used the instructions located at [http://edocs.bea.com/wls/docs100/programming/ant_tasks.html] where an example of a JDBCConnectionPool creation is provided.
    The 10.3 documentation doesn't include the example anymore, but I'm having the problem both on BEA Weblogic 10.0 and Oracle Weblogic 10.3
    &lt;wlconfig url="t3://localhost:7001" username="weblogic" password="weblogic"&gt;
    bq. &lt;query domain="base_domain" type="Server" name="AdminServer" property="adminserver"/&gt;
    bq. &lt;create type="JDBCConnectionPool" name="MediumSecureOnlineNode1Pool" property="customPool1"&gt;
    bq. bq. &lt;set attribute="CapacityIncrement" value="1"/&gt; \\ &lt;set attribute="DriverName" value="oracle.jdbc.OracleDriver"/&gt; \\ &lt;set attribute="InitialCapacity" value="1"/&gt; \\ &lt;set attribute="MaxCapacity" value="10"/&gt; \\ &lt;set attribute="Password" value="pass"/&gt; \\ &lt;set attribute="Properties" value="user=username"/&gt; \\ &lt;set attribute="RefreshMinutes" value="0"/&gt; \\ &lt;set attribute="ShrinkPeriodMinutes" value="15"/&gt; \\ &lt;set attribute="ShrinkingEnabled" value="true"/&gt; \\ &lt;set attribute="TestConnectionsOnCreate" value="true"/&gt; \\ &lt;set attribute="TestConnectionsOnRelease" value="true"/&gt; \\ &lt;set attribute="TestConnectionsOnReserve" value="true"/&gt; \\ &lt;set attribute="TestTableName" value="SQL SELECT 1 FROM DUAL"/&gt; \\ &lt;set attribute="URL" value="jdbc:oracle:thin:@localhost:1521"/&gt; \\ &lt;set attribute="Targets" value="${adminserver}"/&gt;
    &lt;/create&gt;
    As we would like to automate the process of configuring our weblogic instances using ANT, is there a way to create JDBC datasources that don't have the LegacyType 1 element included in the config ?

    Curious if you were ever able to find a resolution to this issue?
    I am facing the same thing now with our Ant scripts and WL10.3 connection pools/datasources.
    I would like to either specify a different LegacyType or suppress it altogether. Any help would be appreciated.
    Many thanks,
    Steve

  • Correct JDBC url using IPC protocol

    What is correct url to connect to db with orcl SID using IPC protocol? Couldn't find this in documentation....
    jdbc:oracle:oci:@[WHAT GOES HERE?]

    If you are having problems with TCP then you should find and fix those problems. Many thousands of others use TCP with, and without, Glassfish and it works just fine for them. That indicates you have an issue with one, or more of those four things I ask you to provide but chose not to.
    Fix would be to upgrade DB to 12.1.0.2 or downgrade to 11, where I haven't got any problems with connection pool.
    SHOW US (don't just tell us):
    1. WHAT you are doing - that means posting the code and ALL relevant info about TNSNAMES and other properties/settings being used such as connection pool settings.
    2. HOW you are doing it - that means showing a copy of the console that shows the LAUNCH and EXECUTION of the code
    3. WHAT results you get - that means showing a copy of the console showing any results or exceptions you are getting
    4. WHAT results you expected to get
    You should also do basic troublshooting:
    1. confirm that you can connect to the DB without using JDBC
    2. confirm that you can connect and work properly WITHOUT using a connection pool
    That other link you provided shows pool settings that are pretty much guaranteed to cause the pool to close connections. An idle timeout of only 60 seconds greatly increases the possibility that a connection that is checked out of the pool and still in use may get closed if it isn't returned to the pool properly.
    This link describes the attirbutes  and their defaults:
    https://docs.oracle.com/cd/E19316-01/820-4338/abhcy/index.html
    You are using SEVERAL non-default settings - and you are having a problem. That suggests you should go back to the defaults and test again.
    We can NOT see your computer screen or SEE what you are doing. We can NOT debug code that we can't see.
    Are you a bot? Or are you using some replay templates? Have you read my first post? Do I ask for help in debug any code? What code you are taking about? I ask for proper url using OCI driver over IPC protocol.
    This is my tnsnames.ora
    ORCL_IPC =
      (DESCRIPTION =
        (ENABLE = BROKEN)
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(Key = ORCL))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = ORCL)
    and jdbc config
    <jdbc-connection-pool validation-table-name="DUAL" datasource-classname="oracle.jdbc.pool.OracleDataSource" max-pool-size="50" res-type="javax.sql.DataSource" steady-pool-size="10" statement-cache-size="100" name="c2onlinePool" statement-timeout-in-seconds="30" is-connection-validation-required="true" idle-timeout-in-seconds="7200" max-wait-time-in-millis="10000" validate-atmost-once-period-in-seconds="60">
          <property name="driverClass" value="oracle.jdbc.OracleDriver"></property>
          <property name="user" value="***"></property>
          <property name="url" value="jdbc:oracle:thin:@127.0.0.1:1521/orcl"></property>
          <property name="password" value="***"></property>
          <property name="portNumber" value="1521"></property>
          <property name="databaseName" value="orcl"></property>
          <property name="serverName" value="127.0.0.1"></property>
    </jdbc-connection-pool>
    which is working (I'm testing with ping from glassfish web console), I just want to switch to IPC protocol.
    I tried with
    jdbc:oracle:oci:@(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY = LISTENER))(CONNECT_DATA=(SERVICE_NAME=orcl)))
    jdbc:oracle:oci:@(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=ORCL)))
    but every time JVM crashes with stackoverflow, as soon as I click on ping in console.
    Maybe it's just another driver bug. I have similar situation with thin driver - version 12.1.0.1 didn't work, but version 12.1.0.2 worked ok.

  • Possible to copy or rename JDBC datasources in WLS 9.2 ?

    Hello All,
    We are going to be migrating our 9.2.3 environments to from an Oracle 9i database to Oracle 10g Cluster. We currently utilize approximately 20 datasources for all of our applications. Currently all of our applications each use one JDBC datasource, eg AppDS. However rather then modify our application configurations, we are going to create 2 new datasources, e.g. AppDS1, and AppDS2, along with a new Multi-datasource, named AppDS. This requires us to delete the original datasource AppDS so it can be replaced with a Multi-Datasource.
    This would be so much easier if A) we could rename the existing datasource rather then delete it (i.e. rename AppDS to AppDS1), and B) copy datasources (i.e. copy AppDS1 to AppDS2.) Unfortunately there are no such options in the WLS console. Is it possible to do this modifiying the config.xml without my changes getting overwritten ? Would I need to propagate the config.xml and the newly created jdbc config files to the other server in our cluster or will WLS do it for me ? The copy feature (aka 'clone') was in WLS 8.1 and it is sorely missed in 9.2 !
    -Joe

    Thanks, I thought I could do that but have had mixed results with the servers starting up, most likely due to typos on my part. Does Weblogic expect a standard naming convention for the XML files in the config/jdbc directory if I create a new datasource by cutting/pasting inside the config.xml ?

  • Oracle errors in Weblogic Error logs appear in non english

    We have a problem with weblogic error logging. Specifically, in a managed server's log file, Oracle errors such as ORA-XXXX show in Greek, not English. We are assuming
    that this is because the timezone is Europe/Athens. However, the weblogic application server runs with user.language=en, user.country=US. What's more, there are 4 application servers and 2 of them have this problem. The oracle database is accessed via weblogic datasources.
    Oracle database server Setup: Oracle Server 11gR2 running on Oracle Linux 64 bit, timezone set to Europe/Athens
    Weblogic Server: Weblogic 10.3.5 running on Oracle Linux 64 bit, timezone set to Europe/Athens
    The managed server, according to jrockit, the jvm runs with the following language related system properties:
    user.language=en, user.country=US, user.timezone=Europe/Athens
    The question is: How do we tell oracle / weblogic to log english text for the ORA errors?
    Thanks,
    Chris

    I digged in the weblogic installation directory and it seems like the domain configuration wizard messed up the jdbc configs for the data sources.
    The config xml files for the data sources in the /domain root/config/jdbc directory had oracle driver but the test query was for pointbase. I double checked from the database.xml file in the init-info directory and corrected the entry in the datasource config xmls and voila!.. the errors were gone.
    I am not sure if this was the right approach and whether i have solved the issue or simply patched it.. so I am keeping the question open. If any one has any inputs I will be grateful.
    If the mods/admins feel that the thread should be marked as solved I will surely do so.
    Thanks.

  • Error while creating connection pool "FATAL: database "null" does not exist

    Hi,
    Iam trying to create a XA connection pool using postgres driver (postgresql-8.3-603.jdbc3.jar) on Weblogic 8.1.6.0 from the Admin Console.
    I have provided the following info in the JDBC config
    Driver Class Name: org.postgresql.xa.PGXADataSource.
    JDBC URL: jdbc:postgresql://192.168.192.112:5432/sample1
    UserName: postgres
    Password: Postgres
    When i click Test Driver Configuration. Iam getting the following error
    "FATAL: database "null" does not exist"
    if i change the Driver Class Name to "org.postgresql.Driver", it is working fine. But as iam trying to create XA datasource i need to use the XA Driver class name.
    Can someone tell me how to resolve this issue ?
    The postgres version iam using is 8.3.1

    Hi Joe,
    The driver is in the classpath.
    Please find the stack trace.
    org.postgresql.util.PSQLException: FATAL: database "null" does not exist
    at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(Conn
    ectionFactoryImpl.java:444)
    at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Conne
    ctionFactoryImpl.java:99)
    at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactor
    y.java:66)
    at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Conn
    ection.java:124)
    at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Conn
    ection.java:30)
    at org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
    at org.postgresql.Driver.makeConnection(Driver.java:386)
    at org.postgresql.Driver.connect(Driver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at org.postgresql.ds.common.BaseDataSource.getConnection(BaseDataSource.
    java:83)
    at org.postgresql.xa.PGXADataSource.getXAConnection(PGXADataSource.java:
    47)
    at org.postgresql.xa.PGXADataSource.getXAConnection(PGXADataSource.java:
    32)
    at weblogic.management.console.utils.JDBC.testConnection(JDBC.java:185)
    at weblogic.management.console.actions.mbean.JDBCConnectionPoolTestActio
    n.prePerform(JDBCConnectionPoolTestAction.java:114)
    at weblogic.management.console.actions.mbean.DoMBeanWizardAction.perform
    (DoMBeanWizardAction.java:215)
    at weblogic.management.console.actions.internal.ActionServlet.doAction(A
    ctionServlet.java:182)
    at weblogic.management.console.actions.internal.ActionServlet.doPost(Act
    ionServlet.java:86)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1077)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:465)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:348)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:7047)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3902)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2773)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

  • BEA-001156 error repates with DR datasource in 10.3.2

    I am getting an below error with 10.3.2 DG statsource (listner is down ). we have same configuration in 10.3.1 and errors out first time and does not repeat unlike 10.3.2 . any help is appreciated.
    ####<Jan 31, 2011 10:05:47 AM PST> <Warning> <JDBC> <hswebt1> <hsserver1> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1296497147549> <BEA-001129> <Received exception while creating connection for pool "DSESIDGDataSource": The Network Adapter could not establish the connection>
    ####<Jan 31, 2011 10:05:47 AM PST> <Info> <JDBC> <hswebt1> <hsserver1> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1296497147551> <BEA-001156> <Stack trace associated with message 001129 follows:
    java.sql.SQLException: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:480)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:413)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
    at oracle.jdbc.driver.OracleDriver.__AW_connect(OracleDriver.java:510)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:320)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:220)
    at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1180)
    at weblogic.common.resourcepool.ResourcePoolImpl$ResourcePoolMaintanenceTask.timerExpired(ResourcePoolImpl.java:2387)
    at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused By: oracle.net.ns.NetException: The Network Adapter could not establish the connection
    at oracle.net.nt.ConnStrategy.__AW_execute(ConnStrategy.java:328)
    at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java)
    at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:421)
    at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:634)
    at oracle.net.ns.NSProtocol.__AW_connect(NSProtocol.java:208)
    at oracle.net.ns.NSProtocol.connect(NSProtocol.java)
    at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:966)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:292)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
    at oracle.jdbc.driver.OracleDriver.__AW_connect(OracleDriver.java:510)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:320)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:220)
    at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1180)
    at weblogic.common.resourcepool.ResourcePoolImpl$ResourcePoolMaintanenceTask.timerExpired(ResourcePoolImpl.java:2387)
    at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused By: java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:525)
    at java.net.Socket.connect(Socket.java:475)
    at java.net.Socket.<init>(Socket.java:372)
    at java.net.Socket.<init>(Socket.java:186)
    at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:127)
    at oracle.net.nt.ConnOption.connect(ConnOption.java:126)
    at oracle.net.nt.ConnStrategy.__AW_execute(ConnStrategy.java:306)
    at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java)
    at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:421)
    at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:634)
    at oracle.net.ns.NSProtocol.__AW_connect(NSProtocol.java:208)
    at oracle.net.ns.NSProtocol.connect(NSProtocol.java)
    at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:966)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:292)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
    at oracle.jdbc.driver.OracleDriver.__AW_connect(OracleDriver.java:510)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:320)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:220)
    at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1180)
    at weblogic.common.resourcepool.ResourcePoolImpl$ResourcePoolMaintanenceTask.timerExpired(ResourcePoolImpl.java:2387)
    at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    let me try that. here is my multi datasource xml.
    <?xml version='1.0' encoding='UTF-8'?>
    <jdbc-data-source xmlns="http://xmlns.oracle.com/weblogic/jdbc-data-source" xmlns:sec="http://xmlns.oracle.com/weblogic/security" xmlns:wls="http://xmlns.oracle.com/weblo
    gic/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/jdbc-data-source http://xmlns.oracle.com/webl
    ogic/jdbc-data-source/1.0/jdbc-data-source.xsd">
    <name>MDSESIOMMultiDataSource</name>
    <jdbc-data-source-params>
    <jndi-name>jdbc/ds/omds</jndi-name>
    <algorithm-type>Failover</algorithm-type>
    <data-source-list>DSESIOMDataSource,DSESIOMDGDataSource</data-source-list>
    <failover-request-if-busy>false</failover-request-if-busy>
    </jdbc-data-source-params>
    </jdbc-data-source>
    and actual jdbc config xml.
    <?xml version='1.0' encoding='UTF-8'?>
    <jdbc-data-source xmlns="http://xmlns.oracle.com/weblogic/jdbc-data-source" xmlns:sec="http://xmlns.oracle.com/weblogic/security" xmlns:wls="http://xmlns.oracle.com/weblo
    gic/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/jdbc-data-source http://xmlns.oracle.com/webl
    ogic/jdbc-data-source/1.0/jdbc-data-source.xsd">
    <name>DSESIDGDataSource</name>
    <jdbc-driver-params>
    <url>jdbc:oracle:thin:@DBD1.net:1521:eodsd10g</url>
    <driver-name>oracle.jdbc.OracleDriver</driver-name>
    <properties>
    <property>
    <name>user</name>
    <value>hist_conn</value>
    </property>
    </properties>
    <password-encrypted>{AES}AN9Yw6RZeH/ez0N272gp+dOF926FjteSjojdcZPCKGQ=</password-encrypted>
    </jdbc-driver-params>
    <jdbc-connection-pool-params>
    <test-table-name>DUAL</test-table-name>
    </jdbc-connection-pool-params>
    <jdbc-data-source-params>
    <jndi-name>jdbc/ds/esidev2</jndi-name>
    <global-transactions-protocol>None</global-transactions-protocol>
    </jdbc-data-source-params>
    </jdbc-data-source>

  • Errors in Weblogic server log for Weblogic Portal

    Hi,
    I apologize if the question has been posted and answered.. I had searched but couldn't find anything in this forum.
    My post is a bit lengthy as I will be providing as much details as possible.. sorry about that.. :)
    I am new to Weblogic server and Weblogic Portal.. in fact I have never worked on portals. I have installed the Weblogic Portal 10.3.2 along with the Weblogic. I have used quickstart to create a domain. There I have configured the following data sources:
    appsGroupSpaceDataSource
    cgDataSource
    cgDataSource-nonXA
    p13nDataSource
    portalDataSource
    portalDataSourceAlwaysXA
    portalDataSourceNeverXA
    My database is oracle 11g. I have created a user and granted the user all the admin roles and priviledges
    The database connection test had worked for all the sources except appsGroupSpaceDataSource where the test query SELECT COUNT(*) FROM SYSTABLES failed as there was no such table in the database.
    I had run the following scripts:
    Drop/Create Groupspace Database Objects (appsGroupSpaceDataSource )
    Drop/Create P13N Database Objects (p13nDataSource)
    Drop/Create Content Database Objects (p13nDataSource)
    Drop/Create Portal Database Objects (p13nDataSource)
    There were no scripts to run for the other data sources.
    After installation whenever I am starting the admin server I am seeing this error in the console:
    <Sep 17, 2010 12:48:05 PM IST> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "appsGroupSpaceDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Sep 17, 2010 12:48:05 PM IST> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Sep 17, 2010 12:48:06 PM IST> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource-nonXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Sep 17, 2010 12:48:06 PM IST> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "p13nDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Sep 17, 2010 12:48:07 PM IST> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "portalDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    And the errors are happening in an infinite loop....
    I checked and there is no table created in that name in the database.. and being totally new to weblogic I am not sure where else to check.
    It would be great if some one could help me track the cause and resolve this..
    Thanks a lot for reading the long post.. and double thanks for a reply.. :)
    Edited by: 795423 on Sep 17, 2010 12:17 AM

    I digged in the weblogic installation directory and it seems like the domain configuration wizard messed up the jdbc configs for the data sources.
    The config xml files for the data sources in the /domain root/config/jdbc directory had oracle driver but the test query was for pointbase. I double checked from the database.xml file in the init-info directory and corrected the entry in the datasource config xmls and voila!.. the errors were gone.
    I am not sure if this was the right approach and whether i have solved the issue or simply patched it.. so I am keeping the question open. If any one has any inputs I will be grateful.
    If the mods/admins feel that the thread should be marked as solved I will surely do so.
    Thanks.

  • CLIENT_SEND_FAILED error code: 500, error text: Internal Server Error

    Hi,
    Developed Proxy <-->PI<-->JDBC SELECT scenario and getting the following error.
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">CLIENT_SEND_FAILED</SAP:Code>
      <SAP:P1>500</SAP:P1>
      <SAP:P2>Internal Server Error</SAP:P2>
      <SAP:P3>(See attachment HTMLError for details)</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Error while sending by HTTP (error code: 500, error text: Internal Server Error) (See attachment HTMLError for details)</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    When I cross checked the JDBC Receiver communication channel in Runtime Work Bench
    request and response were successfull. RWB shows the following message.
    2009-06-12 09:34:50 Information The message was successfully received by the messaging system.
    2009-06-12 09:34:50 Information Message successfully put into the queue.
    2009-06-12 09:34:50 Information The message was successfully retrieved from the request queue.
    2009-06-12 09:34:50 Information The message status was set to DLNG.
    2009-06-12 09:34:50 Information Delivering to channel: DB2ReceiverTableSPT
    2009-06-12 09:34:50 Information JDBC Adapter Receiver processing started, required QoS BestEffort
    2009-06-12 09:34:50 Information JDBC Adapter Receiver Channel DB2ReceiverTableSPT:
    2009-06-12 09:36:35 Information Database request processed successfully.
    2009-06-12 09:36:35 Information The message was successfully delivered to the application using connection JDBC_http://sap.com/xi/XI/System.
    2009-06-12 09:36:35 Information The message status was set to DLVD.
    I had gone thru all the previous threads related to 'CLIENT_SEND_FAILED' but
    those did not solve my problem.
    Can some one help me to solve this issue.
    Thanks,
    Vijay.

    I made necessary changes as per the blog. Appended '_response' for JDBC response structure.
    Still I am facing same problem.
    Strange....delibarately gave the link so that you can cross-check the JDBC config on receiver side...I assume that the proxy is configured properly with the Sync communication....also mapping is done accordingly...
    Regards,
    Abhishek.

  • Tracing in oracle db

    I have been interacting with Oracle Support regarding the mystery of the SQL session tracing in our PROD env. Tracing is enabled on sessions coming from OIM and we don’t know how to deactivate it. This tracing of SQL sessions create large files on the database server’s filesystem. (/opt/oracle/admin/O4233/udump - files named *.trc)
    This happens every time a connection is made. If we kill tracing on a connection, it reappears the next time a connection occurs from the OIM servers. Tracing is not enabled globally so it must be a SQL instruction issued by some code (ALTER SESSION SET sql_trace=’true’) or a JDBC connection config parameter.
    Oracle is requesting the following:
    · To verify that our code does not initiate the tracing
    o we believe our code does not contain tracing
    · To provide info about our WAS instance and verify that tracing is not enabled on the JDBC/connection pool in WAS.
    o I searched through the JDBC config and could not find any setting.
    Let me know if you can assist. Also raise your hand if you know of a setting that controls SQL tracing in WAS or OIM…
    Thanks
    Suren

    Handle:      user10088255
    Status Level:      Newbie
    Registered:      Mar 4, 2009
    Total Posts:      108
    Total Questions:      *74 (74 unresolved)*
    You've gotta be kidding

  • ADF (View Object) with open source database

    Hi all,
    Recently, I am evaluating JDeveloper 9.0.5.2 ADF with an open source database (Firebird).
    I follow the instruction to:
    1. Create an entity object
    2. Create a view object for the entity object in 1
    3. Create an application module for the view object in 2
    4. Right click on the application module and test -> all worked fine
    5. I created a jsp and drag the view (in 2) to it from Data Control Palette
    6. Test it in OC4J -> an error occurred (not because of jdbc config)
    JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT Department.DEPT_NO, Department.DEPARTMENT AS DEPARTMENT1, Department.HEAD_DEPT, Department.MNGR_NO, Department.BUDGET, Department.LOCATION, Department.PHONE_NO FROM DEPARTMENT Department) QRSLT ORDER BY DEPT_NO
    GDS Exception. 335544569. Dynamic SQL Error SQL error code = -104 Token unknown - line 1, char 16 SELECT
    To my knowledge, the error should be due to Firebird doesn't support the query syntax " select * (select col1, col2... from table) QRSLT where... order by... "
    I am quite headache as this query is automatically generated by JDeveloper. I am figuring out whether I can change it. It seems that I have to play with the ViewObjectImpl class.
    I do think ADF is an amazing technology. However, is it only so amazing with the Oracle technologies? Please correct me if I am wrong.
    Hons

    Dear Shay Shmeltzer,
    Thank you for your reply. After hours of trying on Firebird, I still get the error:
    JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT Department.DEPT_NO, Department.DEPARTMENT AS DEPARTMENT1, Department.HEAD_DEPT, Department.MNGR_NO, Department.BUDGET, Department.LOCATION, Department.PHONE_NO FROM DEPARTMENT Department) QRSLT ORDER BY DEPT_NO
    GDS Exception. 335544569. Dynamic SQL Error SQL error code = -104 Token unknown - line 1, char 16 SELECT
    I then downloaded the MySQL 4.0 and install on my system to do the exact procedures. No error! Thing works fine! Oh man...
    For the Firebird case, a strange thing to note is that the data table (I dragged) contains data, but the error message is on top of it.
    Actually, I don't have a particular database preference but I do hope ADF can work equally for these open-source databases. I think the problem may also be contributed by Firebird. Hope that I can figure it out this week.
    Regards,
    Hons

  • OC4J10.1.3 failed to connect 11G db(11.1.0.6.0) with SID

    HI Gurus:
    Haven oc4j-10.1.3-4.noarch.rpm installed, and in the EM JDBC config pages, I am fine to connect with 10G database(XE, EE) with JDBC URL like this:
    jdbc:oracle:thin:@//10.182.x.x:1521/XE
    but when i was trying to connect to 11g db, when i put
    jdbc:oracle:thin:@//10.182.x.x:1521/orcl as the URL, the 'test connect' returns me the error:
    Unable to establish connection. Error message: Exception occurred testing connection. Exception: java.sql.SQLException: Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor The Connection descriptor used by the client was: //10.182.x.x:1521/orcl
    but if i use 'service name' instead of sid, it was good:
    jdbc:oracle:thin:@//10.182.x.x:1521/orcl.xx.xxxxx.com
    but, i want it be sid, anybody could help?
    thanks,

    Unable to establish connection. Error message: Exception occurred testing connection.
    Exception: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12514, TNS:listener does not currently know of service requested in connect descriptor The Connection descriptor used by the client was: //10.182.x.x:1521/orclThis error is coming from the database listener -- it looks to me like you need to alter the network configuration at the database level to support access via a SID instead of a Service Name.

  • Weblogic.security.Encrypt

    Have been a long time user of weblogic security So far it always used 3DES
    Recently with 11gR1 (we are using Weblogic Portal which internally uses weblogic Server Securiy)
    I went into the domain directory
    typed
    java weblogic.security.Encrypt mypass
    Got back a encrypted string which is AES encrypted
    type the same command Again after 1 minute
    Got back a different string which is AES encrypted
    In previous release I never saw this. We are using bundled jrockit on Red hat 5.3 as the OS here
    I was expecting the utility to always return the same encrypted password every time I run it ? Not sure if this is a bug or just the way AES encryption behaves
    Which encrypted password should I use in the jdbc config.xml ?
    Is there a way to use 3DES versus AES (some switch which controls this behavior at server level)
    Thanks
    Yesh

    its an expected behavior that you dont see the same encrypted string as a dynamic vector is used as the hash value.
    Since hash is different all the time, encrypted string is different.
    You can use both AES/DES without a problem.

  • Oracle returns redicrect when there is NAT between client and server

    I have Oracle 8i on Linux sitting behind a firewall/NAT. I have two Apache webservers that run both Tomcat and WebLogic webapps, also behind the NAT. One of them is on the same machine as the Oracle server. Those all connect just fine. I recently had to load a JBoss/Tomcat webapp (no Apache) outside the NAT which needs to talk to the Oracle server. It's using a JDBC driver, I believe calling on this class: oracle.jdbc.driver.OracleDriver. The configured URL is "jdbc:oracle:thin:@localhost:1521:qlink". Using ethereal (A GUI frontend to the packet sniffer tcpdump, which understands the TNS protocol) showed me that this is the connection request being made: "(DESCRIPTION=(CONNECT_DATA=(SID=qlink)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=oracle)))
    (ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))))". I notice it uses SID, where it seems everything else I've analyzed with Ethereal is using SERVICE_NAME. I was first trying to pipe the data through an SSH tunnel. This technique works with all of Oracle's tools that I have tried it with, and with TOAD. I can connect to this Oracle server with the DBA Studio and sqlplus, over an ssh tunnel. But as soon as this JBoss/Tomcat webapp tries, Oracle returns a REDIRECT message. There are two things that strike me as odd: The REDIRECT message returns the hostname of the Oracle server and a nonstandard port; and the JBoss/Tomcat webapp doesn't seem to do anything about it. I has assumed the TNSLSNR forwarded data between 1521 and the appropirate port for requested databse. The port is the same every time, so I made sure that the hostname/port returned was reachable from the client side. But like I said, the client seemed to just ignore it and hang. Getting desparate, I then tried to open up the Oracle ports on the NAT, and use ipchains to restrict what IPs could connect to it, that yielded the same results. I've seen this webapp work with Oracle running on the same machine, both configured identically. (Running Oracle behind the NAT and using SSH tunnels gives the same configuration for JBoss/Tomcat as if I was running Oracle on the same machine)

    I'm pretty uninitiated with Oracle. I don't know how to verify/disprove your guess about the shared server dispatcher, or even what it means. Should I try to pursue the observation that the JDBC client specifies a SID to connect to and everything else specifies a SERVICE_NAME, or is that of little consequence? I'm not sure how to interpret the output from 'lsnrctl serv'. Here's the chunk pertaining to the database in question:
    qlink has 3 service handler(s)
    DISPATCHER established:120 refused:0 current:120 max:254 state:ready
    D000 <machine: sark.unboundtech.com, pid: 15801>
    (ADDRESS=(PROTOCOL=tcp)(HOST=sark.unboundtech.com)(PORT=41714))
    qlink has 3 service handler(s)
    DEDICATED SERVER established:46 refused:0
    LOCAL SERVER
    DISPATCHER established:0 refused:0 current:0 max:254 state:ready
    D001 <machine: sark.unboundtech.com, pid: 15803>
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sark.unboundtech.com)(PORT=41716))(PRESENTATION=oracle.aurora.server.SGiopServer)(SESSION=RAW))
    Presentation: oracle.aurora.server.SGiopServer
    The (ADDRESS=...) is what is returned in the redirect. I created the database with dbassist using the default setup type. I'll have a look at listener.log (the name/location of a log file is actually a question I had but forgot to ask, so thanks), I don't know how to check trace output. The webserver is able to resolve the hostname being returned, and knows how to route to it.
    Localhost is the correct entry. If you've never used SSH tunnels here's a quick rundown. You can tell most SSH clients to listen on an arbitraty port on your machine, and forward data to a remote IP/port from the other side. So from the webserver, I would say to forward localhost:1521 to localhost:1521 on the oracle server. So for sqlplus, for example, I setup tnsnames.ora to route connections to a particular SERVICE_NAME to localhost:1521, which is forwarded through my SSH connection, to localhost:1521 on the Oracle server. This lets gains me two things, all connections look like localhost, making my firewall rules simpler, and I get encryption through SSH (I know Oracle can do encrypted connections, but some clients might not support it, and I don't know how to set it up yet.) I am able to connect to the database over an SSH tunnel using sqlplus, from the webserver (since I ended up installing Oracle on it), so I know the connection is possible.
    After reading that, you might wonder if the hostname:port returned in the redirect were accessible from the web server. They weren't at first, but opening port 1521 and 41714 for sark.unboundtech.com at the NAT, and firewalling requests from IPs other than the webserver, then giving the JDBC config sark.unboundtech.com instead of localhost with an SSH tunnell yielded identical behavior. After recieving the REDIRECT, the JDBC code doesn't seem to do anything except hang, nothing is sent to the location given in the REDIRECT response.

Maybe you are looking for

  • Uh oh...Should I start shopping for a new HDD/Laptop?

    It's bad enough that Firefox, the plug-ins for Firefox, Flash, etc, can't be updated because I don't have an Intel HDD, but now it appears my HDD is failing. I was looking for ways to speed up my G4 (still) and, upon suggestions from Lyssa to another

  • Desktop managager 6.0.1 will not load in Windows 7

    I recently bought a new computer with Windows 7.  I installed desktop mananger and everything worked fine.  I tried going in to sync last night and Desktop manager will not boot up properly.  It is getting hung up somewhere.  I tried reparing it, no

  • Bit rate question

    I have always managed to fit 65 minutes on a DVD disc with no problems but now need to get 75 mins on to a disc. I have never really got my head round bitrate conversion tables - In DVDSP2 I normally use Target bitrate - 6, Max Bitrate - 8 and motion

  • Can't upgrade Aperture 3.2.4 in Maverick - lost serial number

    I have the 3.2.4 version of Aperture which was running perfectly until I installed maverick. Now there is a NO sign on the Aperture icon and if I try and udate the software from the main menu it doesn't work. I don't have the serial number - I probab

  • Bridge thumbnails not updating

    I am using Bridge CS6 and at some point recently my thumbnails (using "filmstrip" mode) stopped updating after I had altered my RAW images.  I've tried to find something in the menus/Preferences that would cause this to happen but have had no success