Oracle创建数据库

使用server上的sqlplus登录;
drop user KJGH cascade;
drop tablespace KJGH including contents;
drop tablespace KJGHTEMP including contents;

create tablespace KJGH datafile 'D:\devtool\oracle11\oradata\orcl\KJGH4101.dbf' size 128M reuse autoextend on next 16K maxsize unlimited extent management local autoallocate; 
 
create temporary tablespace KJGHTEMP tempfile 'D:\devtool\oracle11\oradata\orcl\KJGHTEMP01.dbf' size 64M reuse autoextend on next 1024K MAXSIZE 2048M EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1024K; 

create user KJGH identified by prdct default tablespace KJGH temporary tablespace KJGHTEMP quota unlimited on KJGH; 

grant connect, dba to KJGH; 
grant select any table to KJGH; 
grant delete any table to KJGH; 
grant insert any table to KJGH; 
grant update any table to KJGH; 
grant execute any procedure to KJGH;

imp KJGH/KJGH@ORCLlocal fromuser=KJGH touser=KJGH file=E:\项目文件\123.dmp
ORCLlocal是你在tnsnames.ora的名称

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值