I want to search for column/field called ACC
I have 28 users. I got that information by this command; to list all schemas:
SELECT username FROM all_users ORDER BY username;
I am connected to user # 13 in the list called ‘ABCD’, by this command: SHOW USER;
Here is a detailed structure.
user1 > Has many tables > each table has many column/field.
user2 > Has many tables > each table has many column/field.
user3 > Has many tables > each table has many column/field.
and so on.
I need to search for field or column which is called ACC
You need to use ALL_TAB_COLUMNS or DBA_TAB_COLUMNS, depending on your access rights.
The following will get you every table, which has the column
accin it and the user who “owns” that table.ALL_TAB_COLUMNS will display all the tables (and their columns) that are accessible to the user you are logged in as. DBA_TAB_COLUMNS displays them for everything in the database.