Skip to Main Content

Endeca Experience Management

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Not able to generate ddl table,columns with data types into xml

User_D7D8ZMay 9 2021 — edited May 10 2021

Hi All,
I am looking to generate the XML using the dbms metadata ppackage.The XML elements should contain table name,columns with respective data types and constraints alone instead of having entire table information in XML file .The lines of the XML contains 600lines where it contains all the metadata information about the table .I would like to apply filter option for the package below and to get the elements like table name, columns with respective data types and constraints only and not other information in XML.
select dbms_metadata.get_xml('TABLE','test123','schema') from dual .
I would like to pass arguments which should give me table name, column list with data types and constraints and schema name alone in XML file.
From the generated ddl XML file, I will create avro schema using python from my end .
Thanks
Adhi

Comments

Arnoschots-Oracle Apr 22 2020 — edited on Apr 22 2020

Hi,

The "sudo al-config -s" doesn't work on my Autonomous Linux instance.

Command output:

[opc@opsserver ~]$ sudo al-config -s

/sbin/al-config: illegal option -- s

Configure OCI notification service topic OCID:

  Usage:

    al-config -T [topic OCID]

  Options:

    -T [topic OCID] OCI notification service topic OCID

Configure OCI CLI profile:

  Usage:

    al-config -u [user OCID] -t [tenancy OCID] -k [key file]

  Options:

    -u [user OCID] OCI User OCID

    -t [tenancy OCID] OCI Tenancy OCID

    -k [key file] from which we obtaion the API private key

    -p [key passphrase file] from which we obtain API key passphrase. Provide

       this if API private key is encrypted. If not provided, user will be

       prompted to enter passphrase.

1 - 1

Post Details

Added on May 9 2021
0 comments
301 views