1.創建表空間
create tablespace
example_tablespace datafile 'e:\****.dbf' size 10m
reuse
autoextend on
next 1m maxsize unlimited;
create user
username identified by
password default tablespace
usertablespace temporary tablespace
temp;
3.IMP導入數據庫文件注意
grant dba to
username;
DBA權限是必需的
一般默認導入的表空間是導出時候的表空間
revoke unlimited tablespace from
username;
alter user
username quota 0 on
users;
表空間限額設置
alter user
username quota unlimited on
user_define_tablespace;
imp
username/
password file='e:\***.dbf' tablespaces=
tbs fromuser=
sourcename touser=
targetname log='e:\a.txt'