Oracle创建用户和表空间

create user clover identified by 12345;

create tablespace clover_tablespace datafile 'E:\Oracle_11g\app\Clover\oradata\orcl\clover_local.dbf' size 1000M autoextend on next 100M;

create temporary tablespace clover_space tempfile 'E:\Oracle_11g\app\Clover\oradata\orcl\clover_temp.dbf' size 50M autoextend ON next 10M maxsize 100M; 

alter user clover default tablespace clover_tablespace temporary tablespace clover_space;

grant connect,RESOURCE,dba to clover;

 ///导入dmp文件//

create tablespace PARAM_JZZ
datafile 'E:\Oracle_11g\app\Clover\oradata\orcl\PARAM_JZZ.DBF'
size 300M
autoextend on
next 50m maxsize unlimited
extent management local;

create user PARAM_JZZ identified by PARAM_JZZ
default tablespace PARAM_JZZ
temporary tablespace temp;

grant connect ,dba,resource to PARAM_JZZ;



drop user PARAM_JZZ cascade;

DROP TABLESPACE PARAM_JZZ INCLUDING CONTENTS AND DATAFILES;

imp PARAM_JZZ/PARAM_JZZ@orcl file='C:\Users\Clover\Desktop\jzz\prcd_jzz.dmp'  log=C:\Users\Clover\Desktop\jzz\prcd_jzz.log   full=y ignore=y

 

转载于:https://www.cnblogs.com/liuyi-clover/p/10100585.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值