Do i need to set Resource Ref's in teh deploy tool for a CMP bean?

Hi,
I have a CMP bean which i have deployed, it doesnt work, in the server log shows the following.
[#|2005-03-10T14:13:21.046+1030|WARNING|sun-appserver-pe8.1|javax.enterprise.system.container.ejb.entity.finder|_ThreadID=16;|JDO74004: Bean 'PersonEntityBean' method ejbFindByPrimaryKey:
com.sun.jdo.api.persistence.support.JDODataStoreException: JDO76400: Got a JDBC SQLException while executing the SQL statement:
SQL statement<select t0.person_id, t0.name from person t0 where t0.person_id = ?> with input values:java.lang.Integer:1.
Please examine the SQLException for more information.
NestedException: java.sql.SQLException: No database selected
THe database has been set up in the connection pools, i thought this was enough, as there is no coded names in the implementation code, am i wrong?
how do i get my CMP bean to communicate with the database?
do i need to set up any references?
thank you for your time
Gavin.

You set the JNDI name of the JDBC resource in deploytool. To do this, select your EJB JAR, select the General pane, and click Sun-specific Settings. Enter the JNDI name of your JDBC resource, and then set up the mappings & relationships. The J2EE 1.4 Tutorial's Container Managed Persistence Examples chapter has several examples that show how to do this.
-Ian Evans

Similar Messages

  • What's resource-ref for?

    I'm a JNDI newbie, so I hope this isn't too dumb. :-)
    I have a web app that I'm running in Tomcat 4.1.10 against a MySQL database. The app gets the DB using JNDI as described in the JNDI howto that comes with Tomcat. Everything works fine. Question is this: when I remove the <resource-ref> element from web.xml and restart the server, it still runs fine--yet every set of instructions I've seen on using JNDI from Tomcat says that I need to have <resource-ref> in web.xml. What's it for?
    Thanks,
    Willie

    Here's my take:
    The JNDI binding are done when the Tomcat parses server.xml.
    The resource-ref is used to declare to the container how the application is going to use the named resource. The container will 'default' to a standard use; say 'Container' authentication and 'Shareable' which it will use if there are no overides provided in web.xml.
    Each application can overide this 'default' behavior by specifying the appropriate settings for <res-auth> and <res-sharing-scope>.
    Just an educated guess.
    Dave

  • Message Driven Bean - Resource Ref

    hi
    Can anyone guide me with the steps in creating the resource ref in the Message Driven bean. When i run i get the following
    C:\Sun\Projects\simple>appclient -client MSBApplicationClient.jar
    JNDI lookup failed: javax.naming.NameNotFoundException: No object bound to name java:comp/env/jms/MyQcf
    My set up is like this
    Connection Factory jms/MyQcf
    Destination Resource jms/MyQueue
    Physical Destination PhysicalQueue
    I am using the deploy tool for sun java system application server platform edition 8.
    I have created a application and within which the MessageDrivenBean is an "Enterprise Bean" and the client is "Application Client"
    and the contents of MSBApplicationClient.Jar is therefore
    C:\Sun\Projects\simple>c:\sun\appserver\jdk\bin\jar -tf MSBApplicationClient.jar
    META-INF/sun-j2ee-ri.project
    SimpleMessageClient.class
    app-client-ic.jar
    samples/ejb/mdb/simple/ejb/SimpleMessageBean.class
    ejb-jar-ic.jar
    .com.sun.deployment.backend.lock
    META-INF/application.xml
    META-INF/sun-application.xml
    Please someone help

    http://docs.sun.com/source/819-0079/dgacc.html

  • Issue Setting Resource Attributes via Workflow Process

    I'm currently trying to set resource attributes via a workflow process, but for whatever reason the attribute is not detected as "changed" and the update object has nothing about the attribute. I'm wondering if I'm just doing something wrong with the way I'm setting it, or if I'm missing a piece to apply the upate.
    What I'm doing is...
    1. Checking out the user view
    2. updating the attribute via code something like this...
    <set name='user.accounts[ldap].attributeIWantToChange'>
    Logic in here
    </set>
    3. then I'm checking the view back in.
    Anyone know why this isn't working(I can set other attributes like waveset.roles fine this way)?
    Edited by: UNO-AD-HM on Jul 6, 2009 12:54 PM

    Figured it out, have to load a different form in when I check the view out, the tabbed user's form will not update resource attributes.

  • Resource Ref's settings of a CMP bean in SAS PE 8.2 - Deploytool

    Dear all,
    In the deploytool of SAS8.2, in the [Resource Ref's] tab of a CMP bean do I need to set anything here to enable the CMP bean to connect to the database?
    I already have a JDBC source registered in the server and it is called jdbc/mydatasource.
    Thanks in advance.

    Problem solved. For CMP beans, I just need to set the JNDI name of the CMP resource and this name corresponds to the JNDI name of the the JDBC resource registered in the SAS.
    But for BMP beans, I will have to add an entry in the [Resource Ref's] tab. The [Coded name] corresponds to the JNDI name used in the code to look up this JDBC resource.
    Thanks all.

  • Some doubts in using resource-ref,connection pool n Data-source

    Hi all ,
    I need little bit clarification in the following points.
    1) Does the connection pool which is created can be displayed in JNDI Tree???
    I am seeing only DataSOurce in the JNDI Tree Only.
    2)In case of Bean Managed Persistance, in ejb-jar.xml,
    I had given the following info.
    <resource-ref>
             <res-ref-name>ramukkDataSource</res-ref-name>
             <res-type>javax.sql.DataSource</res-type>
             <res-auth>Container</res-auth>
         </resource-ref>Does the <res-ref-name> refers to Datasource Name??
    In weblogic-ejb-jar.xml
    <reference-descriptor>
           <resource-description>
              <res-ref-name>ramukkDataSource</res-ref-name>
              <jndi-name>ramukkpool</jndi-name>
           </resource-description>
         </reference-descriptor>Here <jndi-name> refers to connection pool as per weblogic bible book.
    If so when i deployed my ejb into the server iam getting Datasource cant be found.
    If i had given like the following,
    In ejb-jar.xml
    <resource-ref>
              <res-ref-name>jdbc/ramuJndi</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
         </resource-ref> In weblogic-ejb-jar.xml
         <reference-descriptor>
              <resource-description>
               <res-ref-name>jdbc/ramuJndi</res-ref-name>
               <jndi-name>jdbc/ramuJndi</jndi-name>
           </resource-description>
        </reference-descriptor>Then only my ejb code is successfully deploying doing some work which is as per xpectation.
    Can any body tell why I have to give the same name for <res-ref-name> n <jndi-name>??
    I am working on this problem from last one week. Still not found the solution.
    Connection Pool Creation
    GENERAL::
    Name : ramukkpool
    url : jdbc:mysql://localhost:3306/test
    Driver Classname: com.mysql.jdbc.Driver
    Properties :
    user = root
    Password = XXX
    create
    TARGETS::
    i had shifted myServer from left side to right side n clicked >>Apply
    (Techncially can we say this as deploying the connection pool into server ???????????
    If not how to deploy the connection pool into server??)
    I did not get any errors in the console.
    Now i am creating a datasource
    CONFIGURATION:
    Name : ramukkDataSource
    JNDIName: jdbc/ramuJndi(Does we have to follow this convention only?? i.e JNDIName should start with jdbc/ only)
    PoolName: ramukkpool
    create
    TARGETS::
    I had shifed myServer from left to right n >>Apply.
    Now also i did not get any errors in the console.Thanx(in advance),
    ramu

    I have read the documentation.
    I changed my class to oracle.jdbc.pool.OracleConnectionCacheImpl from
    oracle.jdbc.pool.OracleConnectionPoolDataSource
    I observed in the EM that the Open JDBC Connections and Total JDBC Connections are the same. When I used oracle.jdbc.pool.OracleConnectionPoolDataSource my Total JDBC Connections was increasing and Open JDBC Connections remains 0.
    My question still remains unanswered, could some kindly help.
    Q? I have defined a data source in JDeveloper using
    oracle.jdbc.pool.OracleConnectionCacheImpl
    In my java bean I am using the code pasted below to make a connection to database.
    Can some one tell whether I am using the correct method of connection pooling mechanism or do I need to make some changes? This application uses JSP and used by lots of people which hits database very frequently.
    Any help is highly appreciable.
    Thanks in advance.
    *******Code to make connection*********
    private javax.naming.InitialContext context = null;
    private javax.sql.DataSource jdbcURL = null;
    private static final String url = "jdbc/ProdCoreDS";
    public boolean openConnection()
    try
        DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    context = new javax.naming.InitialContext();
    jdbcURL = (javax.sql.DataSource)context.lookup(url);
    con =  jdbcURL.getConnection();
    return true;
      catch(Exception e)
           System.out.println("Error in the Connection  "+e);
        e.printStackTrace();
                 return false;
         }}

  • How to map a resource-ref in Jdev11 deployment plan editor

    Hi all,
    I have a ADF/BC web application where the BC4J application module does connect to a JNDI data source.
    The ViewController project does declare the Datasource as needed resource in its web.xml:
    <resource-ref>
    <res-ref-name>jdbc/wlogDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    Now i need to map that resouurce-ref to an actual data source that exist in the application container at deploy time.
    As already in JDev 10.1.3 the deployment-plan editor provided during deployment from JDeveloper does not provide any means to enter the deployment mapping for that resourc-ref (When clicking on the node (which is named resouce-ref - that becomes very confusing in case you have defined three resource-refs in your web.xml) the right pane shows a gray pane without any edit controls) So I cannot enter the resource-ref-mapping unsing the Jdev UI.
    My workaround in 10.1.3 was to save the deployment plan to disk and manually edit it, adding
    <resource-ref-mapping name="jdbc/wlogDS" location="jdbc/wlogTestEnvDS">
    </resource-ref-mapping>
    to the orion-web-app document for that webapp
    But in Jdev 11 the deployment plan file format changed (including some binary inline checksums???)and when doing exactly the same thing, the loading of the manually edited file into Jdev Deployment plan editor fails with
    oracle.oc4j.admin.deploy.spi.exceptions.ExtendedConfigurationException: invalid entry size (expected 1886413103 but got 846 bytes)
         at oracle.oc4j.admin.deploy.spi.DeplConfiguration.restore(DeplConfiguration.java:1002)
         at oracle.oc4j.admin.deploy.spi.DeplConfiguration.restore(DeplConfiguration.java:738)
         at oracle.jdevimpl.deploy.jsr88.ConfigModel.loadConfig(ConfigModel.java:201)
         at oracle.jdevimpl.deploy.jsr88.Jsr88ConfigurationPanel.actionPerformed(Jsr88ConfigurationPanel.java:212)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
         at java.awt.Dialog$1.run(Dialog.java:515)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Caused by: oracle.oc4j.admin.jmx.shared.exceptions.JMXRuntimeException: invalid entry size (expected 1886413103 but got 846 bytes)
         at oracle.oc4j.admin.jmx.shared.util.JarTool.readJar(JarTool.java:240)
         at oracle.oc4j.admin.deploy.spi.DeplConfiguration.parseDeploymentPlan(DeplConfiguration.java:1464)
         at oracle.oc4j.admin.deploy.spi.DeplConfiguration.restore(DeplConfiguration.java:761)
         ... 33 more
    Caused by: java.util.zip.ZipException: invalid entry size (expected 1886413103 but got 846 bytes)
         at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:368)
         at java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
         at java.util.jar.JarInputStream.read(JarInputStream.java:171)
         at java.io.FilterInputStream.read(FilterInputStream.java:90)
         at oracle.oc4j.admin.jmx.shared.util.JarTool.copy(JarTool.java:1343)
         at oracle.oc4j.admin.jmx.shared.util.JarTool.readEntry(JarTool.java:255)
         at oracle.oc4j.admin.jmx.shared.util.JarTool.readJar(JarTool.java:232)
         ... 35 more
    oracle.oc4j.admin.jmx.shared.exceptions.JMXRuntimeException: invalid entry size (expected 1886413103 but got 846 bytes)
         at oracle.oc4j.admin.jmx.shared.util.JarTool.readJar(JarTool.java:240)
         at oracle.oc4j.admin.deploy.spi.DeplConfiguration.parseDeploymentPlan(DeplConfiguration.java:1464)
         at oracle.oc4j.admin.deploy.spi.DeplConfiguration.restore(DeplConfiguration.java:761)
         at oracle.oc4j.admin.deploy.spi.DeplConfiguration.restore(DeplConfiguration.java:738)
         at oracle.jdevimpl.deploy.jsr88.ConfigModel.loadConfig(ConfigModel.java:201)
         at oracle.jdevimpl.deploy.jsr88.Jsr88ConfigurationPanel.actionPerformed(Jsr88ConfigurationPanel.java:212)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
         at java.awt.Dialog$1.run(Dialog.java:515)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Caused by: java.util.zip.ZipException: invalid entry size (expected 1886413103 but got 846 bytes)
         at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:368)
         at java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
         at java.util.jar.JarInputStream.read(JarInputStream.java:171)
         at java.io.FilterInputStream.read(FilterInputStream.java:90)
         at oracle.oc4j.admin.jmx.shared.util.JarTool.copy(JarTool.java:1343)
         at oracle.oc4j.admin.jmx.shared.util.JarTool.readEntry(JarTool.java:255)
         at oracle.oc4j.admin.jmx.shared.util.JarTool.readJar(JarTool.java:232)
         ... 35 more
    ---- Embedded exception
    java.util.zip.ZipException: invalid entry size (expected 1886413103 but got 846 bytes)
         at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:368)
         at java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
         at java.util.jar.JarInputStream.read(JarInputStream.java:171)
         at java.io.FilterInputStream.read(FilterInputStream.java:90)
         at oracle.oc4j.admin.jmx.shared.util.JarTool.copy(JarTool.java:1343)
         at oracle.oc4j.admin.jmx.shared.util.JarTool.readEntry(JarTool.java:255)
         at oracle.oc4j.admin.jmx.shared.util.JarTool.readJar(JarTool.java:232)
         at oracle.oc4j.admin.deploy.spi.DeplConfiguration.parseDeploymentPlan(DeplConfiguration.java:1464)
         at oracle.oc4j.admin.deploy.spi.DeplConfiguration.restore(DeplConfiguration.java:761)
         at oracle.oc4j.admin.deploy.spi.DeplConfiguration.restore(DeplConfiguration.java:738)
         at oracle.jdevimpl.deploy.jsr88.ConfigModel.loadConfig(ConfigModel.java:201)
         at oracle.jdevimpl.deploy.jsr88.Jsr88ConfigurationPanel.actionPerformed(Jsr88ConfigurationPanel.java:212)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
         at java.awt.Dialog$1.run(Dialog.java:515)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    So no chance here to add a resource-ref-mapping. The alternative way of specifying a resource-ref-mapping using the web-based deployment proces of the Enterprise manager is impossible because the 11g preview OC4j does not include an enterprise manger web-application.
    So how do I deploy the application correctly other that manually modifying the deployed orion-web-app.xml file in j2ee/home/application-deployments/earName/warName/orion-web-app.xml after deploying the app without a resource-ref-mapping? Because doing that step manually each time is quite annoying.
    Greetings,
    Thomas

    Seems i'm slowly answering my own questions :-) I finally got my RMI service, even using several methods. But ...
    It doesnt help me as the lookups are not done on the context classloader it seems. That means i need to add all my service jars to the global class path causing massive sealing issues with the war contained jars. Pretty useless. All the needed stubs etc are in the war.
    But as it seems that the web app needs to contain deployment site info (sun-web.xml) anyway, i could just as easy read my own web xml from the context and resolve the services myself. But i do wonder how this is supposed to work with EJB and CORBA stuff. The samples actually also needed to add stuff to the global class path.
    I'm probably not the easiest customer as i write this kind of middle ware for a living but i really like sjsws. It makes my own one partly obsolete as it is almost as fast and has all the fancy deployment stuff (in my case i use an in-house mobile agent frame work and agents that travel the various networks ) and infinitely easier to learn to work with and understand In case anyone is wondering i wrote Uhura because 1. i needed speed so it is a servlet based webserver and not a web server with a servlet module. 2. could not wait on ibm to fix bugs in webspere and we only used the servlet bit. 2. i needed full J2EE security and 3. i needed it to run on many OS'es
    That is why i still need the same war files to be able to be deployed in both systems as i still need my systems going on IBM iservers etc.
    Again i would welcome some feed back on such and related issues
    Cheers,
    Peter

  • Is there any database parameters we need to set when using DBMS_PARALLE_EXECUTE?

    Hi,
    I am using dbms_parallel_execute package to do some process, I call a procedure to do the some tasks and insert data using the chunks by sql. Here is my code, I am calling p_process procedure, I am using 11g 11.2.0.3.0 - 64 bit  on windows server.
    DBMS_PARALLEL_EXECUTE.CREATE_TASK ('process a');
      DBMS_PARALLEL_EXECUTE.CREATE_CHUNKS_BY_SQL (
          task_name => 'process a',
         sql_stmt => 'SELECT startid, endid FROM chng_chunks',
         by_rowid => FALSE);
            dbms_parallel_execute.run_task
            ( task_name      => 'process a',
              sql_stmt       => 'begin P_process( :start_id, :end_id ); end;',
              language_flag  => DBMS_SQL.NATIVE,
             parallel_level => 24 );
    This code runs very fast on a one database and I can see it uses lots of cpus but it runs very slow on a copy of the same database on another server which has more cpus and memory. I compare v$parameter vlues and those are pretty much  identical between databases. I checked the disk spaces and both servers has plenty of free space on disks.
    Now my question is, is there any other parameters that we need to set/check when using dbms_parallel_execute package.
    Thanks in advance.
    gg

    I don't get this. Ever. Why developers insist on comparing server1 with server2, simply because their code is running on both.
    It is like comparing the athletic ability of two persons, arguing that h/w wise they are the same (i.e. human), and both have green eyes (your same software). And as because these are all the same, both persons should be able to run the 100m in the same time.
    Yes, the analogy is silly.. as is the warped concept amongst many developers that server1 and server2 should exhibit the same performance when running the same code.
    It. Does. Not. Work. Like. That.
    Want to know why server2 is exhibiting the performance it does when running your code?
    Do that by ignoring server1 as it is NOT RELEVANT.
    Do that by examining the workloads and resource usage of server2, and the run and wait states of your code on server2.

  • Looking up Managed ConnectionFactory by JNDI Resource-Ref

    Thank you in advance for your help...
    I'm writing an Enterprise Java Bean using WebLogic Workshop that needs
    to access a connection factory defined in a deployed Resource Adapter.
    I'm trying to access the server managed connection factory through the
    use of a resource-reference defined in the EJB file.
    The resource ref is defined in the EJB header:
    * @ejbgen:resource-ref
    * sharing-scope="Shareable"
    * auth = Container
    * jndi-name = Target_7
    * name = db/cf/Target
    * type = javax.resource.cci.ConnectionFactory
    * @ejbgen:session type="Stateless" default-transaction="NotSupported"
    * ejb-name = "UberPhoneBook"
    * @ejbgen:jndi-name
    * remote = "ejb.UberPhoneBookRemoteHome"
    * @ejbgen:file-generation remote-class = "true" remote-class-name =
    "UberPhoneBookRemote" remote-home = "true" remote-home-name =
    "UberPhoneBookHome" local-class = "false" local-class-name =
    "UberPhoneBookLocal" local-home = "false" local-home-name =
    "UberPhoneBookLocalHome"
    And the lookup is done in the EJB code:
    private void initialize() {
    if( this.initialized ) return;
    try {
    // Lookup the ConnectionFactory we should be using
    InitialContext initCntx = new InitialContext();
    ConnectionFactory cf = (ConnectionFactory) initCntx.lookup(
    "db/cf/Target" );
    this.conn = (Connection) cf.getConnection();
    this.initialized = true;
    } catch( Exception e ) {
    throw new EJBException(e);
    But I'm running into problems. My lookup results in a Name Not Found
    Exception, and I can't find my resource reference in the JNDI namespace.
    I'm using the bean in a JSP page, and it is declared in the usebean tag.
    Any ideas what my problem could be coming from?
    Thanks,
    Chris M.

              Hi!
              Did you deploy your rar file? Which jndi name has the connector?
              If you use a reference try "java:comp/env/" as prefix. Would be helpful if you
              cut the passage about the reference from your ejb-jar.xml and weblogic-ejb-jar.xml
              file and post it.
              CU
              Chris
              

  • Why do we need to set site owner of a site collection?

    Hi All,
     why
    do we need to set site owner of a site collection?
    Thanks,
    Mohakk

    Hi Mohakk,
    Thanks for posting your issue, Kindly find the required details below
    The System Owner is responsible for the availability, and support and maintenance of a system and for the security of data residing on that system. The system owner is responsible for the availability, and support and maintenance, of a system and for the
    security of the data residing on that system. The system owner is responsible for ensuring that the computerized system is supported and maintained in accordance with applicable SOPs. The system owner also may be the process owner.
    The System Owner acts on behalf of the users. A System Owner may:
    Approval of key documentation as defined by plans and SOPs
    Ensuring that Standard Operating Procedures (SOPs) required for maintenance of the system exist and are followed
    Ensuring adequate training for maintenance and support staff
    Ensuring changes are managed
    Ensuring the availability of information for the system inventory and configuration management
    Providing adequate resources (personnel including SMEs, and financial resources) to support the system
    Reviewing audit reports, responding to findings, and taking appropriate actions to ensure compliance
    Coordinating input from other groups (e.g., finance, information security, safety, legal)
    Also, you can attend online learning course on below mentioned URL
    https://www.microsoft.com/learning/en-us/course.aspx?id=55035a
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Need to set height to 100%

    I need to set a web page to be 100 width and 100% height.
    I've got the width ok, as it's easy, but the height just won't
    work.
    I've set a css style to 100% height, but in safari and
    firefox, it's only 20% or so of the open window. I have a 3x3 table
    with set heights on the top 2 and bottom 2 and I need the middle
    left (which has a background colour) to fill the depth of the page
    with the bottom 2 columns right at the bottom - I just can't see
    hotw to do this.
    CS3, mac osx 10.4.9
    thanks

    http://www.apptools.com/examples/tableheight.php
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "livingwithanangel" <[email protected]>
    wrote in message
    news:f0bejo$lkm$[email protected]..
    >I need to set a web page to be 100 width and 100% height.
    I've got the
    >width
    > ok, as it's easy, but the height just won't work.
    > I've set a css style to 100% height, but in safari and
    firefox, it's only
    > 20%
    > or so of the open window. I have a 3x3 table with set
    heights on the top 2
    > and
    > bottom 2 and I need the middle left (which has a
    background colour) to
    > fill the
    > depth of the page with the bottom 2 columns right at the
    bottom - I just
    > can't
    > see hotw to do this.
    >
    > CS3, mac osx 10.4.9
    > thanks
    >

  • How to set "Resource references" ?

    Hi,
    I'm a novice on EJB.
    I want to use EntityBean to access a Cloudscape database. I create a database named "MyDB" in a directory C:\db.
    When using J2ee deploy tool to build a enterprise bean, I need to specify the coded name of "Resource Refs". Can I just write "jdbc/MyDB" without specify any directory ?
    Thank you.

    I looked at J2ee verbose's output messages, and I got the following message:
    c:\j2sdkee1.3.1\repository\gnrtrTMP\BorrowerApp\borrower\BorrowerBean_PM.j
    ava:69: ')' expected
    return (void) partition.afterEjbCreate(this);
    I don't have BorrowerBean_PM.java, so I guess it is an automatically generated file.
    Please Help!

  • Unable To lookup .... weblogic.jobscheduler  and  web-xml resource ref

    Unable To lookup .... weblogic.jobscheduler and web-xml resource ref for timer manager
    JNDI NameNotFound Exception ....
    Do, i need to configure something get that working.
    Didn't find any thing on documentation or hosted examples.

    The default timermanager can be refered to as follows:
    <resource-ref>
        <res-ref-name>tm/default</res-ref-name>
        <res-type>commonj.timers.TimerManager</res-type>
        <res-auth>Container</res-auth>
        <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>http://middlewaremagic.com/weblogic/?p=5569

  • Help needed in setting up Japanese Database

    Hi there,
    Help needed in setting up Japanese Database.
    I created database with UTF8 character set on Sun Solaris O/S.
    Oracle version 8.1.7.
    I am accessing the DB through SQL*Plus (Windows client).
    I downloaded the Japanese font on client side and also set the NLS_LANG environment variable to Japanese_Japan.UTF8. Still, I am not able to view Japanese characters. O/S on client side is Windows 2000 professional (English). Is O/S (client) need to be Japanese O/S? When I try to retrieve sysdate, its displaying in Japanese but not all characters in Japanese. Can anyone help me out how to set up the client and is there any parameters to be setup at server side? I also tried to insert japanese characters into table through client, but it displaying as "?????" characters. Any help in this regard is appreciated.
    Thanks in advance,
    -Shankar

    lol
    your program is working just fine.
    do you know what accept does? if not read below.
    serversocket.accept() is where java stops and waits for a (client)socket to connect to it.
    only after a socket has connected wil the program continue.
    try putting the accept() in its own little thread and let it wait there while your program continues in another thread

  • Have problem setting Email alerts for Calendar events. Warning message says I need to set up a card in Contacts with my email. I do but it doesn't recognize it. How do I indicate the email I want alerts sent to?

    The system of setting up email alerts for Calendar events worked fine in Snow Leopard but since I upgraded to Mt. Lion Calendar won't let me set email alerts. When I try, I get an error message saying I need to set up a card in Contacts for my email. I have a card set up in Contacts for both of my email addresses but it doesn't recognize them. Perhaps the name I have on the card doesn't match a name that Calendar is looking for. Calendar doesn't seem to have a way in Preferences or elsewhere to indicate the email I want alerts sent to. Any ideas how I can get this system working again? Thanks for your help.

    You might want to consider starting a new discussion. Since this one is marked solved, less people are likely to look at it. You can link to this one.
    See if another contact is marked as this is my card.

Maybe you are looking for

  • Connection to iTunes fails with second user account

    Hi there! For some weeks now I am experiencing Problems connecting the iTunes of a Second User to Apple TV. I keep getting the error message that the connection failed and I should check if the iTunes is in the same network. Dumb message since one se

  • ITunes wont download using windows 8.1 - your system hasn't been modified

    Hi I recently bought a HP pavilion g6 running Windows 8.1.  When trying to download itunes i get an error message saying can't download because your system hasn't been modified. My laptop as well as windows is fully up to date. Any suggestions?

  • Chart of Accounts problem

    Hi, I copied co code using IN1, while copying i copied GL a/c, no ranges etc. When i am trying to change the chart of accounts to co code in Tc-OBY6, it shows error as below: <b>Reset company code data before changing the chart of accounts</b> what i

  • IPhoto Image Properties

    Im totally confused about image properties and the effect on images when downloaded into iPhoto of different releases: I have Canon digital camera. I always shoot at max image and file size...not Raw. I had my MacBook on a vacation in Europe and pull

  • What's with the number in a red circle above the Facetime icon in the dock?

    What's with the number in a red circle above the FaceTime icon?  How do I get rid of it?