oracle创建表空间,导入dmp备份库

1--创建数据库实例--源自http://wenku.baidu.com/view/60033569a45177232f60a22d.html

2--创建表空间
CREATE TABLESPACE orcl_BMS DATAFILE 'D:\ProgramDatabase\oracle\product\10.2.0\oradata\orcl\orcl_BMS.dbf' SIZE 500M AUTOEXTEND ON NEXT 50M EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256K ;    
CREATE TABLESPACE orcl_index01 DATAFILE 'D:\ProgramDatabase\oracle\product\10.2.0\oradata\orcl\orcl_index01.dbf' SIZE 500M AUTOEXTEND ON NEXT 100M EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256K ;

3--创建新用户
create user bms identified by ytinfo default tablespace orcl_data01 temporary tablespace temp

4--授权新建用户
GRANT connect,dba,resource to bms;

5--导入dmp备份库
imp 用户名/密码@orcl file=备份_2012_01_07.dmp log=日志_2012_01_07.log full=y ignore=y

源自 http://www.233.com/oracle/zhonghe/20091110/103900415.html


六分钟学会创建Oracle表空间的步骤 http://www.itniwo.net/bbs/3024/23972.html

你可能感兴趣的:(oracle创建表空间)