常用Oracle的bat命令

导出单张表的数据

exp CX_NEWAPAS/[email protected] FILE=”G:\LineWell\OA\APAS_INFO.dmp” TABLES=(CX_NEWAPAS.APAS_INFO) LOG=”exp.log”

导出全部表的数据

exp system/oracle file=’data/wys_um.dmp’ owner=wys_um

exp system/oracle file=’data/wys_was.dmp’ owner=wys_was

exp system/oracle file=’data/wys_workflow.dmp’ owner=wys_workflow

执行sql

sqlplus system/oracle @createTableSpaceAndUser.sql

导入

imp system/oracle tablespaces=’XS_UM’ file=’um_星期三.dmp’ fromuser=xs_um touser=xs_um log=’um.log’ ignore=y

imp system/oracle tablespaces=’XS_WORKFLOW’ file=’workflow_星期三.dmp’ fromuser=xs_workflow touser=xs_workflow log=’workflow.log’ ignore=y

imp system/oracle tablespaces=’XS_WAS’ file=’was_星期三.dmp’ fromuser=xs_was touser=xs_was log=’was.log’ ignore=y

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据