How to copy only some coulums and rows from excel files to a Oracle Table

Dear all,
I have the following problems:
How to copy only some wanted coulums ( I.e DATETIME(format:17/09/2007 00:00:01 ) and TIME (format: 00:00:01 ) from excel files to oracle table.
HOPE TO GET HELP FROM YOU GUYS!
SINCERELY,
MONOJSHARMALUITEL

How about Heterogeneous Services so that the Excel sheet is an external database:
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

Similar Messages

  • How can I transfer some books and music from one ipad to another without having to sync and erase the lot?

    I am trying to transfer some music and books from my ipad to my mothers ipad.   I am using a laptop that I have had to install itunes onto.  When I sselect the music I want to put onto my mothers ipad I get the message 'are you sure want to sync this ipad to this computer as it will erase all date on the ipad and replace it with this'...well something to that effect anyway.
    When I plug my ipad into it it also states that syncing will erase all data and replace it with what is on itunes as my ipad is linked to another computer (im in Hobart and my usual computer is in brisbane)
    Is there a simple way for me to add music and books on a usb stick to mothers ipad without having to lose everything taht she currently has on there?
    Any advice is greatly appreciated
    Cheers

    Backup with this User Tip, restore the library to the new computer using the same tool, keep the backup up-to-date in future. Deauthorize the old computer if you no longer need to access protected content on it.
    As to your issues with compilations albums select all the tracks, set the Album Artist to Various Artists and on the options tab set Part of a compilation to Yes. See Grouping tracks into albums for details.
    tt2

  • Not uploading more than 150 rows from Excel file to Internal table.

    Hi All,
    We have a Z program to upload initial stock from excel file to SAP using BAPI. The problem is we have defined row to '65536'. But it is not uploading more than 150 rows at a time. The piece of code is given below.
    DATA : it_excel LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE.
    DATA: xcel TYPE TABLE OF alsmex_tabline WITH HEADER LINE.
    DATA : gd_scol   TYPE i VALUE '1',
           gd_srow   TYPE i VALUE '3',
           gd_ecol   TYPE i VALUE '256',
           gd_erow   TYPE i VALUE '65536'.
    PERFORM upload_excel_file TABLES   gt_out
                                  USING   p_file
                                          gd_scol
                                          gd_srow
                                          gd_ecol
                                          gd_erow.
    FORM upload_excel_file  TABLES   gt_out
                                       "Insert correct name for <...>
                            USING    p_p_file
                                     p_gd_scol
                                     p_gd_srow
                                     p_gd_ecol
                                     p_gd_erow.
      DATA : lt_intern TYPE  kcde_cells OCCURS 0 WITH HEADER LINE.
      DATA : ld_index TYPE i.
      FIELD-SYMBOLS: <fs> TYPE ANY.
      CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
        EXPORTING
          filename    = p_p_file
          i_begin_col = p_gd_scol
          i_begin_row = p_gd_srow
          i_end_col   = p_gd_ecol
          i_end_row   = p_gd_erow
        TABLES
          intern      = lt_intern[].
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF lt_intern[] IS INITIAL.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'No Data Uploaded'.
        EXIT.
      ELSE.
        SORT lt_intern BY row col.
        LOOP AT lt_intern.
          MOVE lt_intern-col TO ld_index.
          ASSIGN COMPONENT ld_index OF STRUCTURE gt_out TO <fs>.
          MOVE lt_intern-value TO <fs>.
          AT END OF row.
            APPEND gt_out.
            CLEAR gt_out.
          ENDAT.
        ENDLOOP.
      ENDIF.
    ENDFORM.           
    Plz tell me, what is the problem here. I want to upload all the rows at a time.
    Thanks,
    With regards,
    Rosaline.

    Hi Rob, I confirm, you're nitpicking! :-D For information, I've noted a few SAP comments about releasing and released objects, for people who like reading: [SAP Library - Documenting and Releasing a Function Module|http://help.sap.com/saphelp_nw70/helpdata/en/d1/801f50454211d189710000e8322d00/frameset.htm], [Note 109533 - Use of SAP function modules|https://service.sap.com/sap/support/notes/109533], [Note 415983 - Modification/customer developments of SAP function modules|https://service.sap.com/sap/support/notes/415983]; Example of an unreleased BAPI -> [Note 577453 - Using BAPI BAPI_DELIVERYPROCESSING_EXEC|https://service.sap.com/sap/support/notes/577453]
    Sandra

  • How can I transfer dates and locations from excel file to iCal?

    I received an Excel file with dates and locations to visit for 45 days. Is there a way to transfer over to iCAL and then to iPhone?

    how to input all those addresses into my Garmin as well.
    I can't help you with that one.
    Could have I also input somehow from excel to entourage and then ical??
    I don't think Entourage has the data detectors feature.
    AK

  • Store Header and/or  footer from flat file to an oracle table by customizing LKM.

    I like to customize my LKM by adding extra option in LKM and extra step in LKM,  so that I can store Header and Footer of the source File (Header : normally at beginning of the line Footer At the end of the line) in a separate oracle table.
    File format would be
    Header row
    data
    data
    data
    data
    footer row
    I like to store header row and footer row inside a table.
    Please suggest how the LKM can be customized to do so.

    Answered at
    Re: Uploading files to server

  • How to read data in correct format from EXCEL file into an internal table??

    Hi Experts,
    My requirement is to upload data from an excel file on presentation server into an internal table on <b>SRM</b> server.
    I used 'GUI_UPLOAD' function module to achieve the same but all the the data is getting uploaded in # only.I had set in the 'HAS_FIELD_SEPARATOR' to 'X' to overcome this problem.
    But all the efforts are in vain. The function module 'ALSM_EXCEL_TO_INTERNAL_TABLE' doesn't exist on SRM Server and I am not getting any other function module having similar functionality available on SRM server.
    I have written the following code:-
    TYPES: BEGIN OF ty_addr_loc,
             userid    TYPE xubname,      "User Id
             addr_code TYPE char4,        "3 Digit Site Location Code/4 Digit
                                                       "Alternate Address
             loc_id    TYPE bbp_location, "Indicator: Address is standard address
            END OF ty_addr_loc.
    *Retrieving file name
    parameters: p_file type rlgrap-filename.
      DATA:
        Local variable holding file name
          l_file TYPE string,
        Local Variable holding the file type,
          l_type TYPE filetype VALUE 'ASC',
        Local Variable holding the field separator
          l_sep  TYPE char01,
          i_tab type standard table of ty_addr_loc.
    Clearing local variables
      CLEAR:
            l_file,
            l_sep.
    Initializing the local variables
      MOVE p_file TO l_file.
      l_sep = 'X'.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = l_file
          filetype                      = l_type
          has_field_separator           = l_sep
       HEADER_LENGTH                 = 0
       READ_BY_LINE                  = 'X'
       DAT_MODE                      = ' '
       CODEPAGE                      = ' '
       IGNORE_CERR                   = ABAP_TRUE
       REPLACEMENT                   = '#'
       CHECK_BOM                     = ' '
       VIRUS_SCAN_PROFILE            =
       NO_AUTH_CHECK                 = ' '
    IMPORTING
       FILELENGTH                    =
       HEADER                        =
        TABLES
          data_tab                     = i_tab
       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.
      Throwing an information message
        MESSAGE i003. "Data Upload Failed
        LEAVE LIST-PROCESSING.
      ENDIF.
    Please tell me a way out. I have to make a delivery urgently.
    Thanks in advance,
    Swati Gupta

    Hi
    Try the FM <b>KCD_EXCEL_OLE_TO_INT_CONVERT</b>
    Sample:
      call function 'KCD_EXCEL_OLE_TO_INT_CONVERT'
           exporting
                filename                = i_filename
                i_begin_col             = l_begin_col
                i_begin_row             = l_begin_row
                i_end_col               = l_end_col
                i_end_row               = l_end_row
           tables
                intern                  = xt_intern
           exceptions
                INCONSISTENT_PARAMETERS = 201
                UPLOAD_OLE              = 201.
      if sy-subrc <> 0.
        e_subrc = sy-subrc.
        exit.
      endif.
    <b>reward if Helpful.</b>

  • How to delete only events I previously imported from .ics files?

    I have a very frustrating problem. A few months ago I added a few .ics calendars and merged them with my main calendar on iCal. For example I added a list of dates of baseball games for my favorite team, a list of holidays in Britain, and a few other .ics files.
    Then tragedy struck: I synced my Blackberry to my Macbook and iCal and then somehow all the dates on the imported .ics became one day earlier. For example, valentine's day, which should be February 14, is on February 13 on my calendar. And Christmas is on December 24, rather than December 25.
    Strangely, all the events that I manually added (such as my business meetings), are correct and were never changed. Only the dates/events from the imported .ics files changed.
    I have waited a few months, but the frustration is just too much. I can not easily delete my main calendar, because it literally has hundreds of business meetings spread out over a 6-9 month period.
    So my question is this:
    a) Is there a way to move all the date back 1 day for only things imported from .ics? All these holidays and events are i a small purple oval at the top of each date, so they are definitely look different than the business meetings I entered, so I hope there is a way to selectively move them.
    b) Is there a way to delete all those events and then try re-importing them?
    Tks for your help!

    Right, I only have 1 calendar. Ok, I did this but nothing seems changed. Here is what I did:
    I followed your directions and it ran for about 4 min and I heard my fan starting up and my Macbook slowed. Then things got better and my iCal crashed. I forgot to close it before I ran this I received no error message, but nothing changed in iCal and all the One Day Events were still there.
    So I then had the iCal closed, and attempted all steps again. Again it ran for about 4min, things slowed on my computer to a crawl, then got better. Then the Apple error window opened and said again iCal quit unexpectedly (I had not started it in the first place, but I assume the script had to open it to do the work, right?).
    So now I'm back where I started -- it seems like the script was doing something but it didn't do anything to my one day events
    I REALLY appreciate your help!

  • How do i put tv programmes and videos from itunes to another iphone, without having to delete all data on the phone and replacing it with my library? i switched the 'sync only ticked songs and videos box' yet it still wont let me transfer videos from my i

    How do i put tv programmes and videos from itunes to another iphone, without having to delete all data on the phone and replacing it with my library? i switched the 'sync only ticked songs and videos' yet it still wont let me transfer videos from my itunes onto my new phone, any ideas??

    Copy the entire itunes folder from the old computer to the new computer.

  • How can I make the rolumn and row headers appear on the printed sheet?

    I am working in Numbers'09. I want to print out my chart with the column letters and row numbers showing.
    How can I make the rolumn and row headers appear on the printed sheet?

    g,
    Those annotations are called "Labels", and they are only visible during editing when a cell selection is made within the table. If you need to have the labels on your final output, you can create labels in Text Boxes and position them adjacent to the table.
    Jerry

  • HT4889 Is it possible to use the migration assistant to transfer only some documents and data? For example, I was to transfer my music, but not my word documents. There doesn't seem to be any options to customise what you are transferring - its all or not

    Is it possible to use the migration assistant to transfer only some documents and data? For example, I was to transfer my music, but not my word documents. There doesn't seem to be any options to customise what you are transferring - its all or nothing

    LBraidwood wrote:
    Is it possible to use the migration assistant to transfer only some documents and data? For example, I was to transfer my music, but not my word documents. There doesn't seem to be any options to customise what you are transferring - its all or nothing
    Yes, that's why I recommend one have more than TimeMachine as a backup because if certain files or folders are corrupted on the TM drive, your not logging into your migrated user account or not be able to transfer it what so ever.
    Then it's a REAL PAIN and costs $99 to bit read the TM drive to get the files out, then it's mess to go through and sort all the empty placeholders from the real files as TM doesn't save duplicates in each state, just uses the previous state's copy if there are no changes.
    If you create the same named user account on the new machine, and simply transfer files via a USB thumb drive and place say music contents into the Music folder, then it will work too.
    Look into making clones of your boot drive, the benefit here is it's bootable, you can access the drive directly to pick and choose files, run the computer just like before etc.
    Most commonly used backup methods explained

  • How do i get my songs and data from my old mac onto my pc so that i can copy it onto my new ipod touch

    how do i get my songs and data from my old mac onto my pc so that i can copy it onto my new ipod touch

    jrswish wrote:
    When I plugged in my new one it cleared all my song and apps out of my current itunes.
    Are you sure of that?  Check in the Library.  Click on the Apps icon to see all apps.  Similarly click on the Music icon to see the songs.

  • HT4889 How do you only migrate pictures and music? I do not want to migrate anything else. Thank you for your time.

    How do you only migrate pictures and music? I do not want to migrate anything else. Thank you for your time.

    Welcome to the Apple Support Communities
    Migration Assistant will ask you what you want to migrate from your old Macintosh, so select just Pictures and Music

  • How to import only procedures, functions, and packages only

    Hi everybody...
    How to import only procedures, functions, and packages only from one user to another user.
    Thanks in advance
    pal

    Thanks for your reply...i did the following..can you please help from this how to proceed
    ---------------- getcode.sql -------------------------------
    set feedback off
    set heading off
    set termout off
    set linesize 1000
    set trimspool on
    set verify off
    spool &1..sql
    prompt set define off
    select decode( type||'-'||to_char(line,'fm99999'),
    'PACKAGE BODY-1', '/'||chr(10),
    null) ||
    decode(line,1,'create or replace ', '' ) ||
    text text
    from user_source
    where name = upper('&&1')
    order by type, line;
    prompt /
    prompt set define on
    spool off
    set feedback on
    set heading on
    set termout on
    set linesize 100
    ------------------- getallcode.sql -------------------------
    set termout off
    set heading off
    set feedback off
    set linesize 50
    spool c:\xtmpx.sql
    select '@getcode ' || object_name
    from user_objects
    where object_type in ( 'PROCEDURE', 'FUNCTION', 'PACKAGE' )
    spool off
    spool c:\getallcode_INSTALL
    select '@' || object_name
    from user_objects
    where object_type in ( 'PROCEDURE', 'FUNCTION', 'PACKAGE' )
    spool off
    set heading on
    set feedback on
    set linesize 130
    set termout on
    @xtmpx.sql
    I did this one user and created the xtmpx.sql
    and getallcode_INSTALL.LST.
    From this, how to proceed to run these in another user.
    Thanks,
    Pal

  • How can I remove all photos and directories from iPhoto?

    How can I remove all photos and directories from iPhoto as if it was a brand new install?
    I am new to iPhoto and was unaware of how it works, honestly I still am a little confused as to when pics I am using 1/2 the time, some from iPhoto and some from MyPics.
    Anyhow, I am looking to remove all photos from iPhoto because during the migration of all my photos from PC to MAC, somehow my timeline became messed up and all my photos that have been logged my dates since 1998 are now all messed up.
    Although all my year folders are still in tact, IE 1998-2006, the subfolders and like pics are all intertwined somehow.
    And when I search iPhoto for a given year, photos from 2,4, 8 yrs back show up in 2006.
    Anyhow, I have selected and deleted all photos and folders within iPhoto, and then import the desired photos from MyPics, only to have the photos double up in the library. ( The old ones that should be deleted and the new imports)
    I simply don't get it, they fill the trash and disappear when it's emptied, then reappear when iPhoto re-opens!
    Can someone help????
    I have completely reworked all my photos so that they are all in the correct folders outside of iPhoto, and now I want to import those and only those pics with that file structure.
    IE Structure = YEAR > MONTH > DAY ( or if needed) > DAY/EVENT

    Do you want to remove the existing full sized image files also? If so then just drag the iPhoto Library folder from the Pictures folder to the Trash and empty it. But be warned you'll lose all of your image files.
    You are dragging the files to the iPhoto Trash bin and then using the iPhoto->Empty Trash menu, right?
    In copying your photos to myspace and then back the original capture date may not be retained and then either the created date or modified date will be used by iPhoto. If the files in the current library are the originals from your camera then those have the best chance of retaining the correct Captured Date. You can check that out by dragging the Originals folder from your iPhoto Library folder to the desktop and then trash what remains of the iPhoto Library folder. Then launch iPhoto and it will ask you to create an new library. Then import that Originals folder and it's subfolders by dragging it into iPhoto's open window. You'll keep the same rolls that was. The roll dates may change but you can check the captured date of the files by using the calendar in the Source pane.
    You won't be able to keep your folder structure within iPhoto. Each outside folder will result in a roll with the same title as the folder. You'll be able to create folders in the Source pane to put albums inside. You can create a smart album to include all photos in a certain date range, line one month.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    G5 Dual Core 2GHz, 2G RAM, 250G HD; G4 Dual 1Ghz, 1.5G RAM, 80G HD,   Mac OS X (10.4.7)   22 LCD Display, 200G & 160G FW HDs, Canon S400, i850 & LIDE 50, Epson R200

  • I have tried and failed to copy my iTunes library and playlists from my Windows 8 desktop to my Windows 7 laptop using an external hard drive. Can it be done? Help would be appreciated.

    I have tried and failed to copy my iTunes library and playlists from my Windows 8 desktop to my Windows 7 laptop using an external hard drive. Can it be done? Help would be appreciated. I have followed instructions found online but the library of music doesn't pull in.  Thanks!
    Nate

    Migrate an iTunes library from one computer to another
    These are two possible approaches that will normally work to move an existing library to a new computer.
    Method 1
    Backup the library with this User Tip.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Restore the backup to your new computer using the same tool used to back it up.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entireiTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    Both methods should give the new computer a working clone of the library that was on the old one, with ratings, play counts, playlists etc. preserved. As far as iTunes is concerned this is still the "home" library for your devices so you shouldn't have any issues with iTunes wanting to erase and reload.
    I'd normally recommend method 1 since it establishes an ongoing backup for your library and unlike copying with Windows Explorer the process can be resumed if it is interrupted and it will continue to the next item if there are any read/access errors.
    Note if you have iOS devices and haven't moved your contacts and calendar items across then you should create one dummy entry of each in your new profile and iTunes should  merge the existing data from the device.
    If your media folder has been split out from the main iTunes folder you may need to do some preparatory work to make it easier to move. See Make a split library portable.
    Should you be in the unfortunate position where you are no longer able to access your original library or a backup then then seeRecover your iTunes library from your iPod or iOS device for advice on how to set up your devices with a new library with the maximum preservation of data.
    tt2

Maybe you are looking for

  • How can I create a variant in CAT2 for all users?

    I am using SAP version 4.6c In the CAT2 screen I have a variant "Basic settings" if I change this it affects all users. I want to create another variant, so that the users can choose between them. But when I create another, it is only avilable for my

  • Error in the Input scchduled.Object variable or with block varaible not set

    Hai Experts , In the input schdueld , data is not accepting .. Its shows error : Object variable or with block varaible not set Please help.. Regards Daya.........

  • Unable to clear the GR/IR account

    Hi friends, My user booked the GRN is 13.03.2010. the entry is  Material/Services a/c  1000    To  GR/IR a/c  1000 Here Invoice and vendor payment are done in 24.04.2010, payment as cleared. But client wants close the year-end closing 2009-10 . Here

  • Simple portal application

    Hi All, Im trying to migrate a simple webapp into portal enabled webapp. I wonder what are the jar files I need to copy into WEB-INF/lib directory? I just want portal-light framework. No other heavy portal functionality required. I copied these porta

  • Sorting photos by file size

    When I switched from my PC to the Mac the photos that were imported from my Picasa backup created more than one file, sometimes 3 of each image! I need to be able to start organizing my photos and I really need to delete the smaller images. I can not