Query taking longer to execute the second time.

Hello,
I have a query joing few tables and views and when i execute it the first them, it executes within a seconds, immediately if i execute it the second time it takes about 40 seconds to execute. I am using Oracle 11g [11.2.0.1.0].
Please find the TKPROF output.
call     count       cpu    elapsed       disk      query    current        rows
Parse        1      0.26       0.24          0          0          0           0
Execute      1      0.00       0.00          0          0          0           0
Fetch       23      0.81       0.82          0       5610          0         326
total       25      1.07       1.07          0       5610          0         326
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 127
call     count       cpu    elapsed       disk      query    current        rows
Parse        1      0.23       0.23          0          0          0           0
Execute      1      0.00       0.00          0          0          0           0
Fetch       23     41.01      41.00          0      38218          0         326
total       25     41.24      41.24          0      38218          0         326
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 127 

Hi Nicholay,
VPD is not being used in our application. ArcSDE Multi-Versionsed View uses some functions in VW_ objects. In Oracle 10g I dont have this issue.
Here is the output from V$SQL_SHARED_CURSOR.
"SQL_ID"                      "ADDRESS"                     "CHILD_ADDRESS"               "CHILD_NUMBER"                "UNBOUND_CURSOR"              "SQL_TYPE_MISMATCH"           "OPTIMIZER_MISMATCH"          "OUTLINE_MISMATCH"            "STATS_ROW_MISMATCH"          "LITERAL_MISMATCH"            "FORCE_HARD_PARSE"            "EXPLAIN_PLAN_CURSOR"         "BUFFERED_DML_MISMATCH"       "PDML_ENV_MISMATCH"           "INST_DRTLD_MISMATCH"         "SLAVE_QC_MISMATCH"           "TYPECHECK_MISMATCH"          "AUTH_CHECK_MISMATCH"         "BIND_MISMATCH"               "DESCRIBE_MISMATCH"           "LANGUAGE_MISMATCH"           "TRANSLATION_MISMATCH"        "BIND_EQUIV_FAILURE"          "INSUFF_PRIVS"                "INSUFF_PRIVS_REM"            "REMOTE_TRANS_MISMATCH"       "LOGMINER_SESSION_MISMATCH"   "INCOMP_LTRL_MISMATCH"        "OVERLAP_TIME_MISMATCH"       "EDITION_MISMATCH"            "MV_QUERY_GEN_MISMATCH"       "USER_BIND_PEEK_MISMATCH"     "TYPCHK_DEP_MISMATCH"         "NO_TRIGGER_MISMATCH"         "FLASHBACK_CURSOR"            "ANYDATA_TRANSFORMATION"      "INCOMPLETE_CURSOR"           "TOP_LEVEL_RPI_CURSOR"        "DIFFERENT_LONG_LENGTH"       "LOGICAL_STANDBY_APPLY"       "DIFF_CALL_DURN"              "BIND_UACS_DIFF"              "PLSQL_CMP_SWITCHS_DIFF"      "CURSOR_PARTS_MISMATCH"       "STB_OBJECT_MISMATCH"         "CROSSEDITION_TRIGGER_MISMATCH""PQ_SLAVE_MISMATCH"           "TOP_LEVEL_DDL_MISMATCH"      "MULTI_PX_MISMATCH"           "BIND_PEEKED_PQ_MISMATCH"     "MV_REWRITE_MISMATCH"         "ROLL_INVALID_MISMATCH"       "OPTIMIZER_MODE_MISMATCH"     "PX_MISMATCH"                 "MV_STALEOBJ_MISMATCH"        "FLASHBACK_TABLE_MISMATCH"    "LITREP_COMP_MISMATCH"        "PLSQL_DEBUG"                 "LOAD_OPTIMIZER_STATS"        "ACL_MISMATCH"                "FLASHBACK_ARCHIVE_MISMATCH"  "LOCK_USER_SCHEMA_FAILED"     "REMOTE_MAPPING_MISMATCH"     "LOAD_RUNTIME_HEAP_FAILED"    "HASH_MATCH_FAILED"           "PURGED_CURSOR"               "BIND_LENGTH_UPGRADEABLE"    
"7rtqvjtyp06k9"               "000007FFABD3A918"            "000007FFABD49C88"            "1"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                          
"7rtqvjtyp06k9"               "000007FFABD3A918"            "000007FFABD3A7B8"            "0"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                          
"7rtqvjtyp06k9"               "000007FFABD3A918"            "000007FFABD46A40"            "2"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                          
"7rtqvjtyp06k9"               "000007FFABD3A918"            "000007FFABD3A7B8"            "0"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                          
"7rtqvjtyp06k9"               "000007FFABD3A918"            "000007FFABD49C88"            "1"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                          
"7rtqvjtyp06k9"               "000007FFABD3A918"            "000007FFABD46A40"            "2"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                          
"7rtqvjtyp06k9"               "000007FFABD3A918"            "000007FFABD3A7B8"            "0"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                          
"7rtqvjtyp06k9"               "000007FFABD3A918"            "000007FFABD49C88"            "1"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                          
"7rtqvjtyp06k9"               "000007FFABD3A918"            "000007FFABD46A40"            "2"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           "N"                           Edited by: 955237 on 29 Aug, 2012 1:57 AM

Similar Messages

  • Query taking long to execute

    Hello
    One of my report taking long to execute. i have range base partition on table and indexes by month. following are the details
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Oct 7 13:41:04 2011
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Enter user-name: sys as sysdba
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> show parameter optimizer;
    NAME                                 TYPE        VALUE
    optimizer_capture_sql_plan_baselines boolean     FALSE
    optimizer_dynamic_sampling           integer     2
    optimizer_features_enable            string      11.2.0.1
    optimizer_index_caching              integer     0
    optimizer_index_cost_adj             integer     10
    optimizer_mode                       string      ALL_ROWS
    optimizer_secure_view_merging        boolean     TRUE
    optimizer_use_invisible_indexes      boolean     FALSE
    optimizer_use_pending_statistics     boolean     FALSE
    optimizer_use_sql_plan_baselines     boolean     TRUE
    SQL> show parameter db_file_multi
    NAME                                 TYPE        VALUE
    db_file_multiblock_read_count        integer     64
    SQL> show parameter db_block_size
    NAME                                 TYPE        VALUE
    db_block_size                        integer     16384
    SQL> show parameter cursor_sharing
    NAME                                 TYPE        VALUE
    cursor_sharing                       string      EXACT
    SQL>
    SNAME                          PNAME                          PVAL1                  PVAL2                                                                                                                                                                                                                                                          
    SYSSTATS_INFO                  STATUS                                                AUTOGATHERING                                                                                                                                                                                                                                                  
    SYSSTATS_INFO                  DSTART                                                10-07-2011 14:12                                                                                                                                                                                                                                               
    SYSSTATS_INFO                  DSTOP                                                 10-07-2011 14:42                                                                                                                                                                                                                                               
    SYSSTATS_INFO                  FLAGS                          0                                                                                                                                                                                                                                                                                     
    SYSSTATS_MAIN                  CPUSPEEDNW                     2526.08695652174                                                                                                                                                                                                                                                                      
    SYSSTATS_MAIN                  IOSEEKTIM                      10                                                                                                                                                                                                                                                                                    
    SYSSTATS_MAIN                  IOTFRSPEED                     4096                                                                                                                                                                                                                                                                                  
    SYSSTATS_MAIN                  SREADTIM                                                                                                                                                                                                                                                                                                             
    SYSSTATS_MAIN                  MREADTIM                                                                                                                                                                                                                                                                                                             
    SYSSTATS_MAIN                  CPUSPEED                                                                                                                                                                                                                                                                                                             
    SYSSTATS_MAIN                  MBRC                                                                                                                                                                                                                                                                                                                 
    SYSSTATS_MAIN                  MAXTHR                                                                                                                                                                                                                                                                                                               
    SYSSTATS_MAIN                  SLAVETHR                                                                                                                                                                                                                                                                                                             
    SYSSTATS_TEMP                  SBLKRDS                        640991392                                                                                                                                                                                                                                                                             
    SYSSTATS_TEMP                  SBLKRDTIM                      23353628654370                                                                                                                                                                                                                                                                        
    SYSSTATS_TEMP                  MBLKRDS                        128258266                                                                                                                                                                                                                                                                             
    SYSSTATS_TEMP                  MBLKRDTIM                      6812382430610                                                                                                                                                                                                                                                                         
    SYSSTATS_TEMP                  CPUCYCLES                      75032664                                                                                                                                                                                                                                                                              
    SYSSTATS_TEMP                  CPUTIM                         29682662                                                                                                                                                                                                                                                                              
    SYSSTATS_TEMP                  JOB                            12769                                                                                                                                                                                                                                                                                 
    SYSSTATS_TEMP                  CACHE_JOB                      12770                                                                                                                                                                                                                                                                                 
    SYSSTATS_TEMP                  MBRTOTAL                       3373935275                                                                                                                                                                                                                                                                            
    22 rows selected Any help or suggestion to improve its performance ?

    Execution plan is
    PLAN_TABLE_OUTPUT                                                                                                                                                                                                                                                                                           
    Plan hash value: 2727856908                                                                                                                                                                                                                                                                                 
    | Id  | Operation                                                    | Name                  | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |    TQ  |IN-OUT| PQ Distrib |                                                                                                                         
    |   0 | SELECT STATEMENT                                             |                       |     1 |  1183 |   138K  (1)| 00:32:21 |       |       |        |      |            |                                                                                                                         
    |*  1 |  COUNT STOPKEY                                               |                       |       |       |            |          |       |       |        |      |            |                                                                                                                         
    |   2 |   PX COORDINATOR                                             |                       |       |       |            |          |       |       |        |      |            |                                                                                                                         
    |   3 |    PX SEND QC (ORDER)                                        | :TQ10008              |     1 |  1183 |   138K  (1)| 00:32:21 |       |       |  Q1,08 | P->S | QC (ORDER) |                                                                                                                         
    |   4 |     VIEW                                                     |                       |     1 |  1183 |   138K  (1)| 00:32:21 |       |       |  Q1,08 | PCWP |            |                                                                                                                         
    |*  5 |      SORT ORDER BY STOPKEY                                   |                       |     1 |   400 |   138K  (1)| 00:32:21 |       |       |  Q1,08 | PCWP |            |                                                                                                                         
    |   6 |       PX RECEIVE                                             |                       |     1 |  1183 |            |          |       |       |  Q1,08 | PCWP |            |                                                                                                                         
    |   7 |        PX SEND RANGE                                         | :TQ10007              |     1 |  1183 |            |          |       |       |  Q1,07 | P->P | RANGE      |                                                                                                                         
    |*  8 |         SORT ORDER BY STOPKEY                                |                       |     1 |  1183 |            |          |       |       |  Q1,07 | PCWP |            |                                                                                                                         
    |   9 |          NESTED LOOPS                                        |                       |       |       |            |          |       |       |  Q1,07 | PCWP |            |                                                                                                                         
    |  10 |           NESTED LOOPS                                       |                       |     1 |   400 |   138K  (1)| 00:32:21 |       |       |  Q1,07 | PCWP |            |                                                                                                                         
    |  11 |            NESTED LOOPS                                      |                       |     1 |   377 |   138K  (1)| 00:32:21 |       |       |  Q1,07 | PCWP |            |                                                                                                                         
    |  12 |             NESTED LOOPS                                     |                       |     1 |   341 |   138K  (1)| 00:32:21 |       |       |  Q1,07 | PCWP |            |                                                                                                                         
    |* 13 |              HASH JOIN                                       |                       |     1 |   324 |   138K  (1)| 00:32:21 |       |       |  Q1,07 | PCWP |            |                                                                                                                         
    |  14 |               PX RECEIVE                                     |                       |     1 |   289 |   123K  (1)| 00:28:53 |       |       |  Q1,07 | PCWP |            |                                                                                                                         
    |  15 |                PX SEND BROADCAST                             | :TQ10006              |     1 |   289 |   123K  (1)| 00:28:53 |       |       |  Q1,06 | P->P | BROADCAST  |                                                                                                                         
    |* 16 |                 HASH JOIN                                    |                       |     1 |   289 |   123K  (1)| 00:28:53 |       |       |  Q1,06 | PCWP |            |                                                                                                                         
    |  17 |                  PX RECEIVE                                  |                       |     4 |  1016 |   123K  (1)| 00:28:51 |       |       |  Q1,06 | PCWP |            |                                                                                                                         
    |  18 |                   PX SEND BROADCAST                          | :TQ10005              |     4 |  1016 |   123K  (1)| 00:28:51 |       |       |  Q1,05 | P->P | BROADCAST  |                                                                                                                         
    |* 19 |                    HASH JOIN OUTER BUFFERED                  |                       |     4 |  1016 |   123K  (1)| 00:28:51 |       |       |  Q1,05 | PCWP |            |                                                                                                                         
    |  20 |                     PX RECEIVE                               |                       |       |       |            |          |       |       |  Q1,05 | PCWP |            |                                                                                                                         
    |  21 |                      PX SEND HASH                            | :TQ10003              |       |       |            |          |       |       |  Q1,03 | P->P | HASH       |                                                                                                                         
    |  22 |                       NESTED LOOPS                           |                       |       |       |            |          |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  23 |                        NESTED LOOPS                          |                       |     4 |   892 |   123K  (1)| 00:28:51 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  24 |                         NESTED LOOPS                         |                       |     6 |   948 |   123K  (1)| 00:28:51 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  25 |                          NESTED LOOPS                        |                       |     7 |  1043 |   123K  (1)| 00:28:51 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |* 26 |                           HASH JOIN                          |                       |  5784 |   728K|   118K  (1)| 00:27:45 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  27 |                            PX RECEIVE                        |                       |   667K|    26M| 11597   (1)| 00:02:43 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  28 |                             PX SEND BROADCAST                | :TQ10000              |   667K|    26M| 11597   (1)| 00:02:43 |       |       |  Q1,00 | P->P | BROADCAST  |                                                                                                                         
    |  29 |                              PX PARTITION RANGE ALL          |                       |   667K|    26M| 11597   (1)| 00:02:43 |     1 |    14 |  Q1,00 | PCWC |            |                                                                                                                         
    |  30 | WID                           TABLE ACCESS BY LOCAL INDEX RO | PAH01V1_DG1           |   667K|    26M| 11597   (1)| 00:02:43 |     1 |    14 |  Q1,00 | PCWP |            |                                                                                                                         
    |  31 |                                BITMAP CONVERSION TO ROWIDS   |                       |       |       |            |          |       |       |  Q1,00 | PCWP |            |                                                                                                                         
    |* 32 |                                 BITMAP INDEX SINGLE VALUE    | MINDX_PAH01V1_DG1_14  |       |       |            |          |     1 |    14 |  Q1,00 | PCWP |            |                                                                                                                         
    |* 33 |                            HASH JOIN                         |                       |  1826K|   151M|   107K  (1)| 00:25:03 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  34 |                             PX RECEIVE                       |                       |  2682 | 18774 |    58   (0)| 00:00:01 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  35 |                              PX SEND BROADCAST               | :TQ10001              |  2682 | 18774 |    58   (0)| 00:00:01 |       |       |  Q1,01 | P->P | BROADCAST  |                                                                                                                         
    |  36 |                               PX BLOCK ITERATOR              |                       |  2682 | 18774 |    58   (0)| 00:00:01 |     1 |    14 |  Q1,01 | PCWC |            |                                                                                                                         
    |  37 |                                TABLE ACCESS FULL             | PAH01V1_DG3           |  2682 | 18774 |    58   (0)| 00:00:01 |     1 |    14 |  Q1,01 | PCWP |            |                                                                                                                         
    |* 38 |                             HASH JOIN                        |                       |  2409K|   183M|   107K  (1)| 00:25:02 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  39 |                              PX RECEIVE                      |                       |   476K|    19M|  5904   (1)| 00:01:23 |       |       |  Q1,03 | PCWP |            |                                                                                                                         
    |  40 |                               PX SEND BROADCAST              | :TQ10002              |   476K|    19M|  5904   (1)| 00:01:23 |       |       |  Q1,02 | P->P | BROADCAST  |                                                                                                                         
    |  41 |                                PX PARTITION RANGE ALL        |                       |   476K|    19M|  5904   (1)| 00:01:23 |     1 |    14 |  Q1,02 | PCWC |            |                                                                                                                         
    |  42 | ROWID                           TABLE ACCESS BY LOCAL INDEX  | PAH01V1_DG5           |   476K|    19M|  5904   (1)| 00:01:23 |     1 |    14 |  Q1,02 | PCWP |            |                                                                                                                         
    |  43 |                                  BITMAP CONVERSION TO ROWIDS |                       |       |       |            |          |       |       |  Q1,02 | PCWP |            |                                                                                                                         
    |  44 |                                   BITMAP MINUS               |                       |       |       |            |          |       |       |  Q1,02 | PCWP |            |                                                                                                                         
    |  45 |                                    BITMAP MINUS              |                       |       |       |            |          |       |       |  Q1,02 | PCWP |            |                                                                                                                         
    |  46 |                                     BITMAP MERGE             |                       |       |       |            |          |       |       |  Q1,02 | PCWP |            |                                                                                                                         
    |  47 |                                      BITMAP INDEX FULL SCAN  | MINDX_PAH01V1_DG517   |       |       |            |          |     1 |    14 |  Q1,02 | PCWP |            |                                                                                                                         
    |* 48 | E                                   BITMAP INDEX SINGLE VALU | MINDX_PAH01V1_DG5_3   |       |       |            |          |     1 |    14 |  Q1,02 | PCWP |            |                                                                                                                         
    |* 49 |                                    BITMAP INDEX SINGLE VALUE | MINDX_PAH01V1_DG5_3   |       |       |            |          |     1 |    14 |  Q1,02 | PCWP |            |                                                                                                                         
    |  50 |                              PX BLOCK ITERATOR               |                       |   275M|     9G|   101K  (1)| 00:23:37 |     1 |    14 |  Q1,03 | PCWC |            |                                                                                                                         
    |* 51 |                               TABLE ACCESS FULL              | PAH01V1_JT            |   275M|     9G|   101K  (1)| 00:23:37 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |  52 |                           PARTITION RANGE ALL                |                       |     1 |    20 |     1   (0)| 00:00:01 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |* 53 |                            TABLE ACCESS BY LOCAL INDEX ROWID | PAH01V1_DG2           |     1 |    20 |     1   (0)| 00:00:01 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |* 54 |                             INDEX RANGE SCAN                 | PKINDX_PAH01V1_DG2_28 |     1 |       |     1   (0)| 00:00:01 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |  55 |                          PARTITION RANGE ALL                 |                       |     1 |     9 |     0   (0)| 00:00:01 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |  56 |                           TABLE ACCESS BY LOCAL INDEX ROWID  | PAH01V1_DG4           |     1 |     9 |     0   (0)| 00:00:01 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |* 57 |                            INDEX RANGE SCAN                  | PKINDX_PAH01V1_DG4    |     1 |       |     0   (0)| 00:00:01 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |  58 |                         PARTITION RANGE ALL                  |                       |     1 |       |     1   (0)| 00:00:01 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |* 59 |                          INDEX RANGE SCAN                    | PKINDX_PAH01V1_DG0    |     1 |       |     1   (0)| 00:00:01 |     1 |    14 |  Q1,03 | PCWP |            |                                                                                                                         
    |  60 |                        TABLE ACCESS BY LOCAL INDEX ROWID     | PAH01V1_DG0           |     1 |    65 |     1   (0)| 00:00:01 |     1 |     1 |  Q1,03 | PCWP |            |                                                                                                                         
    |  61 |                     PX RECEIVE                               |                       |   296 |  9176 |     2   (0)| 00:00:01 |       |       |  Q1,05 | PCWP |            |                                                                                                                         
    |  62 |                      PX SEND HASH                            | :TQ10004              |   296 |  9176 |     2   (0)| 00:00:01 |       |       |  Q1,04 | P->P | HASH       |                                                                                                                         
    |  63 |                       PX BLOCK ITERATOR                      |                       |   296 |  9176 |     2   (0)| 00:00:01 |       |       |  Q1,04 | PCWC |            |                                                                                                                         
    |  64 |                        TABLE ACCESS FULL                     | PAH01V1_STORE_LKP     |   296 |  9176 |     2   (0)| 00:00:01 |       |       |  Q1,04 | PCWP |            |                                                                                                                         
    |  65 |                  PX PARTITION RANGE ITERATOR                 |                       |  1571K|    52M|   167   (1)| 00:00:03 |   KEY |    14 |  Q1,06 | PCWC |            |                                                                                                                         
    |  66 |                   TABLE ACCESS BY LOCAL INDEX ROWID          | PAH01V1_DG0           |  1571K|    52M|   167   (1)| 00:00:03 |   KEY |    14 |  Q1,06 | PCWP |            |                                                                                                                         
    |  67 |                    BITMAP CONVERSION TO ROWIDS               |                       |       |       |            |          |       |       |  Q1,06 | PCWP |            |                                                                                                                         
    |  68 |                     BITMAP AND                               |                       |       |       |            |          |       |       |  Q1,06 | PCWP |            |                                                                                                                         
    |  69 |                      BITMAP MERGE                            |                       |       |       |            |          |       |       |  Q1,06 | PCWP |            |                                                                                                                         
    |* 70 |                       BITMAP INDEX RANGE SCAN                | MINDX_PAH01V1_DG022   |       |       |            |          |   KEY |    14 |  Q1,06 | PCWP |            |                                                                                                                         
    |  71 |                      BITMAP MERGE                            |                       |       |       |            |          |       |       |  Q1,06 | PCWP |            |                                                                                                                         
    |* 72 |                       BITMAP INDEX RANGE SCAN                | MINDX_PAH01V1_DG0_8   |       |       |            |          |   KEY |    14 |  Q1,06 | PCWP |            |                                                                                                                         
    |  73 |               PX PARTITION RANGE ITERATOR                    |                       |  2594K|    86M| 14858   (1)| 00:03:29 |   KEY |    14 |  Q1,07 | PCWC |            |                                                                                                                         
    |  74 |                TABLE ACCESS BY LOCAL INDEX ROWID             | PAH01V1_JT            |  2594K|    86M| 14858   (1)| 00:03:29 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |  75 |                 BITMAP CONVERSION TO ROWIDS                  |                       |       |       |            |          |       |       |  Q1,07 | PCWP |            |                                                                                                                         
    |* 76 |                  BITMAP INDEX RANGE SCAN                     | MINDX_PAH01V1_JT_PF_  |       |       |            |          |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |  77 |              PARTITION RANGE ITERATOR                        |                       |     1 |    17 |     1   (0)| 00:00:01 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |* 78 |               TABLE ACCESS BY LOCAL INDEX ROWID              | PAH01V1_DG2           |     1 |    17 |     1   (0)| 00:00:01 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |* 79 |                INDEX RANGE SCAN                              | PKINDX_PAH01V1_DG2_28 |     1 |       |     1   (0)| 00:00:01 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |  80 |             PARTITION RANGE ITERATOR                         |                       |     1 |    36 |     1   (0)| 00:00:01 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |  81 |              TABLE ACCESS BY LOCAL INDEX ROWID               | PAH01V1_DG5           |     1 |    36 |     1   (0)| 00:00:01 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |* 82 |               INDEX RANGE SCAN                               | PKINDX_PAH01V1_DG5_18 |     1 |       |     1   (0)| 00:00:01 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |  83 |            PARTITION RANGE ITERATOR                          |                       |     1 |       |     1   (0)| 00:00:01 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |* 84 |             INDEX RANGE SCAN                                 | PKINDX_PAH01V1_DG1_22 |     1 |       |     1   (0)| 00:00:01 |   KEY |    14 |  Q1,07 | PCWP |            |                                                                                                                         
    |* 85 |           TABLE ACCESS BY LOCAL INDEX ROWID                  | PAH01V1_DG1           |     1 |    23 |     1   (0)| 00:00:01 |     1 |     1 |  Q1,07 | PCWP |            |                                                                                                                         
    135 rows selected

  • Query taking long time for EXTRACTING the data more than 24 hours

    Hi ,
    Query taking long time for EXTRACTING the data more than 24 hours please find the query and explain plan details below even indexes avilable on table's goe's to FULL TABLE SCAN. please suggest me.......
    SQL> explain plan for select a.account_id,round(a.account_balance,2) account_balance,
    2 nvl(ah.invoice_id,ah.adjustment_id) transaction_id,
    to_char(ah.effective_start_date,'DD-MON-YYYY') transaction_date,
    to_char(nvl(i.payment_due_date,
    to_date('30-12-9999','dd-mm-yyyy')),'DD-MON-YYYY')
    due_date, ah.current_balance-ah.previous_balance amount,
    decode(ah.invoice_id,null,'A','I') transaction_type
    3 4 5 6 7 8 from account a,account_history ah,invoice i_+
    where a.account_id=ah.account_id
    and a.account_type_id=1000002
    and round(a.account_balance,2) > 0
    and (ah.invoice_id is not null or ah.adjustment_id is not null)
    and ah.CURRENT_BALANCE > ah.previous_balance
    and ah.invoice_id=i.invoice_id(+)
    AND a.account_balance > 0
    order by a.account_id,ah.effective_start_date desc; 9 10 11 12 13 14 15 16
    Explained.
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)|
    | 0 | SELECT STATEMENT | | 544K| 30M| | 693K (20)|
    | 1 | SORT ORDER BY | | 544K| 30M| 75M| 693K (20)|
    |* 2 | HASH JOIN | | 544K| 30M| | 689K (20)|
    |* 3 | TABLE ACCESS FULL | ACCOUNT | 20080 | 294K| | 6220 (18)|
    |* 4 | HASH JOIN OUTER | | 131M| 5532M| 5155M| 678K (20)|
    |* 5 | TABLE ACCESS FULL| ACCOUNT_HISTORY | 131M| 3646M| | 197K (25)|
    | 6 | TABLE ACCESS FULL| INVOICE | 262M| 3758M| | 306K (18)|
    Predicate Information (identified by operation id):
    2 - access("A"."ACCOUNT_ID"="AH"."ACCOUNT_ID")
    3 - filter("A"."ACCOUNT_TYPE_ID"=1000002 AND "A"."ACCOUNT_BALANCE">0 AND
    ROUND("A"."ACCOUNT_BALANCE",2)>0)
    4 - access("AH"."INVOICE_ID"="I"."INVOICE_ID"(+))
    5 - filter("AH"."CURRENT_BALANCE">"AH"."PREVIOUS_BALANCE" AND ("AH"."INVOICE_ID"
    IS NOT NULL OR "AH"."ADJUSTMENT_ID" IS NOT NULL))
    22 rows selected.
    Index Details:+_
    SQL> select INDEX_OWNER,INDEX_NAME,COLUMN_NAME,TABLE_NAME from dba_ind_columns where
    2 table_name in ('INVOICE','ACCOUNT','ACCOUNT_HISTORY') order by 4;
    INDEX_OWNER INDEX_NAME COLUMN_NAME TABLE_NAME
    OPS$SVM_SRV4 P_ACCOUNT ACCOUNT_ID ACCOUNT
    OPS$SVM_SRV4 U_ACCOUNT_NAME ACCOUNT_NAME ACCOUNT
    OPS$SVM_SRV4 U_ACCOUNT CUSTOMER_NODE_ID ACCOUNT
    OPS$SVM_SRV4 U_ACCOUNT ACCOUNT_TYPE_ID ACCOUNT
    OPS$SVM_SRV4 I_ACCOUNT_ACCOUNT_TYPE ACCOUNT_TYPE_ID ACCOUNT
    OPS$SVM_SRV4 I_ACCOUNT_INVOICE INVOICE_ID ACCOUNT
    OPS$SVM_SRV4 I_ACCOUNT_PREVIOUS_INVOICE PREVIOUS_INVOICE_ID ACCOUNT
    OPS$SVM_SRV4 U_ACCOUNT_NAME_ID ACCOUNT_NAME ACCOUNT
    OPS$SVM_SRV4 U_ACCOUNT_NAME_ID ACCOUNT_ID ACCOUNT
    OPS$SVM_SRV4 I_LAST_MODIFIED_ACCOUNT LAST_MODIFIED ACCOUNT
    OPS$SVM_SRV4 I_ACCOUNT_INVOICE_ACCOUNT INVOICE_ACCOUNT_ID ACCOUNT
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_ACCOUNT ACCOUNT_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_ACCOUNT SEQNR ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_INVOICE INVOICE_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_ADINV INVOICE_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_CIA CURRENT_BALANCE ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_CIA INVOICE_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_CIA ADJUSTMENT_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_CIA ACCOUNT_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_LMOD LAST_MODIFIED ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_ADINV ADJUSTMENT_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_PAYMENT PAYMENT_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_ADJUSTMENT ADJUSTMENT_ID ACCOUNT_HISTORY
    OPS$SVM_SRV4 I_ACCOUNT_HISTORY_APPLIED_DT APPLIED_DATE ACCOUNT_HISTORY
    OPS$SVM_SRV4 P_INVOICE INVOICE_ID INVOICE
    OPS$SVM_SRV4 U_INVOICE CUSTOMER_INVOICE_STR INVOICE
    OPS$SVM_SRV4 I_LAST_MODIFIED_INVOICE LAST_MODIFIED INVOICE
    OPS$SVM_SRV4 U_INVOICE_ACCOUNT ACCOUNT_ID INVOICE
    OPS$SVM_SRV4 U_INVOICE_ACCOUNT BILL_RUN_ID INVOICE
    OPS$SVM_SRV4 I_INVOICE_BILL_RUN BILL_RUN_ID INVOICE
    OPS$SVM_SRV4 I_INVOICE_INVOICE_TYPE INVOICE_TYPE_ID INVOICE
    OPS$SVM_SRV4 I_INVOICE_CUSTOMER_NODE CUSTOMER_NODE_ID INVOICE
    32 rows selected.
    Regards,
    Bathula
    Oracle-DBA

    I have some suggestions. But first, you realize that you have some redundant indexes, right? You have an index on account(account_name) and also account(account_name, account_id), and also account_history(invoice_id) and account_history(invoice_id, adjustment_id). No matter, I will suggest some new composite indexes.
    Also, you do not need two lines for these conditions:
    and round(a.account_balance, 2) > 0
    AND a.account_balance > 0
    You can just use: and a.account_balance >= 0.005
    So the formatted query isselect a.account_id,
           round(a.account_balance, 2) account_balance,
           nvl(ah.invoice_id, ah.adjustment_id) transaction_id,
           to_char(ah.effective_start_date, 'DD-MON-YYYY') transaction_date,
           to_char(nvl(i.payment_due_date, to_date('30-12-9999', 'dd-mm-yyyy')),
                   'DD-MON-YYYY') due_date,
           ah.current_balance - ah.previous_balance amount,
           decode(ah.invoice_id, null, 'A', 'I') transaction_type
      from account a, account_history ah, invoice i
    where a.account_id = ah.account_id
       and a.account_type_id = 1000002
       and (ah.invoice_id is not null or ah.adjustment_id is not null)
       and ah.CURRENT_BALANCE > ah.previous_balance
       and ah.invoice_id = i.invoice_id(+)
       AND a.account_balance >= .005
    order by a.account_id, ah.effective_start_date desc;You will probably want to select:
    1. From ACCOUNT first (your smaller table), for which you supply a literal on account_type_id. That should limit the accounts retrieved from ACCOUNT_HISTORY
    2. From ACCOUNT_HISTORY. We want to limit the records as much as possible on this table because of the outer join.
    3. INVOICE we want to access last because it seems to be least restricted, it is the biggest, and it has the outer join condition so it will manufacture rows to match as many rows as come back from account_history.
    Try the query above after creating the following composite indexes. The order of the columns is important:create index account_composite_i on account(account_type_id, account_balance, account_id);
    create index acct_history_comp_i on account_history(account_id, invoice_id, adjustment_id, current_balance, previous_balance, effective_start_date);
    create index invoice_composite_i on invoice(invoice_id, payment_due_date);All the columns used in the where clause will be indexed, in a logical order suited to the needs of the query. Plus each selected column is indexed as well so that we should not need to touch the tables at all to satisfy the query.
    Try the query after creating these indexes.
    A final suggestion is to try larger sort and hash area sizes and a manual workarea policy.alter session set workarea_size_policy = manual;
    alter session set sort_area_size = 2147483647;
    alter session set hash_area_size = 2147483647;

  • When I run the same query for the second time it's faster, I want to reset this behavior

    I am running a query in oracle 11g select A from B where C = ':D' B has millions of records.
    The first time i run it it takes about 30 seconds, the second time i run the query it takes about 1 second.
    Obviously it's caching something and i want it to stop that, each time i run the query i want it to take 30s - just like it was running for the first time.
    The reason I want to reset this is because for testing purposes I want to measure this query at the very first time.
    Please help.
    Thanks & Best Regards,
    Dark

    user9359353 wrote:
    I am running a query in oracle 11g select A from B where C = ':D' B has millions of records.
    The first time i run it it takes about 30 seconds, the second time i run the query it takes about 1 second.
    Obviously it's caching something and i want it to stop that, each time i run the query i want it to take 30s - just like it was running for the first time.
    The reason I want to reset this is because for testing purposes I want to measure this query at the very first time.
    Please help.
    Thanks & Best Regards,
    Dark
    No - you do NOT want to do that. Not if you want to get results that really represent how that query will work in reality.
    See these two AskTom blogs where he discusses the reasons for NOT doing this in detail.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:7413988573867
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:311990400346061304

  • How to execute the second data block in master child form using lov

    Hi All,
    i am developed a new custom master child form using stacked canvas.Here i am taking two frames with diffrent data blocks.my point is i am enter the value from the lov in first frame automatically execute the second frame data block without button.
    example:
    fisrtdatablock:dept no(dept table).
    second datablock:employee information(emp table).
    select the dept value from lov automatically execute the second data block emp information.
    can help me any one.
    Regards,
    sekhar.
    Edited by: 994418 on 17 Mar, 2013 10:40 PM

    994418 wrote:
    Hi All,
    i am developed a new custom master child form using stacked canvas.Here i am taking two frames with diffrent data blocks.my point is i am enter the value from the lov in first frame automatically execute the second frame data block without button.
    example:
    fisrtdatablock:dept no(dept table).
    second datablock:employee information(emp table).
    select the dept value from lov automatically execute the second data block emp information.
    can help me any one.
    Hi, sekhar.
    Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Oracle Forums FAQ
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>How to ask questions the smart way
    </ul>
    Following these simple guidelines will ensure you have a positive experience in any forum; not just this one!
    >
    Your forms mode isn't clear. Is it in enter-query mode or insert mode.
    what can you do ?
    use a timer in post-change or when-validate-item trigger at deptno item at first data block. because go_block isn't supported by p-c or w-v-t trigger.
    and at when timer expire, write your code to go second block and insert/query the associate date from emp table.
    Hope you understand.
    Hamid
    If someone's response is helpful or correct, please mark it accordingly.*

  • Error 1172, an error running a VI in the second time call of the DLL

    Hello All,
    I am a beginner in labVIEW.
    I have to write a test program in labVIEW which uses a DLL created by other programmer.
    I called the DLL from my labVIEW to control DIOs, a serial port, communicate with a slave device, perfrom a flashing task.
    While testing the program, I found that the program is OK if I use it just once, however, if I want to run it coninuously using a Do-While Loop, it failed with
    Error 1172.
    As far as I could understand, it seems that the DLL creates a log file in C:\ while it was called for the first time, and the process does not stop taking control of this log file even after the DLL is closed.
    Then when the DLL is called for the second time, it looks for the same log file to write new info but as it was taken control by the previous process, there comes an error.
    Please find the attached files.
    Hope there would be somebody who is able to help me to point out my mistakes in my vi or suggest me a solution for it.
    Thanks and Best Regards
    Aung
    (As the system does not accept the DLL attachment, I changed the extension to .pdf for the DLL File)
    Solved!
    Go to Solution.
    Attachments:
    I Basic Flasher.vi ‏60 KB
    Failure.xls ‏86 KB

    -message deleted -
    Message Edited by Ray.R on 11-17-2009 08:01 PM

  • I have songs both purchased online and downloaded from cd's that itunes is unable to locate. What can I do to get them back and make sure it doesn't happen again as this is the second time this has happened?

    I have songs both purchased online and downloaded from cd's that itunes is unable to locate. What can I do to get them back and make sure it doesn't happen again as this is the second time this has happened?

    Great, that's what I was looking for.  Thanks for the quick response.  I knew that that feature existed in this router, but I couldn't remember what it was called or where to find it.
    The funny thing is, I recall distinctly setting up the DHCP reservation initially, but when I went to check it now, the reserved client list was empty.  I have no idea how it could have become depopulated, thus opening the door for internal IP address reassignment of the Remote Desktop computer which led to the RDP ports no longer being forwarded to the right internal IP address and thus the failure of the Remote Desktop connectivity.

  • Edge animate animation does not start the first time I load the page. But does the second time.

    Hi all,
    I am having trouble with an edge animation on a web page. It doesn't load the first time the page is loaded, but loads fine the second time or any time after that. To test I am clearing my cache, then reloading the page. It seams to work in IE the first time but not Firefox or chrome.
    I have a temporary copy of the page here ... http://emiwip.com/monique-mathieu/landing-page-wip.html
    Can anyone tell me what is going on?
    Thanks.
    Dan

    I found the answer here ... Publishing no longer works in latest Edge
    It appears that you need to load the latest jQuery in the head of the pag. That fixes it.
    Dan

  • C++ Call to DLL made in LabVIEW Fails the second time it is called

    I have an application where a C++ executive calls a LabVIEW DLL (a LabVIEW application built into a DLL).
    The executive calls and operates the DLL fine the first time (NT, the applications task manager shows LabVIEW runtime runs, then stops when the DLL is done. However, when the executive calls the DLL a second time, it hangs, and the runtime engine never shows up in the applications task manager as running.
    However, this only occurs when something like IMAQ, DAQ, or another custom DLL call is occurring. We tried it with a simple DLL that only uses a call to the sound VIs, and it seems to run fine, although as the program called is very short, and the task manager slow, we never see the runtime engin
    e in the task manager. We are going to put a popup dialog in to ensure that the DLL is being called reliably, but we believe it is.
    We are unable to answer why when we call something that uses IMAQ, that the DLL doesn't run right the second time. We are unsure of the reasons, but believe it to be related to thread creation and destruction in the executive.
    If anyone out there has any insight into this, we would be happy to see it.
    We will be putting in a formal request for support from NI, but wanted to poll the audience as well, as we know from first hand experience that LabVIEW users often times have more experience with this sort of thing than developers.
    Thanks a bunch

    > Thanks for the information Greg. There is no documentation on this
    > issue, except for the email that we got from NI Support. This is
    > quite a new realm for us and NI alike. We would like to know what
    > your experiences have been on this subject. If you have a bit of
    > information, perhaps we should suggest a topic. As I said, this is a
    > new frontier for LabVIEW, and there are a lot of things that NI
    > doesn't know, and I'm sure a few of the programmers out there have
    > figured out.
    >
    I often answer emails from home, but I work for NI on the LV development
    team. So anything I know about, NI knows about. The info I was
    describing about the DLL execution system is not well documented since
    we were hoping that it would work we
    ll with the way Windows Apps are
    typically written. I suspect that we will need to write a Tech Note
    to cover the nitty gritty. This sort of info gets lost in manuals,
    and it is subject to change as we learn how people are expecting to
    use it.
    Anyway, my post was to explain why your use of it didn't work.
    In general, we believe that LV DLLs are thread savvy, reentrant
    VIs can be called from multiple threads simultaneously, execution can
    continue in the background after the DLL call has returned, and the UI
    is live provided the calling app processes messages in that thread.
    If you have other issues or questions, just ask.
    Greg McKaskle

  • Keyboard not resigning the second time i pop a view controller

    i am developing an app that involves 2 tableViewcontroller. when a cell is selected in a tableViewController the detail table view is shown. the detail table view has a cell with a textfield in it.The value entered in the textfield is send to a webservice and the response is alerted using alertView. When the ok button is pressed in the alert view the viewcontroller is poped from navigationcontroller. the keyboard is hidden using the code
    - (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex {
    [self.currentResponder resignFirstResponder];
    this is working fine the first time i push the viewcontroller and pop it. The keyboard is hiding. but the second time i push the same view controller and then pop the viewcontroller the keyboard is not hiding... can anyone tell me where i have went wrong..?

    I checked the code, we do not have any other manipulation on the view object, the only thing different in our case that I can think of is that this code is being called the 1st time from one page in the afterPhase method of a class that implements PagePhaseListener (on page load). I'm passing the page name to the View Object, and this invokation executes okay an returns the matching one record.
    Then I navigate to another page (again in its page definition, its controller is using the same pagePhaseListener class), so when the code is executed the next time, I'm passing the new page name, but this invokation does not return any data, even though I'm sure the SQL and the page name parameter does return 1 row in SQLPlus.
    Any thing special with executing the view object parameter binding when I navigate out and back to the page?
    Appreciate the help
    Mohamed

  • Palm Desktop 6.2.2 Datebook has lost 98% of future entries for the second time

    For the second time in a couple months when I opened the Datebook in Palm Desktop running on my PC (running XP) almost all the entries after May 18th are missing.  My last hot sync was June 10th - no errors were reported.  Each time I make an entry in any of the Palm Desktop apps I save.  I hot sync each evening when entries are made.  Only the Datebook seems to be affected.  I have a Palm Centro thru AT&T.
    Post relates to: Centro (AT&T)

    I solved the problem.  I no longer use the Palm Desktop.  I changed my hotsync conduit to Outlook, re-synced and everything transfered over without a hitch.  The missing Calendar entries were even transferred,  Life is now so much easier!

  • My iphone 4 lock button got stuck or broke.. this is the second time this has happened and my phone is refurbish. do i have to pay the replacement cost?

    lock button got stuck or broke.. this is the second time this has happened and my phone is refurbish. do i have to pay the replacement cost?

    Warranty on a refurbished unit is 90 days or the remainder of the original phone's warranty, whichever is longer.  If you're outside this period, you will again pay the replacement fee.

  • Access denied while opening any PDF the second time / Zugriff verweigert beim zweiten Öffnen eines beliebigen PDF

    Reader produces "Access denied" while opening any PDF the second time. A LogOut/LogIn or restart is necessary to open a PDF again successfully. User works with a PC (Win7). The file is located on the desktop in a Windows 2008/2012 AD, user profile on networkshare. The same procedure with a file located on any other networkshare or locally on harddisk works without error. Analysis with processmonitor indicates that the file seems to load and then is cancelled for some unknown reason. The problem is somehow growing, beginning with 1 PC and exists now also in our Citrix environment (2 users). Access rights seem to ok and the same on all tested shares (full Access or Change rights).
    Der Reader bringt den Fehler "Zugriff verweigert", wenn man das zweite mal ein PDF öffnen will. Dabei ist der Fehler völlig unabhängig davon, ob man das gleiche oder ein anderes PDF öffnen will. Um wieder erfolgreich ein PDF zu öffnen, ist ein Ab- und Anmelden bzw. ein Neustart des PCs (Win7) nötig. Umgebung ist eine Windows 2008/2012 AD, Profil liegt im Netz. Der Fehler tritt nur bei PDFs auf, die auf dem User-Desktop liegen. Sind die Dateien irgendwo anders im Netz oder lokal auf der Festplatte, kommt der Fehler nicht. Eine Analyse mit dem Prozessmonitor zeigt, dass das Laden des PDFs irgendwann gecancelt wird, warum auch immer. Das Problem scheint sich auch langsam auszuweiten. Es hat mit einem PC begonnen und tritt nun auch in unserer Citrix Umgebung bei bis jetzt 2 Usern auf. Die Berechtigungen scheinen überall ok und gleich zu sein (Volluzgriff oder Ändern).

    ls -l /var/run/lighttpd/
    And how are you spawning the php instances? I don't see that in the daemons array anywhere.
    EDIT: It looks like the info in that page is no longer using pre-spawned instances, but lighttpd adaptive-spawn. The documentation has been made inconsistent it looks like.
    You will note that with pre-spawned information, the config looks different[1].
    You need to do one or the other, not both (eg. choose adaptive-spawn, or pre-spawn..not both).
    [1]: http://wiki.archlinux.org/index.php?tit … oldid=8051 "change"

  • Unable to fetch data for the second time in an ADOBE form

    Hi All,
    I am creating a PDF form and its data is based on the output parameter of an interface, when i drag and drop an object from the data view into the body page twice, only the first time the value is getting printed and from the second time it is not printing any data.
    Kindly let me know if any one have solution for the same or if i am not clear any where.
    Thanks in advance.
    Warm Regards,
    Kasi Raaman.R

    The pbm is now solved

  • My iPhone rejects my passcode when I enter it the first and the second time

    My iPhone rejects my passcode when I enter it the first and the second time. Why?

    Is it random? Does it occasionally accept the passcode, or does the passcode seem to be changed?
    See Kappy's list on how to deal with passcode problems:
    Re: Passcode being rejected   https://discussions.apple.com/message/23376400#23376400

Maybe you are looking for

  • My new Officejet Pro 8500a on a Windows XP machine will not print from the Internet.

    I just purchased and installed an Officejet Pro 8500a all-in-one and everything seems to work fine except that the maachine will not print from the internet.  I use Windows XP home and and the Firefox browser.  The printer is connected directly to th

  • How to trigger an E-mail after saving a Case

    Dear all, We need to trigger an action to send an E-mail after creation and saving a Case in EP. Please help me how could we configure this in the system. Your suggestions will be highly appreciated. Best wishes Raghu ram

  • The iPhone cannot be synced. The required file can not be found

    I have been syncing a small number of iPhoto albums to my old iPhone 3G and now my new 3GS. This error appeared last week for the first time. I got the message above, and by a process of elimination found that it was resulting from the small number o

  • How do I back up my library?

    the last time I lost my data i lost all my photos i'd imported into iphoto from my camera. where is the folders for me to back up this time? I'm not using time machine so i need to locate them manually

  • COPA vs TB reconciliation

    Hi Gurus, The user submitted an excel sheet of TB and COPA reconciliation.  One column contains the TB amounts and the COPA in another column.  I can not run the COPA report by myself.  The report also contains rel. gl numbers.  When I tried to get l