1、创建临时表空间:
create temporary tablespace @H_403_9@user_temp
@H_403_9@tempfile ‘D:\oracle\oradata\Oracle9i\user_temp.dbf‘
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
2、Oracle创建表空间:
create tablespace @H_403_9@user_data --指定表空间名字
logging
@H_403_9@datafile ‘D:\oracle\oradata\Oracle9i\user_data.dbf‘
size 50m
autoextend on --表示自动扩展是否开启
next 50m maxsize 20480m --表示文件满了以后每次自动扩展的大小
extent management local;
3、创建用户:
create user @H_403_9@username identified by @H_403_9@password
default tablespace @H_403_9@user_data
temporary tablespace @H_403_9@user_temp;
4、给用户赋权:
grant connect,resource,dba to@H_403_9@ username;
5、导入dmp文件:
导入:
imp kd_web/[email protected] file = kd_web20161203.dmp log = dr.log full = y