Thomas, July 18, 2018 - 11:33 am UTC
Thomas, July 18, 2018 - 11:40 am UTC
My requirement is that I would like to access the DDL for objects in another database using database links. Since CLOB fields cannot be accessed over DB link, I'm stuck.
The solution suggested by you provides an output in the form of tabular values which when used encloses the DDL in '()' and has a lot of ',,,,,' if the script is small.
Is there any other cleaner approach to transport CLOB field contents over db link even if byte sizes are around 160K?
July 20, 2018 - 10:31 am UTC
"My requirement is that I would like to access the DDL for objects in another database using database links"
Well... that's what we call a brand new requirement because you never specified that in the original question... I didnt have my crystal ball with me today :-)
If you want bring a clob across the link (before 12.2) you can:
- create a global temp table
- insert into GTT select clob_col from source@dblink
and then use the clob locally from the GTT