Oracle查看錶或者用戶創建信息

 

查看當前登錄用戶相關

#su - oracle
#sqlplus /nolog
SQL> conn testusername/testuserpwd@sid;   -- 或者: conn testusername/testuserpwd@IP地址:端口號/數據庫實例; 

select * from user_tab_privs;  -- 擁有權限的表

查看錶或者用戶的創建信息

SQL>  conn system/system的密碼@IP地址:端口號/數據庫實例

select owner, object_name, created, timestamp, last_ddl_time from ALL_OBJECTS where OBJECT_TYPE='TABLE' and OWNER='xxxx';

select username, created from dba_users WHERE username='xxxxx' or username='xxxx';

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章