文档库 最新最全的文档下载
当前位置:文档库 › DMP数据库文件导入数据库

DMP数据库文件导入数据库

ata.bdf' size 200m autoextend on next 20m segment space management auto;

2、 创建用户(以system用户登录)

--创建用户,指定表空间

--PS:导入的dmp数据库文件的表空间一定要与导出的数据库的表空间一致

--所以这里要指定用户的表空间为hnust_data

createuser hnust_prd2

identifiedbyhnustokdefaulttablespacehnust_data 3、 授权

grantconnect,resourceto hnust_prd2;

alteruser hnust_prd2 defaultroleconnect,resource; 上面是授权连接数据库,下面是授dba权限,用于导入dba用户导出的dmp数据库文件

grantdbato hnust_prd2;

alteruser hnust_prd2 defaultroledba; 4、导入dmp数据库文件

imp hnust_prd2/hnustokfile=&uot;d:\1.dmp&uot;

log=imp.hnust_prd2.1.log fromuser=hnust_xg2 touser=hnust_prd2

相关文档
相关文档 最新文档