imp

来源:互联网 发布:木地板淘宝 编辑:程序博客网 时间:2024/05/19 08:41
1、fromuser touser


1.1
C:\>imp 'system/manager@test as sysdba'  file=c:\full.dmp log=c:\full.log fromus
er=scott,u1 touser=scott,u1


Import: Release 11.2.0.1.0 - Production on 星期四 9月 10 22:20:34 2015


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.




连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


经由常规路径由 EXPORT:V11.02.00 创建的导出文件
已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入
. 正在将 SCOTT 的对象导入到 SCOTT
. 正在将 U1 的对象导入到 U1
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'This table defines the category names available for a metric class.'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'This table provides information about what category is applicable
   for a given metric/policy guid and metric class. The same table is
   used to define mappings for both metrics and policies.'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'The MGMT_METRICS table provides metric descriptions for a given target
   name and target type.  This table is primarily used to make the standard
   reports more understandable.
   The content of the MGMT_METRICS table is close to what you will find i...
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'This table stores the list of versions for which the repository metric
   is supported.'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'This table provides the policy rule description.'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
' The unique Id of the policy rule.'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
' The name of the policy rule.'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'The metric on which this policy rule is defined.'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
' The target type on which this policy rule is applicable.'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'The starting metadata version of the target type from which
     this policy is applicable.'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'This table stores the policy to target/template associations.'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'This table stores the configuration for a key value of
     target/template policy associations.'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'This table stores the list of bind variables to be used to evaluate
     the condition.'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'This table defines policy violation context definition for all policies.'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'This table stores the snapshot to metric map.'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'The target type of the snap shot.'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'The MGMT_TARGET_TYPE_VERSIONS table holds the list of target type versions'
. 正在将 SCOTT 的对象导入到 SCOTT
IMP-00015: 由于对象已存在, 下列语句失败:
 "CREATE TABLE "BONUS" ("ENAME" VARCHAR2(10), "JOB" VARCHAR2(9), "SAL" NUMBER"
 ", "COMM" NUMBER)  PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INI"
 "TIAL 131072 NEXT 1048576 MINEXTENTS 1 FREELISTS 1 FREELIST GROUPS 1 BUFFER_"
 "POOL DEFAULT)                    LOGGING NOCOMPRESS"
. . 正在导入表                          "DEPT"导入了           4 行
. . 正在导入表                           "EMP"导入了          14 行
IMP-00015: 由于对象已存在, 下列语句失败:
 "CREATE TABLE "SALGRADE" ("GRADE" NUMBER, "LOSAL" NUMBER, "HISAL" NUMBER)  P"
 "CTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 NEXT 104"
 "8576 MINEXTENTS 1 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)       "
 "             LOGGING NOCOMPRESS"
IMP-00015: 由于对象已存在, 下列语句失败:
 "CREATE TABLE "TBLSCOTT" ("ID" NUMBER)  PCTFREE 10 PCTUSED 40 INITRANS 1 MAX"
 "TRANS 255 STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 FREELISTS 1 FREEL"
 "IST GROUPS 1 BUFFER_POOL DEFAULT)                    LOGGING NOCOMPRESS"
. 正在将 U1 的对象导入到 U1
. . 正在导入表                         "TBLU1"导入了           1 行
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'The MGMT_SEVERITY view contains the severity information.
    Severities are alerts that inform the user when a metric threshold
    Test or a policy violation has failed.'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'the advisory which is applicable to the home'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'The column mgmt$software_dependencies.dependency_type has been deprecated'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'This view gives DBA access to shared workload'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'Workload filter instance records'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'This view gives DBA access to summary recommendations'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'This view gives DBA access to summary evaluation output'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'This view gives DBA access to dimension validation results'
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'Identifies two applications using APEX_APPLICATION_1 and APEX_APPLICATION_2 ses
sion date, APEX_COMPONENT must be 0 (all), or the name of an APEX component'
. 正在将 SCOTT 的对象导入到 SCOTT
IMP-00032: SQL 语句超过缓冲区长度
IMP-00008: 导出文件中出现无法识别的语句:
'snapshot table for snapshot SYSMAN.MGMT_ECM_MD_ALL_TBL_COLUMNS'
即将启用约束条件...
成功终止导入, 但出现警告。


C:\>


1.2
C:\>imp scott/tiger@test fromuser=scott touser=scott file=c:\scott.dmp log=c:\sc
ott.log


Import: Release 11.2.0.1.0 - Production on 星期四 9月 10 22:22:43 2015


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.




连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


经由常规路径由 EXPORT:V11.02.00 创建的导出文件
已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入
IMP-00015: 由于对象已存在, 下列语句失败:
 "CREATE TABLE "BONUS" ("ENAME" VARCHAR2(10), "JOB" VARCHAR2(9), "SAL" NUMBER"
 ", "COMM" NUMBER)  PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INI"
 "TIAL 131072 NEXT 1048576 MINEXTENTS 1 FREELISTS 1 FREELIST GROUPS 1 BUFFER_"
 "POOL DEFAULT)                    LOGGING NOCOMPRESS"
. . 正在导入表                          "DEPT"导入了           4 行
. . 正在导入表                           "EMP"导入了          14 行
IMP-00015: 由于对象已存在, 下列语句失败:
 "CREATE TABLE "SALGRADE" ("GRADE" NUMBER, "LOSAL" NUMBER, "HISAL" NUMBER)  P"
 "CTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 NEXT 104"
 "8576 MINEXTENTS 1 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)       "
 "             LOGGING NOCOMPRESS"
IMP-00015: 由于对象已存在, 下列语句失败:
 "CREATE TABLE "TBLSCOTT" ("ID" NUMBER)  PCTFREE 10 PCTUSED 40 INITRANS 1 MAX"
 "TRANS 255 STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 FREELISTS 1 FREEL"
 "IST GROUPS 1 BUFFER_POOL DEFAULT)                    LOGGING NOCOMPRESS"
即将启用约束条件...
成功终止导入, 但出现警告。


C:\>


1.3
C:\>imp scott/tiger@test fromuser=scott touser=scott file=c:\full.dmp log=c:\ful
l.log


Import: Release 11.2.0.1.0 - Production on 星期四 9月 10 22:23:35 2015


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.




连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


经由常规路径由 EXPORT:V11.02.00 创建的导出文件
IMP-00013: 只有 DBA 才能导入由其他 DBA 导出的文件
IMP-00000: 未成功终止导入


C:\>


1.4
C:\>imp u1/u1@test fromuser=u1 touser=scott file=c:\u1.dmp log=c:\u1.log


Import: Release 11.2.0.1.0 - Production on 星期四 9月 10 22:24:49 2015


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.




连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


经由常规路径由 EXPORT:V11.02.00 创建的导出文件
已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入
IMP-00007: 必须为 DBA 才能将对象导入另一个用户帐户
IMP-00000: 未成功终止导入


C:\>


1.5
C:\>imp scott/tiger@test fromuser=u1 touser=scott file=c:\u1.dmp log=c:\u1.log


Import: Release 11.2.0.1.0 - Production on 星期四 9月 10 22:25:19 2015


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.




连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


经由常规路径由 EXPORT:V11.02.00 创建的导出文件


警告: 这些对象由 U1 导出, 而不是当前用户


已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入
. . 正在导入表                         "TBLU1"导入了           1 行
成功终止导入, 没有出现警告。


C:\>


1.6
C:\>imp system/manager@test fromuser=u1 touser=scott file=c:\u1.dmp log=c:\u1.lo
g


Import: Release 11.2.0.1.0 - Production on 星期四 9月 10 22:26:34 2015


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.




连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


经由常规路径由 EXPORT:V11.02.00 创建的导出文件


警告: 这些对象由 U1 导出, 而不是当前用户


已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入
. 正在将 U1 的对象导入到 SCOTT
. . 正在导入表                         "TBLU1"导入了           1 行
成功终止导入, 没有出现警告。


C:\>


2、tables


2.1
C:\>imp scott/tiger@test tables=emp,dept file=c:\scott.dmp log=c:\scott.log


Import: Release 11.2.0.1.0 - Production on 星期四 9月 10 22:31:58 2015


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.




连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


3.tablespaces transport_tablespace datafiles




经由常规路径由 EXPORT:V11.02.00 创建的导出文件
已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入
. 正在将 SCOTT 的对象导入到 SCOTT
. 正在将 SCOTT 的对象导入到 SCOTT
. . 正在导入表                          "DEPT"导入了           4 行
. . 正在导入表                           "EMP"导入了          14 行
即将启用约束条件...
成功终止导入, 没有出现警告。


C:\>


2.2
C:\>imp scott/tiger@test tables=emp,dept file=c:\full.dmp log=c:\full.log


Import: Release 11.2.0.1.0 - Production on 星期四 9月 10 22:34:27 2015


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.




连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


经由常规路径由 EXPORT:V11.02.00 创建的导出文件
IMP-00013: 只有 DBA 才能导入由其他 DBA 导出的文件
IMP-00000: 未成功终止导入


3、 full


3.1
C:\>imp 'system/manager@test as sysdba' full=y file=c:\full.dmp log=c:\full.log


Import: Release 11.2.0.1.0 - Production on 星期四 9月 10 22:35:39 2015


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.


连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


经由常规路径由 EXPORT:V11.02.00 创建的导出文件
已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入


3.2
C:\>imp scott/tiger@test full=y file=c:\full.dmp log=c:\full.log


Import: Release 11.2.0.1.0 - Production on 星期四 9月 10 22:50:33 2015


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.




连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


经由常规路径由 EXPORT:V11.02.00 创建的导出文件
IMP-00013: 只有 DBA 才能导入由其他 DBA 导出的文件
IMP-00000: 未成功终止导入


4、tablespaces transport_tablespace=y datafiles


4.1
C:\>imp 'system/manager@test2 as sysdba' tablespaces=mytbs transport_tablespace=
y Datafiles='D:\app\Administrator\oradata\test2\mytbs_01.dbf' File=c:\mytbs.dmp


Import: Release 11.2.0.1.0 - Production on 星期四 9月 10 23:05:17 2015


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.




连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


经由常规路径由 EXPORT:V11.02.00 创建的导出文件
即将导入可传输的表空间元数据...
已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入
. 正在将 SYS 的对象导入到 SYS
. 正在将 SYS 的对象导入到 SYS
. 正在将 SCOTT 的对象导入到 SCOTT
. . 正在导入表                       "TBLTEST"
. 正在将 SYS 的对象导入到 SYS
成功终止导入, 没有出现警告。


C:\>

0 0
原创粉丝点击