Query in Oracle 10 fast but slow in Oracle 11

Hi all

We have a query that runs smoothly in Oracle 10 g. It takes less then a second. We installed a second server and import/export to create the same 11g database. On this 11g database query takes a long time (like 8 seconds or more).

Here are the details. Maybe someone can tell us the reason why this happens.

We are talking about this statement:
Select nvl(sum(BM_OPENST_D - BM_OPENST_CR),0) 
from bh.bh123gh
where 
F123_AR_NR>='4400000000' and
F123_AR_NR<='4404000000' and
F123_KL_LEV_AR_NR='0631001000' and
SRT_REK=2 and
F123_BKJR>=0000 and
F123_BKJR<=2011 and
F123_FIRMA=2;
Version of database is 11.2.0.1.0
SQL> 
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     100
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> 
SQL> show parameter db_file_multi

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_file_multiblock_read_count        integer     6
SQL> 
SQL> show parameter db_block_size

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_block_size                        integer     8192
SQL> 
SQL> show parameter cursor_sharing

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
cursor_sharing                       string      EXACT
SQL> 
SQL> column sname format a20
SQL> column pname format a20
SQL> column pval2 format a20
SQL> 
SQL> select         sname
  2              , pname
  3              , pval1
  4              , pval2
  5  from
  6              sys.aux_stats$;

SNAME                PNAME                     PVAL1 PVAL2
-------------------- -------------------- ---------- --------------------
SYSSTATS_INFO        STATUS                          COMPLETED
SYSSTATS_INFO        DSTART                          03-30-2010 11:05
SYSSTATS_INFO        DSTOP                           03-30-2010 11:05
SYSSTATS_INFO        FLAGS                         1
SYSSTATS_MAIN        CPUSPEEDNW           1183.90219
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

13 rows selected.

Elapsed: 00:00:00.03
SQL> 
SQL> explain plan for
  2  Select nvl(sum(BM_OPENST_DEB - BM_OPENST_CR),0)
  3  from bh.bh123gh
  4  where
  5  F123_AR_NR>='4400000000' and
  6  F123_AR_NR<='4404000000' and
  7  F123_KL_LEV_AR_NR='0631001000' and
  8  SRT_REK=2 and
  9  F123_BKJR>=0000 and
 10  F123_BKJR<=2011 and
 11  F123_FIRMA=2;

Explained.

Elapsed: 00:00:00.10
SQL> 
SQL> select * from table(dbms_xplan.display);

PLAN_TABLE_OUTPUT
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Plan hash value: 3488495774

-------------------------------------------------------------------------------------------------
| Id  | Operation                    | Name             | Rows  | Bytes | Cost (%CPU)| Time     |
-------------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT             |                  |     1 |    38 |  1792   (1)| 00:00:22 |
|   1 |  SORT AGGREGATE              |                  |     1 |    38 |            |          |
|*  2 |   TABLE ACCESS BY INDEX ROWID| BH123GH          |  5059 |   187K|  1792   (1)| 00:00:22 |
|*  3 |    INDEX RANGE SCAN          | I_BH123GH_ISABEL |  5059 |       |   145   (0)| 00:00:02 |
-------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

   2 - filter("F123_BKJR">=0000 AND "F123_BKJR"<=2011)
   3 - access("F123_FIRMA"=2 AND "SRT_REK"=2 AND "F123_KL_LEV_AR_NR"='0631001000'
              AND "F123_AR_NR">='4400000000' AND "F123_AR_NR"<='4404000000')
       filter("F123_AR_NR"<='4404000000' AND "F123_AR_NR">='4400000000')

18 rows selected.

Elapsed: 00:00:00.20
SQL> 
SQL> rollback;

Rollback complete.

Elapsed: 00:00:00.01
SQL> 
SQL> rem Set the ARRAYSIZE according to your application
SQL> set autotrace traceonly arraysize 100
SQL> 
SQL> alter session set tracefile_identifier = 'mytrace1';

Session altered.

Elapsed: 00:00:00.01
SQL> 
SQL> rem if you're using bind variables
SQL> rem define them here
SQL> 
SQL> rem variable b_var1 number
SQL> rem variable b_var2 varchar2(20)
SQL> 
SQL> rem and initialize them
SQL> 
SQL> rem exec :b_var1 := 1
SQL> rem exec :b_var2 := 'DIAG'
SQL> 
SQL> alter session set events '10046 trace name context forever, level 8';

Session altered.

Elapsed: 00:00:00.03
SQL> 
SQL> -- put your statement here
SQL> Select nvl(sum(BM_OPENST_D - BM_OPENST_CR),0)
  2  from bh.bh123gh
  3  where
  4  F123_AR_NR>='4400000000' and
  5  F123_AR_NR<='4404000000' and
  6  F123_KL_LEV_AR_NR='0631001000' and
  7  SRT_REK=2 and
  8  F123_BKJR>=0000 and
  9  F123_BKJR<=2011 and
 10  F123_FIRMA=2;

Elapsed: 00:00:09.92

Execution Plan
----------------------------------------------------------
Plan hash value: 3488495774

-------------------------------------------------------------------------------------------------
| Id  | Operation                    | Name             | Rows  | Bytes | Cost (%CPU)| Time     |
-------------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT             |                  |     1 |    38 |  1792   (1)| 00:00:22 |
|   1 |  SORT AGGREGATE              |                  |     1 |    38 |            |          |
|*  2 |   TABLE ACCESS BY INDEX ROWID| BH123GH          |  5059 |   187K|  1792   (1)| 00:00:22 |
|*  3 |    INDEX RANGE SCAN          | I_BH123GH_ISABEL |  5059 |       |   145   (0)| 00:00:02 |
-------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

   2 - filter("F123_BKJR">=0000 AND "F123_BKJR"<=2011)
   3 - access("F123_FIRMA"=2 AND "SRT_REK"=2 AND "F123_KL_LEV_AR_NR"='0631001000'
              AND "F123_AR_NR">='4400000000' AND "F123_AR_NR"<='4404000000')
       filter("F123_AR_NR"<='4404000000' AND "F123_AR_NR">='4400000000')


Statistics
----------------------------------------------------------
          1  recursive calls
          0  db block gets
      11104  consistent gets
       9434  physical reads
          0  redo size
        574  bytes sent via SQL*Net to client
        519  bytes received via SQL*Net from client
          2  SQL*Net roundtrips to/from client
          0  sorts (memory)
          0  sorts (disk)
          1  rows processed

SQL> 
SQL> disconnect
Disconnected from Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
SQL> 
SQL> spool off
The trace output:
TKPROF: Release 11.2.0.1.0 - Development on Tue Nov 22 13:58:33 2011

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Trace file: C:\Oracle\diag\rdbms\oravopak\oravopak\trace\oravopak_ora_7352_mytrace1.trc
Sort options: default

********************************************************************************
count    = number of times OCI procedure was executed
cpu      = cpu time in seconds executing 
elapsed  = elapsed time in seconds executing
disk     = number of physical reads of buffers from disk
query    = number of buffers gotten for consistent read
current  = number of buffers gotten in current mode (usually for update)
rows     = number of rows processed by the fetch or execute call
********************************************************************************

Select nvl(sum(BM_OPENST_D - BM_OPENST_CR),0)
from bh.bh123gh
where
F123_AR_NR>='4400000000' and
F123_AR_NR<='4404000000' and
F123_KL_LEV_AR_NR='0631001000' and
SRT_REK=2 and
F123_BKJR>=0000 and
F123_BKJR<=2011 and
F123_FIRMA=2

call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        1      0.01       0.00          0          0          0           0
Execute      1      0.00       0.00          0          0          0           0
Fetch        2      0.03       9.86       9434      11104          0           1
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total        4      0.04       9.87       9434      11104          0           1

Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: SYS

Rows     Row Source Operation
-------  ---------------------------------------------------
      1  SORT AGGREGATE (cr=11104 pr=9434 pw=0 time=0 us)
  67250   TABLE ACCESS BY INDEX ROWID BH123GH (cr=11104 pr=9434 pw=0 time=10500177 us cost=1792 size=192242 card=5059)
  67250    INDEX RANGE SCAN I_BH123GH_ISABEL (cr=526 pr=550 pw=0 time=44363 us cost=145 size=0 card=5059)(object id 75061)


Elapsed times include waiting on following events:
  Event waited on                             Times   Max. Wait  Total Waited
  ----------------------------------------   Waited  ----------  ------------
  SQL*Net message to client                       2        0.00          0.00
  Disk file operations I/O                        1        0.00          0.00
  db file sequential read                      8893        0.10          9.26
  db file scattered read                          7        0.01          0.05
  db file parallel read                           1        0.02          0.02
  SQL*Net message from client                     2        0.00          0.00
********************************************************************************
DBMS_XPLAN. Output DISPLAY_CURSOR:
SQL> 
SQL> select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));

PLAN_TABLE_OUTPUT
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SQL_ID  g6pkv639sdfgw, child number 0
-------------------------------------
Select /*+ gather_plan_statistics */ nvl(sum(BM_OPENST_DEB -
BM_OPENST_CR),0) from bh.bh123gh where F123_AR_NR>='4400000000'
and F123_AR_NR<='4404000000' and F123_KL_LEV_AR_NR='0631001000' and
SRT_REK=2 and F123_BKJR>=0000 and F123_BKJR<=2011 and
F123_FIRMA=2

Plan hash value: 3488495774

--------------------------------------------------------------------------------------------------------------------
| Id  | Operation                    | Name             | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |
--------------------------------------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT             |                  |      1 |        |      1 |00:00:08.07 |   11104 |  13531 |
|   1 |  SORT AGGREGATE              |                  |      1 |      1 |      1 |00:00:08.07 |   11104 |  13531 |
|*  2 |   TABLE ACCESS BY INDEX ROWID| BH123GH          |      1 |   5059 |  67250 |00:00:10.90 |   11104 |  13531 |
|*  3 |    INDEX RANGE SCAN          | I_BH123GH_ISABEL |      1 |   5059 |  67250 |00:00:00.05 |     526 |    550 |
--------------------------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

   2 - filter(("F123_BKJR">=0 AND "F123_BKJR"<=2011))
   3 - access("F123_FIRMA"=2 AND "SRT_REK"=2 AND "F123_KL_LEV_AR_NR"='0631001000' AND
              "F123_AR_NR">='4400000000' AND "F123_AR_NR"<='4404000000')
       filter(("F123_AR_NR"<='4404000000' AND "F123_AR_NR">='4400000000'))


27 rows selected.

Elapsed: 00:00:01.15
SQL> 
SQL> spool off

Addition to other boards who has been submitted, a few more suggestions:
* It seems that your DB_FILE_MULTIBLOCK_READ_COUNT parameter has been manually set to a value of 6 (or you have the SESSIONS parameter set to a high value with a small CMS). As a general rule, this should only be set under Oracle database 10.2 and higher. See:
http://jonathanlewis.WordPress.com/2007/05/20/system-stats-strategy/

* You have statistics of the noworkload system - it will not necessarily change things for the better for this SQL query special, but you might consider to collect statistics of the workload when the system is covered by a typical to high load. See:
http://hoopercharles.WordPress.com/2011/05/04/how-to-collect-statistics/

* As Toon mentioned, single block reads dominate the running time. On average, they are quick to 0.001 seconds (1 ms), but many of them are. What is the buffer cache?

* The SQL statement uses the predicates like this WHERE clause: "F123_AR_NR > = ' F123_AR_NR «»<=", which="" i="" believe="" would="" be="" treated="" differently="" in="" cardinality="" calculations="" (2="" unbounded="" ranges)when="" compared="" to="" a="" where="" clause="" that="" uses="" between="" syntax="" (a="" single="" bounded="" range).="" the="" query="" optimizer="" will="" actually="" transform="" the="" between="" syntax="" into="" two="" unbounded="" ranges,="" but="" if="" i="" remember="" correctly,="" it="" will="" remember="" that="" the="" ranges="" are="" bounded="" when="" performing="" the="" cardinality="">

* The DBMS_XPLAN. DISPLAY_CURSOR output shows that the number of blocks read from disk is 13 531 but you get only 11 104 consistent. The number of physical blocks read must be generally less number of becomes coherent. If I remember correctly, the number of readings of physical blocks can be higher if index preloading takes place, or if the intermediate results must be written for the temp tablespace. In this case, it seems that the index preloading takes place.

* It seems that because this query has been run at least 3 times in succession fast, already read of the disk blocks should remain in the buffer cache. This suggests that the buffer cache is too small. Are the BH123GH table and its indexes defined to use the buffer pool KEEP or RECYCLE, yet these buffer pools are not defined?

Charles Hooper
http://hoopercharles.WordPress.com/
IT Manager/Oracle DBA
K & M-making Machine, Inc.

Tags: Database

Similar Questions

  • SAN storage 2 Gb fiber fast but slow on VMWare with direct access from Windows

    <! [endif] > <! [if gte mso 9] >

    So that's my problem, we use a HP MSA 1500 (I know,

    not that fast), but we run a small store, 4 guests, 30 total VM, 2 Broccade 16

    fiber ports to 2 GB, all force at 2 GB. The SAN as a controller 2 cache 512 MB

    each, discs MSA30 14 15 k 146 GB, 1 large raid 5, 1 spare label + / LUN 15, us

    also have a dedicated server, no VMWare backup and other applications,

    Server are all DL585G2 32 GB RAM. The MSA is running active/active, Latest

    7.2, Qlogicqla2342 firmware latest firmware. All the servers to update. We have many trya

    the scenario, VMWare 3, officially support VMWare 3.5 and 4.0 fully patch,.

    If I give my 2 Terabyte LUN 1 to my Windows 2003 server dedicated who

    have direct access to the San, will achieve a transfer rate up to 50 Mb

    per second on a 2 GB files. If a movement the LUN of VMWare server, start my

    virtual Windows 2003 Server (32 or 64 bit) and try the same transfer, max

    I realize is 5 MB per second. Add that on all the server of VMWare 3 version I have

    test, what I did wrong, we know that the SAN is capable of faster transfer, the

    test on HYPER-V with the same hardware configuration is much faster, my only

    last resource are you guys!

    Before you change the type of the startup disk controller, Windows should load the drivers for this controller. The best way to achieve this is to temporarily attach a small virtual drive (100 MB will do) with the controller for the virtual machine. When Windows starts, it must acknowledge the new controller and load the drivers. Then shut down the virtual computer, remove the temporary disk and change the type of the startup disk controller.

    André

  • Internet connection fast but slow to load web pages

    I have a relatively fast internet connection: speed download - 60.5 Mbps; Download Speed - 6 Mbps.

    I get the same results on my MacBook Pro running on the wifi and my iMac which is directly connected to the Ether. On the iMac, however, it is now holding always load web pages.

    I've read elsewhere that changing the DNS can eliminate some of these problems.  All this is a little above my pay grade.

    I know just enough to make me stupid, but I am a good listener and I can follow directions well enough.  Any help would be most appreciated!

    Thank you

    KLOS

    Hello, KLOS,.

    Thank you for using communities Support from Apple!

    I understand that Web pages are slow to load on your iMac, but not on your MacBook Pro, while they are connected to the same network. If you use Safari, I suggest to work through the following steps on your iMac to see if you can alleviate the slowness.

    If Safari is slow, unresponsive, which closes unexpectedly, or has other issues - Apple Support

    See you soon!

  • SQL Query for Oracle DB followed by using vCOPS

    Hi guys,.

    I installed a general SQL adapter to monitor an Oracle database in my environment. But I am not able to make it work there are a lot of problems in writing a SQL Quries. I work with one of the DBA and we are still not able to write the query to the right. Can someone give me an example of a query so that I can test it or tell me how to write the query to Oracle DB. Examples of files that are given under/samples/folder conf in the plug-in does not help us. So if someone has a link or if someone has it please help me with query files.

    Thanks in advance

    fix. the biggest challenge with the SQL adapter is to write the query in such a way the release of product that is easily consumable by vcops and maps directly to RESOURCEKIND and RESOURCENAME in vcops. The result can also be hierarchical for more efficiency, i.e.

    metric

    -submetric1

    -submetric2

  • The fan frequently betwenn oscilates fast and slow

    My satellite phone to old is 15 months - for the past 2 months, he developed a tendency to switch from one mode of ventilation of fast and slow in a cycle of a second. A colleague IT tried air compressed to clean any dust - this made little difference.
    Is this likely to lead to failure problem? Is this a case of dissambling fan housing and more thorough cleaning? Any suggestion would be appreciated.
    Thank you.

    Hello

    It of a simply that after awhile of use of the laptop it s necessary to clean the cooling module.
    During the use of the laptop fans suck up dust all the time. Usually, the dust is responsible for a bad performance of the cooling modules.

  • pass the query to oracle

    Hi all

    How can I send a query to oracle using cfstoredprod?

    Try this:

    < datasource = "" #application.dsn # cfstoredproc "procedure =" #importTable #">"

    < cfprocparam type = 'in' cfsqltype = "cf_sql_refcursor" value = "#myQuery #" >

    < / cfstoredproc >

    The Oracle code:

    Procedure importTable (v_table IN SYS_REFCURSOR) is

    Error: [Oracle JDBC Driver] impossible to determine the type of the specified object.

    Any ideas?

    Thanks in advance.

    Get your drives and put them in a query object (if they aren't already), let's call it getRecs, and:

    
    INSERT ALL
       
          INTO schema.tableName(columnA, columnB, columnC, etc)
          VALUES (,,,)
       
       SELECT * FROM DUAL
    
    

    You must include the "SELECT * FROM DUAL" after the loop to exit.  Connect it to your database (Oracle), insert all the lines and disconnect.  Place it in a CFTRANSACTION tag to make sure that they are all inserted or all cancelled.

    HTH,

    ^_^

  • Convert the SQL query to Oracle

    Hi all

    I have two SQL queries to create the table.

    Query1.

    CREATE TABLE [dbo]. [DocumentType] (
    [DocType] [varchar] (20) GATHER SQL_Latin1_General_CP1_CI_AS NOT NULL,.
    [SubCat] [varchar] (20) GATHER SQL_Latin1_General_CP1_CI_AS NOT NULL
    ) ON [PRIMARY]
    GO
    ALTER TABLE [dbo]. [DocumentType] ADD
    CONSTRAINT [PK_DocumentType] PRIMARY KEY CLUSTER
    (
    [DocType],
    [SubCat]) ON [PRIMARY]


    Query2.

    CREATE TABLE [dbo]. [SBU] (
    [SBU] [varchar] (51) GATHER SQL_Latin1_General_CP1_CI_AS NOT NULL
    ) ON [PRIMARY]
    GO
    ALTER TABLE [dbo]. [SBU] ADD
    [PK_SBU] CLUSTERED PRIMARY KEY CONSTRAINT
    (
    [SBU]
    ) ON [PRIMARY]

    What will be the query in Oracle?

    Please suggest!
    Kind regards
    Shah

    Query1.

    CREATE TABLE dbo. DocumentType)
    DocType varchar2 (20) NOT NULL,
    SubCat varchar (20) NOT NULL,
    CONSTRAINT PK_DocumentType PRIMARY KEY (DocType, SubCat)
    )
    /

    Query2.

    CREATE TABLE dbo. SBU)
    SBU varchar2 (51),
    CONSTRAINT PK_SBU PRIMARY KEY (UDF)
    )
    /

    It is useful for you?

    Published by: insa on June 12, 2012 22:42

  • LR4.1 RC2 eliminate Chromatic Aberration excellent, but slows down display

    W7 64

    LR4.1 RC2 eliminate Aberration chromatic excellent.

    but slows down all the processes of this image,

    same Navigator is on all fours...

    Same for you?

    New test:

    Clarity > 0 and CA + detail unchecked-> problem

    Clarity > 0 and CA + verified detail-> OK

    Known bug. Will be corrected.

  • Xha1 24F footage that video play fast but Audio is normal. Body 2.0

    Hey Gang, I am having trouble with my my body 2.0 xha1 24f footage. I installed the canon F presets and the film imported using the parameter 24f, but when I play in the timeline my video/audio is out of sync. Even when I export, nothing changes. My video is read to fast, but my audio is normal. I played a little with the fact of separate images and try to find the right video speed, with no luck. I also tried using the images on 30f timelines with no luck either.

    I searched for the answer, but nothing of this particular problem has developed.

    Any thoughts?

    Very much appreciated.

    Capture images with HDV Split with scene detection on and see how the Pro handles.

  • Fast and slow when issued by app SQL query on the issue mnaually

    Hello

    I have a more general question concerning a specific behavior of Oracle.

    I update a feature of an application. The application is not responding and I finally put end. I checked Oracle if a request is long running by using the following statement:

    Select s.username,s.sid,s.serial#,s.last_call_et/60 mins_running, q.sql_text from v$ session s
    Join v$ sqltext_with_newlines q
    On s.sql_address = q.address
    When status = 'ACTIVE'.
    Type <>'BACKGROUND '.
    and last_call_et > 60
    order of sid, serial #, q.piece


    The result of the above query is:

    WITH CONNECTION AS (SELECT * FROM WW_CONN C WHERE (C.FID_FROM I))
    N (SELECT FID FROM WW_LINE WHERE FID_ATTR =: B1) AND C.F_CLASS_ID
    FROM = 22) OR (C.FIDto IN (SELECT FID FROM WW_LINE WHERE FID_AT))
    TR =: B1) AND C.F_CLASS_ID_TO = 22)) SELECT MIN (P.FID_ATTR) AS FI
    CONNECTION C, WW_POINT D_FROM P WHERE (P.FID = C.FID_FROM A
    C.F_CLASS_ID_FROM ND = 32 AND C.FLOW = 1) OR (P.FID = C.FID_TO
    C.F_CLASS_ID_TO ND = 32 AND C.FLOW = 2)

    I have another tool that shows me the connection parameter values. So I know that the value of: B1 is 5011 - the id of the feature updates. This query runs for 20 minutes and finally more time stops in front of him. The update process involves several sql statements - if it does not have the update, but is part of the process.

    Here's the bit I don't understand: when I run the query in SQL Developer with value 5011: B1 it takes 0.5 seconds to return a result.

    Why did the sql statement taking so long on the issue by the application, but takes less than one second when I run it manually?

    I sent a dump of the data to the vendor of the application that is not able to reproduce the problem in their environment. Could someone explain to me what is happening here or give me key words for the search?

    We use 11 GR 2, 64-bit.

    Thank you very much
    Rob

    Hi Rob,

    at least, you should see some differences in the statistics for the child cursor different (one for running the application must show at least a higher value for ELAPSED_TIME). I would like to use something like the following query to verify the information for the child cursors:

    select sql_id
         , PLAN_HASH_VALUE
         , CHILD_NUMBER
         , EXECUTIONS
         , ELAPSED_TIME
         , USER_IO_WAIT_TIME
         , CONCURRENCY_WAIT_TIME
         , DISK_READS
         , BUFFER_GETS
         , ROWS_PROCESSED
      from v$sql
     where sql_id = your_sql_id
    

    Concerning

    Martin

  • v machines are very fast, but so slow network. Advice appreciated...

    Hi all

    I recently installed VMware ESXi 3.5 U3, 123629

    Before getting into the details about the problem I'll give you the specifications that you may want to know

    Motherboard: Supermicro X7DB8

    Processor: 2 x intel LGA771 dual core XEON 3 .2GHz

    Memory: 4 GB

    Storage: Adaptec Ultra320 SCSI RAID card 2020ZCR with 6 32 GB drives in a RAID 5 Configuration configuration

    Network: network FULL DUPLEX 4 x 1000 MB connections (a 80003ES2LAN Ethernet controller built on the motherboard AND a 8254NXX, add in the card installed)

    Everything about the installation was quick and easy. I currently have 3 virtual machines installed.

    computers virtual boot very quickly. pretty much everything on ESXi performance is exceptional. In the console windows pop up when you click them in the start menu as if they were physical boxes.

    BUT

    the one caveat is the network performance...

    I searched these forums looking for answers but have not found anything that solved the problem.

    Here is what I tried, from advice in this forum...

    -


    I enabled HyperThreading in the VI Client and enabled HyperThreading in the BIOS

    I have enabled HyperThreading in the VI Client and disabled HyperThreading in the BIOS

    I've disabled HyperThreading in the VI Client and enabled HyperThreading in the BIOS

    I've disabled HyperThreading in the VI Client and disabled HyperThreading in the BIOS

    and I went through VMwareWolf guide as well...

    When copying to or from a simple windows sharing, I can get about 5 MB a dry... that is terrible, if you consider my network hardware...

    I get the slightly better performance (about 6 MB/sec) if I enable HT in the BIOS and disable in VIClient (this is what its currently set to).

    During a copy operation, I saw my use of the material and on the tops of the cpu around 10%, so I don't think that its associated processor. Machines start and loading programs instantly so I doubt his performance of hard drive no more.

    Before moving to ESXi I was running VMware server 2.0 on windows server 2003 R2 and the performance of the network was very fast... so I am sure, is a driver/configuration problem

    Any help/Suggestions is appreciated

    Thank you

    Sledgezfx

    Hi, I'm running into a similar problem regarding slow speed, but I've seen it happen when I copy things locally, what caught my attention, is that you get the slow speeds when the copy of a VM on another virtual computer on the same host, as someone that should not leave the vSwitch. Pls try to copy the same file from one folder to another on the same drive and tell me how fast are you...

    Thank you!

  • What happens if my speed (airport) wifi is fast but my initial internet is slow?

    I plan to purchase an Airport Express.

    I understand that it will increase my network speed, but it will also stimulate my internet connection?

    No, the AirPort Express cannot receive a signal and make it go faster.  The Express will provide the Internet speed that provides your modem, so the maximum speed of the Internet that provides your network will be limited by the plan you have with your Internet service provider.

  • Vista Ultimate 64 runs fast on 4 GB of memory but slow as a turtle with 8 GB

    Hi all! I recently bought 4 x 2 GB Kingston KVR 800 MHZ DDR2 with a Western Digital Caviar Green 1 TB 64 MB Sata - 3 G to increase my gaming experience on my Windows vista 64 bit.   My problem and the question is why windows takes so long to load (in minutes) with 8 GB of memory in a few seconds if I remove the 4 GB memory?  My motherboard is a Gigabyte GA-P35C-DS3R and is clearly States in the manual that it can hold up to 8 GB memory DDR2 800 MHZ. Memory is recognized in bios and in windows to 8 GB but runs very slowly until I remove 4 GB and it works super fast. Some help would be appreciated!   Thank you!

    Try to reduce the clock speed to 667 and see if the performance improves.  With consumer mobos, the maximum amount of memory sometimes unable to run at the maximum rated speed.

    Check to see that all the four modules are put in correspondence.  I'm not doubting that they are, but make sure you still.  Experience; try 6 GB.

    Colin Barnhorst

  • If I run my query in Oracle, it runs without error, but when I run inside c# gives ORA-00911: invalid character

    I like to run below myQuery in c#, but saw the error. No idea what is the problem? If I'm running myQuery in Oracle, it runs without error. "I put all the +" before starting the myQuery line and "end of the line. but nothing changes.

    myQuery =

    with the CBC as

    (

    Select src.table_name src_table_name, src.column_name src_col_name, src.data_type src_data_type, src.data_length src_data_len, src.data_precision src_data_precision, src.data_scale src_data_scale,

    CBC. Nullable src_nullable, decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as src_cons

    all_tab_columns CBC

    left join (select Cc.Column_Name, Uc.Constraint_Type

    of user_cons_columns cc, uc user_constraints

    where Cc.Constraint_Name = Uc.Constraint_Name

    and Cc.Table_Name = Uc.Table_Name) t

    on T.Column_Name = Src.Column_Name

    where table_name = 'INSTRUCTOR' and owner = "ERHAN"

    ),

    As TGT

    (

    Select tgt.table_name tgt_table_name, tgt.column_name tgt_col_name, tgt.data_type tgt_data_type, tgt.data_length tgt_data_len,

    TGT.data_precision tgt_data_precision, tgt.data_scale tgt_data_scale, tgt.nullable tgt_nullable,

    Decode (T.Constraint_Type, 'P', 'Primary Key', 'U', 'Unique', ") as tgt_cons

    from all_tab_columns tgt

    left join (select Cc.Column_Name, Uc.Constraint_Type

    of user_cons_columns cc, uc user_constraints

    where Cc.Constraint_Name = Uc.Constraint_Name

    and Cc.Table_Name = Uc.Table_Name) t

    on T.Column_Name = TGT. Column_Name

    where table_name = 'INSTRUCTOR' and owner = "SARIGUL"

    ),

    col_details as

    (

    Select src.src_table_name, nvl (tgt.tgt_table_name, first_value (tgt_table_name) more (order of nulls last tgt_table_name)) tgt_table_name;

    SRC.src_col_name, src.src_data_type, src.src_data_len, src.src_data_precision, src.src_data_scale, src.src_nullable, src_cons,

    TGT.tgt_col_name, tgt.tgt_data_type, tgt.tgt_data_len, tgt.tgt_data_precision, tgt.tgt_data_scale, tgt.tgt_nullable, tgt_cons

    the CBC

    outer join full tgt

    on)

    SRC.src_col_name = tgt.tgt_col_name

    )

    )

    Select *.

    de)

    Select the case sensitive option

    When tgt_data_type! = src_data_type or tgt_data_len! = src_data_len or tgt_data_precision! = src_data_precision or tgt_data_scale! = src_data_scale or tgt_nullable! = src_nullable

    then 'alter table ' | tgt_table_name | 'Edit ' | tgt_col_name | ' ' || src_data_type | ' ' ||

    -case when src_data_type null ('DATE') then

    on the other

    case

    When src_data_type in ('VARCHAR', 'VARCHAR2')

    then ' (' |) NVL (to_char (src_data_len), ' ') | ') '

    otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')

    end

    end

    ||

    cases where tgt_nullable = 'Y' then 'null '.

    of another end 'not null '.

    || tgt_cons

    When tgt_col_name is null

    then 'alter table ' | tgt_table_name | 'Add ' | src_col_name | ' ' ||  ' ' || ' ' || src_data_type | ' ' ||

    -case when src_data_type null ('DATE') then

    on the other

    case

    When src_data_type in ('VARCHAR', 'VARCHAR2')

    then ' ('| nvl (to_char (src_data_len), ' ') |) ') '

    otherwise decode (nvl (src_data_precision-1),-1, null, nvl (to_char (src_data_precision), ' ') |) ', ' || NVL (to_char (src_data_scale), ' ') | ')')

    end

    end

    || tgt_cons

    When src_col_name is null

    then 'alter table' | tgt_table_name: ' drop '. tgt_col_name

    end alter_statement

    of col_details

    )

    where alter_statement is not null;

    using (OracleConnection conn1 = new OracleConnection (connectionString))

    {

    conn1. Open();

    Dim myQuery = "";

    using (OracleCommand = new OracleCommand (myQuery, conn1) crtCommand)

    {

    richTextBox1.AppendText (output);

    richTextBox1.AppendText (crtCommand.ExecuteNonQuery (). (ToString());

    richTextBox1.AppendText (output);

    }

    }

    VR;

    myQuery=
    @"with src as
    (
    ...
    ";
    

    That means a @ before the beginning of a string literal mean? -C# Foire - Site Home - MSDN Articles

    as an example

    OracleCommand cmd = con.CreateCommand();
    cmd.CommandText = @"begin apps.mo_global.init('SQLAP'); begin apps.fnd_global.apps_initialize(5710, 20639, 200); end; end;";
    cmd.ExecuteNonQuery();
    

    richTextBox1.AppendText (crtCommand.ExecuteNonQuery (). (ToString());                            

    is this correct? Not sure

    as example try

     using (OracleConnection conn1 = new OracleConnection(connectionString))
    {
        conn1.Open();
    
        string myQuery = "......";                  
    
        using (OracleCommand crtCommand = new OracleCommand(myQuery, conn1))
            {
                richTextBox1.AppendText(Environment.NewLine);
                // richTextBox1.AppendText(crtCommand.ExecuteNonQuery().ToString());
    
    OracleDataReader reader = crtCommand.ExecuteReader();
    while (reader.Read())
      {
        richTextBox1.AppendText(reader.GetString(0));
        // may be also
        // richTextBox1.AppendText(Environment.NewLine);
      }
    
                richTextBox1.AppendText(Environment.NewLine);
    
            reader.Dispose();
            cmd.Dispose();
            }
    
        con.Dispose();
    }
    
  • my computer is very slow to start up it will take 20 minutes so that it lights up. It wasn't like that when I got it. I did everything so he can go faster, but it used except if there's something I didn't do or I have viruses. Could you help me?

    Sometimes takes long start m wireless works and sometimes it doesn't. I could start it 3 times before that everything will work. It also freezes on me trying to get on it.

    You can have hardware failures. Repeatedly need to push the power button indicates a possible power supply problem, although other components could certainly be defective. So first make sure that the material is strong.

    http://www.elephantboycomputers.com/page2.html#Hardware_Tshoot

    On tests of hardware failures often alleged swapping parts by parts checked. If you can not do the test yourself and/or are uncomfortable opening your computer, take the machine to a professional computer repair shop (not your local equivalent of BigComputerStore/GeekSquad). If possible, have all your data backed up before taking the machine into a shop. MS - MVP - Elephant Boy computers - don't panic!

Maybe you are looking for

  • m9300t CTO - Vista "not responding" to Montor Wake Up

    Hello Recently I received a message 'No response' frustrating to Vista when I wake the computer.  To be clear, my current power setting turns off the monitor after 20 minutes, and I did not put computer to sleep at all.  After twenty minutes, my scre

  • Change the default display for iTunes songs

    Y at - it a script or other workaround to change the default view in iTunes for the SONGS rather than the Album or view Playlist? Thank you very much.

  • Loading of the binary of MySQL to Teststand

    Hello I have binary files stored in a MySQL database I want to load in Teststand so that I can send the data in a call to the DLL (with a JTAG programming). The question I have, is if there's a way to do this with the database built in connection of

  • WTS 37 error and how to solve?

    everything in the title

  • I'm disconnected from Windows Live Messanger

    Question of Neil Clark I selected the option Connect automatically in Windows Live Messenger when I turn my computer. Whenever I have shut down my computer, I am disconnected from Windows Live Messanger and must manually connect at the beginning of m