標籤:datafile ext ble max 設定 匯入 注意 next ant
- --建立暫存資料表空間
- create temporary tablespace yhtemp
- tempfile ‘D:/oracle/oradata/Oracle10g/yhtemp.dbf‘
- size 50m
- autoextend on
- next 50m maxsize 20480m
- extent management local;
-
- --建立資料資料表空間
- create tablespace yh
- logging
- datafile ‘D:/oracle/oradata/Oracle10g/yh.dbf‘
- size 50m
- autoextend on
- next 50m maxsize 20480m
- extent management local;
-
- --建立使用者並指定資料表空間
- create user yh identified by password
- default tablespace yh
- temporary tablespace yhtemp;
-
- --給使用者授予許可權
- grant connect,resource,dba to yh;
-
- --撤銷此許可權
- revoke unlimited tablespace from yh
-
- --將使用者在yss,test1資料表空間的配額置為0
- alter user yh quota 0 on yss
- alter user yh quota 0 on test1
-
- --設定在使用者在yh資料表空間配額不受限
- alter user yh quota unlimited on yh
轉載至別的部落格,本人以此步驟匯入成功
還有幾點新手需要注意的,在匯入的時候用自己建立的使用者名稱和密碼登陸上去的時候,不要用sysdba許可權,否則會匯入到sys使用者下,
匯入成功後 , 要查看錶的時候, 用自己建立的使用者名稱和密碼登陸時也不要用sysdba登陸,否則看不到你匯入的表
oracle 10g將資料匯入到指定資料表空間的步驟