oracle数据库用户创建删除以及数据导入

dmp文件的导入:
1.首先,先创建表空间与用户
--创建表空间
create tablespace CCFOCUS01
datafile 'D:\app\Administrator\oradata\orcl\CCFOCUS01.dbf'
size 100M
autoextend on next 32M
maxsize unlimited;

--创建用户
create user userfocus identified by pasfocus
default tablespace CCFOCUS01;
grant dba to userfocus;
grant connect, resource to userfocus;

2.将E:\java_doc\userfocus.DMP中的数据导入数据库中。
cmd --> imp userfocus/pasfocus@ORCL file=D:\DB\userfocus_201611.DMP ignore=y full=y

3.将oracle数据库完全导出
cmd --> exp userfocus/userfocus@ORCL file=E:\java_doc\expuserfocus.dmp full=y

4.删除用户
drop user userfocus cascade
5.删除表空间
drop tablespace CCFOCUS01 including contents and datafiles
注:本文档只是举例,具体情况具体考虑,不明白之处可以随时联系。

posted on 2016-11-07 15:33  灰灰+灰灰  阅读(340)  评论(0编辑  收藏  举报

导航