i would suggest that your SQL statement is false.
afaik this is MySQL and won't work with an OracleDB
SELECT table_name FROM tabs where table_name...
For Oracle you need this line of code (PL/SQL)
SELECT table_name, owner, tablespace_name FROM all_tables where table_name like...
the rest looks good :)