Which method is good

Hi Experts,
We can load data from flat file to oracle tables using
SQL*LOADER
UTL_FILE
EXTERNAL TABLES.
Could you please tell me Out of these three methods which one is good and why?
Please help me.
Thanks in advance.

I agree with Billy, but here's a response anyway hehe!...
SQL*Loader... great for loading files from a client machine, but then you should question why you have data stored on client machines. ;) Also, can only be used from the command line (or a command line call from a scheduled job)
UTL_FILE... great for reading/writing files on a server, but just basic processing of line or bytewise data, not concept of structure included. Can only be used from within PL/SQL code.
External Tables... greate for reading writing structured files on the server, including all the SQL*Loader functionality, and the ability to easily change it to read from multiple files and change filenames if necessary through code. Has the added benefit the data can be treated directly as a table of data and used straight away in SQL statements, and the data can be changed at the file level as required and will be picked up at the next query of it. Being able to use it in SQL also means it's easily available in PL/SQL code too.
Me personally, External tables are always the first option.

Similar Messages

  • Which method is good for upgrade small size database

    wants to upgrade 10g database to 11g.
    production database 10g running on server1 wants to upgrade 11g at different server server2
    which way is good.
    ------>>>>1 upgrade then migrate 2 different server.
    ---->>>>>2 migrate then upgrade database.
    ----->>>>other question
    if am installing 11g on server2 and migrating 10g directly then there will be any issues coming future on production.

    Pl identify exact versions (to 4 digits) of "10g" and "11g", along with the exact OS versions on the source and target. How big is your database and how much downtime can you afford ?
    One straightforward option is export/import - Moving Data Using Oracle Data Pump
    HTH
    Srini

  • We have many mappings, which one is good in performance wise ?

    We have many mappings, which one is good in performance wise ?

    HI
    Different Mapping Techniques are available in XI. They are: Message Mapping, XSLT Mapping, Java Mapping and ABAP mapping.
    u2022The integration repository includes a graphical mapping editor. It includes built-in functions for value transformations and queue and context handling.  There is an interface for writing user-defined functions (java) as well.
    u2022XSLT mappings can be imported into the Integration Repository; java methods can be called from within the XSLT style sheet. Advantages of this mapping are: open standard, portable, extensible via Java user-defined functions.
    u2022If the transformation is very complex, it may be easiest to leverage the power of Java for mapping.
    u2022ABAP mapping programs can also be written to transform the message structures.
    Message Mapping
    SAP XI provides a graphical mapping tool that generates a java mapping program to be called at run time.
    u2022Graphically define mapping rules between source and target message types.
    u2022Queue-based model allows for handling of extremely large documents.
    u2022Drag-and-drop.
    u2022Generates internal Java Code.
    u2022Built-in and user-defined functions (in Java)
    u2022Integrated testing tool.
    u2022N:M mapping is possible.
    JAVA MAPPING:
    Usually Java mapping is preferred when the target structure is relatively complex and the transformation cannot be accomplished by simple graphical mapping.
    For e.g. consider a simple File->IDoc scenarion where the source file is a simple XML file, whereas the target file is an IDoc with more than one hierarchy level e.g FINSTA01. Content conversion in XI can only create a single level hierarchy, so in this scenario a Java mapping would come in handy.
    See these:
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10dd67dd-a42b-2a10-2785-91c40ee56c0b
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    /people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs
    When to use Java mapping
    1) Java mapping are used when graphical mapping cannot help you.
    Advantages of Java Mapping
    1)you can use Java APIs and Classes in it.
    2) file look up or a DB lookup is possible
    3) DOM is easier to use with lots of classes to help you create nodes and elements.
    Java mapping can be used when you have complex mapping structures.
    ABAP MAPPING:
    ABAP mappings are mapping programs in ABAP objects that customers can implement using the ABAP Workbench.
    An ABAP mapping comprises an ABAP class that implements the interface IF_MAPPING in the package SAI_MAPPING. The interface has a method EXECUTE with the some signature.
    Applications can decide themselves in the method EXECUTE how to import and change the source XML document. If you want to use the XSLT processor of SAP Web AS, you can use the ABAP Workbench to develop a stylesheet directly rather than using ABAP mappings.
    In ABAP mapping you can read access message header fields. To do this, an object of type IF_MAPPING_PARAM is transferred to the EXECUTE method. The interface has constants for the names of the available parameters and a method GET, which returns the respective value for the parameter name. The constants are the same as in Java mappings, although the constant MAPPING_TRACE does not exist for ABAP mappings. Instead, the trace object is transferred directly using the parameter TRACE of the method IF_MAPPING~EXECUTE.
    For more details refer
    http://help.sap.com/saphelp_nw70/helpdata/EN/ba/e18b1a0fc14f1faf884ae50cece51b/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    ABAP Mapping
    /people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs
    https://websmp101.sap-ag.de/~sapdownload/011000358700003082332004E/HowToABAPMapping.pdf
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    /people/r.eijpe/blog
    ABAP Mapping Vs Java Mapping.
    Re: Message Mapping of type ABAP Class not being shown
    Re: Performance of mappings (JAVA, XSLT, ABAP)
    XSLT Mapping
    XSLT stands for EXtensible Stylesheet Language Transformations. It is an XML based language for transforming XML documents into any other formats suitable for browser to display, on the basis of set of well-defined rules.
    /people/sap.user72/blog/2005/03/15/using-xslt-mapping-in-a-ccbpm-scenario
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    The above menotined are the mapping present in the XI.
    When it is critical and complicate we go for the ABAP,JAVA or XSLt mapping. For simple Mapping we go for the graphical mapping.
    the selection of mapping also depends upon the requirement and alos on our scenario.
    cheers

  • Which method cals insertString()

    Hey I'm trying to understand this code and I just want to know which method is calling insertString() ? There's something in the background doing it but i don't know what it is. I'm using Eclipse, so if there's an easy way to find out this information please let me know :)
    http://www.codeguru.com/java/articles/444.shtml
    Thanks

    In Eclipse, which I don't use very much, there is a context-sensitive menu (right-click) that allows you to look at various aspects of a members (classes, variables, methods). In the source file editor, move the insertion point in the code to be in your method name. Right click, and select References. It should search for, and find, every class/method that calls your method. There can be more than one. Sometimes, there are too many to examine. Good luck.
    {?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Which method is used for event creation

    Dear All,
    My client has more then one Purchase Organization. Workflow for Purchase order release very from pur org to pur org. For example - workflow WS92000030 is trigger when PO is created for India pur org where as workflow WS92000021 is trigger when PO is created for US pur org.  
    I checked and found that same Object Type - BUS2012 & event - RELEASESTEPCREATED is used in all Pur. Org PO release workflow. Also I found in Transaction code - SWETYP that Type linkage activate for  BUS2012, RELEASESTEPCREATED in all the PO workflow - WS92000030 & WS92000021.
    As per my knowledge, event can be created in various way such as Function module, Change document, General status management, Business Transaction Events etc.
    Can some one guide me, how can I found that which method is used for event creation in different pur org?
    How can I fould what is the fuctional module used for event creation if Fuctional module used for event creation. 
    For your information, I can see in T. Code - SWUO that 'Result dependent on a check function module'  for all the workflow - WS92000030, WS92000021 etc.
    Thanks in

    Hi Sahu,
    I dont think they have used the Function module or change document or any other kind of methods to trigger the workflow. This is because RELEASESTEPCREATED method is a standard method and it will be triggered by standard SAP. They can not make changes in standard sap saying RELEASESTEPCREATED should be triggered for this Purchase Org .
    Istead what i think is, they might have given the Event Condition for each workflow.
    In SWDD>> basic settings>> Start Events, we can give condition on triggering the workflow.
    Please check this.
    Regards,
    Gautham

  • I have a iPad and a iPod touch how do I sync both of them to iTunes without mixing the apps, my iPad apps shows up on my iPod which is not good because I only have 8G on the iPod, I would like to keep them separate

    I have a iPad and a iPod touch how do I sync both of them to iTunes without mixing the apps, my iPad apps shows up on my iPod which is not good because I only have 8G on the iPod, I would like to keep them separate

    Turn Automatic Download off
    Settings>iTunes and Apps Store>Automatic Download>Off

  • In LSMW which method is exactly suits for Master Recipe Creation (TC-C201)

    Hi All,
    I am unable to find which method suits for Master Recipe Creation in LSMW.
    Please send me in detail if any method suits.
    Can any body help me in this.
    Points will be awarded for correct answer which helps me come out of this problem.
    Regards,
    Shobha

    Hi shobha,
    if  there is code u have to do before uploading go for BDC or BAPI,
    it not go for LSMW (recording method) --> in this its very difficult to code.
    Thanks

  • I have been buying apps for a long time  without a problem using my credit card on file. All of a sudden itunes is not recognizing my card which is in good standing. All the info is correct but itunes/apple says it doesn't  match the bank info. Any ideas

    I have been buying apps for a long time  without a problem using my credit card on file. All of a sudden itunes is not recognizing my card which is in good standing. All the info is correct but itunes/apple says it doesn't  match the bank info. Any ideas?

    Answered in your Other post on this Topic...
    https://discussions.apple.com/message/24053626#24053626

  • By which method,i can get  the no of rows in the record set?

    Does anyone help me that by which method,i can get the no of rows in the record set?
    now i use next() to check whether the next record is available or not?

    shashi_rajak wrote:
    under Practice Exercise #1 heading :
    there is a statement.
    "Now, the COUNT function does not need to retrieve all of the fields from the table (ie: employee_number, employee_name, and salary), but rather whenever the condition is met, it will retrieve the numeric value of 1. Thus, increasing the performance of the SQL statement."And have you ever tried it? Or do you simply blindly believe everything you read? And what sort of "authority" is "tech on the net"?
    P.S. A quick test on Oracle (and you must do each query at least twice throwing away the first result, as Oracle always caches things which will have an effect, and averaging the remaining attempts).
    count(*) -- 1 min 17 secs for 35,311,978 rows
    count(1) -- 1 min 19 secs for 35,311,978 rows
    Edit: And the table has 46 columns.

  • In BDC, I Have 10,000 Records Which Method do I Select? and Why?

    Hi all,
    In BDC , I Have 10,000 Records of Material Master Application. I have go through by Session Method or Call Transaction Method. Which Method do I Select? and Why?

    Hi..
    There you hav to go for sessions method....
    because...
    1. session methos has auto matic error handling option. so if there is any error in last but 100 th reocrd it will just threws that record and remaining part willl complete.
    2. And it was offline method.. means formatting of the data and assigning to Sap lay can be done in two steps... So you  10000 recors can update in expected time comaper with Calltransaction method...
    Get back to me if you are not satisfy with above reasons.
    Thanks,
    Naveen.I

  • Which method to transfer HD cassette to fcp7

    Which method is best for transferring HD cassette? I transfer straight to FCP but someone said it's better to transfer to a special hard drive?

    It is always best practice to use an separate drive to store your media.
    From the FCP manual:
    Your computer system disk is already busy doing two things - running the operating system and running Final Cut. When you task it with also serving video and audio, you are adding a large burden.
    MtD

  • Determining which method to call from an array of Objects

    Hi All,
    Lets suppose I have an interface, a string method name, and an array of Objects indicating the parameters which should be passed to the method.
    What Im trying to work out is a way to quickly determine which method should be invoked.
    I can see that Class has getDeclaredMethod(String, Class[]), but that wont help me as I dont know the formal class types (the method may take X, but I might get passed Y which extends X in the array of objects).
    Does anyone know of a quick way I can determine this?
    All I can think of at the moment is going thru each method of the class one by one, and seeing if the arg is assignable, then, after getting all my matched methods, determining if there are any more 'specific' matches.
    Any ideas?
    Much appreciated,
    Dave

    you might want to take a look at the dynamic proxy apiCheers for the suggestion, but Im actually already using the dynamic proxy API.
    What I have is a MockObjectValidator which allows mock objects to be configuered with expected calls, exceptions to throw etc etc.
    I thought developers on my project would get tired using an interface like this:
    myValidator.setExpectedCall("someMethod", new Class[] { typeA, typeB }, new Object[] { valueA, valueB} );
    I.e, I wanted to cut out having to pass the class array, so they could just use:
    myValidator.setExpectedCall("someMethod", new Object[] { valueA, valueB} );
    The problem there is that I then need to pick the best Method from the class given the object arguments.
    When the mock object is in use, its no problem as the InvocationHandler interface provides the Method. The problem I have is selecting what method a user is talking about from an array of Objects.
    Ive written a simple one now, it just does primitive type class -> wrapper substitution, and then finds ** A ** match. If there is more than one match (ie, all params are assignable to a class' method params), I dont let that method be used.
    Shortly I'll update it to actually make the correct selection in those cases.
    cheers
    Dave

  • Guide me as a developer of iOS and also and active online game player of games like PWI, which macBook is good for me pro or air or other if any ?

    Hi,
    I am now to macBooks and dont know which one is good for me.
    Please guide me which one I have to buy.
    Regards,
    Aalok Parikh
    From India

    The retina display MacBook Pros are very lightweight, so you won't really notice a weight difference between a 15" or 13" one. If you can afford it, get the 15" notebook.
    Purchase the most powerful configuration you can afford.  If you can afford it, get the larger SSD - but, you can always get a portable external hard drive that you can take with you if you find the internal drive is too small.
    ~Lyssa

  • Which Method Should be overriden to update a column in master?

    Hi,
    I have a Master/Detail relationship with the requirement to update master depending on some column in detail. This update of master can raise an exception and it should be done at post time. The way to update master changes depending on the DML action. If an exception is raised I want to rollback the changes made to master.
    I tried prepareForDML, postChanges methods. In both cases the exception is ignored and the transaction is not commited and does not display any message visible. But the exception can be catched and visible on console.
    I tried creating a validation method on detail entity. In the validation method I update master and call master.validate. This seems to work but the validation method can be called more than once and thus can update master more than once which is invalid.
    So which method should I use to post changes of the master?
    I present detail data as a ADF-Table. I want to display the exception as attached to a row in ADF-Table, just below the row in the table. Is it possible?
    Regards,
    Salim

    Jan,
    I have OrderItems and deliveryItems entities with 1..* relationship. I want to update OrderItems.deliveredQuantity and OrderItems.returnedQuantity fields based on delivery Type (i.e return, accept). OrderItems entity has an entity-level validation rule as quantity >= deliveredQuantity - returnedQuantity. So it might throw exceptions on Validate.
    I decided to implement this functionality in deliveryItemsImpl.postChanges, deliveryItemsImpl.prepareForDML and finally in an entity level validation rule (method) in deliveryItemsImpl. In postChanges and PrepareForDML it just ignores the exception, does not commit, does not give any error messages. In the last case it retries to validate the entity continously and cannot validate. To my opinion it should stop saying this entity is invalid. Isn't?
    Jdev 10.1.3.3
    ADF-Faces, ADFBC
    Regards,
    Salim

  • How can i know in which method i am?

    I would like to know ( for debugging reasons ) in which Method the execution code is!
    Like the printStackTrace() which indicates:
    - package
    - class
    - method
    - line
    at mypackage.myclass.mymethod4(MyClass.java:40)
    at mypackage.myclass.mymethod3(MyClass.java:30)
    at mypackage.myclass.mymethod2(MyClass.java:20)
    at mypackage.myclass.mymethod1(MyClass.java:10)
    at java.lang.Thread.run(Thread.java:484)
    Does anybody knows how to do this?
    Bye
    Emiliano

    This will return the calling class.method() of a class.
    public static String getCallingClassMethod() {
         try {
              Exception e = new Exception();
              // make a buffer to store the stack trace       
              java.io.ByteArrayOutputStream buffer = new java.io.ByteArrayOutputStream();
              java.io.PrintStream stackInfo = new java.io.PrintStream(buffer);
              e.printStackTrace(stackInfo);
              // create the tokenizer to get each line       
              java.util.StringTokenizer stackInfoParser =
                   new java.util.StringTokenizer(buffer.toString(), "\n");
              int n = 4;
              // *nix system only need 4 tokens windows has 2 extra
              if (System.getProperty("os.name").startsWith("Windows"))
                   n = 6;
              // loop through all the crap that comes before our calling method
              for (int i = 1; i < n ; i++){
                   stackInfoParser.nextToken();
              // get our calling class.method
              String returnString = stackInfoParser.nextToken().trim();
              // get rid of the garbage
              returnString = returnString.substring(returnString.indexOf(" ") + 1,
                   returnString.indexOf("("));
              return returnString;
         } catch (Exception e) {
         return "";
    }

Maybe you are looking for