oracle改變用戶缺省表空間
初始新建了一個用戶lord,但是default tablespace為System,并在里面有很多表,先新建表空間lord,現在將其defaultspace改為lord.
?
CREATE TABLESPACE lord DATAFILE '/opt/oradata/lord.dbf' SIZE 50M AUTOEXTEND ON NEXT 1M MAXSIZE UNLIMITED;
alter user lord default tablespace lord quota unlimited on lord;
grant connect,resource to lord;
但是以前的表還在system里面,怎么轉到lord里面呢?
alter?table tablename move tablespace lord;
新建的用戶沒有em console連接的權限,只能sqlplus,isqlplus,pl/sql developer連接,如果想要用em管理需要
grant select?? any?? dictionary to lord;