Oracle has some packages that will dump objects in SQL format, such as
dbms_metadata.set_transform_param. One option that can be set is to "pretty print" the SQL.
Is there anything in Oracle that will pretty print a random SQL query string? Something like:
select pretty_print('select * from emp;') sql from dual; sql --- 'select * from emp;'