Setting "dedicated.connection" Causes Error

Hi,
We have OC4J stand-alone 10.1.2.0.2 running on Red Hat Linux.
We currently have an SR (service request #5736059.993) open with Oracle Support.
In that SR, Oracle Support has recommended that we set property "dedicated.connection" to "true". When I do that, I get the following error:
com.evermind.server.rmi.RMIConnectionException: Server shutdown
        at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:50)
        at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
        at __Proxy3.create(Unknown Source)
        at its.fnd.sflto.ejb.EJBSFltData.<init>(EJBSFltData.java:174)
        at its.fnd.sflto.SFltObjectFactory.<init>(SFltObjectFactory.java:206)
        at its.fnd.sflto.SFltObjectFactory.getInstance(SFltObjectFactory.java:184)
        at its.apps.fltload.FltLoadApp.load(FltLoadApp.java:567)
        at its.apps.fltload.FltLoadApp.loadFlights(FltLoadApp.java:512)
        at its.apps.fltload.FltLoadApp.main(FltLoadApp.java:384)Isn't "dedicated.connection" deprecated?
Is this why we are getting the error?
We are running a single instance of OC4J, no clustering.
Thanks,
Avi.
Message was edited by:
Avi Abrami

Hi Avi,
As far as I know, the property dedicated.connection is an OC4J 9.x property.
In the manual
Oracle® Application Server Containers for J2EE Services Guide 10g Release 2 (10.1.2)
you will find in the chapter
2 Java Naming and Directory Interface
the following text about the new property dedicated.rmicontext:
This property replaces the deprecated dedicated.connection setting. When two or more clients in the same process retrieve an InitialContext, OC4J returns a cached context. Thus, each client receives the same InitialContext, which is assigned to the process. Server lookup, which results in server load balancing, happens only if the client retrieves its own InitialContext. If you set dedicated.rmicontext=true, then each client receives its own InitialContext instead of a shared context. When each client has its own InitialContext, then the clients can be load balanced.
The dedicated.rmicontext property defaults to false.
Best,
Manfred

Similar Messages

  • Sybase connection causing error

    Hi,
    I am trying to connect to a sybase database using JDBC. Do I need to issue an 'use database_name' command to the sybase database before I can start selecting from the tables in the database?
    I have tried doing the following but it is giving me an error saying that there is no result set for this query
    String results = "";
    String sql = "use database_name";
    Conenction conn = dataSource.getConnection();
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery(sql);
    while(rs.next()){
    do something;
    Can anyone help?

    hi ,
    >>Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery(sql); seems to be wrong... afterall... your query "use database_name" isn't expected to return anything.. isn't it? better use   Statement stmt = conn.createStatement();
      stmt.execute(sql); 
    //or
      stmt.executeUpdate(sql);   and check with your jdbc driver documentation on how to specify the database while establishing connection. Most probably u can specify it in the jdbc connection url or using a property object.
    It should support it i hope.
    All the best,
    -Jer

  • Code 91 - Caused Error: (Object variable or With block variable not set)

    Hi,
    We are using FDM 9.3.1. We have enabled batch processing.
    We are having following process being followed
    - Batch Loader script will pull the data from dwh table for each entity, scenario, year and period
    - Batch processing is set to serial and processlevel set to Up-To-Check
    - We had following five files created for Location - EMAFF100
    i. 1_EMAFF100_ACT_May-2011_RR.txt
    ii. 1_EMAFF100_ACT_Jun-2011_RR.txt
    iii. 1_EMAFF100_ACT_Jul-2011_RR.txt
    iv. 1_EMAFF100_ACT_Aug-2011_RR.txt
    v. 1_EMAFF100_ACT_Sep-2011_RR.txt
    Batch loader process completed the processing for May - 2011, Jul - 2011, Aug-2011, Sep-2011.
    But for Jun 2011 it has given the following error in the 'tbatchinformation' table and failed at import stage.
    40751.6239236111 1_EMAFF100_ACT_JUN-2011_RR.TXT 2 2 91-Object variable or With block variable not set
    When we checked the view error log from tool menu we found following
    ** Begin FDM Runtime Error Log Entry [2011-07-27-14:58:29] **
    ERROR:
    Code......................................... 91
    Description.................................. File [1_EMAFF100_ACT_Jun-2011_RR.txt] Caused Error: (Object variable or With block variable not set)
    Procedure.................................... clsBatchLoader.mFileCollectionProcess
    Component.................................... upsWBatchLoaderDM
    Version...................................... 931
    Thread....................................... 5600
    IDENTIFICATION:
    User......................................... ncreighton
    Computer Name................................ HYAPSDEV1
    App Name..................................... EMATTEST
    Client App................................... WebClient
    CONNECTION:
    Provider..................................... ORAOLEDB.ORACLE
    Data Server..................................
    Database Name................................ hydev_serv
    Trusted Connect.............................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location..................................... EMAFF100
    Location ID.................................. 762
    Location Seg................................. 16
    Category..................................... ACT
    Category ID.................................. 13
    Period....................................... Jun - 2011
    Period ID.................................... 30/06/2011
    POV Local.................................... False
    Language..................................... 1033
    User Level................................... 1
    All Partitions............................... False
    Is Auditor................................... False
    We then re submitted data for Jun period and saw batch process got successfully completed and June data got imported successfully and also rest other processes got through.
    Can any one provide exact cause for this error? As we have automated the data load from DWH to FDM And then to HFM. Hence when such error comes it disturbs lot of processing there on. Appreciate your early response.
    Thanks in advance.

    Hi SAP collegues,
    At my site, BPC Excel created this problem too "Object Variable or With Block Variable not set" .
    It turned out that this is symptom of a a dys-functioning BPC COM Plug-in in XL2007 or XL2010!
    This is a consequence that your Excel recently crashed while using BPC. And it relates to an Excel Add-in becoming disabled when the applications crashes.  Please check the following.
    Note before doing the following, close all other open Excel and BPC sessions.
    Within Excel go to File à Options
    Select the Add-Ins option on the left
    Select the <<COM Add-ins >> option in the Manage drop down, and click Go
    Make sure that the Planning and Consolidation option is selected.  If not, mark this box and click OK.
    If you do not see anything listed, return to the Add-in screen and select the Disabled Items option, and see if Planning and Consolidation is listed there.
    Let me know if you have any queries,
    Kind Regards,
    robert ten bosch

  • Running package programmactically from console causes error if package uses connection in Connection Manager.

    Hello my friends:
    I attempted to run a few packages programmatically using the code and solution on this page:
    http://msdn.microsoft.com/en-us/library/ms136090.aspx
    I observed that the script and process failed when I use the connection in SSIS/SSDT connection Manager in Visual Studio 2013. Meaning if I create a Connection for the Project in the Connection Manager and use it on tasks.
    However, the project and packages will run just fine if I simply add individual connection to each task where needed and do not use the Connection manager.
    If I use the Connection Manager, I get this error: This only happens when I run the package programmatically,
    if I run the package directly from Visual Studio, I get no errors.
    Error Message:
    Error in Microsoft.SqlServer.Dts.Runtime.Package/ : The connection "{0E6E938E-B0
    84-45E6-9110-0D532BD61787}" is not found. This error is thrown by Connections co
    llection when the specific connection element is not found.
    Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/SSIS.Pipeline : Cannot find th
    e connection manager with ID "{0E6E938E-B084-45E6-9110-0D532BD61787}" in the con
    nection manager collection due to error code 0xC0010009. That connection manager
     is needed by "SQL Server Destination.Connections[OleDbConnection]" in the conne
    ction manager collection of "SQL Server Destination". Verify that a connection m
    anager in the connection manager collection, Connections, has been created with
    that ID.
    Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/SSIS.Pipeline : SQL Server Des
    tination failed validation and returned error code 0xC004800B.
    Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/SSIS.Pipeline : One or more co
    mponent failed validation.
    Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : There were errors during ta
    sk validation.
    Connection Manager Screenshot:
    I am using that connection in an SQL Server Destination Task:
    And here is the code:
    class Program
    class MyEventListener : DefaultEvents
    public override bool OnError(DtsObject source, int errorCode, string subComponent,
    string description, string helpFile, int helpContext, string idofInterfaceWithError)
    Console.WriteLine("Error in {0}/{1} : {2}", source, subComponent, description);
    return false;
    static void Main(string[] args)
    string pkgLocation;
    Package pkg;
    Application app;
    DTSExecResult pkgResults;
    MyEventListener eventListener = new MyEventListener();
    pkgLocation =
    @"C:\Users\Administrator\Desktop\ExampleConnectionMgr\DataExtractionB.dtsx";
    app = new Application();
    pkg = app.LoadPackage(pkgLocation, eventListener);
    pkgResults = pkg.Execute(null, null, eventListener, null, null);
    Console.WriteLine(pkgResults.ToString());
    Console.ReadKey();
    Thank you everyone!

    I have confirmed that this problem, at least on the surface is caused by the lack of reference to the Connection in the Connection Manager as indicated by the error message.
    The solution here will require that the Connection is set directly within each task.
    If I simply set the connection in each task then the page runs just fine programmatically:
    I am also able to convert the Connection in the Connection Manager to Package Connection as shown in the screen shot below. This will override all references to the Connection Manager and make the connection local within each package or package
    task.
    Is there any other solution out there?
    Thanks again!
    Synth.
    This is exactly what I asked for in my previous post. Sorry if it wasnt clear.
    I guess the problem is in your case you're creating connection manager from VS which is not adding any reference of it to packages which is why its complaining of the missing connection reference
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page
    Hi my friend:
    Do you know how I can include the connection programmatically in code?
    I found this article but it is not very clear to me:
    I do not want to create a package in code, just the connection so that the program can run.
    Here is the article:
    http://msdn.microsoft.com/en-us/library/ms136093.aspx
    Thank you so much.
    Patrick

  • When I restore software to factory setting I have an error. After that my ipad cannot connect to itunes any longer

    When I restore software to factory setting I have an error. After that my ipad mini cannot connect to itunes

    What does the error say or number?
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    Update and restore alert messages on iPhone, iPad, and iPod touch
    http://www.buybuyla.com/tech/view/012953a0d412000e.shtml
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
     Cheers, Tom

  • Error in OFR : "No database connection string set for connection group"

    Hi all..
    In OFR, Batches Fail To Export When Line Pairing is Enabled and Batch Remains in State 750 With Error "No database connection string set for connection group".
    I have followed all steps associated to line pairing with database still my batch is not exported..
    Any help is appreciated..
    Thanks in advance

    Hi,
    in case you haven't done this already: for this problem we'd really need you to open a CSS message.
    From your problem description it sounds likely that LCA routines and liveCache user don't fit together. Please check the solution of note 811207 to see if that assumption is correct.
    Furthermore: liveCache 7.5 and SCM 4.0 are not released together (yet). When using SCM 4.0 only liveCache versions 7.4.03 Build XX are released. This it seems you're current combination is not supported!
    Please take a look at PAM (Produkt Availability Matrix) on the SAP Service Marketplace to see which combinations have been released.
    Kind regards,
    Roland
    Message was edited by: Roland Mallmann

  • Why do I need to set up sync when I only use 1 computer. A warning showed up that says: Sync encountered an error while connecting: Unknown error. Please try again.

    When I started up my computer this morning, a warning popped up saying: ! Sync encountered an error while connecting: Unknown error. Please try again.
    Why do I need to set up Sync on Firefox when I only use this one computer and do not even have a cell phone?

    If you do not want to use Firefox Sync any more, you can deactivate it. See instructions here: [[How do I manage my Firefox Sync account?]]

  • Caused error -3256 when attempting to connect to external speakers.

    I'm trying to connect to my Airport express using a PC running Windows XP home Edition SP 3 with iTunes 8.0.2 and getting the following error
    caused error -3256 when attempting to connect to external speakers.
    I've searched on teh internet and everything seems to relate to the Mac OS.
    Anyone running XP had similar issues?
    My AirportExpress is running FM 6.3
    Thanks
    Marcus

    After reading this discussion thread, I've seemed to have solved the problem for myself. I'm using the Trend Micro PC-Cillin Firewall. I disabled it and the airtunes worked. So, I went into the firewall settings. There's the ability to edit the profile and add to an exceptions list. You select the executable program, select incoming or outgoing, I accepted the other default settings and it worked.

  • ERROR : Cannot get data set while connecting to BI.

    Hi,
    I am trying to connect to BI trouggh my application. I am following one of the document which i got from SDN. But now i am getting ERROR : Cannot get data set  while connecting to BI.  Can any one tell me why i am getting this error.
    when i tried to excecute first time it gave the same error for the bellow given Querry. But after that it got excecuted. Then again It gave the same error. But it got excecuted twise like that after that it dint get excecuted once also.
    Querry:  SELECT
    [Measures].MEMBERS ON AXIS(0) ,
    NON EMPTY [0VENDOR].MEMBERS ON AXIS(1)
    FROM [0PUR_C01/0PUR_C01_DB_Q04];
    Regards,
    H.V.Swathi
    Edited by: H.V Swathi on Jun 1, 2009 1:33 PM

    HI,
    Thanks for ur reply.
    NO
    i am using this part of code to display the result in IFrame.
    IConnectionFactory connectionFactory = null;
         IBIConnection connection = null;
         IBIDataSet dataset = null;
    //        get the MDX statement entered by the User
         String mdxStatement = wdContext.currentContextElement().getMDXQ();
         wdComponentAPI.getMessageManager().reportSuccess("mdxStatement  "+mdxStatement.toString());
    //        Declare a stringbuffer to store the HTML Code
         StringBuffer l_strXmlFile = new StringBuffer();
         wdComponentAPI.getMessageManager().reportSuccess("l_strXmlFile  "+l_strXmlFile.toString());
         try {
    //        Connect to BW System
         Context initctx = new InitialContext();
    //        Perform JNDI lookup to obtain connection factory
            wdComponentAPI.getMessageManager().reportSuccess("l_strXmlFile eeeeee ");
         connectionFactory =
         (IConnectionFactory) initctx.lookup(
         "deployedAdapters/SDK_XMLA/shareable/SDK_XMLA");
    //        Establish connection using default connection properties
            wdComponentAPI.getMessageManager().reportSuccess("connectionFactory  "+connectionFactory);
         connection =
         (IBIConnection) connectionFactory.getConnectionEx(null);
         wdComponentAPI.getMessageManager().reportSuccess("connection  "+connection);
         IBIOlap olap = ((IBIConnection) connection).getOlap();
         wdComponentAPI.getMessageManager().reportSuccess("olap  "+olap);
    //     Execute the MDX statement and retrieve the data set
    //     using the execute method of the IBIOlap interface.
    dataset = olap.execute(mdxStatement);
    wdComponentAPI.getMessageManager().reportSuccess("dataset  "+dataset);
    } catch (Exception e) {
    e.printStackTrace();
    wdComponentAPI.getMessageManager().reportException(
    e.getLocalizedMessage(),
    true);
    } finally {
    try {
    connection.close();
    } catch (Exception e1) {
    //     TODO Auto-generated catch block
    e1.printStackTrace();
    if (dataset == null) {
    wdContext.currentContextElement().setResult_Visibility(
    WDVisibility.NONE);
    } else {
    wdContext.currentContextElement().setResult_Visibility(
    WDVisibility.VISIBLE);
    //     Render the data set.
    l_strXmlFile
    .append("<html>")
    .append("<head></head>")
    .append("<body>");
    //     Display the MDX that has been executed.
    l_strXmlFile
    .append("<p><b>MDX Statement that was executed:</b><br> ")
    .append("<span class=\"code\">")
    .append(mdxStatement)
    .append("</span> </p>");
    try {
    BIDataSetTableModel table =
    new BIDataSetTableModel(dataset, false);
    l_strXmlFile.append("<p>Result set:</p>");
    l_strXmlFile.append(
    "<table width=700 border=1 cellpadding=0 cellspacing=0>");
    int row = table.getRowCount();
    int col = table.getColumnCount();
    for (int i = 0; i < row; i++) {
    l_strXmlFile.append("<tr>");
    for (int j = 0; j < col; j++) {
    BITableItem item = (BITableItem) table.getValueAt(i, j);
    l_strXmlFile.append("<td class=\"headCenter\">"); l_strXmlFile.append(Helpers.escape(item.toString()));
    l_strXmlFile.append("</td>");
    l_strXmlFile.append("</tr>");
    l_strXmlFile.append("</table>");
    l_strXmlFile.append("</body></html>"); } catch (BISQLException e2) {
    //     TODO Auto-generated catch block
    e2.printStackTrace();
    //     read the stringbuffer into bytes
    byte[] l_byteData = null;
    try {
    l_byteData = l_strXmlFile.toString().getBytes("UTF-8");
    } catch (UnsupportedEncodingException e) {
    wdComponentAPI.getMessageManager().reportException(
    e.getLocalizedMessage(),
    false);
    //     Create a web resource and set the value of the
    //     context variable "IFrameData" to it's URL
    IWDCachedWebResource l_File =
    WDWebResource.getWebResource(
    l_byteData,
    WDWebResourceType.HTML);
    try {
    wdContext.currentContextElement().setIFrameData(
    l_File.getURL());
    } catch (WDURLException e1) {
    wdComponentAPI.getMessageManager().reportException(
    e1.getLocalizedMessage(),
    false);
    Reagards,
    H.V.Swathi

  • Ace - connection reset (Error 101)

    Hi, I have a problem with a Cisco ACE, after approximately an hour being in production, for all new connections
    it gives the message: connection reset. The message on any web browser is: connection reset (Error 101)
    It blocks any backend server (Apache).I get same error also when I try to connect direcly to the backend address.
    This error saturates the connections on the servers (in the log of the DB I found error connection reset)
    Without ACE all work fine, it's not a load traffic issue.
    It seems like once opened a connection the ace does not close it anymore!
    But the graphical snmp servers do not report the increase in connections, what is mistake ?
    The balancer manages two physical servers and is configured in stickyness mode
    Please find attached the configuration
    logging enable
    logging timestamp
    logging trap 4
    logging buffered 3
    logging host 172.16.0.2 udp/514 format emblem
    access-list ANY line 8 extended permit icmp any any
    access-list ANY line 16 extended permit ip any any
    probe http HTTP_PROBE1
      request method get url /index.php
      expect status 200 206
      expect status 300 307
      expect status 400 417
    probe tcp PROBE_TCP
      interval 30
    rserver host 03a.it
      ip address 172.16.0.1
      conn-limit max 50000 min 40000
      inservice
    rserver host 03b.it
      ip address 172.16.0.2
      conn-limit max 50000 min 40000
      inservice
    serverfarm host FARM_WEB
      predictor leastconns
    probe HTTP_PROBE1
      rserver 03a.it
        inservice
      rserver 03b.it
        inservice
    parameter-map type http HTTP_PARAMETER_MAP
      persistence-rebalance
    sticky http-cookie session StickyGroup1
      timeout 3600
      serverfarm FARM_WEB
    class-map type management match-all ICMP-ALLOW_CLASS
      2 match protocol icmp source-address x.x.x.x
    class-map match-all L4-WEB-IP
      2 match virtual-address x.x.x.x tcp eq www
    class-map type management match-all REMOTE_ACCESS
      2 match protocol ssh any
    policy-map type management first-match REMOTE_MGMT_ALLOW_POLICY
      class REMOTE_ACCESS
        permit
    policy-map type loadbalance http first-match WEB_L7_POLICY
      class class-default
        sticky-serverfarm StickyGroup1
        insert-http x-forward header-value "%is"
    policy-map multi-match WEB-to-vIPs
      class L4-WEB-IP
        loadbalance vip inservice
        loadbalance policy WEB_L7_POLICY
        loadbalance vip icmp-reply active
        nat dynamic 1 vlan 2541
        appl-parameter http advanced-options HTTP_PARAMETER_MAP
    interface vlan 125
      ip address
      access-group input ANY
      service-policy input REMOTE_MGMT_ALLOW_POLICY
      service-policy input WEB-to-vIPs
      no shutdown
    interface vlan 254
      ip address
      access-group input ANY
      nat-pool
      service-policy input REMOTE_MGMT_ALLOW_POLICY
      no shutdown
    At the moment this happens, the simultaneous connections (command: show conn) on the server are around 350
    the CPU load is 2%
    sticky database has approximately 24000 records.
    Log level is set to 4. But no error report.
    Do you need more info to resolve the problem?
    Thank you
    Best Regards
    N.

    Hello Nicolas,
    I wonder if you can include these values:
    parameter-map type http HTTP_PARAMETER_MAP
      case-insensitive
      persistence-rebalance
      set header-maxparse-length 65535
      set content-maxparse-length 65535
      length-exceed continue
      parsing non-strict
    I also noticed a lot of errors which might be caused also due to these denied under the #show resource usage all which may indicate you are reaching the license limits, but you should discuss it with your Cisco SE, please see below:
                                                   Allocation
            Resource         Current       Peak        Min        Max       Denied
    Context: vrack254
      conc-connections              4       1267      60000      60000          0
      mgmt-connections              2         28        748        748          0
      proxy-connections             0       1255       7864       7864          0
      xlates                        0          0       7864       7864          0
      bandwidth                   572    3824781    3740624  127490624    1416859
        throughput                 96    3712886    3740624    3740624    1416859
        mgmt-traffic rate         476     111895          0  123750000          0
      connection rate               1       1729       4500       4500          0
      ssl-connections rate          0          0        224        224          0
      mac-miss rate                 0         15         16         16          4
      inspect-conn rate             0          0       1800       1800          0
      http-comp rate                0          0    5898240    5898240          0
      to-cp-ipcp rate               0         11         36         36          0
      acl-memory                 8216      10568     744800     744800          0
      sticky                    22978      22978      31456      31456          0
      regexp                       19         23       7864       7864          0
      syslog buffer             30720      30720      30720      30720          0
      syslog rate                   0          6        750        750          0
    Can you upload the specific error which you are getting also?
    Jorge

  • Cannot get a connection, pool error Timeout waiting for idle object

    my connection pool setting is
      maxActive="3" minIdle="2"                maxWait="10000"              removeAbandoed="true" logAbandoned="true"         removeAbandonedTimeout="30"         autoreconnection="true" 
    we have 7 people hitting the group of search functions ,
    about 3 minutes I get
    I got error like
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object         at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:104)         at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)         at Deferment.showResult.checStudent(showResult.java:135)         at Deferment.showResult.doPost(showResult.java:99)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:402)         at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:170)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    I just wonder
    1) Cannot get a connection, pool error Timeout waiting for idle object-> cause by connection pool leaking or other problem.
    2) Setting the maxactive to -1 ( suggestion from Google) , if I set my connection to ulimit , waht should I put on minIdle="2"
    3) How can I test my connection pool have problem or not ? is
    SHOW PROCESSLIST; tolding me someinformation? I use Mysql
    Thank you!

    I try something like ps2 = conn.prepareStatement(target);
                ps2.setString(1, UNumber); // set input parameter
                rs = ps2.executeQuery();
                sendMail = 0;//how many rows we can find.
                while (rs.next()) {
                    sendMail++;
                ps2.close();
                rs.close();
                conn.close();
      if ((count1 == 0) || (count2 == 0)) {
                    conn.rollback();
                } else {
                    conn.commit();
                    conn.setAutoCommit(true);
                ps.close();
                calstat2.close();
                conn.close();
    calstat = (CallableStatement) conn.prepareCall("{call findStudent}");
                calstat.executeQuery();
                calstat.close();
                conn.close();is that enought? what else I should do to make sure I did close all the connection, after I use it ?
    thank you

  • New network card caused: Error Codes: OAMP2OPY:GIQKCQ7V

    after installing a network card in my OBIEE 11g server
    I get this error:
    Error
    View Display Error
    Error generating view. Error getting cursor in GenerateHead
    Error Details
    Error Codes: OAMP2OPY:GIQKCQ7V
    Too many running queries. Server is too busy to process any more queries at this time.
    the server can still connect to the database..
    the IP address has not changed..
    how do I fix this?

    Metalink ID 1462776.1
    1. The Oracle Database instance is configured by default to run only 150 PROCESSES;
    the maximum load for dedicated connections is determined by the PROCESSES parameter.
    When the listener believes the current number of connections has reached maximum load, it may set the state of the
    service handler for an instance to "blocked" and begin refusing incoming client connections with the following error (in biserver1.log set in debug level):
    "TNS-12516 TNS:listener could not find instance with matching protocol stack"
    Tip:
    Verify the Oracle database processes parameter setting. It is also a good idea to make sure the Oracle database sessions and open cursors settings are large enough.
    2. Increase the number of concurrent client connections (sessions) to OBI server.
    Each client request to OBI Server uses one SERVER_THREAD.
    Each SERVER_THREAD uses 0 or more DB_GATEWAY_THREADs depending upon the number of DB queries executed.
    Following NQSConfig.INI parameters need to be tuned (refer to OBIEE tuning guide for details on initial values to be set):
    [ SERVER ]
    MAX_SESSION_LIMIT
    SERVER_THREAD_RANGE
    DB_GATEWAY_THREAD_RANGE
    3. Cleanup Web catalog via instanceconfig.xml using the steps documented in "Validating the Catalog" in System Administrator's Guide for Oracle Business Intelligence Enterprise Edition.
    4. In instanceconfig.xml file for each instance, add the following parameters within Cache/Query tags:
    <Cache>
    <Query>
    <MaxEntries>10000</MaxEntries>
    <AbsoluteMaxEntries>20000</AbsoluteMaxEntries>
    <CruiseEntries>3000</CruiseEntries>
    <ForceLRU>true</ForceLRU>
    </Query>
    </Cache>
    5. Make sure you have enough system resources available on BI Servers (sawserver, nqsserver).
    6. Unstable network connection link between OBIEE servers and Database server.

  • Random Connection Closed Errors using UCP

    Hey All;
    I am trying to figure out why we are seeing quite a few random connection closed errors in our applications that are using Oracle UCP ver 11.2.0.1.0 connection pooling.
    The errors happen at arbitrary jdbc usage source code locations (e.g.: spots that check a connection's auto commit mode, spots that spool through a result set, spots that do yada..) that consume a connection, and are not affiliated with what is being done with the connection (SQL being ran).
    The architecture is Tomcat 7, hitting Oracle 10g Enterprise Edition Release 10.2.0.4.0 (RAC). The structure of the code (it's a web app) is such that we have a servlet filter that assigns a http request thread a connection from the pool on an incoming request, then that same connection is closed at the completion of that request's handling. No code uses connections other than code related to handling an http request. And, no threads are spawned off of that request handling thread. And, no code whatsoever (other than the servlet filter's finally block) ever closes a DB connection.
    Also, the number of connections in the pool is quite adequate for the usage of the pool. That is, the ceiling is likely never hit. Even if it were---- having an outstanding connection suddenly 'closed out' wouldn't be the proper behavior there.
    What are the things that can cause a connection to be 'closed out from under you' ? Meaning, the connection is valid when taken from the pool, but arbitrarily in the middle of usage--- it gets closed.
    I am pretty stumped at this point.
    Any ideas?
    Thanks--

    Here are a few sample stacks. Keep in mind that the line of code where the exception actually happens is arbitrary. We see the exception happen at ANY line that is a consumer of a connection. For example... it could happen that it blows up on the 'Nth' iteration while trucking through a result set. Suddenly at say... iteration 143 the connection is suddenly closed out from under the connection's handle.
    As far as threads are concerned, each http request that creates a controller servlet instance is assigned it's own connection to use through the handling of that request. That connection instance is assigned as a ThreadLocal instance. Any DB usage that thread has is via that connection. The servlet filter ensures the handle is assigned when the request comes in, then is cleaned up as that request is completely handled in the same filter's finally block (this is a pattern that dozens of web apps we have have been using for going on 10 years now). This is not an ejb app. Straight Tomcat 7 web app using MVC pattern where C is a servlet.
    The curious thing here in my mind is that we only have two apps in our collection that are using this new UCP pooling driver (most other are using a tomcat pool). And, only those two are seeing this behavior.
    I am not balking at the threads concern--- it's just hard to square that with how we handle threading in such a 'single thread per http request' manner.
    And, if it were the case that the pool is handing out the same connection handle to more than one thread because of having multiple entrant threads to the pool accessor method---- it's difficult to buy that it's that common for us to have multiple entrant threads at the same moment in those very short time span it takes for a pool to hand out a connection (given the traffic usage pattern for the app).
    Here are the 'known deltas' I am aware of between the two apps that have this behavior, and the couple of dozen we have that do not:
    1) these two apps are on Tomcat 7 (most others are Tom 5, Resin, or JBoss)
    2) these two apps are using the Ora UCP pool. (most others use Tomcat pool)
    ~~~~~~~~~ Stack 1 ~~~~~~~~~~~~~~~~~~
    01-Dec-2010 12:34:13.479 [ERROR] JDBCExceptionReporter: The connection is closed: The connection is closed
    01-Dec-2010 12:34:13.479 [ERROR] PartsGroupingPanel: getDealersInventoryRow() pvid FO03348
    org.hibernate.exception.GenericJDBCException: could not inspect JDBC autocommit mode
    at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:91)
    at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:79)
    at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
    at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
    at org.hibernate.jdbc.JDBCContext.afterNontransactionalQuery(JDBCContext.java:228)
    at org.hibernate.impl.SessionImpl.afterOperation(SessionImpl.java:437)
    at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1134)
    at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
    at com.dmotorworks.partinventory.dao.ClientParametersDAO.getAllDealers(ClientParametersDAO.java:20)
    ~~~~~~~~~ Stack 2 ~~~~~~~~~~~~~~~~~~
    01-Dec-2010 11:23:54.889 [ERROR] PartsSearchDAO: getDealerInventoryLineItemsNofN()
    java.sql.SQLException: The connection is closed: The connection is closed
    at oracle.ucp.util.UCPErrorHandler.newSQLException(UCPErrorHandler.java:526)
    at oracle.ucp.util.UCPErrorHandler.newSQLException(UCPErrorHandler.java:510)
    at oracle.ucp.jdbc.proxy.JDBCConnectionProxyFactory.invoke(JDBCConnectionProxyFactory.java:245)
    at $Proxy0.prepareStatement(Unknown Source)
    at com.dmotorworks.partinventory.dao.PartsSearchDAO.getDealerInventoryLineItemsNofN(PartsSearchDAO.java:246)

  • Installed Trend Micro Smart Surfing on new MacBook Pro and now it has caused error that won't let computer boot up.  How do I get it to a point that I can delete program?

    Installed Trend Micro Smart Surfing on new MacBook Pro and now it has caused error that won't let computer boot up.  How do I get it to a point that I can delete program?

    Try booting up in Safe mode (holding down the Shift key while booting). If the software came with an unistaller, use it to remove alll traces of the software - it's nothing that you need and, as you've experienced, can do more actual hard than good (as is the case with most software of this type). When you're booted in Safe Mode, if you can't run an uninstaller, at least check to make sure that there are no Trend Micro items that are set for automatic log in, at least.
    Clinton

  • Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).

    Hi,
    Our Environment is Essbase 11.1.2.2 and working on Essbase EAS and Shared Services components.One of our user tried to run the Cal Script of one Application and faced this error.
    Dynamic Calc processor cannot lock more than [100] ESM blocks during the calculation, please increase CalcLockBlock setting and then retry(a small data cache setting could also cause this problem, please check the data cache size setting).
    I have done some Google and found that we need to add something in Essbase.cfg file like below.
    1012704 Dynamic Calc processor cannot lock more than number ESM blocks during the calculation, please increase CalcLockBlock setting and then retry (a small data cache setting could also cause this problem, please check the data cache size setting).
    Possible Problems
    Analytic Services could not lock enough blocks to perform the calculation.
    Possible Solutions
    Increase the number of blocks that Analytic Services can allocate for a calculation:
    Set the maximum number of blocks that Analytic Services can allocate to at least 500. 
    If you do not have an $ARBORPATH/bin/essbase.cfg file on the server computer, create one using a text editor.
    In the essbase.cfg file on the server computer, set CALCLOCKBLOCKHIGH to 500.
    Stop and restart Analytic Server.
    Add the SET LOCKBLOCK HIGH command to the beginning of the calculation script.
    Set the data cache large enough to hold all the blocks specified in the CALCLOCKBLOCKHIGH setting. 
    Determine the block size.
    Set the data catche size.
    Actually in our Server Config file(essbase.cfg) we dont have below data  added.
    CalcLockBlockHigh 2000
    CalcLockBlockDefault 200
    CalcLockBlocklow 50
    So my doubt is if we edit the Essbase.cfg file and add the above settings and restart the services will it work?  and if so why should we change the Server config file if the problem is with one application Cal Script. Please guide me how to proceed.
    Regards,
    Naveen

    Your calculation needs to hold more blocks in memory than your current set up allows.
    From the docs (quoting so I don't have to write it, not to be a smarta***:
    CALCLOCKBLOCK specifies the number of blocks that can be fixed at each level of the SET LOCKBLOCK HIGH | DEFAULT | LOW calculation script command.
    When a block is calculated, Essbase fixes (gets addressability to) the block along with the blocks containing its children. Essbase calculates the block and then releases it along with the blocks containing its children. By default, Essbase allows up to 100 blocks to be fixed concurrently when calculating a block. This is sufficient for most database calculations. However, you may want to set a number higher than 100 if you are consolidating very large numbers of children in a formula calculation. This ensures that Essbase can fix all the required blocks when calculating a data block and that performance will not be impaired.
    Example
    If the essbase.cfg file contains the following settings:
    CALCLOCKBLOCKHIGH 500  CALCLOCKBLOCKDEFAULT 200  CALCLOCKBLOCKLOW 50 
    then you can use the following SET LOCKBLOCK setting commands in a calculation script:
    SET LOCKBLOCK HIGH; 
    means that Essbase can fix up to 500 data blocks when calculating one block.
    Support doc is saying to change your config file so those settings can be made available for any calc script to use.
    On a side note, if this was working previously and now isn't then it is worth investigating if this is simply due to standard growth or a recent change that has made an unexpected significant impact.

Maybe you are looking for

  • Unable to Delete Data from ODS ---Tricky

    Hi Frds/ BW Guru's, I am trying to delete the request from ODS , I could see the job being scheduled for deletion, but finally the request is not deleted. What can be the reason for this and how can I go about from here, we have to do it in productio

  • HP G6000 (G6062EA) WONT TURN ON.

    Hi all, This laptop wont turn on at all. When its on battery the blue battery light is flashing as the battery is low and not charging and when you try to switch it on the battery light flashes 3 times and nothing else. When its plugged in with the b

  • Setup/clean-out orders for production campaign

    Hi experts, Can you tell me the steps that I have to execute if I want to create in APO PPDS a setup/clean-out order for a production campaign Regards, Arnulfo Cordero Pradel

  • When accessing Trademe through Firefox I can't view photos of items for sale

    I can view photos of things for sale on Trademe through Internet Explorer, but can only read information through Firefox and cannot see any of the photos of things for sale

  • Macbook Trackpad/Keyboard not working in X

    So I installed Arch for the first time (save for one previous time on a VM) today. Well, its mostly installed, GRUB is being a pain, so im working mounted on the computer via live cd. Anyway, i installed all of the X packages needed to run a WM (even