sql - List all tables of a given user in Oracle -
i new oracle , want find tables created user 'john' .
i connect oracle database via command line following command:
sqlplus john/passwd
how list tables created given user e.g. john?
this tables "john" user owner:
select * user_tables;
or
select * all_tables owner = 'john';
([tl;dr] 'john'
typically needs in upper-case. assuming user john
created using create user john ...
statement oracle's default behaviour convert object names (i.e. tables, columns, users, etc) upper case. when query data-dictionary table details stored in case (and not case used in original command unless wrap in double quotes).)
Comments
Post a Comment