如何在SQLPlus中运行imp命令?
因为在DOS里运行imp时,如果不正常,出现"成功终止导入, 但出现警告。"时,我无法得到有哪些警告.
所以想在sqlplus中运行.

解决方案 »

  1.   

    想知道哪些告警可以去alert和相应的trc文件
    在sqlplus里面可以写成相应的script,
      

  2.   

    exp是os命令,和执行一般的os命令一样。idle> !exp hr/hr file=/home/oracle/hr.dmpExport: Release 10.2.0.1.0 - Production on Wed Nov 7 13:32:22 2012Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user HR 
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user HR 
    About to export HR's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export HR's tables via Conventional Path ...
    . . exporting table                      COUNTRIES         25 rows exported
    . . exporting table                    DEPARTMENTS         27 rows exported
    . . exporting table                      EMPLOYEES        107 rows exported
    . . exporting table                           JOBS         19 rows exported
    . . exporting table                    JOB_HISTORY         10 rows exported
    . . exporting table                      LOCATIONS         23 rows exported
    . . exporting table                        REGIONS          4 rows exported
    . . exporting table                              T          0 rows exported
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully without warnings.
      

  3.   

    imp命令不能在sqlplus里执行,它跟sqlplus一样,是一个工具程序。想看日志可以在执行命令时指定日志文件参数log=指定文件
      

  4.   

    在SQL>下键入 $imp (参数....)   回车
      

  5.   


    在命令前面加一个关键字: host imp .......
      

  6.   

    想知道是什么警告,imp的时候加上Log=XXX 取日志不就好了嘛?