Derby connection pool

Although I copied the derbyclient.jar in .../oc4j/j2ee/home/applib and restarted the server, when I try to create a pool on this basis, the TEST fails due to:

+ < span class = 'x 1' > year error has occurred. + < span class = 'x 0' >cannot create: org.apache.derby.jdbc.ClientXADataSource
+ Lack of class: dependent on org.apache.derby.jdbc.ClientXADataSource
class: oracle.oc4j.sql.config.DataSourceConfigUtils charger: oc4j:10.1.3
Source code: /opt/appServers/oc4j/j2ee/home/lib/oc4j-internal.jar
Configuration: In the META-INF/boot.xml to
/opt/appServers/OC4J/J2EE/home/oc4j.jar
This charge was introduced to ascontrol.web.ascontrol:0.0.0 using the
Class.forName method.
The missing class is available from the following locations: 1.
Source code: /opt/appServers/oc4j/j2ee/home/applib/derbyclient.jar
(to in opt/appServers/oc4j/j2ee/home/config/server.xml) This
source code is available in the charger overall .libraries: 1.0. This
shared library can be imported by the application "ascontrol". This
source code is available in the Derby charger: 3.1.4. This shared library can
be imported by the application "ascontrol". +

I also tried to create a lib shared for her and still the same problem.
Please notify.
Thank you.
NAT

After a quick crash course Derby, run, create users, schemas, blunders by finding where derby.properties is going, etc. I have now it works using ClientDataSource and ClientXADataSource. It's only against localhost, which means little to your original question, but I am too wonr out/confused/scared to try to get the Derby settles everywhere and running on another server.

So with a little Derby, what I discovered was that when usign the ' * DataSource ' class, you must specify the databaseName as an additional property. It does not appear to fall within the URL. I don't know why. The doc on the use of ClientDataSource is very thin in my humble OPINION. But after reading the error message, it seems to me that the databaseName has not been picked up from the URL, so I tried the approach of the property and the bingo! It worked.

On our side, I then noticed in the console 'EM, that the "Test connection" button in the screen create only "seems to not work when property." I just filled in the fields, hit finish and then tested from the JDBC resources page resulting.

Anyway, the best way for you to create the JDBC resource is probably to change the file data - sources.xml and add them manually.

Here are the examples I used - note that I used a managed pool of datasource/connection both a native data source.

< user native-data-source = "foo" password = 'bar '.
URL = "jdbc:derby://localhost:1527 / wombat;" create = true ".
Data-source-class = "org.apache.derby.jdbc.ClientXADataSource".
JNDI-name = "jdbc/MyDerbyTest" name = "MyDerbyTest" >
< property name = "databaseName" value = "wombat" / >
< property name = value "createDatabase" = "true" / >
< / native-data-source >

And

< connection-pool name = "DerbyCP_Foo" >
<-factory connections
factory-class = "org.apache.derby.jdbc.ClientXADataSource".
user = 'foo '.
password = 'bar '.
URL = "jdbc:derby://localhost:1527 / wombat" >
< property name = "databaseName" value = "wombat" / >
< / factory connections >
< / connection pool >

< managed data source
Connection-pool-name = "DerbyCP_Foo".
JNDI-name = jdbc/derby/Foo"."
name = "DerbyDS_Foo" / >

Then I could run a test through the DS and it worked.

Now, one thing that I've seen, but I have not worked through is that the default policy for the Derby network server only allows connections from localhost. I left as an exercise for the interested :-) reader develop and test. That I've demonstrated here, is that you can configure a ConnectionPool/ManagedDataSource and a NativeDataSource using the org.apache.derby.jdbc.ClientXADataSource class and make it work.

Finally, I have my configured OC4J instance so that the derbyclient.jar is located in the applib directory and EM is configured so that it can see the contents of the directory by distorting its application.xml file - orion.

D:\java\oc4j-10135-dev > jwhich % CD % ClientXADataSource
... looking...
D:\java\oc4j-10135-dev\j2ee\home\applib\derbyclient.jar: org.apache.derby.jdbc.ClientXADataSource
D:\java\oc4j-10135-dev\j2ee\home\applib\derbyclient.jar: org.apache.derby.jdbc.ClientXADataSource40
-steve-

Tags: Oracle

Similar Questions

  • connection pool and inefficient query plan

    There is a single query that covers almost 90% of cpu DB.

    Select * from employee e, Department d where e.departement_id = d.department_id

    Us will gather statistics for this table in two, and the issues is resolved.

    This occurs every 2 weeks. That said, the query runs fine for 2 weeks and then we have questions... we will bring together the statistics of these two tables... and things are good for another 2 weeks.

    This query is a proc to store oracle pl - sql, which is called by the JDBC code. I introduced 2 months behind connection pooling, and today, we are facing this problem.

    The query has been accounting for 5 years with no problems.

    Before that I presented the connection pool, the jdbc code created a new connection before calling the store proc.

    Do you think that my connection to the connection pool has introduced this problem.

    The DBA tell me that the query runs a bad plan. Oracle recovers not the more effective plan (and that leads to this high CPU utilization).

    I guess that after 2 weeks Oracle begins to pick up plans that are effective in.

    Do you think all that this question never has nothing to do with my connection pooling code.

    I use Oracle 10 G.

    Hi Mike and ground beach thanks for your response.

    It was just a doubt... that you guys allowed.

    Thank you

    m

  • connection pool

    HI the OBIEE Experts

    How many pools of connections you used in your project

    To get data from another schema, then what you must activate in the connection pool

    . Can we create multiple pools of connection under the object of a database


    Thanks in advance

    You seriously to come on the forum and posting simply questions of an interview questionnaire or a certification test?

    You have 4 threads right now with 2 different user accounts. I suggest that you stop this behavior. Start posting questions with a specific context and meaning. We only are here to get a job, that you should better start for your own good if you do not know the answers and even less here to help you cheat your way to certification.

  • OBIEE 11 g RPD migration - how to automate the Connection Pool passwords changes in environments

    Hello gurus

    We have a situation in our client, where I am responsible for automating RPD Migrations in environments. In our current scenarios, (SID database) data source names and user names (schema name) are same in environments. The current process deploy us the RPD by EM then SPR online by using the administration tool and manually open update passwords in each connection pool (we have 9 pools of connections). There has been a lot of problems with this approach you can imagine (especial when do things the manual way).

    Can you please provide a better approach to automate this process in order to avoid human error.

    Thank you very much.

    Take a look at BIServerT2PProvisioner.jar http://docs.oracle.com/cd/E29542_01/bi.1111/e10540/conn_pool.htm#BHBBDDFF

  • NLS parameters in a connection pool environment

    I have limited experience of localization/globalization and I am building an application, using Oracle APEX 4.2/Oracle 11 g db, which takes care of several users of different nationalities.  I have a specific question, but first... can anyone recommend good books, blogs and websites to learn more about best practices for the many things you need to think in this area?

    Second, my precise question is... Since my application will use a connection pool, how it works as far as setting the NLS parameters for a given client session?  In the typical client/server architecture that I know that you would simply change the NLS parameter when the user connects, and this change would govern just the session of this user database.  It's a different approach when we are in an environment of connection pool?  If this is not the case, how Oracle now manages the parameters of the client session this session of customer may engage in more than one session of db in its lifetime?

    You can set the runtime: http://docs.oracle.com/cd/E16655_01/appdev.121/e17961/global_primary_lang.htm#HTMDB14002

    Thank you

    Sergiusz

  • Missing for DBAdapter cluster Weblogic Congfiguration outbound connection Pool entry

    Hello

    When I created an entry for outbound connection pool in DBAdapter weblogic console in a clustered (1-Admin server and servers managed by 2) environment and updated adapter DB, I have identified only input connection is updated in that plan a managed server and other server managed, it is not updated. For this reason, we are unable to access the data sources for some requests for the application.

    As a work-around if we plan. XML file to another server managed manually with update and DB adapter connection entry, we are able to find the entrance of connection for managed servers.

    Outside work around there at - it another solution to this problem so that I can add a connection adapter DB Console entry that will update the two plan files.

    Thank you and best regards,

    Vincent

    Can I propose to maintain the file plan of shared drive accessible from all nodes in the server, this will reduce the manual work.

    Concerning

    Albin I

    http://www.albinsblog.com/

  • vRO (vCO) HTTP-REST Workflow - connection pool closing

    Hi all - I've recently upgraded to vRealize Automation 6.2 and works collaboratively with vRealize Orchestrator to create workflows.  I created HTTP and REST workflows for request/release an IP address from our system IPAM (VitalQIP) and it seems to be failing with the description / the following exception:

    Connection pool stop (workflow: demand-IP-du-QIP / Scripting (item3) #14)

    vRO-1.pngvRO-2.png

    Looking for the schema > script line #14 is in red below:

    prepare the application

    Do not edit

    var inParamtersValues = [subnet, hostname, ddns, mac, type, w2kdom, comment];

    var request = restOperation.createRequest (inParamtersValues, null);

    Set the type of content query

    request.contentType = "";

    System.log ("request:" + request);

    System.log ("the request URL:" + request.fullUrl);

    Customize the request here

    request.setHeader ("HeaderName", "headerValue");

    run the query

    Do not edit

    var response = request.execute ();

    prepare the output parameters

    System.log ("response:" + response);

    statusCode = response.statusCode;

    statusCodeAttribute = statusCode;

    System.log ("status code:"+ statusCode ');

    contentLength = response.contentLength;

    headers = response.getAllHeaders ();

    contentAsString = response.contentAsString;

    System.log ("content in the string:" + contentAsString);

    Grep for IPaddress

    Patt var = ('forward IP");

    IPAddress = contentAsString.match (patt) m:System.NET.SocketAddress.ToString () var;

    IPAddress = ipaddress.split (/ [\s,] + /);

    IPAddress = ipaddress [2];

    System.log ("IP address: =" + ipaddress);

    vRO-3.png

    I'm not sure how to work around this problem and I'm looking for assistance because I'm fairly new to vRO.  Thank you very much!




    There is now an official fix for this problem: Technical preview of REST plugin version

    Please provide your comments.

  • API - POST - REST VCO connection pool closing

    Hello

    I'm working on an automation scenario where I need a VCO A workflow to start another workflow VCO B using the VCO REST Plugin (1.0.2) on VCO 5.1.1.

    I did it with success while creating a multitude of REST and surgery REMAINS by using the appropriate workflow. However, my approach is a lot of static and I need to create REST operations on the fly. I have had a look at workflows Plugin and try to do the same thing in my workflow.

    However I am stuck with the error 'Connection Pool close' when you try to run the POST request.

    My approach is to store the host REMAINS as a static attribute with VCO configuration object and retrieve it from there. I can run GET operations without any problem with the owner, i.e.


    restRequest = restHost.createRequest (restType, restUrl, restContent);

    restResponse = restRequest.execute ();

    My problem is actually running a POST operation. I prepared the content in XML format, which is

    " <-xmlns = execution context" http://www.VMware.com/VCO "> "
    < Parameters >

    < name parameter = "param1" type = "string" >

    < string > 1 < / string >

    < / parameter >

    < name parameter = "param2" type = "string" >

    < string > value2 < / string >

    < / parameter >

    < / Parameter >

    < / execution context >

    and use the content type "application/xml". Earlier in my code, I run a query GET to retrieve my ID for workflow target to create a Url like this:

    flow of work/98c3b8ee-9569-4940-acc1-b8fbc2e64649 / executions.

    This is code that I use to make the POST while creating an operation of REST when needed and delete it later.


    var restOperation = new RESTOperation (System.nextUUID ());

    restOperation.method = restType;

    restOperation.urlTemplate = restUrl;

    restOperation.defaultContentType = restContentType;

    restHost.addOperation (restOperation);

    RESTHostManager.updateHost (restHost);

    inputParameters var = [];

    var restRequest = restOperation.createRequest (inputParameters, restContent);

    restRequest.contentType = restContentType;

    var restResponse = restRequest.execute ();

    restHost.removeOperation (restOperation.id);

    RESTHostManager.updateHost (restHost);

    My code does not work when calling for the lifting of restRequest.execute: ' InternalError: connection pool arrested "." If anyone else has tried a similar scenario or has any idea what I may be missing?

    Thank you

    Bernd

    Thanks chap - update the objects did the trick.

    In my case, that initially caused the problem travel of COULD happen. Of course store the restHost object in the configuration of VCO leads to an out-of-date version at run time. I'm now store the ID of restHost only. Then, copy the following code works:

    var restHostId is System.getModule("my.library").myGetConfigAttr ("Folder", "VCO", "restHostId");.

    var restHost = RESTHostManager.getHost (restHostId);

    If (restType == 'GET') {}
    try {}
    restRequest = restHost.createRequest (restType, restUrl, restContent);
    restResponse = restRequest.execute ();
    }
    catch (exp) {throw ("request REST to run: cannot run '" + restType + "' '" + restUrl + "' request-reason = '" + exp + "'") ;}}
    }
    else {}
    try {}
    var restOperation = new RESTOperation (System.nextUUID ());
    restOperation.method = restType;
    restOperation.urlTemplate = restUrl;
    restOperation.defaultContentType = restContentType;
     
    restHost.addOperation (restOperation);
    RESTHostManager.updateHost (restHost);
     
    restHost = RESTHostManager.getHost (restHost.id);
    restOperation = restHost.getOperation (restOperation.id);

    inputParameters var = [];
    var restRequest = restOperation.createRequest (inputParameters, restContent);
    restRequest.contentType = restContentType;

    var restResponse = restRequest.execute ();

    restHost.removeOperation (restOperation.id);
    RESTHostManager.updateHost (restHost);
    }
    catch (exp) {throw ("request REST to run: cannot run '" + restType + "' '" + restUrl + "' request-reason = '" + exp + "'") ;}}
    }

  • SQL Plugin - connection pool &amp; retries

    People-

    We use vCO workflows which a lot of CRUD operations on the database. In light of these are long-running workflows with a decent amount of load, we want to make sure that this solution we have in place is efficient and reliable. To this end:

    1. we want to ensure that we are able to reuse the database connections - y at - it the notion of Pools of connections or equivalent.

    2 How about reconnecting to the db when it falls down? Is that something it will take the code in the workflow through say managers of exceptions etc..

    I'm sure that others have encountered similar problems - would appreciate all comments that you may have.

    See you soon.

    Hello

    Unfortunately does not support the plugin SQL connection pooling. We have never considered it. We will discuss it and may include in the next version of the plugin update.

    Regarding your second question - we don't keep connection open for a long time and call evry DB is atomic. When you run workflows CRUD a new conncetion is created, the corresponding SQL query is executed / clerk and the connection is closed. If there is a problem, as the disconnection of the server Oracle, the right way to ensure that your operation has passed is to write a custom error handling by using the Scripting of the Orchestrator features. In pseudo-code:

    var hasPassed = false;
    for (i = 0; i< maxretries="" -1="" &&="" !haspassed="" ;="" i++)="">

    hasPassed = false;

    try {}

    Execute the statement using the JDBC API exposed or by using CRUD actions

    hasPassed = true;

    } catch (error) {}

    Save the problem

    }

    }

    Hope this helps you. Any additional comments will be great.

    Best regards

    Boyan

  • Connection pool is already checked or temporarily locked

    After the reboot of the servers BI showing this error

    And deployments BI Publisher Application is not comeing up, showing bellow error.

    [nQSError: 36004] Object real-time OLTP connection pool is already checked or temporarily locked.

    Pls me how reslove

    Thank you

    Make sure you close the tool of administration or the RPD (when changes in the RPD online) before starting the services

  • Pool table of event in the connection pool of 11g OIC for obiee 11g

    Hi all, I tried to use the event pool table using the OIC 11 g connection pool. A deleted event, but cache pool table records did not get purged after 60 minutes interval. Should we do addition together upwards to event pool table when you use oci 11g other that makes it active? It seems that it works only with odbc to connect. http://gerardnico.com/wiki/dat/obiee/event_table thanks, Sushil

    Import the table with ODBC and change the interface call OCI connection pool.

  • Link existing cloning of connection pool to your fresh parent image

    I use VM View 4.6 and my VM's every Windows 7 dedicated with persistent records.

    I need assistance with clone of connection pools.

    I tried to patch and re - compose one of my stocks, unfortunately the master image had not been lit for a long time and when I turned on it has been rejected by AD. This turns out to be due to the length of the virtual machine has been powered down (expired password) coupled with a demotion of the domain controller that the image of the master had contacted last. All VM related work normally. Under normal circumstances, join a physical PC to the domain would solve the problem, so no other choice I decided to go ahead and disconnect the main image of AD and he returned then. I have patched then the VM image parent took a fresh snapshot and then tried to recompose the pool. Unfortunately, the re-composer fails, other groups may be re-compounds.

    Could someone please help with?

    • Join the main image to AD would have this adverse effect?
    • Can I create a new image of master and reconstruct the existing VM from this pool, to link to the new image?
    • What other options, if any do I need to rescue about 100 of these bound VM?

    I've seen something like this before.   The end result is that there are two accounts of vCenter in the View Composer database and pools that do not work are somehow related to the older account.    I can give you a high-level overview of how it was fixed, or if you have VMware support I can give you the SR number so that you can open a ticket and references.

  • the connection of WebLogic connection pool timeout issue too soon

    We are having a problem with the connection to weblogic pool. Our web application is based on the Spring Framework, deploy to Weblogic using the data source to connect to Oracle. We use a duration of 1 min and max setting of connection pool 15 on weblogic. But the problem that we face is that the pool does not manage any connection as a pool. Each request makes a new connection to the Oracle server and right closed within a few seconds of connection. The number of new connections could be easily up to more than 100 within 10 minutes.

    Is there a timeout parameter to check the living connection? Could someone please share your thoughts how to solve the problem? Your help is really appreciated.

    Framework Spring (2.5.3), Weblogic (10.3), Oracle (11 g 2)

    This is the setting on our data source:

    -----------------------
    Driver class: oracle.jdbc.OracleDriver

    Initial capacity: 30
    Maximum capacity: 30
    Ability to increment: 1
    Type of instruction Cache: LRU
    Statement Cache Size: 10

    Test the connections on the reserve: checked
    Test frequency: 120
    Name of the test Table: SQL SELECT 1 FROM DUAL
    Seconds to trust an idle connection pool: 10
    Reduce the frequency: 900
    The login retry frequency: 0
    Connect time: 0
    Timeout:0 connection inactive
    Maximum pending connection: 2147483647
    Timeout:10 store login
    Reporting deadline:-1
    Ignore the connections in use: checked
    Pins-wire: unchecked
    Remove Infected connections Enabled: checked
    ---------------------
    Of the tracking tool, we have seen the following statistics:

    Average number of active connections: 0
    Current number of active connections: 0
    High number of active connections: 1
    Total number of connections: 1523
    Current capacity: 1
    Doesn't have a number of requests for reserve: 46
    More high Num available: 30
    Number of connections leak: 0
    Wait for the high number of seconds: 0
    Number of requests for reserve: 1531

    Other parameters are all 0.

    --------------------------
    For the adjustment of the spring:

    < bean id = "ourdatasource" class = "org.springframework.jndi.JndiObjectFactoryBean" >
    < property name = "jndiName" > < value > weblogic.datasource < / value > < / property >

    <!-adds the following to the question if debugging caused by cluster or not->
    < property name = "cache" value = "false" / >
    < property name = "lookupOnStartup" value = "false" / >
    < property name = "proxyInterface" value="javax.sql.DataSource"/ >
    < / bean >

    Try to uncheck ' delete infected enabled connections "and let me know...

  • How to activate the connection pool dynamically during loading happens

    Hello

    I have two databases that contains the same data. IE Prod_db, Prod_db1,

    I want to move the connection pool dynamically during loading times

    Ex: During load happens I want to hit prod_db1, after full charge I want to hit prod_db. How to get there.

    Use the W_ETL_RUN_S of the situation of the table column to validate the loadtime

    PS mark correct or useful

  • Impossible to select the connection pool when creating block init for current_month

    Hi all

    I use OBIEE 11.1.1.6.0 Version,

    I'm tempted to create a session variable (current month), but I found I could not choose the option of pool connection, is disabled, do not know why

    Anyone encounter this issued before?

    Your response will be much appreciated!

    Thanks in advance

    Kind regards
    Anne

    Hello

    try to make
    In the administration tool go to tools-> Options-> general tab and check "allow first connection Pool for blocks. Init option."
    After the checkbox activated, then save it and then try again.

    Thank you
    Deva

Maybe you are looking for