What is the point of XML formatted alert log in 11g?

DB version: 11.1.0.6.0
OS : RHEL 5
What is the point of have XML formatted alert log in 11G?
When i tried to open in Internet Explorer
Only one top level element is allowed in an XML document. Error processing resource 'file:///D:/Work/FILES/log.xm...
<msg time='2011-01-27T19:42:53.484+08:00' org_id='oracle' comp_id='rdbms'I got a similair error with FireFox. How is the XML alert log file used in diagnosis?

It is used by the ADRCI command line utility:
http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/adrci.htm#BGBBBBEA

Similar Messages

  • What is the most plain xml format to import clips and sequence into Premiere ?

    I want to create xml includes sequence and clips to import Premeire.
    In this case, I have a reference xml that is exported from premiere for finalcut pro. But this finalcut pro export format looks so complicated because has alot of property  that is belong to premiere pro. I tested by deleting some of them from xml and imported again, didn't effected anything.
    Here is the question, How can I create an xml which requires minimum property details for premiere sequence and clips ? Is there any reference better than FinalCut Pro export xml format ?

    Bruce from adobe replied that FCP Format is the best to import Premiere.
    So I read FCP Format Documentation from http://documentation.apple.com/en/finalcutpro/usermanual/index.html#chapter=97%26section=3 %26tasks=true

  • What's the point of recovery partition when I have to DL the whole thing anyway?

    Well I was supposed to sell my Macbook Air today.
    I tried booting CMD-R into the recovery partition and instead it went to some online thing.
    So then I booted Option, into the recovery partition and clicked on Reinstall Mountain Lion.
    Next thing ya know its got me logging into the Apple Store and now it has a 7 hour download.
    So what is the point of the recovery partition if it can't do a fresh copy of Mountain Lion?  What exactly is it to help me recover from?  What if I was in the hills of Indonesia and tried to do this?
    Any now I can't sell this thing until tomorrow as I have a seven hour download wait ahead of me.  Had I knows, I would have let that be the new owners problem.  Or somehow made a backup of ML previously.
    Silly Apple. Always advertising something so great that turns out to be useless.

    The silly part is not alerting the user that when you download and install that the .ESD installer package will be deleted and to make a copy of it.
    The system you download - guesstimates can be way off - check with speedtest.net - is associated with YOU and your Apple ID and the best thing to do is any OEM material and a blank hard drive - and printout of ML Recovery Mode tech article on doing an internet based install.
    Yes you could have setup a 4GB installer flash drive or on your hard drive. Yes they could maintain that 4GB on a larger Recovery partition (it is less than 1GB).
    Create an OS X Lion Install disc
    OS X Lion Install to Different Drive
    How to create an OS X Lion installation disc MacFixIt
    Migration Assistant Update for Mac OS X Snow Leopard
    http://www.apple.com/support/lion/installrecovery/
    http://reviews.cnet.com/8301-13727_7-20080989-263/how-to-create-an-os-x-lion-ins tallation-disc
    http://www.coolestguyplanettech.com/how-to-make-a-bootable-osx-10-8-mountain-lio n-disc-or-drive-from-the-downloaded-mountain-lion-app/

  • What's the point of archiving to ALAC?

    I did all the googling and learned pretty much all I need to know about archiving my 1000 CD collection to ALAC.  And I just successfully ripped my first ever CD to ALAC.
    The only question I never saw answered anywhere was whether or not there is any advantage to ALAC for archive purposes now that hard drives are so cheap.
    I just bought a 2TB drive at Costco for $130.
    The first CD I ripped was 693mb, per iTunes.  Once I ripped it to ALAC, it was 450mb.  That's a space savings of 35%.
    If my average CD has 650mb of data on it ... times 1000 CDs in my collection ... that 635 gigs.
    If I save 35% via ALAC, that's now 412 gigs.  That (now, on a 2TB drive) is a negligible difference.
    So I'm asking ... what's the point?  This isn't 2004 when 200 gigs would have cost a lot of money.
    I understand for playback, ALAC is cool because you've got tags and album artwork.
    But for archiving a CD collection to a hard drive just for the purpose of safe storage ... is there any advantage anymore to converting the file format?
    Why not just use Toast or whatever and save a bunch of disc images?

    John_Neumann wrote:
    Thank you, Ed2345.
    Regarding your last sentence ... isn't making a new physical CD pretty much the same process whether disc image or ALAC?  I understand you just drop an IMG into Toast and hit burn ... or drop an ALAC into XLD and hit burn.  Or is there a step I still don't understand?
    -JOHN
    John,
    It is not actually the same process.  The burn from disc image copies the image, i.e. all contents and structure, onto the CD.  The burn from ALAC (or WAV or AIFF) reconstructs the audio, creates a table of contents, adds its own  gaps, and then burns that to the CD.
    However, if your future intent is to use the songs in a player such as iTunes, the ALAC files will be ready to go, while the disc image will still need ripping.

  • What's the point of redo logs?

    Why does Oracle bother writing everything to redo logs? If it's going to write data changes to the disk, why not just write them once to the data files and be done with it? What's the point of doing it twice? And if it's a redundancy thing, why not mirror the data disks?

    Hemant K Chitale wrote:
    How would you backup a database while it is in use ? You can't lock all the datafiles to prevent writes to them. Yet, transactions may be updating different blocks in different datafiles even as the backup is in progress. Say your backup starts with datafile 1 (or even datafiles 1,2,3,4 in parallel) at time t0. By time t5, it has copied 20% of the datafile to tape or alternate disk backup location. Along comes a transaction that updates the 100th block (somewhere within the 10-11% range) of datafile 1 and also the 60th block of datafile 5. Meanwhile, the backup continues running, already having taken a prior image of the 100th block and not being aware that the block has been changed. At time t25 it completes datafile 1 (or datafiles 1,2,3,4) and starts backing up datafile 5. Now, when it copies the 60th block of datafile 5, it (the backup utility) doesn't know that this block is inconsistent with the backup image of the 100th block of datafile 1.
    Instead of 1 transaction imagine 100 or 1000 transactions occurring while the backup is running.
    Surely, Oracle must be able to regenerate a consistent image of the whole database when it is restored ?
    That is what the Redo stream provides. The Redo stream is written to Archivelogs so that it can be backed up -- no Archivelog file is "in flux" (particularly if you use RMAN to backup the Archivelogs as well !).
    Had Oracle been merely writing to the datafiles alone, without a Redo stream, there is no way it could recreate a consistent database -- whether after Crash Recovery OR after Media Recovery.Interesting point about how redo logs facilitate backups. So what you're saying is that the redo logs help keep the data in the actual data files in a consistent state by only writing full transactions to them at a time. Presumably Oracle will either write out the redo log data to the data files before a backup or will at least prevent the redo logs from writing to the data files during a backup. I always wondered how databases got around that problem of keeping the system available for writing during a backup. I wonder how SQL Server does it.
    Hemant K Chitale wrote:
    Now, approach this from another angle. A database consists of 10 or 100 or 500 datafiles. You have 10 or 100 or 1000 sessions issuing COMMITs to complete their transactions, which could be of 1 row or 100 rows or 1million rows, each transaction of a different size. Should the 1000 sessions be forced to wait while Oracle writes all those updated blocks to disk in different datafiles -- how many blocks can it write in "an instant" ?
    But what if Oracle manages to write much less information -- the bare minimum (called "change vectors") to re-play every transaction to a single file serially ? That would be much faster. Imagine writing to 500 datafiles concurrently, having to open the file, progess to the required block address and update the block, for each block changed in each file VERSUS writing much lesser information serially to a single file -- if the file is full, switch to another file, but keep writing serially.As to your second point, I don't really have a good enough understanding about the format of redo logs vs. the data files to follow you totally. Are you saying that it takes more time to write to the data files because you have to find the proper place in the B-Tree before you can write to it? And that doing that is slower than just opening the redo log and always appending new information to the very end? Maybe so, but it seems like all transactions having to write to a single redo log in serial would slow things down since there would be a ton of contention for one file. Whereas with the data files, you could potentially have several transactions writing to different files simultaneously (provided you hardware would support doing that). And it seems to me like a change vector would contain a lot more information than a field value, but, like I said, I'm not really familiar with the format.

  • What's the point of keyword sets?

    Hi all. My first post here, so watch out - Newbie Alert. I have scoured the forums but can't really find an answer.....
    What's the point of keyword sets?
    I'm a convert to Lightroom from ACDSee. I have been very pleased with Lightroom in general but I'm really struggling with Keywords and Keyword Sets.
    Understand where I'm coming from. I'm not sending my photos to Stock Libraries etc but I want to tag/categorise my photos so that I can find what I want quickly.
    How are people using  Keywords and Keyword Sets?
    A simple example - I have a "family" and some "friends".
    So I created (via the contorted mechanism) a couple of keyword sets. The Family set containes the names of me, my wife and our three sons. Great - no problems. However it turns out that we have more than nine friends. Now I know geeks are often short on real world friends but this seems to be a bit of a limitation.
    On the other hand It might be that I have misunderstood what sets are all about.
    I have found that it is possible to nest keywords. Perhaps that is a better mechanism?
    I have not found a really good tutorial on this - any pointers?
    In comparison to the rest of Lightroom the keyword and keyword set manipulation side seems to be a little clunky. Yes/No?
    Roy

    It's for applying  keywords which are frequently applied as alternatives, and makes use of the keyboard to make the assignment faster - hold down Alt/Opt and hit the number.
    So your family set would be an ideal set. You could set up alternative sets for certain groups of keywords you often assign to a shoot. So for example, I have a weddings one, with groom, bride, etc.
    John

  • What is the point of Apple TV anyway?

    I must be missing something but I don't see the point of the Apple TV:
    If one has to convert all video, presentation and other material to run on Apple TV. What is the point?
    All these converted videos, etc. don't only take up time to convert but take up unnecessary disk space too. What is the point?
    Surely Apple will make future versions of its DVD Player, iLife, and iWorks, especially Keynote, compatible with Apple TV so that one can stream DVD's, Keynote presentations, etc. directly to a TV via Apple TV without having to "rip" ones DVD's and convert them or convert all ones presentations into QuickTime. Otherwise, what is the point?
    As for movies on iTunes tell me what proportion of the population buy their movies? Most movies are only worth watching once, if that, so most of us rent them for far less than the cost of buying. You can't rent movies for Apple TV. So, what is the point?
    For teaching situations it would also make sense for Apple to make it possible to "stream" the Mac desktop, including running applications to a large screen TV to allow it to be used as teaching tool in lecture theatres, classrooms, etc. I say it again, what is the point?

    If one has to convert all video, presentation and
    other material to run on Apple TV. What is the
    point?
    One doesn't have to convert all video. A great deal of compatible MPEG-4 formatted content (including MPEG part 10, a.k.a. H.264) is available from diverse sources, including Apple's iTunes Music Store. One interesting source you may not be aware of is video podcasts. Just as audio podcasts have become popular as a distribution format for audio content, so too now is the video version. An easy way to sample what is available is through the "Apple TV Showcase," accessible from the Podcast section of iTunes Music Store.
    All these converted videos, etc. don't only take up
    time to convert but take up unnecessary disk space
    too. What is the point?
    Nothing says you have to keep multiple versions of this content on your hard drive(s). In fact, H.264 is the current state of the art in video compression, offering higher quality vs. file size than any other codec. Most people find that even for HD content up to 720p24, Apple TV's 5 Mbps limit produces either no visible compromise or so little that the file space saved is well worth the tradeoff. Moreover, the number of standard DVD's (which use MPEG-2 compression) that contain content that can't be re-compressed in H.264 at <5 Mbps with no losses at all are few & far between.
    <div class="jive-quote">Surely Apple will make future versions of its DVD
    Player, iLife, and iWorks, especially Keynote,
    compatible with Apple TV so that one can stream
    DVD's, Keynote presentations, etc. directly to a TV
    via Apple TV without having to "rip" ones DVD's and
    convert them or convert all ones presentations into
    QuickTime. Otherwise, what is the point?
    Only Apple can say what Apple will do, but remember that there are a number of issues involved here, not the least of which is DRM & the legality of providing software that defeats protection schemes, that may prevent it from doing what consumers would like it to do.
    As for movies on iTunes tell me what proportion of
    the population buy their movies? Most movies are only
    worth watching once, if that, so most of us rent them
    for far less than the cost of buying. You can't rent
    movies for Apple TV. So, what is the point?
    Not that long ago, most industry pundits thought the consumer market for buying commercial releases of movies or TV shows was insignificant -- that for instance consumers would prefer to see movies in theaters & have no interest in buying them afterwards, or that they would only be interested in rentals. I don't know if you have noticed, but they were wrong ... to the tune of billions of dollars in revenue per year that often exceed the revenue from theatrical releases.
    Some of these same pundits more recently predicted that selling TV shows by the episode, particularly at less than HD resolution, would have no marketing potential -- after all, why buy something you could watch or record for free? Once again, they were wrong. It turns out that some people just like collecting episodes, others are eager to buy a missed episode of a favored show, still others are willing to pay for selected cable content but not for cable TV, & so on.
    At the same time, bricks & mortar rental chains like Blockbuster (the world's largest) have seen profits plummet, prompting ever greater reliance on other products, including in-store sales & their own online services, still oriented toward rentals. Other retail giants like Wal-Mart have tried online rental services, too. So far, all these rental-oriented services have yet to exceed "also ran" status compared to Apple's success.
    Put simply, the point is renting is becoming less popular & ownership --particularly when it is comparatively easy & cheap -- more popular.
    For teaching situations it would also make sense for
    Apple to make it possible to "stream" the Mac
    desktop, including running applications to a large
    screen TV to allow it to be used as teaching tool in
    lecture theatres, classrooms, etc. I say it again,
    what is the point?
    The point here is that products that do this already exist, but the market for them is very limited compared to the one the much cheaper Apple TV targets.
    Put another way, what "makes sense" to consumers (the fabled $100 laptop, for example) doesn't necessarily mean it makes sense in commercial terms, no matter how badly people want it or how well it would sell.
    iMac G5/2.0 GHz 17" ALS (Rev B)   Mac OS X (10.4.9)   1.5 GB, Kensington Trackball

  • What is the correct way to format file paths and names in the structapp file?

    I am trying to create a structured application to export fm files as xml, and probably read the xml back to fm.
    In the structured application file (structapp), I need to specify the locations of the various files (DTD, read/write, template, etc). I would like to place these files on a shared server so others can use the same structapp file (that is, a cop of it). What is the correct way to format the file paths and names? Can folders folder names and file names have spaces in them? I tried the following, for example:
    \\serverName\shareName\folder 1\folder 2\file name.dtd
    I use the same format for the template file and the read/write rules file.
    When I try to save an fm file to xml, FrameMaker says that it cannot read the DTD; however, the resulting xml file appears to be well-formed. The DOCTYPE element in the resulting xml is formatted with forward slashes and spaces replaced with %20.
    I tried using forward slashes and replacing spaces with %20, but then I get an error about reading the read/write rules.
    NOTE: I have another structured application to read xml into fm. This application does not have a DTD file. The template and read/write rules files are specified as above. Except for complaining about a lack of a DTD, the application works fine; it even applies an XSLT in the process. Again, when I DO add a DTD to this latter application, I get the same complaint about not being able to read the DTD.
    I am using fully patched FrameMaker 9 in Windows XP.
    Thanks,
    Van

    Hi Van,
    The XML parser and FrameMaker are not the same thing. The Error Log says which component created which message. The XSL processor is another option that can throw messages. The "\\server\path\some.dtd" syntax in structapps.fm seems to be fine for some tools, as Internet Explorer with XML tools successfully finds the DTD which appears as "//server/path/some.dtd" in the XML. But apparently Xerxes, the XML parser bundled with FrameMaker, does not like this notation.
    If you have a path with a drive letter, "H:\path\some.dtd", FrameMaker turns that into "file:///H:/path/some.dtd". It seems, Xerces would like to see "file:/" in front of absolute paths.
    This is what I have in structapps.fm:
    Template: \\server\path\projecttemplate.fm
    DTD: some.dtd
    Read/write rules: \\server\path\projectrules.txt
    DOCTYPE: …
    Entity locations
      Entity search paths
        1: \\server\path\
    In the structapps.fm I have the DTD without path information. The resulting XML (without XSL postprocessing) then contains just the file name with a relative path back to the book folder (when saving a book as XML). It therefore requires the DTD to be available at this place. I handle this using an event script that fires for NotePreSaveXml and copies the DTD to the folder of the original document.
    As I always use XSL postprocessing and using XSLT1 it is not possible to have the doctype-system as a parameter I have this in my XSL stylesheet:
    <xsl:output doctype-system="some.dtd" />
    For the resulting XML the DTD is expected to be in the same folder as the XML file. This is handled by the same event script as above, it therefore copies the DTD to the source and the target folder.
    Bottom line: If you want/have to use UNC paths, you have to do some programming to work around a FrameMaker bug.
    - Michael

  • AVCHD/ HDV- What's the point

    This is probably as stupid as it sounds, but it suddenly struck me today, but what is the point of having AVCHD/ HDV compatibility and editing on FCE/ FCP if you can only burn the projects onto a standard def DVD? Does FCE give you any other options in tems of what you do with your freshly edited High Def content? Do you lose a heap of quality when you burn it to DVD?

    hey there qsack,
    in the USN i was told the only stupid questions are the ones you don't ask. you can send your HDV project back to tape in your cam to watch on your HDTV... the shoot/edit/distribute flow that we have in DV, is not yet ready w/ HDV, partly because of the cost of the burners & the R&D to develop the authoring software for mass commercial use(make it simple enough for average users as w/ iDVD). also the major studios are probably closely guarding the technology in part due concerns about piracy, also the HD-disc format war thing.... these are just some of the speculations on why we can't yet burn our HD movies to disc.
    i've burned some of my HDV content to SD discs & they look pretty good, because i had good lighting to start with. though i dropped down a lot in terms of res from 1080i to 480p. i was okay w/ the results & as w/ most graphic types be it print, photo or video, it's usually better to start out w/ more or larger(1080/720) & if you have to shrink it(480) you still have a decent image rather than have a small image & try to scale up. for example--a photo from a 10 megapixel DSLR "RAW" file will still have a lot of detail & look good when it gets down-converted to a JPEG vs. a photo from a 2 megapixel phone camera that starts as a JPEG.

  • What's the point when most browsers are NOT Safari ?

    I’m using a Mac of course (since 1996) but also have other browsers installed like Firefox, SeaMonkey & Camino (formerly Mozilla).
    Spending MANY hours redesigning my old site, formatting and creating really nice FX that render perfectly on Safari, FAIL to render properly on the aforementioned browsers.
    Since most people on the planet are not using Macs or Safari, what is the point of using iWeb08 if the rest of the word cannot see your site as intended? I used to use Mozilla Composer for the last couple of years and I never had any issues with my pages rendering incorrectly...
    Try for yourself, visit www.dpkmusic.com on Safari to see what it’s supposed to look like. Then visit it on any other browser. You’ll see what I’m talking about. Unless I’m horribly mistaken and I’m doing something terribly wrong...
    I’d appreciate it if some one can let me know if this really is the case. Thanks.
    (And yes, I did use the Apple Feedback link already about this matter.)
    dpk

    Out of curiosity, did you shadow the text IN the text box, or the text box itself??? I couldn't figure out why my shadows were too dark and others not when I found that you can do it either (or both) ways. I don't remember now whey I decided the text was better because clearly clicking the box is easier.
    Anyway, text shadows & reflections are one thing that do work ok on my web page (my first). I think Georgia which is what I used for body text because I wanted to use something different than Times New Roman for a change but still be 'web friendly' looks weird on the PC/Firefox, kind of moth eaten, although it looks just fine on my Mac/Firefox, might be a resolution issue, I dunno, and the least of my problems right now.
    I am also a refugee of the upgrade problem. I just found the solutions here yesterday and plan to work on it today. In my case as a newbie, using a program for newbies, I never encountered the domain.site file while building my entire site so I thought I was backing up when I kept publishing to successive folders to mark my progress. No, I didn't read the Read Me file to back it up when I upgraded, I usually do....
    One new thing to mention, I was just checking my fonts to answer your question and clicked on our About Us page (the site is for my lab) and the pics were completely rearranged!!! I moved to another page and back and then they were in correct/matching order. Anybody have this happen???
    Best of luck to all, and thanks for all who have done so much problem solving so far.

  • I am extremely upset. I purchased my iPad in SA and I am traveling in Greece. When I want to make use of the free apps, I get a message that the app is not available in the SA store. What is the point of having an iPad if you cannot use it worldwide?

    I am extremely upset. I purchased my iPad in SA and now I am in Greece. I cannot download free apps as I get a message that the apps are not available in the SA store and only in US stores. When I change to the US store the same thing happens. What is the point of having an iPad if I cannot use it worldwide??? I feel that I wasted my money purchasing it as I specifically purchased it to use when I travel. How can I get access to all the available apps and why are they restricted.

    You can use your iPad worldwide. However, each AppleID is tied to
    a specific country's store. To use the AppStore in any country, you
    must be in that country and have a credit/debit card issued by a financial
    institution in that country with a verified billing address in that country.
    It is the developer's choice which AppStores he makes his app available
    from, and some countries prohibit certain apps.
    To make a purchase from the US store (including downloading a free app
    available in the US store), you must be in the US and have card issued
    in the US with verified billing address in the US.
    You can use your purchases from the SA store worldwide, but you
    cannot make purchases in other than the SA store unless you meet
    the aforesaid conditions.

  • What is the point of the download window if you use stacks?

    Greetings,
    One of the most annoying things about the download window was the fact that the window always hung around after completing dowloads in Tiger when using safari. To me, that was just a time waster of always pressing Apple+W to close that window.
    When Leopard was released, I was excited to realize that one function of the download stack was to recevie downloads from safari after completed. However, after completion, the download window still sticks around and I still have to close it... then navigate to my stack of downloads to mount the image. What is the point of the download window is I use stacks now? Why can't the window disappear after completion?
    //Cheers

    Aaargh!! Me too - it's so annoying! Firefox has a downloads window as well - I just don't see the point of it. I didn't like it in Tiger either.
    As a way to see the progress of downloads, it's fine, but it should at least close when all the downloads are finished, and completed downloads should not display.
    Ideally it should look & work exactly like the Copy window in Finder - the one that comes up when you are copying or moving a large file or number of files from one folder to another.
    Is there a hack that will make it work like that?

  • My wifes iphone was too full to record a video so I upgraded her cloud storage to 20g and did mine at same time. Cloud is showing 15g free storage butshe still cannot take any mor photos as "not enough memory" What is the point of paying for the extr

    My wifes iphone was too full to record a video so I upgraded her cloud storage to 20g and did mine at same time. Cloud is showing 15g free storage butshe still cannot take any mor photos as "not enough memory" What is the point of paying for the extr

    Hello Pushtheriver,
    After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning iCloud storage issues:
    Get help using iCloud storage
    This may also help:
    Understanding iOS device capacity
    You can sync and download many different types of content on your device. Some types of content (such as music and videos) typically take more space than others (such as notes and books). The amount of space taken by an app depends on the app's purpose; complex or graphically intense apps usually take more space than simpler apps.
    If your device is near its capacity, you can remove some of the less used content to make room for more.
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • What's the point of warranty?

    I am a student coming from Hong Kong  to London for postgraduate study. Before I left Hong Kong, I decided to buy a netbook for my lecturers in the UK. Lenovo s10-2 was chosen because the version available in HK comes with 6 cell battery with international warranty and Lenovo Protection Service (against accidental damage).
    This is the first Lenovo machine for me. All was well and I was starting to appreciate Lenovo. Suddenly, the LED screen started to flick with white lines moving across the it, just two weeks after I bought it from Hong Kong.
    Yesterday, I called the UK support line who initially suggested replacement (because the purchase is last than 30-day old). However, when the agent found out that I bought the machine in Hong Kong, he said I could only get it repairs. Fair enough.
    I packed the netbook this afternoon ready to ship it to the repair center. Being not sure about whether or not my proof of purchase was needed, I called the support line again. This time, the agent gave me a "friendly warning" or maybe a management of my expectations.
    I was told that Lenovo believes that there is a 99.5% chance that these type of problems are due to “internal damages" caused by users! I was also advised that sending the machine in for repairs risk myself getting into paying 230 pounds (pretty much the purchase cost) to get the LED screen fixed because it is likely to be not covered by warranty. On top of that, I would have to pay 65 pounds even if I want my netbook back after inspection without getting fixed because again, 99.5% chance that "damages by users" would be concluded!
    What's the point of warranty? Totally unacceptable. Any thoughts? Should I take the risk?
    I only got the machine just over two weeks ago and used for less than 10 times!

    seblee,
    This bears a bit of looking into to provide you the best answer.   Sometimes, the accidental damage policies are only valid in the home country, and I would like to check.  If that were to be the case, you would have replacement or repair options in HK, but standard warranty terms would likely apply in UK.
    Your situation sounds exceptional, and I'd like to look into this and see what can be done.
    Can your send me a private message with your contact information and the serial number from the bottom of the unit?
    Sorry that you are having this trouble.  Will see how we can help.
    Mark
    ThinkPads: S30, T43, X60t, X1, W700ds, IdeaPad Y710, IdeaCentre: A300, IdeaPad K1
    Mark Hopkins
    Program Manager, Lenovo Social Media (Services)
    twitter @lenovoforums
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • How to get the metadata (in xml format) of all the fileds in SQl query ?

    Good day ,
    I am using the dbms_xmlgen.getXMLfunction to get the result of any query in xml format.
    With this XML I also want the metadata information about all the fields used in the query (passed to getXML function). Is it possible and how can I achieve this.
    I tried to Google it but couldn't find any solution , it's easy to do it in java where I can get the resultset meta data from the resultset but I have to do it in Oracle function since I want the result in xml format and want to use the oracle XML API.
    You may think why I need metadata , the reason is the application will later use this information to sort the data contained in these fields according to their data type provided to.
    Regards
    Sajjad Ahmed Paracha

    Hi,
    Please always say which version of Oracle you're using (SELECT * FROM v$version).
    With this XML I also want the metadata information about all the fields used in the query (passed to getXML function). Is it possible and how can I achieve this.It is possible but with a bit of effort.
    I would use DBMS_SQL utility to parse the query, extract each column's description and then build a METADATA element with the required information.
    Here's an example (11g) :
    DECLARE
      v_query      varchar2(30) := 'select * from scott.emp';
      v_cur        integer;
      v_desc_tab   dbms_sql.desc_tab;
      v_col_cnt    number;
      v_col_lst    varchar2(4000);
      v_xml_query  varchar2(32767);
      xml_metadata_coll xmlsequencetype := xmlsequencetype();
      xml_metadata      xmltype;
      res          clob;
    BEGIN
      v_cur := dbms_sql.open_cursor;
      dbms_sql.parse(v_cur, v_query, dbms_sql.native);
      dbms_sql.describe_columns(v_cur, v_col_cnt, v_desc_tab);
      dbms_sql.close_cursor(v_cur);
      for i in 1 .. v_col_cnt loop
        if i > 1 then
          v_col_lst := v_col_lst || ', ';
        end if;
        v_col_lst := v_col_lst || v_desc_tab(i).col_name;
        xml_metadata_coll.extend;
        select xmlelement("COLUMN"
               , xmlattributes(v_desc_tab(i).col_name as "name")
               , xmlforest(
                   case v_desc_tab(i).col_type
                     when 1   then 'VARCHAR2'
                     when 2   then 'NUMBER'
                     when 12  then 'DATE'
                     when 180 then 'TIMESTAMP'
                     else 'UNKNOWN'
                   end as "DATATYPE"
                 , v_desc_tab(i).col_max_len as "MAX_LENGTH"
                 , v_desc_tab(i).col_precision as "PRECISION"
                 , v_desc_tab(i).col_scale as "SCALE"
        into xml_metadata_coll(i)
        from dual;
      end loop;
      v_xml_query :=
    'SELECT XMLSerialize(document
             XMLElement("ROOT"
             , :1
             , XMLElement("ROWSET"
               , XMLAgg(
                   XMLElement("ROW", XMLForest(' || v_col_lst || '))
             ) as clob indent
    FROM ( ' || v_query || ')';
      select xmlelement("METADATA", xmlagg(column_value))
      into xml_metadata
      from table(xml_metadata_coll)
      execute immediate v_xml_query into res using xml_metadata;
      dbms_output.put_line(res);
    END;
    /Ouput :
    <ROOT>
      <METADATA>
        <COLUMN name="EMPNO">
          <DATATYPE>NUMBER</DATATYPE>
          <MAX_LENGTH>22</MAX_LENGTH>
          <PRECISION>4</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
        <COLUMN name="ENAME">
          <DATATYPE>VARCHAR2</DATATYPE>
          <MAX_LENGTH>10</MAX_LENGTH>
          <PRECISION>0</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
        <COLUMN name="JOB">
          <DATATYPE>VARCHAR2</DATATYPE>
          <MAX_LENGTH>9</MAX_LENGTH>
          <PRECISION>0</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
        <COLUMN name="MGR">
          <DATATYPE>NUMBER</DATATYPE>
          <MAX_LENGTH>22</MAX_LENGTH>
          <PRECISION>4</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
        <COLUMN name="HIREDATE">
          <DATATYPE>DATE</DATATYPE>
          <MAX_LENGTH>7</MAX_LENGTH>
          <PRECISION>0</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
        <COLUMN name="SAL">
          <DATATYPE>NUMBER</DATATYPE>
          <MAX_LENGTH>22</MAX_LENGTH>
          <PRECISION>7</PRECISION>
          <SCALE>2</SCALE>
        </COLUMN>
        <COLUMN name="COMM">
          <DATATYPE>NUMBER</DATATYPE>
          <MAX_LENGTH>22</MAX_LENGTH>
          <PRECISION>7</PRECISION>
          <SCALE>2</SCALE>
        </COLUMN>
        <COLUMN name="DEPTNO">
          <DATATYPE>NUMBER</DATATYPE>
          <MAX_LENGTH>22</MAX_LENGTH>
          <PRECISION>2</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
      </METADATA>
      <ROWSET>
        <ROW>
          <EMPNO>7369</EMPNO>
          <ENAME>SMITH</ENAME>
          <JOB>CLERK</JOB>
          <MGR>7902</MGR>
          <HIREDATE>1980-12-17</HIREDATE>
          <SAL>800</SAL>
          <DEPTNO>20</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7499</EMPNO>
          <ENAME>ALLEN</ENAME>
          <JOB>SALESMAN</JOB>
          <MGR>7698</MGR>
          <HIREDATE>1981-02-20</HIREDATE>
          <SAL>1600</SAL>
          <COMM>300</COMM>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7521</EMPNO>
          <ENAME>WARD</ENAME>
          <JOB>SALESMAN</JOB>
          <MGR>7698</MGR>
          <HIREDATE>1981-02-22</HIREDATE>
          <SAL>1250</SAL>
          <COMM>500</COMM>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7566</EMPNO>
          <ENAME>JONES</ENAME>
          <JOB>MANAGER</JOB>
          <MGR>7839</MGR>
          <HIREDATE>1981-04-02</HIREDATE>
          <SAL>2975</SAL>
          <DEPTNO>20</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7654</EMPNO>
          <ENAME>MARTIN</ENAME>
          <JOB>SALESMAN</JOB>
          <MGR>7698</MGR>
          <HIREDATE>1981-09-28</HIREDATE>
          <SAL>1250</SAL>
          <COMM>1400</COMM>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7698</EMPNO>
          <ENAME>BLAKE</ENAME>
          <JOB>MANAGER</JOB>
          <MGR>7839</MGR>
          <HIREDATE>1981-05-01</HIREDATE>
          <SAL>2850</SAL>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7782</EMPNO>
          <ENAME>CLARK</ENAME>
          <JOB>MANAGER</JOB>
          <MGR>7839</MGR>
          <HIREDATE>1981-06-09</HIREDATE>
          <SAL>2450</SAL>
          <DEPTNO>10</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7839</EMPNO>
          <ENAME>KING</ENAME>
          <JOB>PRESIDENT</JOB>
          <HIREDATE>1981-11-17</HIREDATE>
          <SAL>5000</SAL>
          <DEPTNO>10</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7844</EMPNO>
          <ENAME>TURNER</ENAME>
          <JOB>SALESMAN</JOB>
          <MGR>7698</MGR>
          <HIREDATE>1981-09-08</HIREDATE>
          <SAL>1500</SAL>
          <COMM>0</COMM>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7900</EMPNO>
          <ENAME>JAMES</ENAME>
          <JOB>CLERK</JOB>
          <MGR>7698</MGR>
          <HIREDATE>1981-12-03</HIREDATE>
          <SAL>950</SAL>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7902</EMPNO>
          <ENAME>FORD</ENAME>
          <JOB>ANALYST</JOB>
          <MGR>7566</MGR>
          <HIREDATE>1981-12-03</HIREDATE>
          <SAL>3000</SAL>
          <DEPTNO>20</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7934</EMPNO>
          <ENAME>MILLER</ENAME>
          <JOB>CLERK</JOB>
          <MGR>7782</MGR>
          <HIREDATE>1982-01-23</HIREDATE>
          <SAL>1300</SAL>
          <DEPTNO>10</DEPTNO>
        </ROW>
      </ROWSET>
    </ROOT>A couple of comments :
    <li> I handle only four datatypes here (VARCHAR2, NUMBER, DATE, TIMESTAMP). Of course you can add more.
    The list of Oracle Type Number is available here : http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements001.htm#i54330
    Starting with 11g (not sure which release), DBMS_SQL package also declares these numbers through named constants.
    <li> I don't use DBMS_XMLGEN in this example. Instead I rebuild the query using SQL/XML functions and the list of columns that's just been described.

Maybe you are looking for