oracle - Generating DDL script for object without schema name baked in using DBMS_METADATA.GET_DDL? -
how can generate ddl script object dbms_metadata.get_ddl
without schema name baked in?
with dbms_metadata.get_ddl
:
create table "myschema"."mytable" ( "col1" number(10,0) )
sql developer can that, , think it's uses dbms_metadata achive goal , generale ddl scripts.
with sql developer:
create table "mytable" ( "col1" number(10,0) )
use set_remap_param remap_schema option:
dbms_metadata.set_remap_param(th,'remap_schema','hr',null);
this map hr schema null (you'll need job handle, though); full example, see metadata_api documentation
Comments
Post a Comment