Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2012
    Posts
    3

    Unanswered: Oracle 11g R2 importing data

    Hello, I'm new to Oracle and am trying to figure out how to get started. I need to combine two data files (.csv) in Oracle but I cant findout how to do it at all. Whats the best way of doing this if I plan on combining these two tables in the future? Whats the easiest way of doing this? I've read up on doing extern table feature and sql-loader.

    Is there an advantage to one over the other if I plan on combining the two files into 1 table?

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    You can append the two file at the OS level; assuming the number of columns & datatypes match.
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Apr 2012
    Posts
    3
    How would I go about doing that? Sorry I am new to this.

  4. #4
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    to append file1 onto file2 do as below

    cat file1 >> file2
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  5. #5
    Join Date
    Nov 2003
    Posts
    2,935
    Provided Answers: 12
    Quote Originally Posted by Mnelson View Post
    Hello, I'm new to Oracle and am trying to figure out how to get started. I need to combine two data files (.csv) in Oracle but I cant findout how to do it at all. Whats the best way of doing this if I plan on combining these two tables in the future? Whats the easiest way of doing this? I've read up on doing extern table feature and sql-loader.

    Is there an advantage to one over the other if I plan on combining the two files into 1 table?
    You can also run SQL*Loader twice. First with the "replace" option, the second run with the "append" option.

Posting Permissions

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