Oracle tuning question Chalanachithram.com | Topics | Search
Hide Clipart | Log Out | Register | Edit Profile

Last 30 mins | 1 | 2 | 4 hours     Last 1 | 7 Days

Chalanachithram.com DB » TF Industry related » Archive through February 03, 2012 » Oracle tuning question « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7840
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:59 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Airliner:

open world or IOUG guruvu gari darsanam chesukovalsinde year ki oopalanna



Nenu kuda oka sari kalisi ashirvadam tesukovali
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7839
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:58 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Triggerblaster:

If oracle Ask tom for everything else ask God.



Well said, he is the real oracle guru.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Airliner
Junior Artist
Username: Airliner

Post Number: 311
Registered: 11-2011
Posted From: 136.223.19.65

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:58 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Ustad:

Tom Vuncle rocks as usual.


keka candidate. open world or IOUG guruvu gari darsanam chesukovalsinde year ki oopalanna
Top of pagePrevious messageNext messageBottom of page Link to this message

Triggerblaster
Comedian
Username: Triggerblaster

Post Number: 1936
Registered: 03-2008
Posted From: 140.98.210.243

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:57 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Ustad:


Tom Vuncle



If oracle Ask tom for everything else ask God.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7838
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:57 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Airliner:

check disk IO performance, wait queue. EK garu cheppinattu physical data organization is key too. If you have index tablespace datafiles and actual table space datafiles on same disk there will be disk contention. Index read/write is the costliest I/O in database.



Will take a deep dive into AWR and ADDM reports.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Triggerblaster
Comedian
Username: Triggerblaster

Post Number: 1935
Registered: 03-2008
Posted From: 140.98.210.243

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:56 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Entikaburlu:

source has existing and non existing. when you left join existing get filtered out kadaa



akkada problem reading kaadu inserting.
When inserting server tires to index each record with huge data which is taking time.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7837
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:55 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Triggerblaster:

http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUES TION_ID:1921387700346909109



Tom Vuncle rocks as usual. I am reading his book "Cost Based Fundamentals"...superb piece of work.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Entikaburlu
Side Hero
Username: Entikaburlu

Post Number: 5954
Registered: 07-2011
Posted From: 67.247.83.224

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:54 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Sachin:

asalu minus place lo left join ela vadatham...minus vaduthunadu ante he doesn't want to show few records...




source has existing and non existing. when you left join existing get filtered out kadaa..
all opinions expressed are mine and only mine. not to be attributed to the other IP address sharers, my employer, or any other human, animal, robot or alien.
Top of pagePrevious messageNext messageBottom of page Link to this message

Airliner
Junior Artist
Username: Airliner

Post Number: 310
Registered: 11-2011
Posted From: 136.223.19.65

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:51 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

check disk IO performance, wait queue. EK garu cheppinattu physical data organization is key too. If you have index tablespace datafiles and actual table space datafiles on same disk there will be disk contention. Index read/write is the costliest I/O in database.
Top of pagePrevious messageNext messageBottom of page Link to this message

Sachin
Megastar
Username: Sachin

Post Number: 27381
Registered: 04-2008
Posted From: 69.248.109.234

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:51 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Entikaburlu:

exists badulu left join inka better.
but he says bottlenexk is not select, it is in insert




left join sure naaa? annnai...monnoka left join ettaa sql chachipoyindi...

asalu minus place lo left join ela vadatham...minus vaduthunadu ante he doesn't want to show few records...
share ki gross ki thedaa theliyakapothenemi..daatar maaya box office disco lo iragadeesthaaadu... ki ki ki ...
Top of pagePrevious messageNext messageBottom of page Link to this message

Triggerblaster
Comedian
Username: Triggerblaster

Post Number: 1934
Registered: 03-2008
Posted From: 140.98.210.243

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:46 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUES TION_ID:1921387700346909109
Top of pagePrevious messageNext messageBottom of page Link to this message

Triggerblaster
Comedian
Username: Triggerblaster

Post Number: 1933
Registered: 03-2008
Posted From: 140.98.210.243

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:46 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

Did you try append?
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7836
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:44 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Entikaburlu:

are you using RAID5?

where are the indexes and data stored? you have start looking at the physical organization of data now.



I checked AWR and ADDM reports and CPU Time is the # 1 event. I think finding a way to bypass index (by dropping before insert) seems to be the quick fix for this problem.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Entikaburlu
Side Hero
Username: Entikaburlu

Post Number: 5949
Registered: 07-2011
Posted From: 67.247.83.224

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:40 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

are you using RAID5?

where are the indexes and data stored? you have start looking at the physical organization of data now.
all opinions expressed are mine and only mine. not to be attributed to the other IP address sharers, my employer, or any other human, animal, robot or alien.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7835
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:40 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Entikaburlu:

if you want try everything, try reverse key index

http://www.dba-oracle.com/t_reverse_key_indexes_dml_insert.h tm



Looks interesting, will try to find some more material and commands for RK index. Thanks!
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7834
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:38 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Entikaburlu:

try append hint..



Already tried, parallel hint, append hint and nologging mode.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Entikaburlu
Side Hero
Username: Entikaburlu

Post Number: 5947
Registered: 07-2011
Posted From: 67.247.83.224

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:28 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

if you want try everything, try reverse key index

http://www.dba-oracle.com/t_reverse_key_indexes_dml_insert.h tm
all opinions expressed are mine and only mine. not to be attributed to the other IP address sharers, my employer, or any other human, animal, robot or alien.
Top of pagePrevious messageNext messageBottom of page Link to this message

Entikaburlu
Side Hero
Username: Entikaburlu

Post Number: 5946
Registered: 07-2011
Posted From: 67.247.83.224

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:26 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

try append hint..
all opinions expressed are mine and only mine. not to be attributed to the other IP address sharers, my employer, or any other human, animal, robot or alien.
Top of pagePrevious messageNext messageBottom of page Link to this message

Entikaburlu
Side Hero
Username: Entikaburlu

Post Number: 5945
Registered: 07-2011
Posted From: 67.247.83.224

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:22 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Ustad:

Yes.




Hmm.. is the index clustered?
all opinions expressed are mine and only mine. not to be attributed to the other IP address sharers, my employer, or any other human, animal, robot or alien.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7832
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 07:18 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Entikaburlu:

if you drop the index and insert, is insert flying?



Yes.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Entikaburlu
Side Hero
Username: Entikaburlu

Post Number: 5936
Registered: 07-2011
Posted From: 67.247.83.224

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 06:56 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Sachin:

minus badulu exists vaadithe better anukuntunnaaa




exists badulu left join inka better.

but he says bottlenexk is not select, it is in insert
all opinions expressed are mine and only mine. not to be attributed to the other IP address sharers, my employer, or any other human, animal, robot or alien.
Top of pagePrevious messageNext messageBottom of page Link to this message

Sachin
Megastar
Username: Sachin

Post Number: 27380
Registered: 04-2008
Posted From: 69.248.109.234

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 06:51 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

already chalamandi cheppesinattunnaaaru...

try bulk insert with commits...
drop index and rebuild after load.

minus badulu exists vaadithe better anukuntunnaaa
share ki gross ki thedaa theliyakapothenemi..daatar maaya box office disco lo iragadeesthaaadu... ki ki ki ...
Top of pagePrevious messageNext messageBottom of page Link to this message

Entikaburlu
Side Hero
Username: Entikaburlu

Post Number: 5928
Registered: 07-2011
Posted From: 67.247.83.224

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 06:37 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Ustad:

Only 1 index, i.e. PK index.




for kickers.. if you drop the index and insert, is insert flying?

I think the problem is your records are not cleanly fitting into segments of your table space. it is either defragging or fragmenting all the time, or you do not have enough disk space. also check your temp space
all opinions expressed are mine and only mine. not to be attributed to the other IP address sharers, my employer, or any other human, animal, robot or alien.
Top of pagePrevious messageNext messageBottom of page Link to this message

Entikaburlu
Side Hero
Username: Entikaburlu

Post Number: 5927
Registered: 07-2011
Posted From: 67.247.83.224

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 06:35 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Ustad:

I narrowed down the problem to Insert being slow.




check if you insert only some columns first and then refresh other columns using update any better? insert all keys first and then update other columns using updates. see if any better..
all opinions expressed are mine and only mine. not to be attributed to the other IP address sharers, my employer, or any other human, animal, robot or alien.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7829
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 06:32 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Entikaburlu:

how is the Select performance without Insert? is it good? findout if the bottleneck is the select or insert.



I narrowed down the problem to Insert being slow.


Entikaburlu:

if insert itself is slow, you have to check your table spaces, and number of indexes. remove any duplicate indexes. check if you have any clusetered indexes. see if you can do away with the clustered indexes.



Only 1 index, i.e. PK index.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Entikaburlu
Side Hero
Username: Entikaburlu

Post Number: 5925
Registered: 07-2011
Posted From: 67.247.83.224

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 06:22 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

how are you doing the Minu function, using a left join or where exists?

how is the Select performance without Insert? is it good? findout if the bottleneck is the select or insert.

if the select is slow, change subquery for checking the existence of the row to use a left join.

if insert itself is slow, you have to check your table spaces, and number of indexes. remove any duplicate indexes. check if you have any clusetered indexes. see if you can do away with the clustered indexes.

all fails, think terms of writing a custom loader.
all opinions expressed are mine and only mine. not to be attributed to the other IP address sharers, my employer, or any other human, animal, robot or alien.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7819
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 05:10 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Kaisersooze:

iddhi kottu brother...faaat ani ayipothadhi...cursor loki bulk fetch chesi...insert cheyyi...



Next week idi try chestanu.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Kaisersooze
Moderator
Username: Kaisersooze

Post Number: 6021
Registered: 04-2009

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 04:54 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Just4fun:





ok nenu repu call chestha vadiki
Top of pagePrevious messageNext messageBottom of page Link to this message

Just4fun
Megastar
Username: Just4fun

Post Number: 25047
Registered: 10-2007
Posted From: 174.37.61.78

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 04:48 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

Kaiser mama, aaditho matladi update cheyu ..12 mandi waiting
Top of pagePrevious messageNext messageBottom of page Link to this message

Kaisersooze
Moderator
Username: Kaisersooze

Post Number: 6019
Registered: 04-2009

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 04:11 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Ustad:

Bulk collect option try cheyyaledu...adi okkati try cheyyali.





iddhi kottu brother...faaat ani ayipothadhi...cursor loki bulk fetch chesi...insert cheyyi...
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7818
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 03:52 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Airliner:

ow about direct path load using sql loader?



Good idea...worth trying.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7817
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 03:51 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Kaisersooze:

explain plan run chesava? run chesi plan ela vundho chudu...and how big is the query? oke proc rasi update kottu....



AWR report kooda choosanu...idi medium size query. Bulk collect option try cheyyaledu...adi okkati try cheyyali.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7816
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 03:47 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Airliner:

Did you enable parallel dml at system level before using the parallel hint?



Yes, even ensured it by seeing multiple sessions in session browser.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Airliner
Junior Artist
Username: Airliner

Post Number: 309
Registered: 11-2011
Posted From: 136.223.19.76

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 03:43 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

How about direct path load using sql loader?
Top of pagePrevious messageNext messageBottom of page Link to this message

Kaisersooze
Moderator
Username: Kaisersooze

Post Number: 6016
Registered: 04-2009

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 03:40 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Ustad:




explain plan run chesava? run chesi plan ela vundho chudu...and how big is the query? oke proc rasi update kottu....
Top of pagePrevious messageNext messageBottom of page Link to this message

Airliner
Junior Artist
Username: Airliner

Post Number: 308
Registered: 11-2011
Posted From: 136.223.19.76

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 03:38 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

Did you enable parallel dml at system level before using the parallel hint?
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7814
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 03:24 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Goonda:

when ever you load the data, drop indexes and load.. this is common thing in load process of all DB's



Already have this as a backup option. If nothing else works then I will go with this solution.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7813
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 03:22 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Chitti_v2:

ilaa insert chesukuntaa pothe table alaa increase aithe u have to partition it some time kadaa?



This data is driven by a date...every week we delete one week's worth of data and add one week. Therefore, number of records remain close to 250 million every week.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7812
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 03:09 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Ccdbrocks:

were stats up to date on those tables..?? also you may try no index hint



Stats are good...I think NO_INDEX will be helpful when you have issue with select but not insert into a table. BTW, I will give a shot, you never know.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7811
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 03:06 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Maverick:

append with nologging should help



Already tried, not much change.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ccdbrocks
Junior Artist
Username: Ccdbrocks

Post Number: 122
Registered: 01-2012
Posted From: 76.173.223.196

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 03:04 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Ustad:




were stats up to date on those tables..?? also you may try no index hint
Top of pagePrevious messageNext messageBottom of page Link to this message

Goonda
Hero
Username: Goonda

Post Number: 18627
Registered: 02-2007
Posted From: 199.82.243.103

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 02:58 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Ustad:


when ever you load the data, drop indexes and load.. this is common thing in load process of all DB's.. what they usually do is load the data to temp table with out any indexes and then rename the table to original table and run the statistics
Sasibabu: If TDP loses next elechens, i will donate 10% of my salary to TDP

Skywalker: Bala chiru type kadu.....narasimha swamy avataram etti posani gadi pegulu medalo esukuntadu
Top of pagePrevious messageNext messageBottom of page Link to this message

Maverick
Legend
Username: Maverick

Post Number: 34756
Registered: 01-2008
Posted From: 184.150.236.67

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 02:58 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

append with nologging should help
Who is this DB member?
Top of pagePrevious messageNext messageBottom of page Link to this message

Maverick
Legend
Username: Maverick

Post Number: 34754
Registered: 01-2008
Posted From: 184.150.236.67

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 02:57 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

did u use append hint?
Who is this DB member?
Top of pagePrevious messageNext messageBottom of page Link to this message

Gandhiguevara
Megastar
Username: Gandhiguevara

Post Number: 24622
Registered: 10-2009
Posted From: 66.151.13.188

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 02:56 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Ustad:

I am sure this is a very common scenario faced by DW people and DBAs


Top of pagePrevious messageNext messageBottom of page Link to this message

Chitti_v2
Side Hero
Username: Chitti_v2

Post Number: 3634
Registered: 01-2011
Posted From: 160.83.72.208

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 02:55 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

nenu oracle exfert kaadu....naa fosts ni lite theesuko....curiosity tho aduguthunnaa...time unte reply ivvu

ilaa insert chesukuntaa pothe table alaa increase aithe u have to partition it some time kadaa?

what is ur enterprise standard for max records in an unpartitioned table?
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7809
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 02:54 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Rajusk:

problem antha ee PK undadam vallane...nenu jump..

sorry to divert the thread..



Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7808
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 02:54 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Maverick:

disable index during load and rebuild them later



I already have this as a backup option. I am sure this is a very common scenario faced by DW people and DBAs. Want to know if there is some other technique or tuning methodology for this problem.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7807
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 02:52 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Chitti_v2:

partitions unnaayaa?



No.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.
Top of pagePrevious messageNext messageBottom of page Link to this message

Maverick
Legend
Username: Maverick

Post Number: 34752
Registered: 01-2008
Posted From: 184.150.236.67

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 02:51 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

disable index during load and rebuild them later
Who is this DB member?
Top of pagePrevious messageNext messageBottom of page Link to this message

Rajusk
Hero
Username: Rajusk

Post Number: 17628
Registered: 02-2008
Posted From: 192.234.99.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 02:47 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Ustad:

PK index).




problem antha ee PK undadam vallane...nenu jump..

sorry to divert the thread..
Top of pagePrevious messageNext messageBottom of page Link to this message

Chitti_v2
Side Hero
Username: Chitti_v2

Post Number: 3632
Registered: 01-2011
Posted From: 160.83.73.15

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 02:46 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

partitions unnaayaa?
Top of pagePrevious messageNext messageBottom of page Link to this message

Ustad
Side Hero
Username: Ustad

Post Number: 7804
Registered: 07-2008
Posted From: 65.161.188.11

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 02, 2012 - 02:44 pm:   Insert Quote Edit PostDelete PostPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

One of my sql script is taking 60 minutes to insert 4 million records into a 250 million record table. After going through AWR and other tuning exercises...I found that most of the time is spent on maintaining the index (PK index). Have you worked on a similar kindaa issue and Is there a hint of some technique I can use to make it run faster.

pseudo code:

insert into table A (select from table B and C minus (select from table A));

Table A has 250 million records. I already tried parallel hint but did not find much improvement.

I have a workaround but it involves dropping index before inserting records which I want to keep as my last option.
Fan of Fab 5: Sachin, Rahul, Saurav, Laxman and Kumble.

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image HASH(0x8184648){Movie Clipart}
Show / Hide regular icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

 N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Show / Hide Filmy icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

 N   O   P   Q   R   S   T   U   V   W   X   Y   Z  


Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: