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='存储过程名'