DBAsupport.com Forums - Powered by vBulletin
Results 1 to 7 of 7

Thread: Convert .csv to Oracle

  1. #1
    Join Date
    Sep 2002
    Posts
    411

    Convert .csv to Oracle

    If I have the .CSV file in excel and the data with a lot of ~(tilda) in the data, how can I clean out those ~ and save. Another word, I want to convert this file to Oracle.

    Any Suggestion????

    thanks

  2. #2
    Join Date
    May 2002
    Location
    Western Australia
    Posts
    233
    mike2000

    '~' marks should not be an issue as far as Oracle is concerned.

    Transfer the file to the host operating system and use sqlload to insert the data into an Oracle table. If the operating system is Unix it would be quite easy to get rid of the tilde marks.
    Otherwise update the table once the data is in Oracle.

    Good luck

    Nick

  3. #3
    Join Date
    Oct 2002
    Posts
    182
    OR, open file in excel.
    click EDIT.
    click REPLACE
    fill in replace with your tilde (~) and have a null value in REPLACE_WITH
    click OK (or click replace all or whatever)

    all your tildes (~) will be gone

    load your .csv file with sqlldr
    - Cookies

  4. #4
    Join Date
    May 2002
    Location
    Western Australia
    Posts
    233
    Originally posted by Cookies
    OR, open file in excel.
    click EDIT.
    click REPLACE
    fill in replace with your tilde (~) and have a null value in REPLACE_WITH
    click OK (or click replace all or whatever)

    all your tildes (~) will be gone

    load your .csv file with sqlldr
    Hi guys,

    Sorry cookies, not targeting you but I'm using Excel 97 and replace won't find tilde marks. What version are you using?


    Cheers

    Nick

  5. #5
    Join Date
    Oct 2002
    Posts
    182
    sorry for late response.

    well, convert the file into flat-text and then open in TEXTPAD.
    you can then remove the tildes easily in TEXTPAD.
    - Cookies

  6. #6
    Join Date
    Oct 2002
    Location
    Boston
    Posts
    7
    Mike2000
    You can replace tildes (~) in excel 97
    go to edit menu, replace
    then enter ~~ in find what then enter nothing in replace with
    click the button replaceall.
    This work will be done in no time.

    Regards
    Easwaran

  7. #7
    Join Date
    May 2002
    Location
    Western Australia
    Posts
    233
    Thanks Easwaran


    Good answer, what's the rule with this type of search & replace all, special characters must be double entered?

    Feel free to suggest RTFM but I'm just curious.

    Cheers

    Nick

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width