CTAS method takes long time - Any suggestion.

Hi,
Please find the query below. The 'select' statement was taking more than a day time to execute and i tuned the same. Now i am getting the results in 5 seconds. But when i try to load the data that i get from 'select' statement into table using CTAS method, it takes more than 5 hours, but i don't see table created. Little background about this query...., this is for data warehousing project, every table in the 'select' has 5million records. The result set (executes in 5 second) will again have 5 million records. When loading the data into table for 5m records, it takes time. Is there a way to improve this.
create table tcu
tablespace tcu_cons
as
select /*+ ORDERED INDEX(a) INDEX(b) INDEX(c) INDEX(d) INDEX(e) INDEX(f) INDEX(g) USE_NL(a,b) USE_NL(b,c) USE_NL(c,d) USE_NL(d,e) USE_NL(e,f) USE_NL(f,g) */
a.prev_mo_tbr_amt,
(b.ytd_tbr_amt + NVL(g.tot_cris_tbr_amt,0)) ytd_tbr_amt,
c.prev_ytd_tbr_amt,
(d.lst_12_mo_tbr_amt + NVL(g.tot_cris_tbr_amt,0)) lst_12_mo_tbr_amt,
e.prev_lst_12_mo_tbr_amt,
f.sm_mo_lst_yr_tbr_amt,
g.tot_cris_tbr_amt,
a.row_id
from tmp_prevmo a,
tmp_ytd b,
tmp_prevytd c,
tmp_lst12 d,
tmp_prevlst12 e,
tmp_smmolstyr f,
csban_1 g
where a.acct_id = b.acct_id
and b.acct_id = c.acct_id
and c.acct_id = d.acct_id
and d.acct_id = e.acct_id
and e.acct_id = f.acct_id
and f.acct_id = g.acct_id;
Thanks,
Subbu.

Hi Alex,
I am talking about the first rows that returned with in 5 seconds.
I have already taken my explain plan and read it. It seems to be fine including cost.
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 5116K| 356M| 107M (1)|419:26:06 |
| 1 | TABLE ACCESS BY INDEX ROWID | CSBAN_1 | 1 | 10 | 4 (0)| 00:00:01 |
| 2 | NESTED LOOPS | | 5116K| 356M| 107M (1)|419:26:06 |
| 3 | NESTED LOOPS | | 5116K| 307M| 87M (1)|339:30:36 |
| 4 | NESTED LOOPS | | 5116K| 263M| 71M (1)|279:29:30 |
| 5 | NESTED LOOPS | | 5120K| 219M| 51M (1)|199:26:29 |
| 6 | NESTED LOOPS | | 5120K| 175M| 35M (1)|139:22:34 |
| 7 | NESTED LOOPS | | 5120K| 136M| 20M (1)| 79:18:39 |
| 8 | TABLE ACCESS BY INDEX ROWID| TMP_PREVMO | 5125K| 102M| 4901K (1)| 19:03:36 |
| 9 | INDEX FULL SCAN | TMP_PREVMO_PK | 5125K| | 7590 (8)| 00:01:47 |
| 10 | TABLE ACCESS BY INDEX ROWID| TMP_YTD | 1 | 7 | 4 (0)| 00:00:01 |
|* 11 | INDEX RANGE SCAN | TMP_YTD_PK | 1 | | 2 (0)| 00:00:01 |
| 12 | TABLE ACCESS BY INDEX ROWID | TMP_PREVYTD | 1 | 8 | 3 (0)| 00:00:01
|* 13 | INDEX RANGE SCAN | TMP_PREVYTD_PK | 1 | | 2 (0)| 00:00:01 |
| 14 | TABLE ACCESS BY INDEX ROWID | TMP_LST12 | 1 | 9 | 3 (0)| 00:00:01 |
|* 15 | INDEX RANGE SCAN | TMP_LST12_PK | 1 | | 2 (0)| 00:00:01 |
| 16 | TABLE ACCESS BY INDEX ROWID | TMP_PREVLST12 | 1 | 9 | 4 (0)| 00:00:01
|* 17 | INDEX RANGE SCAN | TMP_PREVLST12_PK | 1 | | 2 (0)| 00:00:01 |
| 18 | TABLE ACCESS BY INDEX ROWID | TMP_SMMOLSTYR | 1 | 9 | 3 (0)| 00:00:01
|* 19 | INDEX RANGE SCAN | TMP_SMMOLSTYR_PK | 1 | | 2 (0)| 00:00:01 |
|* 20 | INDEX RANGE SCAN | CSBAN_1_PK | 1 | | 2 (0)| 00:00:01 |
Predicate Information (identified by operation id):
11 - access("A"."ACCT_ID"="B"."ACCT_ID")
13 - access("B"."ACCT_ID"="C"."ACCT_ID")
15 - access("C"."ACCT_ID"="D"."ACCT_ID")
17 - access("D"."ACCT_ID"="E"."ACCT_ID")
19 - access("E"."ACCT_ID"="F"."ACCT_ID")
20 - access("F"."ACCT_ID"="G"."ACCT_ID")
Thanks,
Subbu.

Similar Messages

  • Restoration take long time

    hi,
    can any one help me for some issue..
    in my UAT daily restration is happen for 5 schemas but while droping one of schema it take lot of time from last three days can any one suggest me what i have to do to resolved the same issue.
    and also statustics gathering take long time
    please suggest.
    Thanks !!!
    Vishal Hande.

    >
    in my UAT daily restration is happen for 5 schemas but while droping one of schema it take lot of time from last three days can any one suggest me what i have to do to resolved the same issue.
    >
    Do you mean you are doing the export and import? If so, check the session and see what it's waiting on (V$SESSION_WAIT). Or put a trace and see where it's hanging. It may be doing the statistics gathering or waiting on something
    You need to give us all information. When you mean restore, we will think of database restore (RMAN or user-managed restore). So please supply all details in relation to what you are doing along with the database version and OS.

  • Just downloaded the latest version of iTunes.  Can't find "Power Search" anymore to locate specific songs or artists?  Using "Browse" takes waaay too long.  Any suggestions?

    Just downloaded the latest version of iTunes, but can't find "Power Search" anymore to locate specific songs or artists quickly?  "Browse" takes waaay too long.  Any suggestions?

    http://www.apple.com/feedback/kaywerty wrote:
    A rather long winded way of asking if anybody knows if it's possible to have multi-windows open
    It's not possible.
    Suggestions here -> Apple Product feedback

  • Having moved my Itunes folder to external hardrive and resetting where it is in preferences Itunes can't find them and I have to direct it to every song - I have a months worth of songs on there so this will take avery long time  - any ideas on what;s up?

    Having moved my Itunes folder to a new external hardrive and resetting where it is in preferences Itunes can't find them and I have to direct it to every song- a little ! pops up next to the song and a dialogue box says Itunes can't find it so thn i have to manually search for it - I have a months worth of songs on there so this will take avery long time  - any ideas on what's up?

    nellydee wrote:
    Having moved my Itunes folder to a new external hardrive and resetting where it is in preferences
    That's not how to do it. You don't move stuff then set the iTunes prefs > Advanced.
    Once you move the /iTunes/ folder, hold Option, launch iTunes and select Choose library... and select the ITunes folder on the external.
    This will use the iTunes library file in the iTunes folder you moved.
    Don't change iTunes prefs > Advanced.

  • I have the current Mac Pro the entry level with the default specification and i feel some slow performance when applying after effects on my videos using final cut pro and also rendering a video takes long time ? what upgrades do you guys suggest?

    i have the current Mac Pro the entry level with the default configuration   and i feel lack of  performance when applying after effects on my videos using final cut pro and also rendering a video takes long time ? what upgrades do you guys suggest i could do on my Mac Pro ?

    256GB SSD  it shipped with will run low and one of the things to watch.
    Default memory is 12GB  also something to think about.
    D500 and FCP-X 10.1+
    http://macperformanceguide.com/index_topics.html#MacPro2013Performance
    Five models of 2013 Mac Pro running Resolve, FCPX, After Effects, Photoshop, and Aperture

  • The Application Takes long time to Start

    Hello All,
    We ar eon Unix->64 Bit-> Essbase 11.1.1.3.
    Problem Description : The application is taking long to start up. around 5 to 6 minutes. This is very first time it is happening.
    There were no specific changes done to the application in the recent releases.
    I have tried all options 1. Compacating outline, 2. Purging the application log etc. all other applications respond good on this host except this. Usually any application should not take more than 1 to 2 minutes to start up.
    There are no specific errors or XCP files recorded in the logs and folders.
    Appreciate your suggestions
    MS

    Thanks Jitendra and Prabhas,
    I know i have posted this thread sometime back and later I had to jump on a New release, so did not get time to check your inputs.
    Well I am back on this issue again. I have been working on various option to get this issues solved " start of App takes long time"
    Here are some Details. We are on SunOs 64 Bit, has 12CU with dual core,  with Essbase 11.1.1.3 running on it. This is an ASO application and has just 7 dimensions, Out of which the ORGANIZATION Dimension is pretty huge with Multiple Hierarchies enabled ( Both Stored and Dynamic ) and has more than 20,00,000 members including the alternate hierarchies ( Shared members)
    I did a smoke test by building dimension by dimension the app was startiung up in just *40* seconds. and when i reached the ORG dimension and added more than 70,000 memebrs . there i fall sick. the app now gets back to its old issue ( Takes more than 10 mainutes to start).
    CPU Usage ranges between 3.1 % to 4 %
    PID USER NLWP PRI NI VSZ RSS S STIME ELAPSED %CPU COMMAND
    4424 user1 1 59 20 1608 1032 S 18:13:33 00:00 0.0 grep COMMAND
    4428 user1 1 59 20 1608 1032 S 18:13:33 00:00 0.0 grep ESS
    4766 user1 88 55 20 6814168 5684200 O 17:37:48 35:45 3.1 /path/xyz/masked/ASO_APP hgfedc NOCREAT.
    But My question here is, in the last moth cube i still similar number of members in the cube and nothing really had changed.
    Essbase GURU's Please give me some Hint to think out of box now.
    Thanks
    MS

  • Takes Long time for Data Loading.

    Hi All,
    Good Morning.. I am new to SDN.
    Currently i am using the datasource 0CRM_SRV_PROCESS_H and it contains 225 fields. Currently i am using around 40 fields in my report.
    Can i hide the remaining fields in the datasource level itself (TCODE : RSA6)
    Currently data loading takes more time to load the data from PSA to ODS (ODS 1).
    And also right now i am pulling some data from another ODS(ODS 2)(LookUP). It takes long time to update the data in Active data table of the ODS.
    Can you please suggest how to improve the performance of dataloading on this Case.
    Thanks & Regards,
    Siva.

    Hi....
    Yes...u can hide..........just Check the hide box for those fields.......R u in BI 7.0 or BW...........whatever ........is the no of records is huge?
    If so u can split the records and execute............I mean use the same IP...........just execute it with different selections.........
    Check in ST04............is there are any locks or lockwaits..........if so...........Go to SM37 >> Check whether any Long running job is there or not.........then check whether that job is progressing or not............double click on the Job >> From the Job details copy the PID..............go to ST04 .....expand the node............and check whether u r able to find that PID there or not.........
    Also check System log in SM21............and shortdumps in ST04........
    Now to improve performance...........u can try to increase the virtual memory or servers.........if possiblr........it will increase the number of work process..........since if many jobs run at a time .then there will be no free Work prrocesses to proceed........
    Regards,
    Debjani......

  • The 0co_om_opa_6 ip in the process chains takes long time to run

    Hi experts,
    The 0co_om_opa_6 ip in the process chains takes long time to run around 5 hours in production
    I have checked the note 382329,
    -> where the indexes 1 and 4 are active
    -> index 4 was not "Index does not exist in database system ORACLE"- i have assgined to " Indexes on all database systems and ran the delta load in development system, but guess there are not much data in dev it took 2-1/2 hrs to run as it was taking earlier. so didnt find much differnce in performance.
    As per the note Note 549552 - CO line item extractors: performance, i have checked in the table BWOM_SETTINGS these are the settings that are there in the ECC system.
    -> OLTPSOURCE -  is blank
       PARAM_NAME - OBJSELSIZE
       PARAM_VALUE- is blank
    -> OLTPSOURCE - is blank
       PARAM_NAME - NOTSSELECT
       PARAM_VALUE- is blank
    -> OLTPSOURCE- 0CO_OM_OPA_6
       PARAM_NAME - NOBLOCKING
       PARAM_VALUE- is blank.
    Could you please check if any other settings needs to be done .
    Also for the IP there is selction criteris for FISCALYEAR/PERIOD from 2004-2099, also an inti is done for the same period as a result it becoming difficult for me to load for a single year.
    Please suggest.

    The problem was the index 4 was not active in the database level..it was recommended by the SAP team to activate it in se14..however while doing so we face few issues se14 is a very sensitive transaction should be handled carefully ... it should be activate not created.
    The OBJSELSIZE in the table BWOM_SETTINGS has to be Marked 'X' to improve the quality as well as the indexe 4 should be activate at the abap level i.e in the table COEP -> INDEXES-> INDEX 4 -> Select the  u201Cindex on all database systemu201D in place of u201CNo database indexu201D, once it is activated in the table abap level you can activate the same indexes in the database level.
    Be very carefull while you execute it in se14 best is to use db02 to do the same , basis tend to make less mistake there.
    Thanks Hope this helps ..

  • Database Connectivity takes long time if one of the Node is down .. ??

    Hello All,
    Env: 10.2.0.4 on Solaris 10
    I have 2 nodes.
    When Node1 server is down, it takes long time to connec to the database.
    tnsping would give "OK(2050ms)". Below is the tnsalias.
    RAC_test  =
      (DESCRIPTION =
         (ADDRESS = (PROTOCOL = TCP)(HOST=20.268.169.123)(PORT= 1521))
         (ADDRESS = (PROTOCOL = TCP)(HOST=20.268.169.127)(PORT= 1521))
         (LOAD_BALANCE = yes)
              (CONNECT_DATA =
            (SERVICE_NAME = DK.com)
          (FAILOVER_MODE =
            (TYPE = SELECT)
            (METHOD = BASIC)
            (RETRIES = 180)
            (DELAY = 5)
    )I put the trace on sqlnet.ora and found that first it pings to the "20.268.169.123",
    since the Server is down there will not be any reply and this consumes the delay and
    later it would ping "20.268.169.127" and connect to it.
    If i keep "20.268.169.127" above "20.268.169.123" in tnsalias, and keep "LOAD_BALANCE=no",
    it gets connected very fast, as its directly connecting to Node2. In tnsping i get Ok(40ms).
    How do i reduce the connect timing if i use the first step. Why does it take long time for
    Oracle Client to understand that the Node1 Server is down ?
    TIA,
    J J

    I hope the IP's you are using in the TNS are Virtual IP's.
    You must use Virtual IP's / hostnames for the failover to be quick. If Node 1 is not available then then it's (Node 1's) virtual IP would also get assigned to Node 2 hence all client connections are still able to get a response from the Node Virtual IP address without needing to wait for TCP/IP timeouts. This helps clients to get notified immediately that node 1 is unavailable and the connection tries the 2nd ip/host in the connect descriptor.
    Hope this helps.
    - Siba

  • CV04N takes long time to process select query on DRAT table

    Hello Team,
    While using CV04N to display DIR's, it takes long time to process select query on DRAT table. This query includes all the key fields. Any idea as to how to analyse this?
    Thanks and best regards,
    Bobby
    Moderator message: please read the sticky threads of this forum, there is a lot of information on what you can do.
    Edited by: Thomas Zloch on Feb 24, 2012

    Be aware that XP takes approx 1gb of your RAM leaving you with 1gb for whatever else is running. MS Outlook is also a memory hog.
    To check Virtual Memory Settings:
    Control Panel -> System
    System Properties -> Advanced Tab -> Performance Settings
    Performance Options -> Adavanced Tab - Virtual Memory section
    Virtual Memory -
    what are
    * Initial Size
    * Maximum Size
    In a presentation at one of the Hyperion conferences years ago, Mark Ostroff suggested that the initial be set to the same as Max. (Max is typically 2x physical RAM)
    These changes may provide some improvement.

  • Statastics Gatharing take long time

    Hi,
    can any one suggest me to improve the time for gathering statatics.
    OS version AIX 5.3 oracle 10.2.0.4 database in ASM. daily resoration dump size 110gb
    we are daily performing restoration and statatics gathering in UAT server.
    some time statatics gathering complete early some time it take long time.
    server have 11Gb RAM and 2cpu.
    i m using following following command
    exec DBMS_STATS.GATHER_SCHEMA_STATS(ownname=>'FFPREPRODBATCH',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE);
    exec DBMS_STATS.GATHER_SCHEMA_STATS(ownname=>'FFPREPRODMASTER',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE);
    exec DBMS_STATS.GATHER_SCHEMA_STATS(ownname=>'FFPREPRODMCT',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE);
    exec DBMS_STATS.GATHER_SCHEMA_STATS(ownname=>'FFPREPRODCMS',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE);
    exec DBMS_STATS.GATHER_SCHEMA_STATS(ownname=>'FFPREPRODUSER',estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE);
    please suggest me if i need to add some more poarameter in order to complete stat. early.
    Thanks

    You have only 2 CPUs and 110GB of data.
    I suggest that you prioritise what statistics do need to be gathered every day. Identify only the key tables where statistics need to be updated.
    Hemant K Chitale
    UPDATE : Remember that DataPump will be copying in statistics from the source. So, essentially, all tables will have statistics. You have to decide which tables really need to have updated statistics and gather_stats on those tables only.
    Edited by: Hemant K Chitale on Sep 14, 2011 2:41 PM

  • BPM Process chain takes long time to process

    We have BI7, Netweaver 2004s on Oracle and SUN Solaris
    There is a process chain (BPM) which pulls data from the CRM system into BW. The scheduled time to run this chain is 0034 hrs. This chain should ideally complete before / around 0830 Hrs. <b>Now the problem is that every alternate day this chain behaves normally and gets completed well before 0830 hrs but every alternate day this chain fails…</b> there are almost 40 chains running daily. Some are event triggered (dependent with each other) or some run in parallel. In this, (BPM) process chain, usually there are 5 requests with 3 Delta and 2 full uploads (Master Data). The delta uploads finishes in 30 minutes without any issues with very few record transfers. The first full upload is from 0034 hrs to approximately 0130 hrs and the 2nd upload is from 0130 hrs to 0230 hrs. Now if the 1st upload gets delayed then the people who are initiating these chains, stop the 2nd full upload and continue it after all the process chains are completed. Now this entire BPM process chain sometimes takes 17 -18 hrs to complete!!!!!
    No other loads in CRM or BW when these process chains are running
    CRM has background jobs to push IDOCS to BW which run every 2 minutes which runs successfully
    Yesterday this chain got completed successfully (well within stipulated time) with over 33,00,000 records transferred but sometimes it has failed to transfer even 12,00,000 records!!
    Attaching a zip file, please refer the “21 to 26 Analysis screen shot.doc” from the zip file
    Within the zip file, attaching “Normal timings of daily process chains.xls” – the name explains it….
    Also within the zip file refer “BPM Infoprovider and data source screen shot.doc” please refer this file as the infopackage (page 2) which was used in the process chain is not displayed later on in page number 6 BUT CHAIN GOT SUCESSFULLY COMPLETED
    We have analyzed:--
    1)     The PSA data for BPM process chain for past few days
    2)     The info providers for BPM process chain for past few days
    3)     The ODS entries for BPM process chain for past few days
    4)     The point of failure of BPM process chain for past few days
    5)     The overall performance of all the process chains for past few days
    6)     The number of requests in BW for this process chain
    7)     The load on CRM system for past few days when this process chain ran on BW system
    As per our analysis, there are couple of things which can be fixed in the BW system:--
    1)     The partner agreement (transaction WE20) defined for the partner LS/BP3CLNT475 mentions both message types RSSEND and RSINFO: -- collect IDOCs and pack size = 1 Since the pack size = 1 will generate 1 TRFC call per IDOC, it should be changed to 10 so that less number of TRFCs will be generated thus less overhead for the BW server resulting in the increase in performance
    2)     In the definition of destination for the concerned RFC in BW (SM59), the “Technical Setting” tab says the “Load balancing” option = “No”. We are planning to make it “Yes”
    But we believe that though these changes will bring some increase in performance, this is not the root cause of the abnormal behavior of this chain as this chain runs successfully on every alternate day with approximately the same amount of load in it.
    I was not able to attach the many screen shots or the info which I had gathered during my analysis. Please advice how do I attach these files
    Best Regards,

    Hi,
    Normally  index  creation or deletion can take long time in case  your database statistics are not updated properly, so can check  stat  after your data loading is completed and index generation is done,  Do creation of database statistics.
    Then try to recheck ...
    Regards,
    Satya

  • Report takes long time for few records

    hi frends,
    I m facing one problem with my Web based erp application which is developed in .net , in my application when i open the  report from my applicaiton , in my temp folder there one file gets created name is "rpt conmgr cache"
    bcoz of this for few records also my report takes too much time and opens very slow and it takes long time, and it happens in some of the reports only , other reports are working cool and its not creating any file in temp folder,,, so can u guide me whats this file and what can be the solution for it,
    Thanks
    Mithun

    hi sabhajit,
    i have already checked the sql query it is taking less then seconds.
    any other steps u want me to check then pls let me know?
    thanks mithun

  • SSRS 2012. ReportServer takes long time to be up.

    SSRS 2012 Sp1
    Hi guys,
    I am using SSRS as my reporting platform, but I have always got the following issue.
    SSRS ReportServer takes time to load.
    The first time takes long, then less time but only if the ReprotServer web page is continuosly retrived.
    HERE the problem:
    If the ReprotServer page is not used after a short time (let me say 10 min), the page takes long time to be up again.
    I have checked the configuration that is set as for default 12 hours.
    Is there a way to speed up the ReportServer opening page time?
    Thanks for your help 

    Hi Fasttrack2,
    According to your description, you want to optimize the performance of your report. Right?
    In this scenario, when your report page is not active for a short time, it will take long time to render again. This is because the you have the report timeout. You can select "Do not timeout report" in Processing. Please refer to the link below:
    SQL Server Reporting Services – Timeout Settings
    For the performance issue, it can be many reason cause the report running slowly. Please refer to the articles below to optimize the report:
    More tips to improve performance of SSRS reports.
    Reporting Services Performance and Optimization
    Troubleshooting Reports: Report Performance
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Message Mapping takes long time to save and activate

    I have one problem in my present interface...
    the message structure is large and when mappping is over and I click save button it will take long time for activation..
    should I change any parameter in admin? or is it bcos of java web start version?
    need help
    - Teja

    Hi
    Can you share the Version History of the Component?
    Regards
    Pothana

Maybe you are looking for

  • Help! Very frustrating problem with my Gen 4 iPod!

    Hello, I am hoping somebody can help me. I have a 20GB Gen 4 iPod with 3.1.1 software installed. It is formatted for Windows but just refuses to appear on my iTunes on my Mac. Here are the details: - Macbook Air running Mac OS X 10.6.2 - iTunes 9.0.2

  • Product Cost Planning

    We are embarking on production planning & I need to know best course for financials/product costing.  Would the AC505 Product Cost Planning Course be suitable for a business who is about to embark on production planning .  We are in manufacturing, an

  • How to execute rfc(R/3sides ) from portal(in webdynpro)

    Hi, I need to check the rfc connections and also debug the rfc through portal.

  • C2-00: no option to select 'automatic retrieval' f...

    Hi guys I've purchased a C2-00 phone, and it seems I don't have the option to automatically retrieve an MMS. There are only two options available: manually and deactivated. And how does one select an MP3 for the alarm? thanks for your replies 

  • Estoy enredado. no entiendo nada de los planes!

    quiero comprar adobe, pero todos me revuelven. estudio la universidad de diseño industrial y utilizo mucho photoshop, illustrator e indesign, quiero comprar un pakete completo pero no entiendo eso de estar pagando mensualmente, yo solo kiero pagar un