表空間操作

創建表空間:
create tablespace ZSDATA
datafile '/opt/app/oracle/oradata/KYGD/ZSDATA.dbf' size 1024M 
autoextend on 
next 800M 
maxsize unlimited;

創建用戶:
create user formal
  identified by jx20121204
  default tablespace ZSDATA
  temporary tablespace TEMP
  profile DEFAULT;
grant connect to formal;
grant resource to formal;
grant IMP_FULL_DATABASE to formal; 授權導入導出權限

授權用戶表空間權限
alter user formal quota  unlimited on ZSDATA;

導入表指定多個表空間
imp formal/32122 file=rain.20121204.dmp  tablespaces=TRDATA,ZSDATA full=y
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章