Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2004
    Posts
    16

    Unanswered: Restricting rows while EXPORTING

    Hi All,
    I am pretty new to Oracle and not so familiar with export/import command.
    I have a question, while exporting is there any option to limit/restrict the rows (say 1000) from all the tables in a particular schema.

    Appreciate your help.

    Thank You,
    namoh

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    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
    Feb 2004
    Posts
    16
    Originally posted by anacedent
    Yes
    see
    http://download-west.oracle.com/docs...01.htm#1005843

    for details
    Thanks anacedent. I am attempting as follows, have one question:
    TABLES= (TEST) -- Should I specify all the tables here? The list will be in hundreds..

    ======================================
    USERID=test/test
    FILE=i_test.dmp
    LOG=i_test.log
    GRANTS=y
    INDEXES=y
    CONSISTENT=y
    CONSTRAINTS=y
    ROWS=y
    FEEDBACK=1000
    TABLES= (TEST) -- Should I specify all the tables here?
    QUERY= \"WHERE ROWNUM<\1000\"

    =======================================

  4. #4
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    >Should I specify all the tables here? The list will be in hundreds..
    More than likely if you try to list "all" of them you'll exceed the limits of the CLI.
    You can use SQL to create a script with one line per table.
    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
    Jul 2003
    Posts
    2,296
    spool a list of tables from SQL to a flat file, then run a macro against
    that file so that it adds a comma and deletes a carriage return.
    Run the macro as many times as you have rows and you now have
    the one line of all your tables which you can paste into your parameter file.
    - The_Duck
    you can lead someone to something but they will never learn anything ...

Posting Permissions

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