Long running update

Hello,
Can anyone explain why this simple update statement against a single partition in large table (~300,000 rows, ~1GB in size for the single partition) is taking very long time. The most unusual thing I see in the stats are HUGE number of buffer gets.
Table def is below, and there are 25 local b-tree indexes also on this table (too much to paste here), each on a single column residing in seperate tablespace than the table.
I don't have a trace and will not be able to get one. Any theories as to the high buffer gets? A simple table scan (which occurs many times in our batch) against a single partition takes usually between 30-60 seconds. Sometimes the table scan goes haywire and I see these huge buffer gets, somewhat higher disk reads, and much longer execution time. There are less than 3 million rows in the partition being acted on, and only updating a couple columns, I simply cannot understand why Oracle would be getting a block (whether it was in cache already or not) over 1 BILLION times to perform this update.
This is Oracle 11g 11.1.0.7 on RHL 5.3, 2 node RAC but all processing on instance 1 and instance 2 shut down at this point to avoid any possibility of cache fusuion issues.
Elapsed
SQL Id Time (ms)
0np3ccxhf9jmc 1.79E+07
UPDATE ESRODS.EXTR_CMG_TRANSACTION_HISTORY SET RULE_ID_2 = '9285', REPORT_CODE =
'MMKT' WHERE EDIT_CUSIP_NUM = '19766G868' AND PROCESS_DATE BETWEEN '01-JAN-201
0' AND '31-JAN-2010' AND RULE_ID_2 IS NULL
Plan Statistics
-> % Total DB Time is the Elapsed Time of the SQL statement divided
into the Total Database Time multiplied by 100
Stat Name Statement Per Execution % Snap
Elapsed Time (ms) 1.79E+07 17,915,656.1 2.3
CPU Time (ms) 1.18E+07 11,837,756.4 2.5
Executions 1 N/A N/A
Buffer Gets 1.09E+09 1.089168E+09 3.3
Disk Reads 246,267 246,267.0 0.0
Parse Calls 1 1.0 0.0
Rows 326,843 326,843.0 N/A
User I/O Wait Time (ms) 172,891 N/A N/A
Cluster Wait Time (ms) 0 N/A N/A
Application Wait Time (ms) 0 N/A N/A
Concurrency Wait Time (ms) 504,047 N/A N/A
Invalidations 0 N/A N/A
Version Count 21 N/A N/A
Sharable Mem(KB) 745 N/A N/A
Execution Plan
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop |
| 0 | UPDATE STATEMENT | | | | 36029 (100)| | | |
| 1 | UPDATE | EXTR_CMG_TRANSACTION_HISTORY | | | | | | |
| 2 | PARTITION RANGE SINGLE| | 305K| 21M| 36029 (1)| 00:05:16 | 62 | 62 |
| 3 | TABLE ACCESS FULL | EXTR_CMG_TRANSACTION_HISTORY | 305K| 21M| 36029 (1)| 00:05:16 | 62 | 62 |
Full SQL Text
SQL ID SQL Text
0np3ccxhf9jm UPDATE ESRODS.EXTR_CMG_TRANSACTION_HISTORY SET RULE_ID_2 = '9285'
', REPORT_CODE = 'MMKT' WHERE EDIT_CUSIP_NUM = '19766G868' AND PR
OCESS_DATE BETWEEN '01-JAN-2010' AND '31-JAN-2010' AND RULE_ID_2
IS NULL
Table def:
CREATE TABLE EXTR_CMG_TRANSACTION_HISTORY
TRANSACTION_ID NUMBER(15) NOT NULL,
CREATE_DATE DATE,
CREATE_USER VARCHAR2(80 BYTE),
MODIFY_DATE DATE,
MODIFY_USER VARCHAR2(80 BYTE),
EXCEPTION_FLG CHAR(1 BYTE),
SOURCE_SYSTEM VARCHAR2(20 BYTE),
SOURCE_TYPE VARCHAR2(32 BYTE),
TRANSACTION_STATUS VARCHAR2(8 BYTE),
FUND_ID NUMBER(15),
FUND_UNIT_ID NUMBER(15),
FROM_FUND_ID NUMBER(15),
FROM_FUND_UNIT_ID NUMBER(15),
EXECUTING_DEALER_ID NUMBER(15),
EXECUTING_BRANCH_ID NUMBER(15),
CLEARING_DEALER_ID NUMBER(15),
CLEARING_BRANCH_ID NUMBER(15),
BRANCH_PERSON_MAP_ID NUMBER(15),
BP_REP_MAP_ID NUMBER(15),
REP_ID NUMBER(15),
PERSON_ID NUMBER(15),
TPA_DEALER_ID NUMBER(15),
TRUST_DEALER_ID NUMBER(15),
TRANS_CODE_ID NUMBER(15),
EDIT_DEALER_NUM VARCHAR2(30 BYTE),
EDIT_BRANCH_NUM VARCHAR2(50 BYTE),
EDIT_REP_NUM VARCHAR2(100 BYTE),
EDIT_CUSIP_NUM VARCHAR2(9 BYTE),
TRANS_TYPE VARCHAR2(80 BYTE),
TRANSACTION_CD VARCHAR2(8 BYTE),
TRANSACTION_SUFFIX VARCHAR2(8 BYTE),
SHARE_BALANCE_IND VARCHAR2(2 BYTE),
PROCESS_DATE DATE,
BATCH_DATE DATE,
SUPER_SHEET_DATE DATE,
CONFIRM_DATE DATE,
TRADE_DATE DATE,
SETTLE_DATE DATE,
PAYMENT_DATE DATE,
AM_PM_CD VARCHAR2(2 BYTE),
TRUST_DEALER_NUM VARCHAR2(7 BYTE),
TPA_DEALER_NUM VARCHAR2(7 BYTE),
TRUST_COMPANY_NUM VARCHAR2(10 BYTE),
DEALER_NUM VARCHAR2(25 BYTE),
BRANCH_NUM VARCHAR2(50 BYTE),
REP_NUM VARCHAR2(100 BYTE),
DEALER_NAME VARCHAR2(80 BYTE),
REP_NAME VARCHAR2(80 BYTE),
SOCIAL_SECURITY_NUMBER VARCHAR2(9 BYTE),
ACCT_NUMBER_CD VARCHAR2(6 BYTE),
ACCT_NUMBER VARCHAR2(20 BYTE),
ACCT_SHORT_NAME VARCHAR2(80 BYTE),
FROM_TO_ACCT_NUM VARCHAR2(20 BYTE),
EXTERNAL_ACCT_NUM VARCHAR2(14 BYTE),
NAV_ACCT VARCHAR2(1 BYTE),
MANAGEMENT_CD VARCHAR2(16 BYTE),
PRODUCT VARCHAR2(80 BYTE),
SUBSET_PRODUCT VARCHAR2(3 BYTE),
FUND_NAME VARCHAR2(80 BYTE),
FUND_NUM VARCHAR2(7 BYTE),
FUND_CUSIP_NUM VARCHAR2(9 BYTE),
TICKER_SYMBOL VARCHAR2(10 BYTE),
APL_FUND_TYPE VARCHAR2(10 BYTE),
LOAD_INDICATOR VARCHAR2(50 BYTE),
FROM_TO_FUND_NUM VARCHAR2(7 BYTE),
FROM_TO_FUND_CUSIP_NUM VARCHAR2(9 BYTE),
CUM_DISCNT_NUM VARCHAR2(9 BYTE),
NSCC_CONTROL_CD VARCHAR2(15 BYTE),
NSCC_NAV_REASON_CD VARCHAR2(1 BYTE),
BATCH_NUMBER VARCHAR2(20 BYTE),
ORDER_NUMBER VARCHAR2(16 BYTE),
CONFIRM_NUMBER VARCHAR2(9 BYTE),
AS_OF_REASON_CODE VARCHAR2(3 BYTE),
SOCIAL_CODE VARCHAR2(3 BYTE),
NETWORK_MATRIX_LEVEL VARCHAR2(1 BYTE),
SHARE_PRICE NUMBER(15,4),
GROSS_AMOUNT NUMBER(15,2),
GROSS_SHARES NUMBER(15,4),
NET_AMOUNT NUMBER(15,2),
NET_SHARES NUMBER(15,4),
DEALER_COMMISSION_CODE CHAR(1 BYTE),
DEALER_COMMISSION_AMOUNT NUMBER(15,2),
UNDRWRT_COMMISSION_CODE CHAR(1 BYTE),
UNDRWRT_COMMISSION_AMOUNT NUMBER(15,2),
DISCO-stupid spam filter- UNT_CATEGORY VARCHAR2(2 BYTE),
LOI_NUMBER VARCHAR2(9 BYTE),
RULE_ID_1 NUMBER(15),
RULE_ID_2 NUMBER(15),
OMNIBUS_FLG CHAR(1 BYTE),
MFA_FLG CHAR(1 BYTE),
REPORT_CODE VARCHAR2(80 BYTE),
TERRITORY_ADDR_CODE VARCHAR2(3 BYTE),
ADDRESS_ID NUMBER(15),
POSTAL_CODE_ID NUMBER(15),
CITY VARCHAR2(50 BYTE),
STATE_PROVINCE_CODE VARCHAR2(5 BYTE),
POSTAL_CODE VARCHAR2(12 BYTE),
COUNTRY_CODE VARCHAR2(5 BYTE),
LOB_ID NUMBER(15),
CHANNEL_ID NUMBER(15),
REGION_ID NUMBER(15),
TERRITORY_ID NUMBER(15),
EXCEPTION_NOTES VARCHAR2(4000 BYTE),
SOURCE_RECORD_ID NUMBER(15),
LOAD_ID NUMBER(15),
BIN VARCHAR2(20),
SHARE_CLASS VARCHAR2(50),
ACCT_PROD_ID NUMBER,
ORIGINAL_FUND_NUM VARCHAR2(7),
ORIGINAL_FROM_TO_FUND_NUM VARCHAR2(7),
ACCT_PROD_REGISTRATION_ID NUMBER,
REGISTRATION_LINE_1 VARCHAR2(60),
REGISTRATION_LINE_2 VARCHAR2(60),
REGISTRATION_LINE_3 VARCHAR2(60),
REGISTRATION_LINE_4 VARCHAR2(60),
REGISTRATION_LINE_5 VARCHAR2(60),
REGISTRATION_LINE_6 VARCHAR2(35),
REGISTRATION_LINE_7 VARCHAR2(35),
SECONDARY_LOB_ID NUMBER(15,0),
SECONDARY_CHANNEL_ID NUMBER(15,0),
SECONDARY_REGION_ID NUMBER(15,0),
SECONDARY_TERRITORY_ID NUMBER(15,0),
ACCOUNT_OVERRIDE_PRIORITY_CODE NUMBER(3,0)
TABLESPACE P_ESRODS_EXTR_TRANS_LARGE_DAT
PCTUSED 0
PCTFREE 25
INITRANS 1
MAXTRANS 255
NOLOGGING
PARTITION BY RANGE (PROCESS_DATE)
PARTITION P_ESRODS_EXTR_CMG_TRAN_PRE2005 VALUES LESS THAN (TO_DATE(' 2005-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
COMPRESS
TABLESPACE P_ESRODS_EXTR_TRANS_LARGE_DAT
PCTFREE 25
INITRANS 100
MAXTRANS 255
STORAGE (
INITIAL 5M
NEXT 5M
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
PARTITION P_ESRODS_EXTR_CMG_TRAN_201105 VALUES LESS THAN (TO_DATE(' 2011-06-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
COMPRESS
TABLESPACE P_ESRODS_EXTR_TRANS_LARGE_DAT
PCTFREE 25
INITRANS 100
MAXTRANS 255
STORAGE (
INITIAL 5M
NEXT 5M
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
PARTITION P_ESRODS_EXTR_CMG_TRAN_201106 VALUES LESS THAN (TO_DATE(' 2011-07-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
LOGGING
COMPRESS
TABLESPACE P_ESRODS_EXTR_TRANS_LARGE_DAT
PCTFREE 25
INITRANS 100
MAXTRANS 255
STORAGE (
INITIAL 5M
NEXT 5M
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOCACHE
NOPARALLEL;
ALTER TABLE EXTR_CMG_TRANSACTION_HISTORY ADD (
CONSTRAINT PK_EXTR_CMG_TRANSACTION_HIST PRIMARY KEY (TRANSACTION_ID)
USING INDEX
TABLESPACE P_ESRODS_EXTR_TRANS_LARGE_IDX
PCTFREE 25
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 5M
NEXT 5M
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
Edited by: 855802 on May 1, 2011 6:46 AM

855802 wrote:
You cannot bypass redo logging on update statement, there are only a handfull of operations that you can skip redo logging. The table is created no-logging. Still, update of the this many rows should not be affected by the redo writes. I agree that would be a way to speed it up.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/clauses005.htm#i999782
NOLOGGING is supported in only a subset of the locations that support LOGGING. Only the following operations support the NOLOGGING mode:
DML:  
Direct-path INSERT (serial or parallel) resulting either from an INSERT or a MERGE statement. NOLOGGING is not applicable to any UPDATE operations resulting from the MERGE statement.
Direct Loader (SQL*Loader)
DDL:  
CREATE TABLE ... AS SELECT
CREATE TABLE ... LOB_storage_clause ... LOB_parameters ... NOCACHE | CACHE READS
ALTER TABLE ... LOB_storage_clause ... LOB_parameters ... NOCACHE | CACHE READS (to specify logging of newly created LOB columns)
ALTER TABLE ... modify_LOB_storage_clause ... modify_LOB_parameters ... NOCACHE | CACHE READS (to change logging of existing LOB columns)
ALTER TABLE ... MOVE
ALTER TABLE ... (all partition operations that involve data movement)
ALTER TABLE ... ADD PARTITION (hash partition only)
ALTER TABLE ... MERGE PARTITIONS
ALTER TABLE ... SPLIT PARTITION
ALTER TABLE ... MOVE PARTITION
ALTER TABLE ... MODIFY PARTITION ... ADD SUBPARTITION
ALTER TABLE ... MODIFY PARTITION ... COALESCE SUBPARTITION
CREATE INDEX
ALTER INDEX ... REBUILD
ALTER INDEX ... REBUILD [SUB]PARTITION
ALTER INDEX ... SPLIT PARTITIONYes, I was thinking in consideration with my previous post using create table as select ...... But, if it's in application side then you need to think about another solution...

Similar Messages

  • Long running update command -Request guidance.!!!

    Guys,
    I'm struck up with an update query below , that has been running for hours together.
    UPDATE ft
    SET fact_1 = ( SELECT --+ USE_HASH(fb ft1)
    fb.fact_2
    FROM ODS_WO_WMIN04_FB fb, ft1 WHERE
    AND ft1.geo = fb.geo
    AND ft1.prod = fb.prod
    AND ft1.cust = fb.cust
    AND ft1.geo = ft.geo
    AND ft1.prod = ft.prod
    AND ft1.cust = ft.cust
    AND ft1.file = 123
    AND ft.file_ = 123)
    The data in the underlying tables ranges to a few thousands, so there is no reason why it should run for 3 hours now.
    When I check if there exists a lock on the tables,it is so.
    SQL:cdwcp1 -> select
    2 object_name,
    3 object_type,
    4 session_id,
    5 type, -- Type or system/user lock
    6 lmode, -- lock mode in which session holds lock
    7 request,
    8 block,
    9 ctime -- Time since current mode was granted
    10 from
    11 v$locked_object, all_objects, v$lock
    12 where
    13 v$locked_object.object_id = all_objects.object_id AND
    14 v$lock.id1 = all_objects.object_id AND
    15 v$lock.sid = v$locked_object.session_id
    16 order by
    17 session_id, ctime desc, object_name
    18 /
    OBJECT_NAME OBJECT_TYPE SESSION_ID TY LMODE
    REQUEST BLOCK CTIME
    FT TABLE 144 TM 3
    0 0 31263
    Could somone let me know what is there in the udpate that could've caused the lock that holds there for such long?
    Thank you all!!!!
    Bhagat

    PLAN_TABLE_OUTPUT
    | Id  | Operation                            |  Name                        | Rows  | Bytes | Cost  | Pstart| Pstop |
    |   0 | UPDATE STATEMENT                     |                              |   866K|    75M|   206 |       |       |
    |   1 |  UPDATE                              | FT       |       |       |       |       |       |
    |   2 |   TABLE ACCESS FULL                  | FT       |   866K|    75M|   206 |       |       |
    |   3 |   FILTER                             |                              |       |       |       |       |       |
    |   4 |    HASH JOIN                         |                              |     1 |   147 |    24 |       |       |
    |   5 |     TABLE ACCESS BY LOCAL INDEX ROWID| FB             |     1 |    69 |     1 |   117 |   117 |
    |   6 |      BITMAP CONVERSION TO ROWIDS     |                              |       |       |       |       |       |
    |   7 |       BITMAP INDEX SINGLE VALUE      | FB_IDX1        |       |       |       |   117 |   117 |
    |   8 |     TABLE ACCESS BY INDEX ROWID      | FT       |     1 |    78 |    21 |       |       |
    |   9 |      BITMAP CONVERSION TO ROWIDS     |                              |       |       |       |       |       |
    |  10 |       BITMAP INDEX SINGLE VALUE      | FT_IDX1  |       |       |       |       |       |
    [\pre]
    The above is the explain plan guys..Please assist.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Long running updates and lock escalation

    I have a question about locking when updating tables from SAP on a MSSQL2005 database.
    Once a month we have a report for updating several rows (1 mio) on a special ledger table.
    This report is taken the update as one transaction because of the possibility for rolling back. It is ledger data so we want to keep the update safe.
    When running this report the online users has access to the same table. The users can make INSERT into the same table without any problems.
    But after 15-20 minutes runtime the whole table is locked by a table lock instead of row locks. Therefore the users goes into a "hanging" situations when trying to make INSERT into the table. The locks are held until our program has finished.
    Is there any way to raise the level of row locking escalation on a MSSQL2005 database?
    I have found the trace flag 1211 and 1224 but is it safe setting this on a production database?

    Hii,,
    I would suggest you to run the report when the users are not there as it is related to ledger table.
    just schedule it at the low peak times.
    Also the trace flags that you have mentioned can be harmful also
    so i would better recommend not to use it.
    Please refer to the link
    http://blogs.msdn.com/sqlserverstorageengine/archive/2006/05/17/Lock-escalation.aspx
    Also if u want to activate these traces I would recommend to talk to SAP before that
    Rohit

  • Long running update statement needs a performance improve.

    Hi,
    I have the following update statement which runs for over 3 hours and updates 215 million rows, is there anyway I can rewrite it so it performs better?
    UPDATE TABLE1 v
            SET closs = (SELECT MIN(slloss)
                               FROM TABLE2 l
            WHERE polnum = slpoln
            AND      polren = slrenn
            AND      polseq = slseqn
            AND      vehnum = slvehn
            AND      linecvg = sllcvg);Here is the execution plan:
    PLAN_TABLE_OUTPUT
    | Id  | Operation                     | Name        | Rows  | Bytes | Cost (%CPU)|
    |   0 | UPDATE STATEMENT              |             |   214M|  4291M|  2344K  (2)|
    |   1 |  UPDATE                       | TABLE1      |       |       |            |
    |   2 |   TABLE ACCESS FULL           | TABLE1      |   214M|  4291M|  2344K  (2)|
    |   3 |   SORT AGGREGATE              |             |     1 |    21 |            |
    |   4 |    TABLE ACCESS BY INDEX ROWID| TABLE2      |     1 |    21 |     5   (0)|
    |   5 |     INDEX RANGE SCAN          | TABLE2_N2   |     2 |       |     3   (0)|
    ----------------------------------------------------------------------------------Here are create table statements for TABLE1(215million rows) and TABLE2(1million rows):
    CREATE TABLE  TABLE2 (SLCLMN VARCHAR2(11 byte),
        SLFEAT NUMBER(2), SLPOLN NUMBER(9), SLRENN NUMBER(2),
        SLSEQN NUMBER(2), SLVEHN NUMBER(2), SLDRVN NUMBER(2),
        SLCVCD VARCHAR2(6 byte), SLLCVG NUMBER(4), SLSABB
        VARCHAR2(2 byte), SLPRCD VARCHAR2(3 byte), SLRRDT
        NUMBER(8), SLAYCD NUMBER(7), SLCITY VARCHAR2(28 byte),
        SLZIP5 NUMBER(5), SLCEDING VARCHAR2(1 byte), SLCEDELOSS
        VARCHAR2(1 byte), SLRISKTYPE VARCHAR2(1 byte), SLVEHDESIG
        VARCHAR2(1 byte)) 
        TABLESPACE S_DATA PCTFREE 10 PCTUSED 0 INITRANS 1
        MAXTRANS 255
        STORAGE ( INITIAL 106496K NEXT 0K MINEXTENTS 1 MAXEXTENTS
        2147483645 PCTINCREASE 0)
        NOLOGGING
        MONITORING;
    CREATE TABLE  TABLE1 (POLNUM NUMBER(9) NOT NULL,
        POLREN NUMBER(2) NOT NULL, POLSEQ NUMBER(2) NOT NULL,
        VEHNUM NUMBER(2) NOT NULL, CVGCODE VARCHAR2(8 byte) NOT
        NULL, LINECVG NUMBER(4), MAINVEH CHAR(1 byte), MAINCVG
        CHAR(1 byte), CVGLIMIT VARCHAR2(13 byte), CVGDED
        VARCHAR2(10 byte), FULLCVG CHAR(1 byte), CVGGRP CHAR(4
        byte), CYCVG CHAR(1 byte), POLTYPE CHAR(1 byte),
        CHANNEL CHAR(2 byte), UWTIER VARCHAR2(6 byte), SUBTIER
        VARCHAR2(6 byte), THITIER VARCHAR2(3 byte), COMPGRP
        VARCHAR2(8 byte), PRODGRP VARCHAR2(6 byte), UWSYS
        VARCHAR2(6 byte), BRAND VARCHAR2(8 byte), COMP NUMBER(2),
        STATE CHAR(2 byte), PROD CHAR(3 byte), RRDATE DATE,
        STATENUM NUMBER(2), EFT_BP CHAR(1 byte), AGYCODE
        NUMBER(7), AGYSUB CHAR(3 byte), AGYCLASS CHAR(1 byte),
        CLMAGYCODE NUMBER(7), AGYALTCODE VARCHAR2(25 byte),
        AGYRELATION VARCHAR2(10 byte), RATECITY VARCHAR2(28 byte),
        RATEZIP NUMBER(5), RATETERR NUMBER, CURTERR NUMBER,
        CURRRPROD CHAR(6 byte), CURRRDATE DATE, RATESYMB NUMBER,
        SYMBTYPE CHAR(1 byte), CVGTERR NUMBER(3), CVGSYMB
        NUMBER(3), VEHTERR NUMBER, VEHYEAR NUMBER, VEHMAKE
        VARCHAR2(6 byte), VEHMODEL VARCHAR2(10 byte), VEHSUBMOD
        VARCHAR2(10 byte), VEHBODY VARCHAR2(6 byte), VEHVIN
        VARCHAR2(10 byte), VEHAGE NUMBER(3), VEHSYMB NUMBER,
        DRVNUM NUMBER, DUMMYDRV CHAR(1 byte), DRVAGE NUMBER(3),
        DRVSEX VARCHAR2(1 byte), DRVMS VARCHAR2(1 byte), DRVPTS
        NUMBER(3), DRVPTSDD NUMBER(3), DRVGRP CHAR(7 byte),
        DRVSR22 VARCHAR2(1 byte), DRVVTIER CHAR(2 byte),
        BUSUSESUR CHAR(1 byte), EXCLDRVSUR CHAR(1 byte),
        CSCODED NUMBER(5), CSACTUAL NUMBER(5), CSOVERRD
        NUMBER(5), ANNMILES NUMBER(6), DLORIGDATE DATE,
        DLLASTDATE DATE, DLMONTHS NUMBER(6), MATUREDSC CHAR(1
        byte), PERSISTDSC CHAR(1 byte), ANNUALMILES_RANGE
        VARCHAR2(25 byte), CEDEDLOSS VARCHAR2(1 byte), CEDEDPOL
        VARCHAR2(1 byte), CEDEDCVG VARCHAR2(1 byte),
        CONSTRAINT TABLE1_PK PRIMARY KEY(POLNUM, POLREN,
        POLSEQ, VEHNUM, CVGCODE)
        USING INDEX 
        TABLESPACE V_INDEX
        STORAGE ( INITIAL 3874816K NEXT 0K MINEXTENTS 1 MAXEXTENTS
        2147483645 PCTINCREASE 0) PCTFREE 10 INITRANS 2 MAXTRANS 255)
        TABLESPACE U_DATA PCTFREE 10 PCTUSED 0 INITRANS 1
        MAXTRANS 255
        STORAGE ( INITIAL 4194304K NEXT 0K MINEXTENTS 1 MAXEXTENTS
        2147483645 PCTINCREASE 0)
        NOLOGGING
        MONITORING;Thank you very much!

    user6053424 wrote:
    Hi,
    I have the following update statement which runs for over 3 hours and updates 215 million rows, is there anyway I can rewrite it so it performs better?
    UPDATE TABLE1 v
    SET closs = (SELECT MIN(slloss)
    FROM TABLE2 l
    WHERE polnum = slpoln
    AND      polren = slrenn
    AND      polseq = slseqn
    AND      vehnum = slvehn
    AND      linecvg = sllcvg);
    Are you trying to perform a correlated update? If so, you can perform something similar to;
    Sample data;
    create table t1 as (
       select 1 id, 10 val from dual union all
       select 1 id, 10 val from dual union all
       select 2 id, 10 val from dual union all
       select 2 id, 10 val from dual union all
       select 2 id, 10 val from dual);
    Table created
    create table t2 as (
       select 1 id, 100 val from dual union all
       select 1 id, 200 val from dual union all
       select 2 id, 500 val from dual union all
       select 2 id, 600 val from dual);
    Table createdThe MERGE will update each row based on the maximum for each ID;
    merge into t1
    using (select id, max(val) max_val
           from t2
           group by id) subq
    on (t1.id = subq.id)
    when matched then update
        set t1.val = subq.max_val;
    Done
    select * from t1;
            ID        VAL
             1        200
             1        200
             2        600
             2        600
             2        600If you want all rows updated to the same value then remove the ID grouping from the subquery and from the ON clause.

  • Long running Update-Statement

    I'm having a update-Statement that is running in Version 1.1 more than 30 minutes, but in Version 1.0 and SQL-Plus only 30 seconds.
    SQL-Developer is running on WinXP
    Oracle is Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
    and this was the statement (witch is updating 2830 rows):
    update hist_person p1
    set letzte_vermittlung = (select letzte_vermittlung from hist_person p2
    where p2.datum = add_months(date '2006-01-01',-1)
    and p2.p_nr = p1.p_nr)
    where p1.datum = date '2006-01-01'
    and p1.p_nr in (select aktmon.p_nr
    from hist_person vormon, hist_person aktmon
    where aktmon.datum = date '2006-01-01'
    and vormon.datum = add_months(date '2006-01-01',-1)
    and vormon.p_nr = aktmon.p_nr
    and vormon.letzte_vermittlung > nvl(aktmon.letzte_vermittlung, date '1900-01-01'));

    Mmm, read up on the "NLS_COMP set to ANSI" threads.
    Try setting NLS_COMP to binary for the session, then run your update and see if that fixes the issue. If so, the forthcoming patch will probably fix the issue, else get back here...
    K.

  • Can a long running batch job causing deadlock bring server performance down

    Hi
    I have a customer having a long running batch job (approx 6 hrs), recently we experienced performance issue where the job now taking >12 hrs. The database server is crawling. Looking at the alert.log showing some deadlock,
    The batch job are in fact many parallel child batch job that running at the same time, that would have explain the deadlock.
    Thus, i just wondering any possibility that due to deadlock, can cause the whole server to be crawling, even connect to the database using toad is also getting slow or doing ls -lrt..
    Thanks
    Rgds
    Ung

    Kok Aik wrote:
    According to documentation, complex deadlock can make the job appeared hang & affect throughput, but it didn't mentioned how it will make the whole server to slow down. My initial thought would be the rolling back and reconstruct of CR copy that would have use up the cpu.
    I think your ideas on rolling back, CR construction etc. are good guesses. If you have deadlocks, then you have multiple processes working in the same place in the database at the same time, so there may be other "near-deadlocks" that cause all sorts of interference problems.
    Obviously you could have processes queueing for the same resource for some time without getting into a deadlock.
    You can have a long running update hit a row which was changed by another user after the update started - which woudl cause the long-running update to rollback and start again (Tom Kyte refers to this as 'write consistency' if you want to search his website for a discussion on the topic).
    Once concurrent processes start sliding out of their correct sequences because of a few delays, it's possible for reports that used to run when nothing else was going on suddenly finding themselves running while updates are going on - and doing lots more reads (physical I/O) of the undo tablespace to take blocks a long way back into the past.
    And so on...
    Anyway, according to the customer, the problem seems to be related to the lgpr_size as the problem disappeared after they revert it back to its orignial default value,0. I couldn't figure out what the lgpr_size is - can you explain.
    Thanks
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    "Science is more than a body of knowledge; it is a way of thinking" Carl Sagan

  • I own the very first ipod and can no longer be updated or synced any suggestions to get it back up and running, has just decided to stop 2015

    I own the very first ipod and can no longer be updated or synced any suggestions to get it back up and running, has just decided to stop 2015

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable                     
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar                              
    It could be that the battery has died

  • TS1702 I have an iPhone 3G and I had skype installed before it updated to v.4. Now, during a backup, iTunes tells me i can no longer run Skype on my iPhone because the latest version of Skype is not compatible. Is there any way I can install an older vers

    I have an iPhone 3G and I had skype installed before it updated to v.4. Now, during a backup, iTunes tells me i can no longer run Skype on my iPhone because the latest version of Skype is not compatible. Is there any way I can install an older version?

    How can I contact Viber support? When I go to their website there's no such thing as 'email us' or 'contact us'.
    They may have a do-it-yourself troubleshoot system but that doesnt help my problem at all.

  • I can no longer run itunes since the latest update

    i can no longer run itunes since the latest update

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features(Later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (If this won't uninstall press on)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    Should you get the error iTunes.exe - Entry Point Not Found after the above reinstall then copy QTMovieWin.dll from:
    C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    and paste into:
    C:\Program Files (x86)\iTunes
    The above paths would be for a 64-bit machine. Hopefully the same fix with the " (x86)" omitted would work on 32-bit systems with the same error.

  • After installing the most recent iTunes update/version iTunes will no longer run on my PC.  I receive a window with the Microsoft error code R6034

    After installing the most recent iTunes update/version iTunes will no longer run on my PC (Windows 7).  I receive multiple error windows with the Microsoft error code R6034.  Microsoft's Help site states that this error occurs when a driver attempts to access the C++ library without a "Manifest".  I do not know what a manifest is, but apparently any attempt to directly access the C++ library is not permitted.  The site instructs the viewer to contact the application developer.

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • After running Software update, I can no longer run, open, sync or use iTunes in any way. PLEASE what happened??

    I was running the newest version of Snow Leopard, and after running Software update, I can no longer run, open, sync or use iTunes in any way. PLEASE what happened?
    I really regret that I said "OK" to Software Update message... after Software Update of these updates on 7-26-11:
    Migration Assistant Update for Mac
    Mac OSX 10.6.8 Supplemental Update
    Safari
    iTunes
    Remote Desktop Client Update
    Now I get a message:
    iTunes cannot be opened because of a problem
    Check with developer to make sure iTunes works with this version of Mac OSX. You may need to reinstall the application. Be sure to install any available updates for the application and Mac OSX.
    Process:         iTunes [5092]
    Path:            /Applications/iTunes.app/Contents/MacOS/iTunes
    Identifier:      com.apple.iTunes
    Version:         ??? (???)
    Build Info:      iTunes-10315501~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [111]
    Date/Time:       2011-07-26 12:08:18.568 -0500
    OS Version:      Mac OS X 10.6.8 (10K540)
    Report Version:  6
    Interval Since Last Report:          504736 sec
    Crashes Since Last Report:           20
    Per-App Crashes Since Last Report:   13
    Anonymous UUID:                      B8B5EE28-970A-4E79-949B-EA2DD6E6DAA2
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread:  0
    Dyld Error Message:
      Library not loaded: @loader_path/libgnsdk_musicid.1.8.2.dylib
      Referenced from: /Applications/iTunes.app/Contents/MacOS/iTunes
      Reason: image not found
    Binary Images:
    0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <A4F6ADCC-6448-37B4-ED6C-ABB2CD06F448> /usr/lib/dyld
    Model: Macmini3,1, BootROM MM31.00AD.B00, 2 processors, Intel Core 2 Duo, 2.26 GHz, 2 GB, SMC 1.35f1
    Graphics: NVIDIA GeForce 9400, NVIDIA GeForce 9400, PCI, 256 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x90), Broadcom BCM43xx 1.0 (5.10.131.42.4)
    Bluetooth: Version 2.4.5f3, 2 service, 19 devices, 1 incoming serial ports
    Network Service: Ethernet, Ethernet, en0
    Serial ATA Device: Hitachi HTS543216L9SA02, 149.05 GB
    Serial ATA Device: OPTIARC DVD RW AD-5680H
    USB Device: External HDD, 0x1058  (Western Digital Technologies, Inc.), 0x0704, 0x24100000 / 2
    USB Device: Hub, 0x0424  (SMSC), 0x2507, 0x26400000 / 2
    USB Device: iMic USB audio system, 0x077d, 0x07af, 0x26440000 / 4
    USB Device: Hub, 0x0424  (SMSC), 0x2502, 0x26470000 / 3
    USB Device: Deskjet D4300 series, 0x03f0  (Hewlett Packard), 0x1f04, 0x26471000 / 5
    USB Device: GD-0608-U, 0x056a  (WACOM Co., Ltd.), 0x0021, 0x04700000 / 4
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x04500000 / 3
    USB Device: Hub in Apple Pro Keyboard, 0x05ac  (Apple Inc.), 0x1003, 0x04300000 / 2
    USB Device: Apple Optical USB Mouse, 0x05ac  (Apple Inc.), 0x0307, 0x04310000 / 6
    USB Device: Apple Pro Keyboard, 0x05ac  (Apple Inc.), 0x020b, 0x04330000 / 5
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000 / 2
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8216, 0x06110000 / 5
    FireWire Device: unknown_device, Unknown
    FireWire Device: d2 DVDRW FW, LaCie, Up to 400 Mb/sec

    Same thing happened to me and I get the same error message. These are the programs that don't work
    mail
    keynote
    pages
    all Office 2011 programs
    safari

  • Java will no longer run on my MacBook pro since I updated my java

    Java will no longer run on my MacBook pro since I updated my java - what the heck is with that? When I try to do as suggested and go under Java preferences it wont allow me make any changes this is the error message I get "Cannot launch "java preference" no compatible version of Java 1.5 + is available."
    Then it gives the option to open java preferences or quit. It will only allow me to quit as it won't open java preferences. Stupid updates!

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • I need to uninstall Captivate update 7.0.1 becuase my quizzes will no longer run on any platform bro

    I need to uninstall Captivate update 7.0.1 becuase my quizzes will no longer run on any platform browser.
    The reason they do not run is becuase LMS API will not load the quiz. because of a java script error (see image below)
    The new update 7.0.1 has drastically changed the following files:
    imsmanifest.xml
    index_SCORM.html
    SCORM_utilities.js
    Utilities.js
    The new script just will not run on Firefox 26
    Internet Explorer 10 and 11
    Chrome 31.0.1650.63m
    Safari 5.1.7
    How do I uninstall this update and get back to the earlier version or is there something that will fix this?
    Claire

    you would uninstall your current version and then reinstall the previous version, but there may be a better way to handle that error.
    post on the captivate forum to check, http://forums.adobe.com/community/adobe_captivate

  • Windows Updates Causing CFMX7 and CF8 to no longer run.

    My CFMX7 and CF8 developer's copy will no longer run on my
    computer. The only thing I've done is install window's updates.
    Now, every time I reboot, I have to restore to a date about 2 weeks
    ago. Then it will run until I have to reboot again. Then I have to
    restore again. I have no idea what to do about this. Any help would
    be appreciated.
    I have both CFMX7 and CF8 installed to run as stand alone
    concurrent systems. CFMX7 is supposed to run on port 8500. CF8 is
    set to run on 8501. And both DO run, but only when I restore after
    reboots.
    The only thing I can think of doing at this point is
    uninstalling both CF servers and reinstalling them. This will be a
    hastle, though, since I'll have to re-setup all my ODBC sources and
    copy my wwwroot folders, hoping I don't forget anything else that
    I'll have to reset in the adminstrators after I reinstall. This
    would be my last choice of action, but I have to act soon as this
    is interfering with my dev work with customers.
    Anyone have any suggestions?

    Zy Forever wrote:
    > Thanks Ian. Can you give me more information on this, or
    tell me where to look to find it?
    The exact location depends on what flavor of CF you have
    installed,
    server, multi-home, j2ee, etc.
    But there are a collection that in CF 7 where all called
    neo-xxx.xml. I
    believe the xml file names are similar for CF 8.
    If you copy the desired xml file from your old installation
    into a new
    installation and then restart the CF server all the settings
    can be
    restored.
    If you are using enterprise or development license servers
    you can also
    achieve the above using the built in CAR (ColdFusion Archive)
    feature of
    the administrator.

  • Flash player update causing IE browsing delays due to long running script

    Hi
    Can anyone help with this problem please: Flash player update causing IE browsing delays due to long running script. When I go to Google accounts or google anayltics long running script sometimes stops the loading of the google sites and the message appreas
    long running script preventing loading
    What in the name of God is this
    PP

    Hi Mokhtar,
    Thanks for your reply.
    I referred the scripts as below I master page and added .Js files in layouts directory inder 1033 folder.
    <SharePoint:ScriptLink ID="jQuery164" runat="server" Name="jquery-1.6.4.js" LoadAfterUI="true" OnDemand="false"/>
       <SharePoint:ScriptLink ID="SPUtility1" runat="server" Name="spjs-utility.js" LoadAfterUI="true" OnDemand="false"/>
       <SharePoint:ScriptLink ID="SuperFish" runat="server" Name="superfish.js" LoadAfterUI="true" OnDemand="false"/>
       <SharePoint:ScriptLink ID="SuperFishSP" runat="server" Name="SuperfishForSharePoint.js" LoadAfterUI="true" OnDemand="false"/>
    still the issue is not resolved.
    Is there any changes I've to do

Maybe you are looking for