oracle怎么查看表屬于哪個用戶
Oracle查詢表所屬用戶
方式一:
SELECT * FROM DBA_TABLES WHERE TABLE_NAME='表名';
方式二:
SELECT * FROM ALL_OBJECTS WHERE OBJECT_TYPE='TABLE' and OBJECT_NAME='表名'
擴展知識:
Oracle查詢視圖所屬用戶
方式一:
SELECT * FROM ALL_VIEWS WHERE VIEW_NAME='視圖名';
方式二:
SELECT * FROM ALL_OBJECTS WHERE OBJECT_TYPE='VIEW' and OBJECT_NAME='視圖名'
Oracle查詢存儲過程所屬用戶
SELECT * FROM ALL_OBJECTS WHERE OBJECT_TYPE='PROCEDURE' and OBJECT_NAME='存儲過程名'