How to import a excel file into database?

hi all,
How can I import a excel file into database?
What I need to do first?
Thanks,
Amy

1. Create a conrtol file in your disc(with notepad) ex
test_loader.ctl
LOAD DATA
INFILE='C:\Testcsv.csv'
into table test_table
FIELDS TERMINATED BY ','
TRAILING NULL COLS
(ID,COL1,COL2,COL3)
The table descrption is
scott@ORCL> desc test_table;
Name Null? Type
ID NUMBER
COL1 VARCHAR2(10)
COL2 VARCHAR2(10)
COL3 VARCHAR2(10)
scott@ORCL>
2 .Create a file testcsv.csv from your excel file you want to load with " save as" csv comma seperated value
in your hard disc c:\
3. in dos command mode write
C:\>sqlldr scott/tiger control=c:\testcsv.ctl log=c:\testcsv.log
Thats it!

Similar Messages

  • How can i import an excel file into formscentral?

    how can i import an excel file into formscentral?

    Thanks for asking.  This is not something we currently support but you can add or vote on feature ideas:
    http://forums.adobe.com/community/formscentral?view=idea
    If you need to add a new idea click "Create an idea" under "Actions" in the top right.
    Perry

  • How to import an Excel file

    Hi ,
    I amwriting a BDC Program..
    How to import a Excel File by Browsing the Excel file from the Directory and Storing that values in the internal table.
    Can any one send the code for this,
    Points will be awarded.
    Regards,
    Jayasimha Jangam.

    Hi,
          Create a select parameter. at selection screen, use FM F4_FILENAME to get the dialog box.
    see the sample code.
    *&      Form  display_dialog
          To display the pop up dialog box
    FORM display_dialog.
    Calling FM to display File Select dialog box
      CALL FUNCTION 'F4_FILENAME'
       EXPORTING
         program_name        = syst-cprog
         dynpro_number       = syst-dynnr
        FIELD_NAME          = ' '
       IMPORTING
         file_name           = p_file .
    ENDFORM.                    " display_dialog
    FORM upload_data.
      DATA : lt_itab   TYPE STANDARD TABLE OF alsmex_tabline,
             ls_itab   TYPE alsmex_tabline,
             ls_upload TYPE ty_upload_data.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           EXPORTING
                filename                = p_file
                i_begin_col             = 1
                i_begin_row             = 2
                i_end_col               = 5
                i_end_row               = 50000
           TABLES
                intern                  = lt_itab[]
           EXCEPTIONS
                inconsistent_parameters = 1
                upload_ole              = 2
                OTHERS                  = 3.
      IF sy-subrc <> 0.
        MESSAGE i000 WITH text-t04.
        LEAVE LIST-PROCESSING.
      ENDIF.
      CLEAR ls_itab.
      LOOP AT lt_itab INTO ls_itab.
        CASE ls_itab-col.
          WHEN 1.
            ls_upload-matnr = ls_itab-value.
          WHEN 2.
            PERFORM convert_to_decimal USING ls_itab-value.
            ls_upload-bmeng = ls_itab-value.
          WHEN 3.
            ls_upload-idnrk = ls_itab-value.
          WHEN 4.
            PERFORM convert_to_decimal USING ls_itab-value.
            ls_upload-menge = ls_itab-value.
          WHEN 5.
            ls_upload-meins = ls_itab-value.
        ENDCASE.
        AT END OF row.
          APPEND ls_upload TO gt_upload.
          CLEAR ls_upload.
        ENDAT.
        CLEAR ls_itab.
      ENDLOOP.
    Deleting the contents of internal table
    FREE lt_itab.

  • How to import a XML file into the document?

    Hai,
    i had created a table using xml file....
    Now i want to import that xml file tabel into the document...
    Can any one tell me how to import the xml file into the document?
    thanks
    senthil

    Hai...
    this is senthil...
    i'm beginner for creating adobe indesign plugins..
    i want to import a html file in the document...
    i want to create a table by using html tags and
    that table will be imported into the document..
    How shall i do it?
    can any one plzz explain me?

  • How to import a PSD file into Indesign WITH layers so it can be edited/saved as an InDesign file?

    How to import a Photoshop file into Indesign CS6 so that it's layers show in InDesign and it can then be edited/saved as an InDesign file?

    MyTienN wrote:
    Someone had mentioned the possibility of saving each individual layer in Photoshop as a png file and importing into Indesign and adjusting it in there
    What do you mean by "adjust"? Editing of Photoshop images should be done in Photoshop.
    Sure, it's possible to save individual layers from an image in Photoshop as inidvidual files in a variety of formats, but what's the point? You could just as easily import the layered file, then copy/paste it into a new layer for each layer in the image and use layer visibility to control which ones show. I don't think that will do you a lot of good, though, if you use adjustment layers or opacity controls on the layer in Photoshop.

  • Import a text file into database

    If anybody could help me with this, i would GREATLY appreciate it! I need to write a procedure to import a text file into an oracle database table. -Thanks!

    See my response in Re: import a text file into database.
    Cheers, APC

  • How to import an .csv file into the database?

    and can we code the program in JSP to import the.csv file into the database.

    It is better to use Java class to read the CSV file and store the contents in the database.
    You can use JSP to upload the CSV file to the server if you want, but don't use it to perform database operations.
    JSPs are good for displaying information on the front-end, and for displaying HTML forms, there are other technologies more suitable for the middle layer, back end and the database layer.
    So break you application into
    1) Front end - JSPs to display input html forms and to display data retrieved from the database.
    2) Middle layer - Servlets and JavaBeans to interact with JSPs. The code that reads the CSV file to parse it's contents should be a Java Class in the middle layer. It makes use of Java File I/O
    3) Database layer - Connects to the database using JDBC (Java Database Connectivity), and then writes to the database with SQL insert statements.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Keeping the above concepts in mind, first build a simple JSP and get it to work,
    then research on Google , for Java File I/O , discover how to read a file,
    Then search on how to readh a CSV file using Java.
    After researching you should be able to read the CSV file line by line and store each line inside a Collection.
    Then research on Google, on how to write to the database using JDBC
    Write a simple program that inserts something to a dummy table in the database.
    Then, read the data stored in the Collection, and write insert statements for each records in the collection.

  • CRM ABAP How to upload an Excel file into an internal table?

    How to upload an Excel file using GUI_UPLOAD?? what should be the values of the parameters? The function modules ALSM_EXCEL_TO_INTERNAL_TABLE and KCD_EXCEL_OLE_TO_INT are not present in CRM. Please suggest me a way out!

    Hi saurabh,
    you can try the folowing sample..
    and make modifications according to your requirement..
    TYPE-POOLS: truxs.
    DATA: i_text_data TYPE truxs_t_text_data,
    v_filename_string TYPE string.
    DATA: BEGIN OF itab OCCURS 0,
    Name(30),
    Phone(15),
    Fax(500).
    DATA: END OF itab.
    PARAMETERS: p_file LIKE rlgrap-filename.
    START-OF-SELECTION.
    v_filename_string = p_file.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = v_filename_string
    filetype = 'ASC'
    has_field_separator = 'X'
    * HEADER_LENGTH = 0
    * READ_BY_LINE = 'X'
    dat_mode = ''
    * IMPORTING
    * FILELENGTH =
    * HEADER =
    TABLES
    data_tab = i_text_data
    EXCEPTIONS
    file_open_error = 1
    file_read_error = 2
    no_batch = 3
    gui_refuse_filetransfer = 4
    invalid_type = 5
    no_authority = 6
    unknown_error = 7
    bad_data_format = 8
    header_not_allowed = 9
    separator_not_allowed = 10
    header_too_long = 11
    unknown_dp_error = 12
    access_denied = 13
    dp_out_of_memory = 14
    disk_full = 15
    dp_timeout = 16
    OTHERS = 17.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
    i_field_seperator = 'X'
    * I_LINE_HEADER =
    i_tab_raw_data = i_text_data
    i_filename = p_file
    TABLES
    i_tab_converted_data = itab
    EXCEPTIONS
    conversion_failed = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    this is a sample code that uploads a excel file using GUI_UPLOAD, but uses another function module to convert that uploaded data into an internal table..
    regards
    satesh

  • How to import large excel files which exceeds more then 65535 rows

    Hi there,
    I am using the latest Numbers version (v3.5.3) on the latest Yosemite (10.10.3) and wonder if and how it is possible to import an Excel file which exceeds the 65535 limit. I know MS Excel has change this limit to 156118 rows. But I don't have that program. I am only using the Mac versions.
    Thanks in advance.
    Roy

    Hello NavNak.
    My knee jerk reaction would be to split the incoming Excel file.  (How else can a gallon of water fit into a half gallon jug?)  I googled 'Excel file splitter' and up came a bunch of hits with one of them coming from this Apple Community.  Check out thread #6486876 which is How To Split Large Excel or CSV Files into Smaller Files
    Good luck.
    DaverDee

  • Import an excel file into a table

    Anybody can help me on importing a big text file (i.e. an excel file) into a table without using SQL Loader?
    Thnx in advance

    user5181307 wrote:
    There is another method where in you can edit the listener file to make an entry for separate service. then create a database link and tns entry to use the service to access the Excel.What you are referring to is called Heterogeneous Services and allows Oracle to treat something as an External database.
    For Excel files you would do it like this...
    1- Go to Control Panel>Administrative Tools>Data Sources (ODBC)>System DSN and create a data source with appropriate driver. Name it EXCL.
    2- In %ORACLE_HOME%\Network\Admin\Tnsnames.ora fie add entry:
    EXCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.0.24)(PORT = 1521))
    (CONNECT_DATA =
    (SID = EXCL)
    (HS = OK)
    Here SID is the name of data source that you have just created.
    3- In %ORACLE_HOME%\Network\Admin\Listener.ora file add:
    (SID_DESC =
    (PROGRAM = hsodbc)
    (SID_NAME = <hs_sid>)
    (ORACLE_HOME = <oracle home>)
    under SID_LIST_LISTENER like:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = d:\ORA9DB)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = ORA9DB)
    (ORACLE_HOME = d:\ORA9DB)
    (SID_NAME = ORA9DB)
    (SID_DESC =
    (PROGRAM = hsodbc)
    (SID_NAME = EXCL)
    (ORACLE_HOME = D:\ora9db)
    Dont forget to reload the listener
    c:\> lsnrctl reload
    4- In %ORACLE_HOME%\hs\admin create init<HS_SID>.ora. For our sid EXCL we create file initexcl.ora.
    In this file set following two parameters:
    HS_FDS_CONNECT_INFO = excl
    HS_FDS_TRACE_LEVEL = 0
    5- Now connect to Oracle database and create database link with following command:
    SQL> CREATE DATABASE LINK excl
    2 USING 'excl'
    3 /
    Database link created.
    Now you can perform query against this database like you would for any remote database.
    SQL> SELECT table_name FROM all_tables@excl;
    TABLE_NAME
    DEPT
    EMP... however, from the sounds of the original question the OP is referring to a flat file of data (like a CSV file) and not really an Excel file (.xls) which is a proprietary binary format that you won't be able to read with SQL*Loader or External Tables.
    The best method for the OP's requirements would appear to be external tables which were introduced with 9i.

  • How to import a XFDF file into a PDF?

    I need to import a XFDF file into a PDF through javascript.
    Manually in Acrobat 8.0 we are doing through the following steps.
    Comments->import comments->browser window open(select the corresponding xfdf file and then click select button)->After that save that pdf file. Kindly help me how to automate this process through programmatically.
    Thanks,
    Prabudass

    See your posts in the other forums.

  • How to read an excel file into the datatable in sdk code( AddonApplication)

    Hi Experts,
    Please let me know the code ,how to write an excel file to the datatable and based on the datatable it should write to the database table.
    help would be appreciated...
    Regards,
    Vijay Kumar
    Edited by: Haroon Rasheed on Oct 29, 2011 10:40 PM

    Hi,
    You may check: Read Excel File by Sheet then put it in Matrix
    Thanks,
    Gordon

  • How to import jar & exp file into the eclipse 3.1 + jcop

    hi, I am new to the javacard technology.
    I have implementing applet by using eclipse 3.1 + jcop plugin.
    recentlly, i got jar and exp file from someone. and I have to import given two files in the my applet.
    Q1. but i don't know how to use(import) two files into the elipse.
    and...
    I have tried to put the export file structure in the build path, but I am still getting the same error:
    Q2. "resolving constant-pool of clazz cash/ccash; failed: no such clazz cash/ccash;", what means?
    anyone help me~plz!
    many thanks..
    lsh.
    Message was edited by:
    neonoble

    1) In the Package explorer right-click the project you want to import the jar files into.
    2) Click import
    3) Select Archive file in the Import dialog box and click next
    4) Browse to the jar file and select it
    Socx

  • Import xml zip file into database

    Should it be possible to zip the xml file and insert the that zip file into database?

    Hello,
    You can refer to <p>this article to see how store/edit files with the Webutil library<p><br><br>
    Francois

  • HT5622 how to import an excel file to contacts

    i  have total info in excel  and need to transfer from computer to ipad and iphone contacts.
    help please.

    You need to convert the excel file into one of the formats mentioned here before you can import into contacts http://support.apple.com/kb/PH4648?viewlocale=en_US  It would seem csv is your best bet

Maybe you are looking for

  • Acrobat 9 Pro won't save bookmarks! Why?

    So this is a really weird thing that's been happening lately: I'll go through a PDF and add a bunch of bookmarks (it's an ebook that's been formatted, but with no chapter bookmarks set up), and I'll save it - and the bookmarks don't get saved! Anythi

  • How to upload video to YouTube

    Have spent 24 hrs trying to figure out why I can't upload video from a brand new 1Phone 5 and iPad OS6 to YouTube. Really apple? help anyone?

  • Upload an Excel file

    Hi guys, I am doing a BDC and i got an excel file that i need to upload into an internal table before i process it. I am defining an internal table as text and using GUI_UPLOAD with delimiter as '|' but i guess its not working. Can i try something el

  • Why is my rectangle tool creating skewed rectangles in Adobe Illustrator CC?

    Why is my rectangle tool creating skewed rectangles in Adobe Illustrator CC?

  • Video Capture xtra

    Does anyone know of a cross-platform video capture xtra? I have used the cXtra video cap xtra with sucess, but its only for Windows. Need something that will work on both Mac and PC. I've checked the mile high list, but can't seem to find anything. I