What is the best/fastest method to create a table (Oracle 11gR2 dB)?

Assuming there are no statistics for the source tables - tables are every day dropped and recreated
My tables have a few million rows
I try to create a table populated with data as fast as it is possible via
1. createtable_name as SELECT * from emp;
2. create table_name
Parallel degree 4
  as SELECT * from emp;
I 1 case I got timing about 34 Sec
In case 2 the table was created in 15 Sec
Is in oracle other possibilities to create a table much faster that with this CTAS?
Or it will be faster when I will create a table via create table_name
  column1datatype[NULL | NOT NULL],
  column2datatype[NULL | NOT NULL],
  column_ndatatype[NULL | NOT NULL]
or maybe should I use this one method
INSERT /*+ APPEND */ INTO empSELECT * FROM all_objects;
INSERT /*+ APPEND_VALUES */ INTO emp SELECT * FROM all_objects;
or it is better to simple create a table
and than use FORALL BULK INTO COLLECTION statement
whit combination of
INSERT /*+ APPEND */ INTO emp;

Assuming there are no statistics for the source tables - tables are every day dropped and recreated
My tables have a few million rows
The 'fastest' way is to NOT drop and recreate the tables every day.  Unless the table changes structure every day just create the tables ONE TIME. The each day you can truncate them with the REUSE STORAGE clause.
Then populate the tables using DIRECT-PATH loading such as by using the APPEND hint. That can also be done in PARALLEL if desired.
FORALL and BULK COLLECTION would ONLY be used if the data is ALREADY in collections as part of complex ETL data cleansing/conversion. If the data already exists in external files or other tables there is generally no need to use PL/SQL or collections.
What PROBLEM are you trying to solve?
You need to give us much more info if you really want help. For ETL the task of 'loading a table fast' is generally WAY DOWN the list of concerns.
1. where is the data now?
2. How much data is there?
3. what cleansing/conversion needs to be done on the data?
4. what are the requirements for restart/recovery needed?
5. what are the requirements for detecting and reporting on data issues?

Similar Messages

  • What is the best way is to create a web app item collection which will contain only the listings where addressstate="ABC".

    What is the best way is to create a web app item collection which will contain only the listings where addressstate="ABC".

    How many systems have you used Robert?
    This is the only system you can not have all item data at least in JSON format and all of it. Big commerce has a lower limit and as I have said in every post related to a limit - I understand the function, but you can still make the requests as just one example (front and back)
    Same with API Robert.
    Firstly - the SOAP API request on say products gets you ALL the products, if you do something through a REST API request you can  make the requests to get all the items to complete your process of what your doing - You have to otherwise the API is pointless.
    Ok if the normal modules can not iterate through if there is a module_data solution, and web apps will get there hopefully sooner then later and you do have the sql query (where) for your filter which is great BUT, if you want to implement a solution across everything you cant do that with the liquid implementation.
    This also flows through to the JSON everywhere in concept which is fundamentally flawed for the same reason... And again referring other like services where a hard API has a limit but the JSON request returns everything.
    How those work varies from the method of request, some will only update every day, xxx time (Depending on cost of the plan) so its a cached version of data, to the ones that limit that request to x number of times per set time/day.
    That is how the actual rest of the world works, varied solutions but they are solutions. BC know they have a few limitations, there clearly is the need for things, there are a varied set of options... It is just a matter of engaging in it and offering up a solution for it, silence just creates frustration.

  • What are the best editing softwares to create sequence shots and slow down video?, What are the best editing softwares to create sequence shots and slow down video?

    What are the best editing softwares to create sequence shots and slow down video?, What are the best editing softwares to create sequence shots and slow down video?

    Do you want free or do you want the best, your original post said best, now you are saying free. This is a contraction, there is no such thing as best free. There is such a thing as free and such a thing as best.
    Also is your focus video or photos?????

  • What is the best Adobe program for creating interactve iPad books?

    I'm a graphics/media guy & and my mate is a children's book illustrator
    working on a little 20 page interactve kids book for 2-6 years old, I'm looking for feedback
    on what is the best Adobe program for creating interactve iPad books? and then extending
    the material for other tablets. my findings so far.
    - InDesign 6 - Best layout limited intractivity and issues with the folio builder
    - Edge - HTML 5 BUT No Audio/Video
    - Digital Publishing Suite the cost is just silly for the little guy
    I welcome your thoughts and opinions

    You may also be interested in this project that we've launched on Kickstarter to export HTML5 directly from InDesign, so that your content can easily be viewed across devices:
    http://www.kickstarter.com/projects/ajarproductions/indesign-to-html5

  • What is the best (easiest) way to create thumbnails?

    From (image) files selected via JFileChooser, what is the best way to create thumbnails so they can be immediately displayed?

    package projects.web;
    import javax.swing.*;
    public class UploadApplet extends JApplet{
         public void displayGUI(){
              AppletGUI createGUI = new AppletGUI(getRootPane());
         public void init(){
              try{
                   SwingUtilities.invokeAndWait(new Runnable(){
                        public void run(){
                             displayGUI();
              } catch (Exception e){
                   e.printStackTrace();
    } // end UploadApplet class
    package projects.web;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.text.*;
    import java.util.*;
    import java.io.*;
    public class AppletGUI{
         // JButtons
         JButton addButton = new JButton("Add");
         // JPanels
         JPanel containerPanel = new JPanel();
         JPanel optionsPanel = new JPanel();
         JPanel thumbnailPanel = new JPanel();
         // JScrollPane
         JScrollPane thumbnailScroll;
         public AppletGUI(JRootPane topContainer){
              // Add actionListener
              addButton.addActionListener(new ButtonHandler());
              // Set border layout
              containerPanel.setLayout(new BorderLayout());
              // Add buttons to target panels
              optionsPanel.add(addButton);
              // Set size and color of thumbnail panel
              thumbnailPanel.setPreferredSize(new Dimension (600,500));
              thumbnailPanel.setBackground(Color.white);
              thumbnailPanel.setBorder(new LineBorder(Color.black));
              // Add thumbnail panel to scrollpane
              thumbnailScroll = new JScrollPane(thumbnailPanel);
              // Set background color of scrollPane
              thumbnailScroll.setBackground(Color.white);
              // Add subpanels to containerPanel
              containerPanel.add(optionsPanel, BorderLayout.NORTH);
              containerPanel.add(thumbnailScroll, BorderLayout.CENTER);
              // Add containerPanel to rootPane's contentPane
              topContainer.getContentPane().add(containerPanel);
         } // end constructor
         class ButtonHandler implements ActionListener{
              public void actionPerformed(ActionEvent e){
                   new FileBrowser();
              } // end actionPerformed method
         } // end inner class ActionHandler
    } // end AppletGUI class
    package projects.web;
    import java.awt.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    import javax.imageio.*;
    import java.util.*;
    public class FileBrowser{
         JFileChooser fileChooser = new JFileChooser();
         int fileChooserOption;
         LinkedList<File> selectedFilesList = new LinkedList<File>();
         LinkedList<String> fileNames = new LinkedList<String>();
         public FileBrowser(){
              fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
              fileChooser.setMultiSelectionEnabled(true);
              fileChooserOption = fileChooser.showOpenDialog(null);
              if (fileChooserOption == JFileChooser.APPROVE_OPTION){
              for (File selectedFile : fileChooser.getSelectedFiles()){
                        selectedFilesList.add(selectedFile);
                        fileNames.add(selectedFile.getName());
              } // end enhanced for loop
              } // end if
         } // end constructor
    } // end class FileBrowser

  • What is the best free software to create an advert on?

    I am looking to create a couple of adverts both poster and video, i was wondering what is the best free software to make these on?

    For laying out the poster ad
    Free, open source apps.
    GImp (free, open source Photoshop replacement)
    http://www.gimp.org/downloads/
    PIxelmator (cheap near Photoshop-like replacement)
    http://www.pixelmator.com/
    Free Vector drawing app.
    Inkscape
    http://www.inkscape.org/en/download/mac-os/
    Drawberry
    http://raphaelbost.free.fr/DrawBerry.html
    Free Page Layout app, if needed.
    If this is already on your Mac.
    Apple Pages app.
    OR Free, open source
    Scribus OS X
    http://www.scribus.net/canvas/Scribus
    There aren't very many free video editors for Mac OS X.
    If this is already on your Mac,
    iMovie
    KDenlive
    http://kdenlive.org/downloading-and-installing-kdenlive
    LIghtworks OS X
    http://www.lwks.com/
    A few caveats about Lightworks video editor.
    OS X version is free to download and use as a public beta testing.
    This is a very comprehensive video editor, but for free use, you have to register as a public beta tester and every week you use this you have to re-register the app and answer a survey of questions about the software.
    If you do not comply with the beta testing rules and procedures, and the developer believes you are not actively invovled with the beta testing to help develope and improve this app, the developer has the right to discontinue your free use of the software and you will no longer be able to use or activate the software.
    I really wanted to try this software for free, but didn't want to have to be tied to the beta testing rules, constant developement surveys, questions and weekly re-registering as a beta tester for the use of this software.

  • What are the best archiving methods for small colleges?

    Hi Folks,
    Im thinking a few terabyte hard drives will be my best option for a hundred dollars each.
    We have a small operation here at a New England college with two editing systems that get a good amount of student use and use by myself for college needs. Some of the student work will get deleted at the end of each semester, but I need to save all the college's video.
    What are the best ways to archive? Some of my concerns are cost and space. I can afford a few externals, do any of you have a nice cheap solution?
    I understand if I am to go the route of archiving on externals I should have a backup of my backup, do any of you guys have any feedback on ghosting your backups, is that common?
    thanks
    Mike

    If it's JUST for backup (not operation), you can get bare drives and either an enclosure for 1 or 2 drives with no tools trays (like the ones from Sansdigital: about $120 for a 1 drive enclosure) or a device like the UltraDock from Wiebetech (I use the latter). Physically install (or connect in the case of Ultradock) a bare SATA II 3.5" drive, connect it via USB 2, Firewire, esata, initialize/erase it, and then copy your files.
    Then store the drive carefully in the foil anti-static bag it came in a dry location where it won't get jostled about by errant students (or kids in my house).
    The savings in not getting full drive enclosures in the cost of multiple power supplies and interfaces. You pay for that once with the mountable enclosure / drivedock, and thereafter, just buy bare drives.
    I also like another reply: have the students provide drives on which to back up their projects. A friend of mine has a ProTools audio studio, and part of his "set up" charge, is $100 for a bare drive that he will archive for 5 years, or the client can take with him at the end of the project (when the bill is paid).
    Eddie O

  • What is the best Mac choice for creating pro-level art/graphics/animation?

    I'm an artist who does a lot of work with Adobe Creative Suite CS5, as well as some video editing and lots of animation. I've been using a 2007 model 15-inch Macbook Pro for the last 4 years, and it seems like it's time to upgrade...it runs burning hot all the time, and the battery dies pretty quick when the cord falls out. It seems like the whole thing is running a little slow, which is probably because I have a TON of graphics/animation/video software on there, but I need each and every program.
    My question is, what is the best new Mac to purchase to replace this one? I want to make sure it lasts as long as possible, and will be able to handle the programs I use now. My first thought is to get another Macbook Pro, because of the portability, and just add on all the higher RAM, etc to customize it. But my husband suggested looking into the Mac Mini, because it's a lot cheaper, and we're a little strapped for cash at the moment. Would that serve the purpose? Or is a Macbook Pro really the best choice for what I need it to do?
    I'd love to hear suggestions from other artists or graphics people. What do you recommend?

    For a "cash strapped" person, unless you already
    have a monitor, one of the new iMacs may be
    a better choice.  If you do have a monitor, I would
    suggest the dual core i7 equipt MacMini.  Since you state
    you are using CS5 stuff, most Adobe apps,
    Photoshop for example, do not make effective
    use of multiple cores.  Also, using any of the
    Adobe products, regardless of which computer
    you decide on, get as much RAM as you can afford.

  • What is the best Path for a J2EE developer with oracle?

    Hi,
    I am a J2EE developer, for the time being I work at a Commercial Bank as an enterprise application developer. I have learnt java when I was following a local IT diploma and with the help of books, works at my working place and the internet , today I am developing J2EE applications with JSP,Servlets,JSF2.0,EJB3.0 and third party JSF libraries etc. (I am also developing softwares using other programing languages such as Asp.net, C#.net, WPF etc, but I prefer to be in the java path). Other than that, I'm also working as the UI designer of most of our applications.
    I have those skills and practice after working for 4 years as a web/enterprise application developer & a UI designer, but now I have to focus on some paper qualifications and hence I am doing BCS.
    Now I want to be a java professional in Oracle's path, and I need to know what is the best path I can select to move with Oracle. I finished my classes of SCJP , but didn't do the exams as there were some rumors that Oracle will dump those exams in the future. I am interested in Oracle university, but I am unable to even think about it as I live in Sri Lanka and don't have that much of financial wealth to go USA and join.
    So I really appreciate if any Oracle professional could suggest me the best educational path according to what I mentioned about my technical and career background. Because I have a dream to join Oracle one day as an employee and being a good contributer to the same forum, which I am getting helps today!
    Thanks!!!

    As you can see on our website, Oracle did not retire the Java certifications. You can browse through the available certifications and hopefully help to determine your path.
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=140
    SCJP has now become Oracle Certified Professional Java Programmer. You can find more info on those exams on our website here: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=320.
    Regarding training, perhaps live virtual training would be an option for you. You can find more information at http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=233.
    Regards,
    Brandye Barrington
    Certification Forum Moderator

  • What's the best practice to partition an existing table?

    We are using Oracle 11g EE 11.2.0.3.0. We want to partition an existing table. I found some information from this link [http://www.oracle-base.com/articles/misc/partitioning-an-existing-table.php], but I am not sure whether that's the best way. Could anyone share the best practice of partitioning an existing table?
    Thanks.
    Jun

    >
    We want to partition a few related tables. A couple of tables have about 30 million rows, and a couple of other tables have about 10 million rows. The data for those tables is for ~2000 accounts, each of them is identified by a column named "account_id". We want to partition the tables by using the "account_id" as the partition key to gain better performance for queries, so we would probably use hash partition. Please advise.
    >
    1. What evidence do you have that your performance will be any better if you partition those tables?
    2. What evidence do you have that there is anything wrong with the performance of your current queries?
    3. Have you reviewed the actual execution plans for your most important queries to see if there is even any room for improvement?
    If your query uses account_id as a predicate but only pulls a few records from a 'master' table for that key value your performance may actually be worse if you partition that table. That is because using an index range scan Oracle can easily find the ROWIDs of the rows that need to be selected and then easily retrieve them regardless of their physical location.
    If you have queries that do NOT use account_id but currently use indexes the performance of those queries may also be worse if you partition that table. Those indexes will be GLOBAL.
    There are two major implications when you use hash partitioning:
    1. Any query that does NOT include the partitioning key (account_id for your case) will, of necessity, have to use a full table scan if an appropriate index is not available.
    2. You will get NO management benefits such as being able to add/remove partitions that include old data.
    Before you decide to partition a table you should conduct tests and examine the execution plans for your important queries.

  • What's the best option for event generation from an Oracle database?

    Hi all,
    I need to interface from an oracle database into WLI (or elink if need be). The
    code that needs to call this interface is written in pl/sql in the database.
    What is the best way to enable the pl/sql to make a call to WLI?
    I know you can set up an event trigger on a table using the sample DBMS adapter
    so that it will send info to WLI via the events table in the database but this
    is what they call a pull event(i.e. the adapter is actually polling this table
    for whenever an event gets put into it I think).
    Has anyone ever done a push type event? (e.g. calling java code from pl/sql that
    sends event to WLI)
    Or anyone know whether the new JCA for Oracle Applications will help with this?
    I am using Oracle 8.1.7 so don't have any extras with Oracle Apps.
    thanks all
    adam

    Adam,
    I have not implemented an push event adapter with Oracle. However, I
    know the trend that seems to be happening in the industry and I can say
    I agree 100% with it's implementation. I am seeing vendors using
    Oracle's Advanced queuing features to push events out to other
    applications. One interface for AQ is PL/SQL using DBMS_AQ, DBMS_AQADM,
    and DBMS_AQELM packages, so you would not have to rewrite your current
    business logic. Although I have not done the leg work, logically, this
    would be the approach I would take if tasked to implement an Oracle
    event adapter.
    For more information register (free) for an account on Oracle Technology
    Network (OTN), then go to the following URL:
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.920/a96587/toc.htm
    Note: (the url goes to Oracle9i, as I couldn't find the link to 8i, but
    8i AQ in will work just as well)
    Cheers,
    Chris
    Adam Finlayson wrote:
    Hi all,
    I need to interface from an oracle database into WLI (or elink if need be). The
    code that needs to call this interface is written in pl/sql in the database.
    What is the best way to enable the pl/sql to make a call to WLI?
    I know you can set up an event trigger on a table using the sample DBMS adapter
    so that it will send info to WLI via the events table in the database but this
    is what they call a pull event(i.e. the adapter is actually polling this table
    for whenever an event gets put into it I think).
    Has anyone ever done a push type event? (e.g. calling java code from pl/sql that
    sends event to WLI)
    Or anyone know whether the new JCA for Oracle Applications will help with this?
    I am using Oracle 8.1.7 so don't have any extras with Oracle Apps.
    thanks all
    adam

  • What is the best Adobe program for creating animated UI concepts for compositing?

    I'm starting work on a concept of what an OS using the Oculus Rift might be like, mostly for fun. But I'm not sure what program would best suit my needs for that sort of work. I currently have the Photography CC pack, and I have Premiere CC as well. Would photoshop's animation systems work best, or is there something else I would have a better time with? I would need something that could output plain jane image frames with alpha channels.
    I have a fair amount of experience with photoshop, but the few times I've used it's animations features I've had a hell of a time figuring things out and doing certain things. Should I just learn that, or is there something that would work significantly better?

    For help with Photoshop, go to Photoshop General Discussion
    Otherwise, I have no idea

  • What is the best way to load 2 seperate tables to a single matrix

    What I would like to do  is create a date sorted list of customer orders and purchase orders for a single item(part) and populate a single matrix.
    and did i mention quick...

    Hi!
    i suppose you sould create for example UNION query:
    SELECT docdate, cardname, 'purch', docnum FROM OPCH
    UNION
    SELECT docdate, cardname, 'order', docnum FROM OPOR
    ORDER BY 1
    Then execute oRS.DoQuery and populate your matrix inside a loop...
    propably, somebody can give you some more advices..
    hope it helps..

  • What's the Best Free Software to create slide shows?

    Hi,
    I have to edit a movie on FinalCut ProX that includes beside interviews,  a lot of photographs.
    I usually animate them using the program it self (transform features and motion) but it takes too long.
    Could someone advice me if there is any application available and free that I can download from the Internet?
    I've tried Picassa which is Ok but a bit too simple with not too many templates.
    It has to be an application that permits to export the slide show and use it further in The FinalCut Pro X project.
    Thanks a Lot!

    JBRVideoProductions wrote:
    IPhoto is still too poor for its visual graphics editing options.
    What does that mean?
    JBRVideoProductions wrote:
    Have you used Motion by chance?
    Yes.
    Motion can do a lot of amazing things. But if you're looking for speed ("FCPX…takes too long") and templates, you need to look elsewhere.
    Perhaps you should download the Lightroom trial.
    Or for a dedicated slideshow app, Foto Magico.
    Best of luck.
    Russ
    Russ

  • What is the best way to dynamically create table partition by year and month based on a date column?

    Hi,
    I have a huge table and it will keep growing. I have a date column in this table and thought of partition the table by year and month. Can any you suggest better approach so that partition will create automatically for new data also along with the existing
    data? Nothing but automatically/dynamically partition should create along with file group and partition files.
    Thanks in advance!
    Palash 

    Also this one
    http://weblogs.sqlteam.com/dang/archive/2008/08/30/Sliding-Window-Table-Partitioning.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

Maybe you are looking for

  • How do I make Prewiew my default pdf reader again?

    When I updated adobe's soft ware they completely took over. So now when I try to open a downloaded file it comes up as an Adobe file. I hate it. Please tell me how I change back all the hijacked pdf  files into preview again. many thanks

  • Backwards compatibility of .psd files with spot channels

    Over the years Adobe Photoshop has done a really excellent job of keeping image files backwards compatible.  Unfortunately it is still possible to save files may not be opened by previous versions of the software.  This happens when a spot color is s

  • Project naming best practices

    hi the naming conventions for coding Java applications are clear to me. I'm  wondering what the best practices are for naming Java projects e.g. when creating a new project in NetBeans IDE or in BitBucket? thanks.

  • Can't open .pkg files

    I downloaded some ilife updates and the 10.4.5 intel update on another mac, with broadband; brought home on ipod. They won't install on my intel imac. Double clicking on the pkg file yields "can't find the application". Thanks for any tips.

  • New to Studio Creator

    Hello, I am considering moving from Visual Studio to the new Java Studio Creator. Can someone please give some examples of benifits on moving from ASP.NET and VB.NET to JSP. Thanks In advance, program2