How can I find the OWNER of an object in Oracle?

后端 未结 5 1129
攒了一身酷
攒了一身酷 2021-01-31 19:59

I want to find the foreign keys of a table but there may be more than one user / schema with a table with the same name. How can I find the one that the currently logged user is

5条回答
  •  执念已碎
    2021-01-31 20:10

    I found this question as the top result while Googling how to find the owner of a table in Oracle, so I thought that I would contribute a table specific answer for others' convenience.

    To find the owner of a specific table in an Oracle DB, use the following query:

    select owner from ALL_TABLES where TABLE_NAME ='';
    

提交回复
热议问题