1.创建用户名之前,需要以用户管理员身份登陆数据库
sqlplussystem system
2.创建表空间格式:
create tablespace 表间名 datafile ‘数据文件名’ size 表空间大小;
create tablespace SD002 datafile 'E:\data02\SD002.dbf' size 500M segment space management auto;
3.创建用户格式:
create user 用户 名 identified by 密码 default tablespace 表空间表;
create user SD002 identified by app default tablespace SD002
接着授权给新建的用户:
grant connect,resource to SD002
grant dba to SD002;
4,导入表DMP文件退出登陆,在cmd中输入:imp shuju/app@orcl file=E:\111.dmp full=y ignore=y
导出表DMP文件exp taiyuan/taiyuan@orcl file=e:\taiyuan.dmp owner=taiyuanexp system/system/orcl owner=hljdb file=F\test.dmp
条件导出:expdp hljdb/hljdb/orcl directory=hljdb tables=导出的表名 dumpfile=test.dmp logfile=hlj