How to make a CTAS more performant

Hi all,
I would like to know what is the best way to improve the elapsed time to perform a CTAS (create a partitioned table as select * from a non partitioned table)?
Thanks for sharing your experience on this topic.

Start reading here (don't 'glance over it', but really read it):
http://tkyte.blogspot.com/2005/06/how-to-ask-questions.html
and then reread your own question.
You didn't even bother to mention your database version, for example.
But: Perhaps reading up on the APPEND hint might work.
Search the docs, as already mentioned, or http://asktom.oracle.com

Similar Messages

  • How to make manager approve more than one request in one time in SSHR

    Dear All,
    Anyone has an idea on how to make manager approver more than one request in one time in SSHR??
    for example, manager is having 20 requests to approve on Change Pay Function, he don't want to check one by one and approve it, he want to approve the 20 requests directly from one time, is there any solution for that??
    Thanks and Regards

    Hi Adel,
    As Vignesh has mentioned we don't have any standard functionality which will allow bulk approvals. We had same kind of requirement in performance management where the business was asking for a bulk approval feature which should be available to Skip level manager for approving the rating suggested by line manager. We had created a custom page which will list all the notifications and user can select the ones which S/He wants to bulk approve and click submit button. Internally we had called the workflow with item key and other required parameter and do the approval.
    You can have a work with your technical guy and can work on the same lines.
    Thanks,
    Sanjay

  • How to make stationary video of performance more interesting...

    Hi,
    I need some advice from experienced FCPX users.
    I was given about an hour of video of a performance involving a group of people singing with some dancing/movement. I am adding captions of the lyrics being sung because the audio captured a bit of room echo that made some of the words being sung less distinct. The video was shot on an unattended camera in a balcony overlooking the venue. So, I have sharp (HD) video of the performance, and the lighting is actually good. But the footage itself is a bit boring because the camera angle never changes, and the vantage point is distant enough that the action on stage only fills part of the frame, and there's a lot of extraneous space on all sides.
    I tried using cropping in FCPX to zoom in on the action, which certainly gives me a tighter, more interesting view, at the expense of pixellation/blurriness.
    I am still kind of a FCPX newbie and I'm wondering if I might do something with any of the other effects to make this footage more intersesting, calling attention to the action without degrading image quality.
    Thanks in advance!

    rebbi wrote:
    … The video was shot on an unattended camera…
    I tried using cropping in FCPX to zoom in on the action, …, at the expense of pixellation/blurriness.…
    I'm doing this with some of my projetcs too: a 'general' cam, overviewing the scenery, but unattended.
    Knowing this, I record in 1080; but I set up my project in 720 - which means, I can zoom-in by factor 3-4 without (almost) any loss! So, blurriness occur only when the cropping factor gets really high... under low light conditions, beyond 200% scale is not acceptable.
    This way, I can perform cuts to 'two' angles from one cam: clip#1 shows a part of the stage on the left, clip#2 shows the right part; or, I do add a 'pan with grace' via Ken Burns.
    What's really helpful in such situations is a 2nd ''free' cam - there you get close-ups, diff. perspectives, and 'neutrals' for cut-aways (faces, hands, feet, deco, lights). Knowing, this will be a single-stunt, I like to record before and after the show such stuff… Or, ask another person to take stills; any cheap photo/phone can take pics which 'fit' by terms of quality into any video. On a wedding I once had an 11y old assistent, who took (partly) surprising good photos! ...
    May be, some other persons of the audience took stills, you can ask for? ...
    Finally. why not faking it? Do you have material from any audition of the same show? Do you have a chance to record a 2nd performance, diff. place, diff. time? Just to get some 'intercuts'.....
    Sadly forgotton film-theorist Лев Влади́мирович Кулешо́в 'invented' the socalled Kuleshov-effect: The audience does the 'montage' of a scenery in its head - two pics, totally unrelated, result in 'one'. Example extremé: you can do cut-aways to ANY audience-shot avail! Funny action+laughing people=one movie ... although the laughing people never saw the performance, nor shared the same room! (usual for audio: sit-com laughter from tape)
    just as some suggestions....

  • How to make iTunes support more than just one harddrive

    The title of this topic says it all: How do I make iTunes support more than just one harddrive? I cannot afford to buy a really huge drive just because iTunes doesn't support more than one.
    There must be a way around this! Anyone?

    I sure hope so. I run iTunes on an iBook G4 with limited space. I've got about 15gigs of music on an external harddrive. I only use the harddrive at home so I like to keep a handful of albums with me on the lappy. There should be some way to designate a primary folder on the laptop for imports, and a secondary (external or whatever) for the bulk of the library. Maybe some nifty way to do quick transfers between them within iTunes. Like a relocate function.
    Say I want the new death cab for cutie album on the laptop this week, but next week I want to swap it out with something new that comes out. It would be nice to highlight an album and select "transfer to secondary" so that iTunes can move the files for you, keep them organized, and keep track of them.
    That doesn't sound so difficult...

  • How to make changes in more then one file

    Hi All,
    M new and dont have deep idea about dreamwheaver.Actually i want to make changes in more then one file at the same time, how to do this. Is there any option available there. ?

    If you you build your new site with SSIs (server-side includes), changes to include files will populate to all pages on the remote server.  This is a huge time saver for maintaining common page elements on large sites.
    Example code might look like this:
    <body>
    header goes here
    <!--#include virtual="header.html"-->
    <p>some text</p>
    menu goes here
    <!--#include virtual="menu.html"-->
    <p>some text</p>
    footer goes here
    <!--#include virtual="footer.html"-->
    </body>
    </html>
    Pages with includes on them need to be saved as .shtm or .shtml.  If you use server-side scripts on your site, save as .asp or .php to match your script type.
    http://www.smartwebby.com/web_site_design/server_side_includes.asp
    Nancy O.

  • How come geekbench shows 13% more performance for mbp

    Hello
    So i compared geekbench results for both mbp retina 13 with 2.9ghz processor and the mba 13 with 2.0 ghz processor
    And on average the mbp scored 13% more.
    So my question is , how come while its processor is 45% faster, the mbp scored only 13% more in geekbench?
    E

    A couple of points I can think of:
    1) Vmware or other emulations can run apps at native speed on the intel based macs, so I concur that there shouldn't be any lag using Windows app through Vmware
    2) Powerpoint and other Office apps, to my knowledge, need Rosetta to work on Leopard. This has been shown in various benchmark tests to start up and function much slower than the PowerPC based macs. As you may already know, Rosetta works in the background and you are not aware of it working. It is done automatically when opening the apps in Leopard
    3) As for Powerpoint files being saved as Keynote and the resultant keynote being dreadfully slow. Try this: Open Keynote and make a quick presentation with lots of processor intensive builds/actions and see if you notice the lag. If you do, then the problem lies with your computer and you should have a Mac Genius look at it. If you do NOT notice any performance issues with it, then you should look at the particular keynote file (the one that was exported from Powerpoint). Right click the file and make sure "open with Rosetta" is NOT checked off. Uncheck it and open the file again and you should see performance improvement
    Good luck
    RezF

  • How to make my code more modular? Please see thread.

    Question
    How do I go about doing something like the example below? Please see example.
    Example of current form
    My current method of painting to a component is as follows:
    public class Pane extends JPanel{
    public void paint(Graphics g){
    ... (all painting is done in here) ...
    }What I want to do is break the painting method into multiple methods and or classes, so my program is less cluttered and more modular. For instance,
    Method 1
    public class Pane extends JPanel{
    public void paintCustomButtons(Graphics g){
    // (all painting of my custom buttons are done in here) ...
    public void paintOtherComponents(2Graphics g){
    // (all other painting is done in here) ...
    }Or should I break it up into classes, the headers of those classes are:
    Method 2
    public class ButtonComponents extends JComponent
    public class OtherComponents extends JComponent
    //and then have a panel that contains all those components like so
    public class Pane extends JPanel{
    Pane(){
    add(ButtonComponents);
    Final Questions
    How can I break my painting code up? Is it possible to do method 1 or 2? If so, which would you suggest? Or would you suggest another way of organizing blocks of code?
    -Thanks for any suggestions as they are much appreciated
    Edited by: watwatacrazy on Feb 6, 2010 10:17 AM

    To break the paint method up you can always do the following:
        @Override
        public void paintComponent(Graphics g) {
            g2d = (Graphics2D) g;
            g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            paintAxis(g2d);
            paintCrossHair(g2d);
        public void paintCrossHair(Graphics2D g2d) {
         public void paintAxis(Graphics2D g2d) {{
         }Edited by: calypso on Feb 6, 2010 1:39 PM

  • How to make menu with more chapters on one page

    Hi all, I hope I can describe what I want correctly. I have checked all the templates available but can't seem to figure out how to do this. I have a dance studio video. There are 35 routines (chapters). I want my chapter menu to have many more entries than are available than the templates allow.
    So, the top menu would have "play movie" and "chapters".
    And, the Chapter (or scene selection) menu would have like 20 - 25 entries on ONE page. I do not need moving thumbnails. Is there a way to do this?
    thanks for any help!

    hi again,
    I did some experimenting. I created a sub menu, added movie after movie until I got this msg that said "you've hit the limit, continue anyway". hmmm... ok I said "continue anyway". I added 17 movies to one menu.
    Upon "burn", "create TS_VIDEO folder", or "create disk image", it said I have to fix errors first. I checked the errors and it told me the max entries on a menu are 12. period.
    so... that's the way it goes I guess. I think 12 will be ok with my client.
    have a great day!

  • How to make IM chat more compact

    Hi
    I'm not using a tablet/touchscreen, I've got decent eyesight, I can read, and I'm not mentally deficient.
    So please could someone tell me how to get rid of the ridiculous 'speech bubbles' around my chat, and reduce the spaces between the lines?
    Form over function might look good, but useability is important too.  Tell your developers that please?

    The most active thread on this issue is at
    http://community.skype.com/t5/Windows-desktop-client/7-0-and-your-feedback-on-the-new-chat-UI/td-p/3...
    That is actually a link to page 2, where I posted some comparison images and some suggestions for a "truly compact" mode.
    Zhuinden has been doing a sterling job posting instructions on how to downgrade to 6.21 (and make it stick) until version 7.0 is fixed. Here's a link:
    http://community.skype.com/t5/Windows-desktop-client/Skype-6-22-update-is-the-worst-app-I-ve-ever-se...
    Sean Ellis - uses Skype chat for serious work
    Click here to read my blog post on Skype 7 and basic principles of GUI design

  • How to make applescript open more than one program at once?

    Hi! I made the code below to use together with another 2 codes. One that mounts a samba share and another that runs rsync with specific parameters. The script below runs after rsync complete its task.
    The 3 codes help me to test my HTML/CSS/PHP/Javascript code changes.
    This code works but I have to repeat it to each browser/app I want and a 10 lines script becomes 40 lines (Google
    Chrome, Firefox, Opera and Safari). Is there a more elegant way to do that? I've tried to use an array/list but didn't work.
    if application "Safari" is running then
        tell application "Safari"
            activate
        end tell
        tell application "System Events"
            tell process "Safari"
                keystroke "r" using {command down}
            end tell
        end tell
    end if

    Nathan Greenstein already answered in AskDifferent: http://apple.stackexchange.com/questions/54595/applescript-array-of-applications /54598#54598
    Quoting him:
    set browsers to {"Google Chrome", "Firefox", "Opera", "Safari"}
    repeat with browser in browsers
        if application browser is running then
            tell application browser
                activate
            end tell
            tell application "System Events"
                tell process browser
                    keystroke "r" using {command down}
                end tell
            end tell
        end if
    end repeat

  • How to make text document more interesting quickly for use via the web?

    what Adobe applications are the best for making a .pdf text document more interesting (quickly) for use via the web?

    <moved from Adobe Creative Cloud to Creating, Editing & Exporting PDFs - kglad>
    people here can better help you.

  • How to make encrypted data more secure?

    Hi All,
    We are using Oracle 9i database. We have a task to encrypt some of data before storing into database. We have developed a function to encrypt the data using Dbms_Obfuscation toolkit. But, the user who has access to that function source code can easily decrypt the data. Now we need to have the solution so that we can securely save/store Encryption Key, which can be accessed by Application User only.
    One alternative we are thinking is creating a table in SYS user and storing the value there. We can grant SELECT privileges to Application User Only.
    We are looking for other alternatives if we have any. Do you have any idea?
    Thanks in Advance.
    Thanks and Best Regards,
    Dharmesh Patel
    Database Server:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    ******************************************************/

    I had a look at this conundrum a while back, when we wanted to store credit card details in a database. Basically, there are two choices:
    (1) Don't store the key in the database and make the users type it in whenever they want to see encrypted data; or
    (2) Store the key in the database and accept the risk that it might be abused by privileged users (i.e. DBAs).
    As many users have difficulty remembering their password when it's MOM123 I think it's unlikely they will be able to cope with a properly secure PKI string.
    You can mitigate the risks inherent in option 2 by having very strong auditing of the function's execution, but I'm sure knowledgeable, black-hatted DBAs will be able to find workarounds.
    But, if you can't trust your DBAs you're probably stuffed anyway.
    Cheers, APC

  • How to make this query more efficient

    Hi, i have query to find out the count of records based on certain conditions like below.
    SELECT count(*)
    FROM new_orders WHERE card_number IS NOT NULL
    AND exp_date IS NOT NULL
    AND card_id in ( select card_id from old_orders );
    There are millions of records in both the tables. , so it is taking long time to run. Is there any solution to optimize this query.....thanks for help. Bcj

    you might want to give this a try.
    SELECT count(*)
      FROM new_orders no
    WHERE no.card_number IS NOT NULL
       AND no.exp_date IS NOT NULL
       AND exists (select 'x'
                     from old_orders oo
                    where oo.card_id = no.card_id);it would also help if you can post the information needed as suggested by rob.

  • How to make this code more simplified?

    hi, is there any possiibilty or logic to simply my code than below one?
    here my data is like that in a table
    sql>> select * from drawn order by effdate,code desc;
    CODE EFFDATE AMT
    1 01-JAN-06 30
    2 01-JUL-08 100
    2 01-JUL-09 150
    2 01-OCT-09 160
    1 01-OCT-09 50
    2 01-FEB-10 200
    2 01-MAR-10 250
    1 01-MAR-10 80
    1 01-APR-10 100
    from this my desired output should be:
    EXEC DUE_DRAWN ('01-SEP-08');
    code effdate amt(1+2)
    2 01-SEP-08 130
    2 01-JUL-09 180
    2 01-OCT-09 210
    2 01-FEB-10 250
    2 01-MAR-10 330
    1 01-APR-10 350
    here i want to display total amt as on particular date and with the particular code. if date are same in different code then code 2 will be given as priority . here outputput of amt is amt(code1+code2). so i have written below
    code...
    PROCEDURE DUE_DRAWN(V_DATE IN DATE) IS
    CURSOR C1(V_DATE IN DATE) IS SELECT * from drawn order by effdate,code desc;
    PREV_REC C1%ROWTYPE;
    CURR_REC C1%ROWTYPE;
    V_FDATE DATE;
    V_INL_GPY NUMBER(5):=0;
    V_BPY     NUMBER(5):=0;
    BEGIN
    OPEN C1(V_DATE);
    FETCH C1 INTO PREV_REC;
    V_INL_GPY:=PREV_REC.AMT;
    LOOP
         FETCH C1 INTO CURR_REC;
         EXIT WHEN C1%NOTFOUND;
         IF V_DATE > CURR_REC.EFFDATE THEN
              V_FDATE:=V_DATE;
         ELSE
              V_FDATE:=CURR_REC.EFFDATE;
         END IF;
         IF CURR_REC.CODE=2 THEN
              BEGIN
              SELECT AMT INTO V_INL_GPY FROM DRAWN WHERE CODE=1 AND EFFDATE=CURR_REC.EFFDATE;
              EXCEPTION
                   WHEN OTHERS THEN
                   NULL;
              END ;
              DBMS_OUTPUT.PUT_LINE(CURR_REC.CODE|| ' '||V_FDATE || ' '||(CURR_REC.AMT+V_INL_GPY));
         ELSIF CURR_REC.EFFDATE != PREV_REC.EFFDATE THEN
              SELECT AMT INTO V_BPY FROM DRAWN WHERE CODE=2 AND EFFDATE=(SELECT MAX(EFFDATE) FROM DRAWN
                                                                                                                            WHERE CODE=2 AND EFFDATE<=CURR_REC.EFFDATE);
                   DBMS_OUTPUT.PUT_LINE(CURR_REC.CODE|| ' '||V_FDATE || ' '||(CURR_REC.AMT+V_BPY));
              END IF;           
         PREV_REC:=CURR_REC;     
    END LOOP;
    END;
    please tell is there any other way to write this ...
    thanks
    Edited by: Hi FRNzzz!! on Jun 3, 2010 6:45 PM
    Edited by: Hi FRNzzz!! on Jun 3, 2010 7:43 PM
    Edited by: Hi FRNzzz!! on Jun 3, 2010 7:44 PM
    Edited by: Hi FRNzzz!! on Jun 3, 2010 7:47 PM

    The if condition is without an operator
    ELSIF CURR_REC.EFFDATE PREV_REC.EFFDATE THENwhat operator did you apply?
    When I run your code, with your sample data I get a different output to you, but I assumed a ">" operator for the above condition:
    SQL> declare
      2 
      3  V_DATE DATE :=TO_DATE('010908','ddmmyy');
      4  cursor c1 is
      5    select * from drawn order by effdate, code desc;
      6   
      7    PREV_REC  C1%ROWTYPE;
      8    CURR_REC  C1%ROWTYPE;
      9    V_FDATE   DATE;
    10    V_INL_GPY NUMBER(5) := 0;
    11    V_BPY     NUMBER(5) := 0;
    12   
    13  begin
    14 
    15    OPEN C1;
    16   
    17    FETCH C1 INTO PREV_REC;
    18    V_INL_GPY := PREV_REC.AMT;
    19   
    20    LOOP
    21      FETCH C1 INTO CURR_REC;
    22      EXIT WHEN C1%NOTFOUND;
    23     
    24      IF V_DATE > CURR_REC.EFFDATE THEN
    25        V_FDATE := V_DATE;
    26      ELSE
    27        V_FDATE := CURR_REC.EFFDATE;
    28      END IF;
    29     
    30      IF CURR_REC.CODE = 2 THEN
    31        BEGIN
    32          SELECT  AMT
    33          INTO    V_INL_GPY
    34          FROM    DRAWN
    35          WHERE   CODE    = 1
    36          AND     EFFDATE = CURR_REC.EFFDATE;
    37   
    38        EXCEPTION
    39          WHEN OTHERS THEN
    40            NULL;
    41 
    42        END ;
    43        DBMS_OUTPUT.PUT_LINE(CURR_REC.CODE || ' ' ||V_FDATE || ' ' || ( (CURR_REC.AMT + V_INL_GPY) * 0.1) );
    44 
    45      ELSIF CURR_REC.EFFDATE = PREV_REC.EFFDATE THEN
    46        SELECT  AMT
    47        INTO    V_BPY
    48        FROM    DRAWN
    49        WHERE   CODE    = 2
    50        AND     EFFDATE = (SELECT MAX(EFFDATE)
    51                           FROM   DRAWN
    52                           WHERE  CODE    = 2
    53                           AND    EFFDATE <= CURR_REC.EFFDATE);
    54                          
    55        DBMS_OUTPUT.PUT_LINE( CURR_REC.CODE|| ' ' || V_FDATE || ' ' || ( (CURR_REC.AMT+V_BPY) * 0.1 ) );
    56      END IF;
    57 
    58      PREV_REC := CURR_REC;
    59 
    60    END LOOP;
    61 
    62  END;
    63  /
    2 01-09-2008 00:00:00 13
    2 01-07-2009 00:00:00 18
    2 01-10-2009 00:00:00 21
    1 01-10-2009 00:00:00 21
    2 01-02-2010 00:00:00 25
    2 01-03-2010 00:00:00 33
    1 01-03-2010 00:00:00 33Also, could you kindly place before and after any code you post.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to make the name of a column apear as many times as the column on page

    Hi,
    This is what i want to do:
    I have a basic report looking like this:
    <Column name>
    value 1
    value 2
    value 3
    value n
    Since the column is small it can fit in a page more then one time. I know how to make it print more then once: i switch the repeating frame to print down and across and i modify the frame that contains it so the horizontal elasticity is variable.
    After these changes my report looks like this:
    <Column name>
    value 1-----------------------value n+1-----------------------value m+1
    value 2-----------------------value n+2-----------------------value m+2
    value 3-----------------------value n+3-----------------------...
    value n-----------------------value m
    What i want is my report to look like this:
    <Column name>-------<Column name>------------<Column name>
    value 1-----------------------value n+1-----------------------value m+1
    value 2-----------------------value n+2-----------------------value m+2
    value 3-----------------------value n+3-----------------------...
    value n-----------------------value m
    Would welcome any advice on how to achieve this please.
    Thank you.

    Hi,
    I will suggest a solution which may appear not simple. I do not know. Il did use this method, because a Government pre-printed tax form can print six values (in colum way) each page and it was not just esthetique question.
    1. Seams that you can know in advance the max number of column according to the width of the page and the length of the column.
    2. You can assume that you have x column at max by ligne
    3. Transforms your N rows in a table of M rows, each one with x columns : you will have N/x + N mod x
    4. I did this transformation using PL/SQL piplined function to transform rows to columns (by x)
    5. You base your report on the Pipelined function using select ... from Table (fnc_....) syntaxe
    6. make your vertical elasticity to variable and horizontal to fixed
    7. Put six labels on the top of your repeating frame (within a normal frame)
    I agree, it's not the solution if the requirment is just esthetic.
    Hope it helps.
    Mohamed Dadi

Maybe you are looking for