When I have tried to run the following SQL statements I'm getting the error:
set long 90000
set heading 999
set lines 100
select
dbms_metadata.GET_DDL(u.object_type,u.object_name,'MY_SCHEMA')
from
dba_objects u
where
owner = 'MY_SCHEMA'
AND OBJECT_TYPE='TABLE';
Error:
ORA-31600: invalid input value CHAIN for parameter OBJECT_TYPE in function GET_DDL Funktion GET_DDL ORA-06512: in "SYS.DBMS_METADATA", Line 6069 ORA-06512: in "SYS.DBMS_METADATA", Line 8666 ORA-06512: in Line 1 31600. 00000 - "invalid input value %s for parameter %s in function %s" *Cause: A NULL or invalid value was supplied for the parameter. *Action: Correct the input value and try the call again.
Can you please give some advice how I can retrieve the select output.