Tool or mechanism to put the Oracle metadata into XML format

Hi,
Is there any tool or mechanism provided by Oracle to put the Oracle metadata into XML format?I mean metadata here represents Database objects like Tables, Columns, Schemas, stored procedures, Table spaces etc.
Regards,
Dayakar

From 9i and onwards, the dbms_metadata package will do this.
Either use the documentation or Morgan's library [http://www.psoug.org/reference] for further info
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • How to write the oracle data as XML format. (.XML file)

    create or replace procedure pro(p_number )
    is
    cursor c1 is select *from emp where empno=p_number;
    v_file utl_file.file_type;
    begin
    v_file := utl_file.fopen('dirc','filename.txt','w');
    for i in c1 loop
    utl_file.put_line(v_file,i.ename || i.empno ||i.job);
    end loop;
    closef(v_file);
    end;
    Now my client want instead of .txt file he need .xml files
    File should contains xml tags. can any one help regarding this.. with one example.
    How to write the oracle data as XML format. (.XML file)

    hi,
    hope this example will do something....
    SQL> select employee_id, first_name, last_name, phone_number
    2 from employees where rownum < 6
    EMPLOYEE_ID FIRST_NAME LAST_NAME PHONE_NUMBER
    100 Steven King 515.123.4567
    101 Neena Kochhar 515.123.4568
    102 Lex De Haan 515.123.4569
    103 Alexander Hunold 590.423.4567
    104 Bruce Ernst 590.423.4568
    SQL> select dbms_xmlgen.getxml('select employee_id, first_name,
    2 last_name, phone_number from employees where rownum < 6') xml
    3 from dual;
    *<?xml version="1.0"?>*
    *<ROWSET>*
    *<ROW>*
    *<EMPLOYEE_ID>100</EMPLOYEE_ID>*
    *<FIRST_NAME>Steven</FIRST_NAME>*
    *<LAST_NAME>King</LAST_NAME>*
    *<PHONE_NUMBER>515.123.4567</PHONE_NUMBER>*
    *</ROW>*
    *<ROW>*
    *<EMPLOYEE_ID>101</EMPLOYEE_ID>*
    *<FIRST_NAME>Neena</FIRST_NAME>*
    *<LAST_NAME>Kochhar</LAST_NAME>*
    *<PHONE_NUMBER>515.123.4568</PHONE_NUMBER>*
    *</ROW>*
    *<ROW>*
    *<EMPLOYEE_ID>102</EMPLOYEE_ID>*
    *<FIRST_NAME>Lex</FIRST_NAME>*
    *<LAST_NAME>De Haan</LAST_NAME>*
    *<PHONE_NUMBER>515.123.4569</PHONE_NUMBER>*
    *</ROW>*
    *<ROW>*
    *<EMPLOYEE_ID>103</EMPLOYEE_ID>*
    *<FIRST_NAME>Alexander</FIRST_NAME>*
    *<LAST_NAME>Hunold</LAST_NAME>*
    *<PHONE_NUMBER>590.423.4567</PHONE_NUMBER>*
    *</ROW>*
    *<ROW>*
    *<EMPLOYEE_ID>104</EMPLOYEE_ID>*
    *<FIRST_NAME>Bruce</FIRST_NAME>*
    *<LAST_NAME>Ernst</LAST_NAME>*
    *<PHONE_NUMBER>590.423.4568</PHONE_NUMBER>*
    *</ROW>*
    *</ROWSET>*
    ask if you want more assistance.
    thanks.

  • How to conver the oracle data into xml files

    Hi All,
    I have a table for ex emp, now i want to generate every row into an xml file. could anyone pls help...
    ex:- emp table
    eno ename sal
    1    bond  3000
    2    kiran    2000
    3    jai       1000
    4    henry   500
    o/p :-  i have to get a column in 4 different files for this 4 rows.
    1.xml file        should contain data  <ID>1</ID><eNAME>bond</eNAME><sal>3000</sal>
    2.xml file        should contain data  <ID>2</ID><eNAME>kiran</eNAME><sal>2000</sal>
    3.xml file       should contain data  <ID>3</ID><eNAME>jai</eNAME><sal>1000</sal>
    4.xml file       should contain data  <ID>1</ID><eNAME>bond</eNAME><sal>500</sal>
    regards,
    Badri.

    You can do it like this :
    begin
      for r in (
          select empno
               , xmlserialize(content xmlforest(empno as "ID", ename, sal)) as xmlcontent
          from scott.emp
      loop
        dbms_xslprocessor.clob2file(r.xmlcontent, 'TEST_DIR', to_char(r.empno) || '.xml');
      end loop;
    end;

  • Why does the pop up window for a printable coupon only appears briefly (in the upper left corner) and then disappear, even after putting the web site into the Tools,Options,Content,Pop-Up Exceptions?

    I am at http://www.closys.com/samples_&_coupons/get_a_coupon.html and the pop up window for a printable coupon only appears briefly (in the upper left corner) and then disappears, even after putting the web site into the Tools,Options,Content,Pop-Up Exceptions. What gives and how can it be fixed. I have a time limit.
    Thanks for your solution.
    Dan

    Mha007:
    Sorry, but I have already tried this too and verified that the web addresses are listed as Allow, rather than Block. After restart there was no difference, I still get the disappearing pop-up windows.
    Thanks for offering suggestions though.
    Have you heard of any issues like this occurring based on the number of tabs that are open in Firefox?
    Just a thought, even though I have not heard of this as an issue before. I keep about 80 tabs open regularly, because of research that I am always conducting (I am a blogger, a writer/author, a technophile-especially Green Tech.,), email, work, etc.?
    I do have a check in the box for Firefox to let me know if the number of open tabs is causing slow down or other issues.
    Thanks for any help.

  • I removed my battery in an attempt to insert a SIM card, obviously without knowing how to insert the SIM card. I put the battery back into place and it was already charged 100%, but it's stuck in recovery mode. I've already restored it, but it won't boot.

    I was trying to insert a SIM card into my iPhone 4 without actually knowing how to do so. I assumed that I was to remove the back of the phone and find a slot for it near the battery. I removed the battery in an attempt to find a SIM slot, and was obviously unsuccessful. I put the battery back into place and screwed the phone back plate back on. Note: the battery was fully charged and the iPhone was working perfectly fine before. After screwing the iPhone back into place properly, I thought, I attempted to cut the phone on and it would not do so. I put it back on the charger, and the screen came up that says "Connect to iTunes". I obviously couldn't do so if its plugged into the wall. I plugged into the computer, connected it to iTunes, went through the Recovery mode process, and it still won't turn on. The computer says that the iPhone is in Recovery mode, but iTunes can't do anything because it has already been restored. When I disconnect it from the computer, I hold all buttons in all possible combinations, but it won't turn on at all. When I plug it into the wall, it again says to connect to iTunes. I don't know if I damaged the battery or any part within the iPhone, but I was sensitive in my approach to removing the battery and putting it back in, and there is no visible damage whatsoever. I am extremely frustrated and in desperate need of Apple-Pro help.

    do you have a cdma iphone 4? becauase cdma iphones dont have a sim card slot... the providers that use cdma technology here in the us would be verizion, sprint, criket, ect... if you want to use your iphone 4 on att or tmobile (gsm carriers). then you would need a gsm iphone 4 (has sim card slot). a gsm iphone 4 is different than a cdma iphone 4 (they have different radio chips). maby you missed the sim card slot? sim card slot would be on the side of the phone.. never inside (unless it has a removable back cover like the galaxy s3 or s4), if you dont see a sim card slot on the side of the phone than you have a cmda iphone 4. can you tell me what carrier you are trying to use?

  • When I import a commercial CD itunes will create 2 identical albums and put all of the songs except one into one album and put the other song into the other album by it self. How can I combine them all into one album and why is itunes doing this?

    When I import a commerical CD Itunes will create 2 identical albums and put all of the songs except one into one album and put the other song into the second album that it created.  Why is itunes doing this and what can I do to combine them into one album?

    I found this to be somewhat helpful: Grouping Tracks into Albums
    What I did was to put in the same name for Album Artist in every track.  That seemed to do the trick (previously all those fields were empty).  It seems like a lot of work for a simple thing.
    iTunes knows (or should know) that these tracks were imported from one CD. So why is it relying on incomplete data from the gracenote database?

  • If I changed my Apple ID password on my iphone then log into itunes on my phone with that new password, would it automatically sync to my laptop or would i need to put the new password into my laptop also?

    If I changed my Apple ID password on my iphone then log into itunes on my phone with that new password, would it automatically sync to my laptop or would i need to put the new password into my laptop also? My laptop got stolen so I changed my password and wanted to be sure it's safe to enter in the new one on my phone. I don't want it to snyc to my laptop.

    Hi loro,
    Thanks for visiting Apple Support Communities.
    I'm sorry to hear that your laptop was stolen. Changing your password was a good step. 
    Entering your new password on your iPhone will not affect the laptop, as mentioned in this article:
    Apple ID: Changing your password
    http://support.apple.com/kb/HT5624
    The next time you use an Apple feature or service that uses Apple ID, you'll be asked to sign in with your new Apple ID password.
    Best Regards,
    Jeremy

  • I want to upgrade my 2007 Mac desktop to 10.5 Leopard. I am currently running on 10.4.11. I have put the leopard disk into the drive and all it does is make a weird noise and then spits the disk right back out. It doesn't do this with other disks. HELP

    I want to upgrade my 2007 Mac desktop to 10.5 Leopard. I am currently running on 10.4.11. When I put the leopard disk into the drive all it does is make a weird noise and then spits the disk right back out. It doesn't do this with any other discs, only this software. Is it still possible to update this computer?

    Yes. Try Amazon.
    Before you do upgrade to Snow Leopard, make sure your Mac meets the requirements.
    Mac OS X v10.6 Snow Leopard - Technical Specifications
    Make sure the disc you tried using doesn't have any fingerprints or smudges on it. The optical drive can't read the disk otherwise.
    If your Mac won't read the disc, might be a good idea to rule out any problems with the startup disk BEFORE trying to upgrade the system.
    Using Disk Utility to verify or repair disks
    Message was edited by: Carolyn

  • My laptop blew up. I put the hard drive into a case and I can access it as a drive. How do I transfer the bookmarks from the Firefox on the old drive to the Firefox on the new drive.

    My laptop blew up. The hard drive was still good so I put the hard drive into a case and I can access it as a drive via USB. How do I import the bookmarks from the old drive to the new drive?

    http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile

  • How to put the alv output into the spool request?

    Hi guys,
    How to put the alv output into the spool request?
    Thanks!

    Hi
    Sending an ALV List screen output to SPOOL
    Convert ALV list to PDF and send mails to respective persons
    Regards
    Pavan

  • My ipod is broken in where you would put the usb cable into the ipod

    my ipod is broken in where you would put the usb cable into the ipod to charge it or to connect it to the laptop does anyone know if it can be fixed

    Any Apple store or an AASP will repair it for a fee!  If you want DIY instructions try the iPod Repair Tutorials and the YouTube "How To" tutorial websites. 

  • I have just bought a Humax PVR and Humax W-Lan dongle to connect to my Airport Extreme. I have put the mac address into the AE. The installation screen is picking up my network name no problem but it won't connect to the internet. Can anyone help please?

    I have just bought a Humax 7500T PVR and a Humax W-Lan dongle to connect to my Airport Extreme.
    I have put the mac address into the AE. The installation screen on my TV is picking up the network name but once appied it won't connect to the internet.
    I've a few other things connected to the AE such as computers, ipad, itouch, etc, and have never had a problem connecting these once I've entered the mac address into the AE. Can anyone help me with this please?

    have you made sure that the network setting in the system preferences is set up to use dhcp? if not i would try changing it so that it shows that it is getting its address by dhcp

  • I loaded my ipad photos from camera and all the pictures sorted by date.  Next, I did a sync with my computer and the photos were all reorganized into IMPRT folders an out of date sequence.  Any idea how to put the photos back into date files?

    I loaded my ipad photos from camera and all the pictures sorted by date.  I later sync my ipad with my computer and the photos were all reorganized into IMPRT folders an out of date sequence.  Any idea how to put the photos back into date files other than reloading all of them from camera?

    What version of iPhoto?
    Select one and rotate it. Then rotate it back. Does that make it appear? 
    A much better work flow is the keep the photos after importing.  Check the success the import, wait for at least one successful backup cycle then use you camera's format command to reformat the card
    LN

  • I have a MacBook Pro and I created a movie using imovie but once I put the DVD back into my computer it said it was blank! Why?

    I have a MacBook Pro and I created a movie using imovie but once I put the DVD back into my computer it said it was blank! Why?
    Please HELP!!!!

    AFAIK, you can't author a DVD using iMovie - again, AFAIK, you need authoring software such as iDVD or Toast Titanium or something similar.
    Clinton

  • I have my ipad notes linked to gmail and suddenly disappeared when I put the sim card into a new iphone, the funny thing is that almost all disappeared except 4 and with different dates up to two years. Why did this happen? No way to recover them?

    I have my ipad notes linked to gmail and suddenly disappeared when I put the sim card into a new iphone, the funny thing is that almost all disappeared except 4 and with different dates up to two years. Why did this happen? No way to recover them?

    Wow, Karan Taneja, you've just embarrassed yourself on a worldwide support forum.  Not only is your post ridiculous and completely inappropriate for a technical support forum, but it also shows your ignorance as to whom you think the audience is.  Apple is not here.  It's users, like you. 
    If you would have spent half the time actually reading the Terms of Use of this forum that YOU agreed to by signing up to post, as you did composing that usesless, inappropriate post, you (and the rest of us on this forum) would have been much better off.

Maybe you are looking for

  • Can iTunes show albums just once in list of albums?

    For illustration purposes: If I have just one album in my library by a single artist: In Album grid view, I'd see one album cover as expected. If you double click the cover you'd see the list of songs in that album - all as expected. If you click lis

  • G5 having a host of problems after 10.4.8 update

    Does anyone know how or if there is way to go back to 10.4.7 now that I'm running 10.4.8? My G5 use to crash at startup about 30-40% of the time right out of the box. Yes I have one the (Late 2004) 1.8GHz G5's. These problems continued until Apple fi

  • Anyconnect VPN via IPSec - Certificate issue

    Hi, I'm currently setting up a VPN-firewall and ran into problems with the certificates. I only want to enable IPSec connections via Anyconnect to the firewall. The client and the profile will be rolled out manually, so there is no need for anything

  • My itunes got wiped out.  I have re-installed it but

    the music files were on a external, but I lost all playlists, playcount data, ratinngs etc. All of this data is still on my ipod. Is there any way to upload it to the new itunes library?

  • ICloud email messages not showing up in Mac mail

    I just noticed that my Mail client on mac osx lion isn't receiving emails on my @me.com account from the iCloud.  The emails are showing up fine on my iphone, but they are not appearing in Mail on my Mac. This seems to be a new issue as I didn't noti