oracle逻辑备份恢复exp/imp篇

来源:Oracle认证    发布时间:2012-11-12    Oracle认证视频    评论

  以上为命令行方式进行数据的导出,EXP工具还可以以交互的方式进行数据导出。

  (1)导入表(交互方式)

  [oracle@ora-asm3 ~]$ imp

  Import: Release 10.2.0.1.0 - Production on 星期一 6月 16 16:40:10 2008

  Copyright (c) 1982, 2005, Oracle.  All rights reserved.

  Username: charge      输入用户名

  Password:                         输入密码

  Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

  With the Partitioning, OLAP and Data Mining options

  Import file: expdat.dmp > charge.dmp                    输入要导入的数据文件

  Enter insert buffer size (minimum is 8192) 30720>     输入缓冲区大小,可以默认也可以自定义,如果数据文件较大,建议设置的大一些。

  Export file created by EXPORT:V10.02.01 via conventional path

  import done in ZHS16GBK character set and AL16UTF16 NCHAR character set

  List contents of import file only (yes/no): no >                            只列出导入文件的内容

  Ignore create error due to object existence (yes/no): no >           由于对象已存在, 忽略创建错误

  Import grants (yes/no): yes >                   导入权限

  Import table data (yes/no): yes >             导入表数据,如果选NO,则导入表结构

  Import entire export file (yes/no): no >     导入整个导出文件

  Username: charge                                要导入方案的名称

  Enter table(T) or partition(T:P) names. Null list means all tables for user

  Enter table(T) or partition(T:P) name or . if done: clients   输入要导入的表名

  Enter table(T) or partition(T:P) name or . if done:          如果没有要导入的表时,直接回车,进行导入

  . importing CHARGE's objects into CHARGE

  . importing CHARGE's objects into CHARGE

  . . importing table                     "CLIENTS"         10 rows imported

  Import terminated successfully without warnings.

  导入成功,没有告警。

  (2)导入方案(交互方式)

  [oracle@ora-asm3 ~]$ imp

  Import: Release 10.2.0.1.0 - Production on 星期一 6月 16 17:17:54 2008

  Copyright (c) 1982, 2005, Oracle.  All rights reserved.

  Username: charge                  输入用户名称

  Password:                                       输入密码

  Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

  With the Partitioning, OLAP and Data Mining options

  Import file: expdat.dmp > charge.dmp                    输入要导入的数据文件

  Enter insert buffer size (minimum is 8192) 30720>  输入缓冲区大小,可以默认也可以自定义,如果数据文件较大,建议设置的大一些。

  Export file created by EXPORT:V10.02.01 via conventional path

  import done in ZHS16GBK character set and AL16UTF16 NCHAR character set

  List contents of import file only (yes/no): no >               只列出导入文件的内容

  Ignore create error due to object existence (yes/no): no >  由于对象已存在, 忽略创建错误

  Import grants (yes/no): yes >                   导入权限

  Import table data (yes/no): yes >             导入表数据,如果选NO,则导入表结构

  Import entire export file (yes/no): no >     导入整个导出文件

  Username: charge                                    输入要导入方案的名称

  Enter table(T) or partition(T:P) names. Null list means all tables for user

  Enter table(T) or partition(T:P) name or . if done:      回车,进行导入数据

  . importing CHARGE's objects into CHARGE

  . . importing table           "BALANCE"          0 rows imported

  . . importing table           "BALANCEFINISHED"          0 rows imported

  About to enable constraints...

  Import terminated successfully without warnings.

  导入成功,没有任何告警。

上一页123下一页

视频学习

我考网版权与免责声明

① 凡本网注明稿件来源为"原创"的所有文字、图片和音视频稿件,版权均属本网所有。任何媒体、网站或个人转载、链接转贴或以其他方式复制发表时必须注明"稿件来源:我考网",违者本网将依法追究责任;

② 本网部分稿件来源于网络,任何单位或个人认为我考网发布的内容可能涉嫌侵犯其合法权益,应该及时向我考网书面反馈,并提供身份证明、权属证明及详细侵权情况证明,我考网在收到上述法律文件后,将会尽快移除被控侵权内容。

最近更新

社区交流

考试问答