Results 1 to 3 of 3

Thread: export command

  1. #1
    Join Date
    Jan 2010

    Unanswered: export command

    I have a requiremet to take full schema backup except particulat list of tables(total 760 tables, i have to exclude 500 tables).
    Can somebody tell me how to achive this. I can use only export command here (don't have datapump option for us).

    Please revert me as soon as possible.

    Thanks in advance.

  2. #2
    Join Date
    Aug 2003
    Where the Surf Meets the Turf @Del Mar, CA
    Provided Answers: 1
    bcm@bcm-laptop:~$ exp help=yes
    Export: Release - Production on Sun Jun 26 07:17:05 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    You can let Export prompt you for parameters by entering the EXP
    command followed by your username/password:
         Example: EXP SCOTT/TIGER
    Or, you can control how Export runs by entering the EXP command followed
    by various arguments. To specify parameters, you use keywords:
         Format:  EXP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
                   or TABLES=(T1:P1,T1:P2), if T1 is partitioned table
    USERID must be the first parameter on the command line.
    Keyword    Description (Default)      Keyword      Description (Default)
    USERID     username/password          FULL         export entire file (N)
    BUFFER     size of data buffer        OWNER        list of owner usernames
    FILE       output files (EXPDAT.DMP)  TABLES       list of table names
    COMPRESS   import into one extent (Y) RECORDLENGTH length of IO record
    GRANTS     export grants (Y)          INCTYPE      incremental export type
    INDEXES    export indexes (Y)         RECORD       track incr. export (Y)
    DIRECT     direct path (N)            TRIGGERS     export triggers (Y)
    LOG        log file of screen output  STATISTICS   analyze objects (ESTIMATE)
    ROWS       export data rows (Y)       PARFILE      parameter filename
    CONSISTENT cross-table consistency(N) CONSTRAINTS  export constraints (Y)
    OBJECT_CONSISTENT    transaction set to read only during object export (N)
    FEEDBACK             display progress every x rows (0)
    FILESIZE             maximum size of each dump file
    FLASHBACK_SCN        SCN used to set session snapshot back to
    FLASHBACK_TIME       time used to get the SCN closest to the specified time
    QUERY                select clause used to export a subset of a table
    RESUMABLE            suspend when a space related error is encountered(N)
    RESUMABLE_NAME       text string used to identify resumable statement
    TTS_FULL_CHECK       perform full or partial dependency check for TTS
    VOLSIZE              number of bytes to write to each tape volume
    TABLESPACES          list of tablespaces to export
    TRANSPORT_TABLESPACE export transportable tablespace metadata (N)
    TEMPLATE             template name which invokes iAS mode export
    Export terminated successfully without warnings.
    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
    Jan 2004
    Croatia, Europe
    Provided Answers: 5
    It seems that you'll have to name all tables you need within the TABLES parameter:
    exp un/pw file=export.dmp tables=(table_you_need_1, table_you_need_2, ...)
    Depending on what you plan to do with the import file, maybe (just maybe) it would be simpler task to export the whole schema, and then (using a script) DROP tables you don't need.

Posting Permissions

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