-- Collection of code snippets by Arne Vajhøj 
-- posted to eksperten.dk, usenet and other places (2002-now) 
SET PAGESIZE 0
SET LONG 90000
SELECT DBMS_METADATA.GET_DDL(object_type, object_name, owner)
FROM DBA_OBJECTS
WHERE OBJECT_TYPE = 'TABLE' AND OWNER = 'ARNE';
