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';

 

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