DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: Require DBMS_XMLGEN package script(Spec and Body)

Threaded View

  1. #4
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    It may be a syntax or other issue, I would test package with a simple statement - like:
    HTML Code:
    SQL>
    SQL> set pagesize 0
    SQL> set linesize 150
    SQL> set long 9999999
    SQL> set head off
    SQL>
    SQL> select dbms_xmlgen.getxml('select object_name, object_type from sys.dba_objects where rownum < 6') xml
      2  from dual;
    <?xml version="1.0"?>
    <ROWSET>
     <ROW>
      <OBJECT_NAME>TAB$</OBJECT_NAME>
      <OBJECT_TYPE>TABLE</OBJECT_TYPE>
     </ROW>
     <ROW>
      <OBJECT_NAME>I_IND1</OBJECT_NAME>
      <OBJECT_TYPE>INDEX</OBJECT_TYPE>
     </ROW>
     <ROW>
      <OBJECT_NAME>I_COBJ#</OBJECT_NAME>
      <OBJECT_TYPE>INDEX</OBJECT_TYPE>
     </ROW>
     <ROW>
      <OBJECT_NAME>USER$</OBJECT_NAME>
      <OBJECT_TYPE>TABLE</OBJECT_TYPE>
     </ROW>
     <ROW>
      <OBJECT_NAME>I_OBJ1</OBJECT_NAME>
      <OBJECT_TYPE>INDEX</OBJECT_TYPE>
     </ROW>
    </ROWSET>
    
    
    SQL>
    Last edited by PAVB; 06-01-2010 at 11:28 AM. Reason: typo
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width