这你得一些周折了,你得用c来写一小段程序,然后通过library来调用了。

解决方案 »

  1.   

    exp user/password file=aaa.dmp tables=表名参数提示:
         Format:  EXP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
         Example: EXP SCOTT/TIGER GRANTS=Y TABLES=(EMP,DEPT,MGR)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 file (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)
    ROWS     export data rows (Y)         PARFILE      parameter filename
    CONSTRAINTS export constraints (Y)    CONSISTENT   cross-table consistency
    LOG      log file of screen output    STATISTICS   analyze objects (ESTIMATE)
    DIRECT   direct path (N)
      

  2.   

    我上面是导出,导入的是:
    imp user/password file=aaa.dmp tables=表名
      

  3.   

    参数提示:
         Format:  IMP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
         Example: IMP SCOTT/TIGER IGNORE=Y TABLES=(EMP,DEPT) FULL=NKeyword  Description (Default)       Keyword      Description (Default)
    --------------------------------------------------------------------------
    USERID   username/password           FULL         import entire file (N)
    BUFFER   size of data buffer         FROMUSER     list of owner usernames
    FILE     output file (EXPDAT.DMP)    TOUSER       list of usernames
    SHOW     just list file contents (N) TABLES       list of table names
    IGNORE   ignore create errors (N)    RECORDLENGTH length of IO record
    GRANTS   import grants (Y)           INCTYPE      incremental import type
    INDEXES  import indexes (Y)          COMMIT       commit array insert (N)
    ROWS     import data rows (Y)        PARFILE      parameter filename
    LOG      log file of screen output
    DESTROY  overwrite tablespace data file (N)
    INDEXFILE write table/index info to specified file
    CHARSET  character set of export file (NLS_LANG)
      

  4.   

    在过程中可以自己写个程序来控制啊!!其实一般对于oracle的备份一般都采取几种方式进行的!
    对于大型的数据库!一般都采用磁盘整列双机热备份 和 在程序中实现对各个表的备份!!!
    对于一般的系统都是采用imp/exp 和在程序中实现对各个表的备份!!!