如何完成Oracle数据库中的数据文件(XXX.dmp)导出、导入?

新装的Oracle就可以这样导吗?
不是要先建用户 然后还要建 表空间吗?
表空间 怎么建的?
最新回答
逆风の蒲公英

2024-10-23 04:04:21

导出表:
exp scott/tiger@mycon tables=(dept,emp) file=tab1.dmp
导出用户:
exp system/manager@mycon owner=scott file=usr1.dmp
导出数据库:
1.完全导出
exp system/manager@mycon full=y inctype=complete file=full1.dmp
2.增量导出
exp system/manager@mycon full=y inctype=incremental file=inc1.dmp
3.累积导出
exp system/manager@mycon full=y inctype=cumulative file=cum1.dmp

imp example:
导入表:
imp system/manager@mycon file=c:\tab1.dmp tables=(dept,emp) touser=scott
导入用户:
imp system/manager@mycon file=usr1.dmp fromuser=scott touser=scott
导入数据库:
1.全库导入
imp system/manager@mycon file=full1.dmp full=y
2.增量导入
1)导入数据库最新信息
imp system/manager@mycon inctype=system full=y file=inc7.dmp
2)导入最近完全导出文件
imp system/manager@mycon inctype=restore full=y file=full1.dmp
3)导入所有累积导出文件
imp system/manager@mycon inctype=restore full=y file=cum1.dmp
4)导入最近一次增量导出的文件
imp system/manager@mycon inctype=restore full=y file=inc1.dmp
女爷

2024-10-23 07:56:51

你可以用客户端

建一用户
赋两个权限
一个dba
一个是connect

先建个表空间不就完了吗
仲夏柠叶香

2024-10-23 06:41:49

分table user database三种类型的导出,exp命令执行,参数选择不同
命令行或者linux终端执行