Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DBMS_METADATA.DDL not working for remote db with dblink

VatsaJul 24 2025

Greetings,

I am trying to get DDL of a table in a remote database using DB link. I have used the following statement, but I am getting a PLS-564 error saying lob arguments are not permitted. What am I doing wrong?

SELECT DBMS_METADATA.GET_DDL@prod_db_link('TABLE', 'TABLE_NAME', 'OWNER') AS DDL

FROM DUAL;

Comments
Post Details
Added on Jul 24 2025
10 comments
213 views