对Oracle导入IMP的过程的演示


  本文标签:Oracle导入

  把Oracle 导入实用程序 (Import utility)中允许Oracle 从相关的数据库中提取一些数据,而且还要将数据放到相关文件中  。以下的文章就是以 imp 的格式 ,来演示imp 常用的方法  。以下就是文章的具体内容的介绍  。

  1. 获取帮助

  imp help=y

  2. 导入一个完整数据库

  imp system/manager file=bible_db log=dible_db full=y ignore=y

  3. 导入一个或一组指定用户所属的全部表、索引和其他对象

  imp system/manager file=seapark log=seapark fromuser=seapark imp

  system/manager file=seapark log=seapark fromuser=(seapark,amy,amyc,harold)

  4.在Oracle 导入实用程序 (Import utility) 允许从数据库提取数据中将一个用户所属的数据导入另一个用户

  imp system/manager file=tank log=tank fromuser=seapark touser=seapark_copy

  imp system/manager file=tank log=tank fromuser=(seapark,amy)

  touser=(seapark1, amy1)

  5. 导入一个表

  imp system/manager file=tank log=tank fromuser=seapark TABLES=(a,b)

  6. 从多个文件导入

  imp system/manager file=(paycheck_1,paycheck_2,paycheck_3,paycheck_4)

  log=paycheck, filesize=1G full=y

  7. 使用参数文件

  imp system/manager parfile=bible_tables.par

  bible_tables.par 参数文件:

  #Import the sample tables used for the Oracle8i Database Administrators

  Bible. fromuser=seapark touser=seapark_copy file=seapark log=seapark_import

  8. 在增量导入

  imp system./manager inctype= RECTORE FULL=Y FILE=A

  Oracle imp/exp

  C:Documents and Settingsadministrator>exp help=y

  以上就是对Oracle 导入实用程序 (Import utility) 允许从数据库提取数据,并且将数据写入操作系统文件相关的内容的介绍,望你会有所收获  。