select owner,table_name from all_tables;

You can enumerate some more information about your application tables to determine the number of columns and rows that are present in the tables as follows:

select a.table_name||‘[‘||count(∗)||’]=’||num_rows from user_tab_columns a,user_tables b where a.table_name=b.table_name group by a.table_name,num_rows

EMP[8]=14

DUMMY[1]=1

DEPT[3]=4

SALGRADE[3]=5

And you can enumerate the same information for all accessible/available tables, including their users, table names, and the number of rows in these tables as follows:

select b.owner||‘.’||a.table_name||‘[’||count(∗)||‘]=’||num_rows from all_tab_columns a, all_tables b where a.table_name=b.table_name group by b.owner,a.table_name,num_rows

Finally, ...

Get SQL Injection Attacks and Defense, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.