List tables owned by a user

To show all the tables owner by a specific user.

SET SERVEROUTPUT ON SIZE 1000000
BEGIN
FOR tble IN (select table_name
from dba_tables
where owner='AUSER')
LOOP
BEGIN
DBMS_OUTPUT.PUT_LINE (tble.table_name);
END;
END LOOP;
END;

Leave a Reply

Your email address will not be published. Required fields are marked *