啟動資料庫指令分為三個階段:
startup nomount
alter database mount
alter database open
本用戶讀取其他使用者物件的權限:
select * from user_tab_privs;
本用戶所擁有的系統權限:
select * from user_sys_privs;
-------------------------------------------------- -------
ORACLE中資料字典視圖分為3大類, 用前綴區別,分別為:USER,ALL 和DBA,許多資料字典視圖包含相似的資訊。
USER_*:有關使用者所擁有的物件訊息,即使用者自己所建立的物件訊息
ALL_*:有關使用者可以存取的物件的信息,即使用者自己創建的物件的資訊加上其他使用者建立的物件但該使用者有權存取的信息
DBA_*:有關整個資料庫中物件的信息
---------------------------------------------
Oracle 10i
ALTER DATABASE DEFAULT TABLESPACE 修改資料庫的預設表空間
-----------------------------------
set echo off;
spool 產生腳本檔案的路徑
select 'grant select,insert,delete,update on '|| table_name||' to 使用者名稱;' from user_tables;
spool off;
select 'revoke select,insert,update,delete on '||table_name||' from 使用者名稱;' from user_tables;
revoke select,insert,delete,update any table from 使用者名稱with grant option;
--------------
grant select,insert,delete,insert,update any table to 使用者名稱with grant option ;
修改表所屬的表空間
alter table 表名move tablespace 表格空間名
注意:在此操作之後,一定要把表上的索引重建, alter index index-name rebuild
-------------------
建立表空間語句:
create tablespace tableName datafile 'e:oracle/dbName.dbf' size 1024M autoextend on next 100M maxsize unlimited;
本文出自CSDN博客,轉載請標示出處: http://blog.csdn.net/mzwang123/archive/2009/12/22/5053452.aspx
-