AXL RIS queries encounter timeout

I found something interesting today that caused me to scratch my head. I have 3 AXL queries of which two work fine. The first two query into the CallManager config database (via the DBL.dll layer) and return the expected results just fine (<executeSQLQuery>). The last query attempts to get unregistered phone status information from the RIS (<SelectCmDevice>) and fails with a timeout. The AXL trace files do not even show that the RIS request was received by the server. I've verified that the syntax works against other 4.1(3) CCM publishers, but this particular one failed (version 4.1(3)SR2+ES62). What would cause such a timeout? What do I investigate next in order to figure this out? Should I look at the RIS trace files and if so what should I look for? Thanks in advance.

Wrong forum maybe? If so, my apologies.

Similar Messages

  • Setting query timeout in TopLink 10g

    The 10g version of OAAM uses TopLink 10g Release 3 (10.1.3.1.0) (Build 061004) and Oracle JDBC Driver 10.2.0.2.0. We are not using TopLink Essentials. I'm trying to make it so that our queries will timeout and throw an exception if they take too long. I have tried several things, but haven't had any luck so far. I have tried each of the following:
    * Adding <property name="javax.persistence.query.timeout" value="1"/> to the <login> element in sessions.xml.
    * Setting the query policy in my descriptors like this:
    <opm:querying xsi:type="toplink:query-policy">
    <opm:timeout>1</opm:timeout>
    </opm:querying>
    * Calling DatabaseQuery.setQueryTimeout(1).
    * Calling setProperty("javax.persistence.query.timeout") on the database login, server session, client session, and unit of work.
    In each case, I tried to update a locked table, and the application simply hung until I unlocked the table. I also tried executing select queries that take around 15 seconds to run, and those completed normally. I want to make the application throw a database exception instead. How can I make this work?
    I ran this test to eliminate the JDBC driver as a suspect:
    java.util.Properties props = new java.util.Properties();
    Class.forName("oracle.jdbc.driver.OracleDriver");
    props.setProperty("user", "teng_oaam");
    props.setProperty("password", "******");
    java.sql.Connection conn = java.sql.DriverManager.getConnection("jdbc:oracle:thin:@******:1521:brsadb", props);
    System.out.println(conn.getMetaData().getDriverName() + " " +conn.getMetaData().getDriverVersion());
    java.sql.Statement stmt = conn.createStatement();
    stmt.setQueryTimeout(1);
    System.out.println(stmt.getClass());
    System.out.println(new java.util.Date());
    try {
    // this query takes about 20 seconds to execute
    java.sql.ResultSet rs = stmt.executeQuery("select * from vcrypt_ip_location_map where from_ip_addr<=1160157297 and to_ip_addr>=1160157297");
    } catch (Exception ex) {
    ex.printStackTrace();
    System.out.println(new
    java.util.Date());
    The query fails with ORA-01013, which is what I expect to happen, so the problem is not in my JDBC driver.
    Thanks,
    Josh Davis

    public static Integer executeUpdate(TopLinkDBMgr topLinkDBMgr, BharosaDBQuery dbQuery) throws BharosaDBException {
       DataModifyQuery query = null;
       List args = Collections.EMPTY_LIST;
       long startTime = System.currentTimeMillis();
       try {
          AbstractSession session = (AbstractSession) topLinkDBMgr.beginSession(); +// creates a ClientSession and calls session.beginTransaction()+
          query = new DataModifyQuery();
          query.setCall(new SQLCall(dbQuery.getQueryString().replace(':', '#'))); +// we still have some SQL queries we haven't changed since we used Hibernate+
          Vector arguments = bindArgumentsForRawSql(dbQuery, query);
          args = arguments;
          query.setQueryTimeout(1);
          Object result = session.executeQuery(query, arguments);
          return converter.toInteger(result);
       } catch (BharosaDBException ex) {
          throw ex;
       } catch (Exception e) {
          throw BharosaDBException.createDBObjectQueryException(dbQuery.getQueryString(), e);
       } finally {
          topLinkDBMgr.endSession(); +// calls session.endTransaction() on the ClientSession+
          long time = System.currentTimeMillis() - startTime;
          Level level = getLogLevelForElapsedTime(time);
          if (logger.isEnabledFor(level)) {
             String message = buildPerformanceMessage(query, args);
             logPerformance(level, time, message);
    For my test, I lock a table in SQL*Plus, and there is a background process that uses this method to update that table. That process hangs until I release the lock in SQL*PLus.
    This is a corner case, though. Most of our updates are done with the UnitOfWork class, so I need to be able to make the queries that it generates time out also.
    Thanks,
    Josh

  • Commit timeout query - JDBC

    Ours is a java based front-ending application. In this, we are using oracle 11g JDBC driver to connect to ORACLE. As per JDBC specification, we are using query timeout parameter to specify the maximum threshold time a thread can be kept waiting for query to finish. But the same is available at query execution level only i.e. on statement object or on preparedstatement object. But we need similar functionality at connection level. To be more precise, any call to ORACLE from JDBC should not take more time than specified limit, otherwise the same calls should be cancelled. E.g. if commit is taking very high time and we don’t want our thread to be kept waiting for commit. In this case, probably on encountering timeout, we may either rollback the transaction or just close the connection,
    Is the same is supported anyhow in JDBC or in ORACLE which can be configured from front-ending application?

    There is a JDBC forum which is more appropriate for this.
    And IMHO a commit call is something that you do NOT want to control a timeout on.  Maybe in gross limits but not small limits.  If I had a commit that was in fact normally taking a long amount of time I would look to the statements being executed in the transactions as being incorrect or too big.  And refactor there.

  • Error when creating aggregate table

    Hello,
    I am creating an aggregate table using the Aggregate Persistence Wizard. When trying to run the batch file, I am receiving an error: "Could not connect to the Oracle BI Server instance".
    But then, the Oracle BI Server is running and I am able to do queries in answers with no connection issues. (Pls see below)
    Please help.
    Thanks,
    Felicity
    D:\OracleBI\server\Repository>create_agg.bat
    D:\OracleBI\server\Repository>nqcmd -d AnalyticsWeb -u Administrator -p Administ
    rator -s D:\OracleBI\server\Repository\CREATE_AGG.sql
    Oracle BI Server
    Copyright (c) 1997-2009 Oracle Corporation, All rights reserved
    create aggregates
    "ag_SalesFacts"
    for "SupplierSales"."SalesFacts"("Net Weight Shipped","Units Ordered","Units Sh
    ipped","Dollars")
    at levels ("SupplierSales"."ProductsDim"."Type", "SupplierSales"."CustomersDim"
    ."SalesRep", "SupplierSales"."PeriodsDim"."Month")
    using connection pool "ORCL"."SUPPLIER CP"
    in "ORCL".."SUPPLIER2"
    create aggregates
    "ag_SalesFacts"
    for "SupplierSales"."SalesFacts"("Net Weight Shipped","Units Ordered","Units Sh
    ipped","Dollars")
    at levels ("SupplierSales"."ProductsDim"."Type", "SupplierSales"."CustomersDim"
    ."SalesRep", "SupplierSales"."PeriodsDim"."Month")
    using connection pool "ORCL"."SUPPLIER CP"
    in "ORCL".."SUPPLIER2"
    [10058][State: S1000] [NQODBC] [SQL_STATE: S1000] [nQSError: 10058] A general er
    ror has occurred.
    [nQSError: 37001] Could not connect to the Oracle BI Server instance.
    Statement preparation failed
    Processed: 1 queries
    Encountered 1 errors

    Will this help you solve issue http://forums.oracle.com/forums/thread.jspa?messageID=3661598
    Check the comments in this blog http://obiee101.blogspot.com/2008/11/obiee-aggregate-persistence-wizard.html
    It deals with use permissions for the database.
    hope answers your question..
    Cheers,
    kk

  • Any reported problems using jdbc over a WAN?

    If im trying to connect to a Database that's on a WAN will I experience any issues in using jdbc to connect and execute queries to that database?
    I know problems would come up if my wan network is slow, but has jdbc been able to handle long distance database queries? timeout values?

    but why?
    is it because of security? If a company had a database with your personal info hanging out on the Web for anyone to query without any validation or security, how would you feel about it?
    design pattern issues? It's just good layered design.
    just doesnt make sense?Not in my opinion.
    have u experienced/heard of any problems of
    connecting to a database over a WAN and executing
    queries?You don't say anything about who the client is. If the database is behind a firewall, outside clients shouldn't be able to access the port where the listener is running. Only port 80 should be open on that firewall.
    So you either write a servlet that listens on port 80 for HTTP requests from a browser-based client OR you ask your firewall admin to punch a hole in the firewall and open up the port on which your database is listening for queries and use a Swing client.
    If s/he agrees to do it, quit immediately. It means your company doesn't know anything about security.
    %

  • Syntax error [nQSError: 27002] Near NA : Syntax error [nQSError: 26012] .

    All,
    I would like to cache few dashboard SQL's manually. For that I am seeding this logical SQL to BI. I got this SQL from the Advanced tab of analytics.
    Call SASeedQuery('SELECT s_0, s_1, s_2, s_3, s_4, s_5, s_6, s_7, s_8, s_9, s_10, s_11, s_12 FROM (
    SELECT
    0 s_0,
    "RProBIEE"."Date"."Calendar Month" s_1,
    "RProBIEE"."Date"."Calendar Year" s_2,
    "RProBIEE"."Stores"."Sbs Name" s_3,
    "RProBIEE"."Vendors"."Vend Name" s_4,
    DESCRIPTOR_IDOF("RProBIEE"."Stores"."Sbs Name") s_5,
    "RProBIEE"."PO Amounts"."PO Quantity" s_6,
    "RProBIEE"."PO Amounts"."PO Received Quantity" s_7,
    "RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 s_8,
    REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar
    Month","RProBIEE"."Vendors"."Vend Name") s_9,
    REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar
    Year") s_10,
    REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar
    Year","RProBIEE"."Date"."Calendar Month") s_11,
    REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar
    Year",DESCRIPTOR_IDOF("RProBIEE"."Stores"."Sbs Name"),"RProBIEE"."Vendors"."Vend Name") s_12
    FROM "RProBIEE"
    WHERE
    (Stores."Sbs Name" NOT IN ('NA', 'UNK'))
    ) djm ORDER BY 1, 5 ASC NULLS LAST, 2 ASC NULLS LAST');
    and I get below error
    te"."Calendar Month") s_11,
    REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."P
    O Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar Year",DESCRIPTOR_IDO
    F("RProBIEE"."Stores"."Sbs Name"),"RProBIEE"."Vendors"."Vend Name") s_12
    FROM "RProBIEE"
    WHERE
    (Stores."Sbs Name" NOT IN ('NA', 'UNK'))
    ) djm ORDER BY 1, 5 ASC NULLS LAST, 2 ASC NULLS LAST')
    [10058][State: S1000] [NQODBC] [SQL_STATE: S1000] [nQSError: 10058] A general er
    ror has occurred.
    [nQSError: 43113] Message returned from OBIS.
    [nQSError: 27002] Near <NA>: Syntax error [nQSError: 26012] .
    Statement preparation failed
    Processed: 1 queries
    Encountered 1 errors

    Hi,
    When u press editing data target button in session variable a new popup window opens 'Session variable Initialization block variable target'
    In that Just give one variable name in User
    for example in EditDatasource i have given syntax as
    SELECT
    FND_GLOBAL.RESP_ID,
    FND_GLOBAL.RESP_APPL_ID,
    FND_GLOBAL.SECURITY_GROUP_ID,
    FND_GLOBAL.RESP_NAME,
    FND_GLOBAL.USER_ID,
    FND_GLOBAL.EMPLOYEE_ID,
    FND_GLOBAL.USER_NAME
    FROM DUAL
    in target give EBS_RESP_ID and select ok, again open datatarget and give in User as ' EBS_REPS_APPL_ID' like wise.......
    I think you can understand it and go a head.........

  • Problem: Aggregates for repository by scheduling an aggregate creation job

    Hi dear OBIEE Gurus,
    I‘m trying to create my Aggregates for my repository by scheduling an aggregate creation job as shown in
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/aggpersist/aggpersist.htm
    env:
    1-     Oracle Business Intelligence Product Version 10.1.3.4.1 (Build 090414.1900)
    2-     Windows XP
    3-     Three separate repositories (OE, SH, & Sample Sales) running in parallel each on its own analytics deployment on one OC4J server
    +++++++++++++++++
    What is the problem:
    When I try to start the scheduled job I get following message:
    +++++++++++++++++
    Oracle BI Server
    Copyright (c) 1997-2009 Oracle Corporation, All rights reserved
    delete aggregates
    delete aggregates
    Statement execute succeeded
    create aggregates
    "ag_Salesfacts"
    for "SH"."Salesfacts"("Amount Sold")
    at levels ("SH"."ProductsDim"."Category", "SH"."TimesDim"."Times Detail", "SH"."CustomersDim"."State Province")
    using connection pool "orcl SH"."Connection Pool"
    in "orcl SH".."SH"
    create aggregates
    "ag_Salesfacts"
    for "SH"."Salesfacts"("Amount Sold")
    at levels ("SH"."ProductsDim"."Category", "SH"."TimesDim"."Times Detail", "SH"."CustomersDim"."State Province")
    using connection pool "orcl SH"."Connection Pool"
    in "orcl SH".."SH"
    Processed: 2 queries
    Encountered 1 errors
    [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
    [nQSError: 46036] Internal Assertion: Condition !m_factTable.IsNull(), file .\Src\SAAPAggrCube.cpp, line 46.
    Statement preparation failed
    ++++++++++++++++++++
    What have I done so far?
    ++++++++++++++++++++
    -     I went through all steps in the aforementioned tutorial, up to the point where it says “6. Verify that the job completes successfully in the Job Manager.”
    -     I set up the job in the scheduler
    -     I let run the job in the job manager, Which is where I get the error.
    -     I tried different combinations of fields, aggregations and levels, all with the same result.
    -     Manually starting the job has the same result: >D:\programs\oracle\obiee\server\Bin\NQCmd.exe -u Administrator -p Administrator -d AnalyticsWebSH -s D:\programs\oracle\obiee\server\Repository\create_aggregated_table_rk.SQL
    -     I tried to create aggregates in my other repositories, and found OTHER errors, but at least the aggregates were created there (to some extent)
    -     I looked in OTN for the error, found nothing
    -     Google does not know a thing about this
    Any ideas?

    Hi John,
    there is an OSS Note 453026 'No aggregate proposals for MultiCubes after query' that seems explaining your situation, but I think you aren't on the old 2.0/2.1 versions...
    John, I don't know how could I help you...
    If I find more, I'll write you at once !
    Bye,
    Roberto

  • Aggregate table

    Hi !
    I have a problem when I try to use the aggregate wizard, but only with some dimension tables.
    This is the error message given by Job Manager :
    Processed: 1 queries
    Encountered 1 errors
    [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
    [nQSError: 84008] [Aggregate Persistence] Error while processing aggregates (refer previous errors in log).
    Statement preparation failed
    I have created all my dimensions with OWB so I don't understand why it works with some tables and not with others.
    Thanks for your help

    Hi, here is my error :
    -------------------- Aggregate Manager (Error): [nQSError: 32003] The object "DATAWARE".."INFOCENTRE"."SA_Action00002041"."K" of type 'TABLE KEY': is missing a list of type 'COLUMN'.
    : [nQSError: 84003] [Aggregate Persistence] Checkin failed.
    EDIT*
    I think I find a way. This error occur when I select the most detailed hierarchy of a dimension. I have DimA, DimB and Fact tables. DimA has 2 hierarchy levels (DimA1 and DimA2) and DimB 3 (DimB1, DimB2, DimB3). When I want to create aggregates tables using DimA2 or DimB3, I have the error above. So how can I do to solve this ?
    Edited by: Yannis on 5 juil. 2010 01:42
    EDIT 2*
    I finally solve my problem creating a new parent level for my most detail hierarchy.
    Edited by: Yannis on 5 juil. 2010 02:33

  • URGENT: Thousands of OracleCancelThreads

    Hi,
    we set the query timeouts on statements to
    60 seconds usually and after a lot of UPDATEs
    and INSERTs our Java (1.2.2) VM has up to
    2100 lingering threads with the following stack trace:
    "Thread-25197" (TID:0xce67b4, sys_thread_t:0xce6738, state:CW, thread_t:
    t@25360, threadID:0xa9603dc8, stack_bottom:0xa9604000, stack_size:0x100000)
    prio=5
    [1] java.lang.Thread.sleep(Native Method)
    [2] oracle.jdbc.d"Thread-25197" (TID:0xce67b4, sys_thread_t:0xce6738, state:CW, thread_t:
    t@25360, threadID:0xa9603dc8, stack_bottom:0xa9604000, stack_size:0x100000)
    prio=5
    [1]java.lang.Thread.sleep(Native Method)
    [2]oracle.jdbc.driver.OracleCancelThread.run(OracleCancelThread.java:47)
    river.OracleCancelThread.run(OracleCancelThread.java:47)
    During the course of execution up to 103,000
    such threads are generated, but most of them die, except for those few thousand. Then the VM halts. Meantime, the console throws a lot of:
    java.lang.NullPointerException
    at oracle.jdbc.driver.OracleStatement.cancel(Compiled Code)
    at oracle.jdbc.driver.OracleCancelThread.run(Compiled Code)
    This is with the 8.1.6 JDBC thin driver and
    Oracle 8.1.5 on Solaris 2.7.
    The number of threads left behind can vary between 100 to about 2100 before the VM halts.
    The questions are as follows:
    1) What's up with the null pointers?
    2) When does a cancel thread get created and why would one have anywhere from 100 to 2100 such Oracle threads running?
    3) Does Statement.setQueryTimeout() create that thread, and do repeated calls create more threads? What if the argument is zero, i.e. no query timeout? Does the thread exit?
    4) Do these threads exit when a connection is closed or garbage collected?
    Any fixes in the driver?
    Our server keeps connections open all the time to the Oracle server, and we usually create a Statement, set the timeout, execute it and then close() it and set it to null.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JDBC Development Team:
    According to JLS any transfer of control out of the try block will execute the finally clasue. So the NullPointerException should not cause a problem. What's more, the NPE is being thrown in a method that is called from the CancelThread run method and the try finally is in Statement. I've looked at that code and there's nothing obvious that even could cause a NPE.
    If the problem is ours, I'm starting to believe that it's some kind of race condition between the statement execution and the CancelThread. Do your queries sometimes timeout? If they do that could mean that some of them are completing at about the same time as the CancelThread is attempting to cancel them.
    Sorry, I can't post the code.
    I was just told that one of our team might have seen this before. I'm trying to get ahold of him.<HR></BLOCKQUOTE>
    Yes some queries time out and WELL before the timer should have expired. BUT, there have been numerous cases where no queries timed out, no SQLExceptions were thrown and yet there are hundreds of lingering threads.
    I am hoping your colleague may be able to shed some light. I will try to create a small test case but it may be too long to post here. Any change I could get an email address to send directly to? thanks.

  • SCSM Grooming failed

    Hi,
    With many Incidents in SCSM DB (Above 200000 Incidents) I start receiving the below error:
    Event ID: 10880
    Service Manager CMDB Grooming failed.
     Grooming Type: Entity
     The following error was encountered:
     Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
    And some of the SQL Grooming jobs has Status ID of Null
    Any one face such problem and how to resolve it.
    Regards
    Antoine AL Ibry

    Hi Antoine,
    Check this :
    http://blogs.technet.com/b/mihai/archive/2012/12/12/how-to-manually-execute-workitem-grooming-in-service-manager.aspx
    There are situations where Grooming for some or all WorkItem types may fail because of the fact that there are just too many entries to delete and the job takes more than 30 minutes (Workflow TimeOut) to complete. This may happen in some situations
    but the most common one is where the default grooming settings for the different WorkItems was changed and set too high for the environment to handle.
    In these situations you might need to manually run the Grooming Workflow (SQL Stored Procedure) for all or some WorkItems types.
    Remy BOVI

  • Actiontec GT704WG has two flaws

    I look at the list of posts on this board and wonder if Verizon cares.  It seems to me they have a monopoly so they have no concern about the quality (are lack of) of the service they provide.
    I too entered a period where my DSL service had frequent problems.  Eventually we discovered there were three problems.  Two of them are with the design of the ActionTec GT704WG modem.
    1. The modem records DNS request information in its own internal log.  Every DNS request is captured, then relayed after it is logged.  If the modem is under heavy use, such as during a download, it cannot handle the load the the relaying of the DNS request is delayed so long that it times out.  So any DNS requests during a download fail.
    2. The modem does not unders IPv6.  So IPv6 querires are ignored.  Anysoftware making IPv^ queries has to wait for those queries to timeout, causing sluggish performance.
    So I requested Verizon provide me with a wrieless modem other than the Actiontec GT704WG.  They responded that is the only type of modem they can provide.  I have a problem, I know the solution (give me a Westell wireless modem), and Verizon refuses to solve it. 
    I wonder if the high-level executives understand care about things like this.  If I was a high ranking executive in verizon, I would be embarassed.

    "Us" is us here on this forum. We are not all Verizon employees.  Well, at least I'm not.
    And I charge $180/hr so you owe me already.

  • EXP-00056: ORACLE error 4021 encountered ORA-04021: timeout occurred while

    hi all oracle gurus ,
    i have this problem which i am facing its like this.i have a batch file that runs export every night one week back it was all okay .few days back when i looked the log files it gives me this error ---EXP-00056: ORACLE error 4021 encountered
    ORA-04021: timeout occurred while waiting to lock object
    what should i do this is a production database runing in windows platform and there is no backup pls help me .....
    export log file -------
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user PILOT
    . exporting foreign function library names for user FINANCE
    . exporting foreign function library names for user MBCNEWS
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user PILOT
    . exporting object type definitions for user FINANCE
    . exporting object type definitions for user MBCNEWS
    About to export PILOT's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    EXP-00056: ORACLE error 4021 encountered
    ORA-04021: timeout occurred while waiting to lock object
    ORA-06512: at "SYS.DBMS_METADATA", line 1511
    ORA-06512: at "SYS.DBMS_METADATA", line 1548
    ORA-06512: at "SYS.DBMS_METADATA", line 1864
    ORA-06512: at "SYS.DBMS_METADATA", line 3707
    ORA-06512: at "SYS.DBMS_METADATA", line 3689
    ORA-06512: at line 1
    EXP-00000: Export terminated unsuccessfully
    robyav

    this is a production database runing in windows platform and there is no backup
    what should iWell first of all you should stop using EXP for backups, it's quite unsuitable, and start using RMAN instead. Find out more.
    If you have a Metalink account you shoudl read Note:298968.1. But teh headline is there is a bug in 10gR1 which is fixed in 10gR2. This may not help you much. The workaround is to try running the export again later, which may not be any more helpful.
    Cheers, APC

  • Hung queries, and Oracle thin driver query timeout implementation

    We are seeing occasional instances of stuck threads, where the code is in Oracle thin XA driver code waiting for a socket read for a response from the database. Usually only one thread at a time. The connection never terminates and we have to shut down WebLogic to clear it. The DBAs tell us that all connections to the 11g RAC cluster members from our hosts are idle, with no hung or long-running transactions.
    This happens every few days across two WebLogic 10.3.5 clustered instances in our QA environment, usually not the same time on two servers (one had four incidents, the other had only one, in the last 15 or so days). Sometimes it has resulted in a hung server, as the driver is holding a lock that blocks other threads (today we had numerous threads block in a TX rollback).
    I'm guessing our WebLogic instance somehow is not getting the connection close from the remote host. BTW, there is no firewall between us and the DB. I have not got any strong suspect for the cause (although we are running Linux on a VMWare 4.0 VM, which always worries me).
    Ordinarily I'd either ask the application to set a query timeout, or set the query timeout parameter for the connection pools as a workaround (we are using a MultiDatasource), so the transaction would at least abort and the application can handle it. However, while the Oracle driver does support java.sql.Statement.setQueryTimeout(), some brief investigation on my part leads me to believe the timeout is implemented on the server side and not the client side - so that if it is indeed the case that WebLogic does not see the close on the connection, it also would never see the timeout.
    Two questions:
    1. Is my suspicion about server-side implementation of timeout for Oracle 11g correct?
    2. If so, is there some property I can set for the driver that will implement a socket timeout? Is this "safe"?
    Thanks for any help!
    [ Oracle WebLogic 10.3.5, HotSpot 64 bit JVM 1.6.0_29 on RHEL 5.6 on VMWare; Oracle Thin XA driver bundled with WebLogic; Oracle RAC 11g (three-node cluster)]
    Edited by: SteveElkind on Dec 3, 2012 5:25 AM

    Thanks, Joe.
    My investigations were heading in this direction (e.g., http://docs.oracle.com/cd/B28359_01/java.111/b31224/apxtblsh.htm#CHDBBDDA). However, for WebLogic, is it as simple as adding the following property in the Datasource Connection properties edit box in the WebLogic console?
    oracle.net.READ_TIMEOUT=300000
    or do I have to edit the connection URL?
    I've tried this, and the Datasource restarts OK after the change, but I have no way right now to check whether it actually "works".
    (we have some long-running queries; five minutes seems to be a "safe" limita for now)

  • Errors encountered in queries

    what types of error encountered while transfering my BW 3.5 version Queries to BI -7 environment?

    Check the message in the Log NQServer.log located in OracleBI_HOME\server\Log directory. You will have a lot of more informations.
    You have some constraints on aggregate :
    http://download.oracle.com/docs/cd/E12096_01/books/admintool/admintool_QueryCaching11.html#wp1028087
    Regards
    Nico

  • How to extend the timeout for long running queries

    I unfortunately have a query that needs to run for 2 hours (long story) to load a year's worth of data into PowerPivot (RTM).  PowerPivot stops with an error after running for 1 hour.  I tried changing the "General Timeout" setting from 0 to 28800
    (8 hours) in the SQL conneciton settings (native client 10.0) and I also managed to get the server owner to increase the "Query Timeout" setting in the SQL Server's Connections dialog but PowerPivot still errors out after 1 hr.  
    A workaround will be to use SSIS to run the query and store the result in another database but I'd rather not do that if I don't have to.
    Error Message
    The refresh operation failed because the source data base or the table does not exist, or because you do not have access to the source
    More Details:
    OLE DB or ODBC error: Query timeout expired; HYT00.
    An error occurred while processing the 'XXXX' table.
    The operation has been cancelled.
    Is there any other place where the timeout can be set or controlled that I've missed?

    Try 
    1) Setting "ExternalCommandTimeout" in the server configuration file (msmdsrv.ini) to a multiple of seconds you want (in this case >7200, by default it is 3600(1hr)).
    2) Restart the server.
    3) Refresh the data.
    Please let me know, if this doesn't work.

Maybe you are looking for

  • HT204053 how can i delete an old account. I forgot that accounts password.

    I need to delete an old account, i forgot the password to that account.

  • SAP HR- Project Preparation- ECC6

    Hi Gurus, Please can you help. My company already have ecc5, and now want to upgrade to Ecc6. What issues do I have to look into for this? technical and business minded. Will the be anything to consider, discuss, change? I am a junior, and have been

  • Uploading photos from browser to an existing Web Gallery

    Hi: This question is related with this thread: http://discussions.apple.com/thread.jspa?threadID=1077164&tstart=15 but I fell that not receiving the right answer because the topic doesn't describe the problem fine. I uploaded a web gallery from iPhot

  • When playing music through iTunes, it no longer starts at a random song.

    I have it set to shuffle and it used to start with a random song.  Now, it always starts with the first song in my library. I prefer the random start, but after the last update, it no longer does it.  Can I change this in a setting or something??

  • Classic and iCab

    Dear Angels, This is a repost of my topic from imac CRT: Taking baby steps now, I have two working browsers. One is iCab and the other is IE. I am on iCab now. With the help of a reply to my previous topic, this is my problem: 1. When I click on iCab