Getting Metadata of previous versions
Hi ,
I have a requirement to store various versions of an XML using oracle Xml db. I also have some custom metadata which is associated to each version of the file.
We are having problems when updating the metadata.
We tried using DBMS_XDB.UPDATERESOURCEMETADATA but the metadata was not updated , only the version of the xml was incrementing.
Can some one help on the usage of "DBMS_XDB.UPDATERESOURCEMETADATA"
I would also like to know how to access the metadata of previous versions of xml.
Any information regarding these would be helpful.
probably doesn't help you anymore but might help others...?
-- Example by Mark D Drake, Oracle, OTN Developer Days
SQL> call dbms_xdb.deleteResource('/public/testcase.txt')
2 /
Call completed.
SQL> declare
2 targetPath VARCHAR2(256) := '/public/testcase.txt';
3 result BOOLEAN;
4 resid DBMS_XDB_VERSION.RESID_TYPE;
5 token VARCHAR2(4000);
6 begin
7 result := DBMS_XDB.createResource(targetPath,'This is the original Content');
8 result := DBMS_XDB.lockResource(targetPath,FALSE,FALSE);
9 resid := DBMS_XDB_VERSION.makeVersioned(targetPath);
10 DBMS_XDB_VERSION.checkout(targetPath);
11
12 update RESOURCE_VIEW set RES = updateXML(
13 RES,
14 '/Resource/Contents/text/text()',
15 'This is the new Content')
16 where equals_path(res,targetPath) = 1;
17
18 resid := DBMS_XDB_VERSION.checkin(targetPath);
19 DBMS_XDB.getLockToken(targetPath,token);
20 result := DBMS_XDB.unlockResource(targetPath,token);
21 end;
22 /
PL/SQL procedure successfully completed.
SQL> select xdburitype('/public/testcase.txt').getClob() from dual
2 /
XDBURITYPE('/PUBLIC/TESTCASE.TXT').GETCLOB()
This is the new Content
SQL> create or replace type VERSION_HISTORY as table of XMLTYPE
2 /
Type created.
SQL> create or replace function getVersionHistory(path VARCHAR2)
2 return XMLSEQUENCETYPE pipelined
3 as
4 RESOURCE_ID RAW(16);
5 RES XMLTYPE;
6 SOURCE_LIST DBMS_XDB_VERSION.RESID_LIST_TYPE;
7 begin
8 select RES, RESID
9 into RES, RESOURCE_ID
10 from resource_view
11 where equals_path(res,path) = 1;
12 pipe row (RES);
13 SOURCE_LIST := DBMS_XDB_VERSION.GETPREDECESSORS(PATH);
14 while SOURCE_LIST.COUNT > 0 loop
15 pipe row (DBMS_XDB_VERSION.getResourceByResid(SOURCE_LIST(1)));
16 SOURCE_LIST := DBMS_XDB_VERSION.GETPREDSBYRESID(SOURCE_LIST(1));
17 end loop;
18 return;
19 end;
20 /
Function created.
SQL> select det.*
2 from TABLE(getVersionHistory('/public/testcase.txt')) vh,
3 XMLTABLE
4 (
5 xmlNamespaces(default 'http://xmlns.oracle.com/xdb/XDBResource.xsd' ),
6 '/Resource'
7 passing value(vh)
8 columns
9 VERSION_NO NUMBER(3) PATH '@VersionID',
10 DATE_CREATED TIMESTAMP(6) PATH 'CreationDate',
11 DATE_MODIFIED TIMESTAMP(6) PATH 'ModificationDate',
12 CONTENT CLOB PATH 'Contents/text/text()'
13 ) det
14 /
VERSION_NO
DATE_CREATED
DATE_MODIFIED
CONTENT
2
06-MAY-11 07.00.53.537000 PM
06-MAY-11 07.00.53.561000 PM
This is the new Content
VERSION_NO
DATE_CREATED
DATE_MODIFIED
CONTENT
1
06-MAY-11 07.00.53.537000 PM
06-MAY-11 07.00.53.537000 PM
This is the original Content
http://www.liberidu.com/blog/?p=2850
Similar Messages
-
I am trying to download the new CS6 Design Suite - not able to get past the previous version.
I am trying to downloat the new CS6 Design Suite and am not able to get past the previous version menu. Getting the message "This serial number is not for a qualifying product. Please try another." How do I get past this?
When you say "Download" do you actually mean install?
Which version are you upgrading from?
Could you try the solutions in the following article: http://helpx.adobe.com/creative-suite/kb/error-serial-number-qualifying-product.html.
Let us know if it helps. -
Where can I get documentation for previous version of APEX?
We are currently using APEX version 3.0.1.00.08, where can I get the documenation for this version from?
I can only seem to find documentation for version 3.2.Prior Release Archive
-
Version 4 is awful, I hate it and will NOT use it.
Firefox is highly customizable and you may be able to customize it to meet your needs.
If you do not like the new UI, you can make Firefox 4 look and behave more like Firefox 3.6, for details see http://www.computertechtips.net/64/make-firefox-4-look-like-ff-3-6
To downgrade to Firefox 3.6 first uninstall Firefox 4, but do not select the option to "Remove my Firefox personal data". If you select that option it will delete your bookmarks, passwords and other user data.
You can then install the latest version of Firefox 3.6 available from http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your current bookmarks, passwords etc.
To avoid possible problems with downgrading, I recommend going to your profile folder and deleting the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Deleting these files will force Firefox to rebuild the list of installed extensions, checking their compatibility, and reset toolbar customizations.
For details of how to find your profile folder see https://support.mozilla.com/kb/Profiles -
How to get all previous versions page contents and other field values of a publishing page using SharePoint Client Object Model 2010?
Thanks,
OsmitaHi Osmita,
Greetings.
Here are the links that helps you. It has code attached to it.
http://social.technet.microsoft.com/Forums/sharepoint/en-US/a0d2ab40-99ba-4368-8505-1dc559ef6469/get-content-of-previous-version-of-page-sharepoint-2010?forum=sharepointgeneralprevious
http://social.technet.microsoft.com/Forums/sharepoint/en-US/faaf419f-997e-4150-9911-48cc375c3b46/how-to-get-previous-published-versions-of-publishing-pages-in-sharepoint-2010?forum=sharepointdevelopmentprevious
Please remember to click 'Mark as Answer' on the answer if it helps you -
How come the new itunes 11 is so bad? I need to force quit every 10 mn as it buggs all the time for no reasons (for ex. when I search a song beginning by "a"): Moreover, the search engine is not reliable at all, the Genius application is dead, the tracks disappear, the duplicate function is acting silly etc
So please any tip to get rid of this technological accident and get back the previous version?
Thanks.This article will walk you through it
http://www.emacconsulting.com/apple/itunes/downgrade-itunes-11-to-itunes-10-7/ -
today i made the mistake of downloading the update for itunes, 12 26 12, not realizing i would lose the choice to also burn my purchased music to a cd as well as the nano. can anyone tell me how to get back my previous version so I may continue to make my cds that I play in my vehicle. are there steps I can take to be able to transfer the purchased music to another exterior drive where I can then burn it to a cd, besides the nano? as my name indicates I am just getting too old to keep up with all these changes..
https://discussions.apple.com/thread/4572096?start=0&tstart=0
As for moving you itunes library, just copy the entier iTunes storage folder to the exterior drive. user/MyDocuments/Music/iTunes -
Help me please how to get and install previous version of of ios (6.1 or 6.1.3) thank yoy
You cannot. Apple does not support downgrading of iOS, there is no supported method to do this.
-
HT4972 How can I get & install previous version of IOS
How can I get & install previous version of IOS
There is no legit way to do this at all
-
I notice on the Help files that I am not alone in having problems with FF5. I have tried running in Safe Mode and am now stuck in this mode! Nothing including re-booting will shift it. PLEASE - how do I get back to previous version - 4.nn
First of all fix your starting in safe mode problem
* Firefox is stuck in Safe Mode | Troubleshooting | Firefox Help<br>https://support.mozilla.com/kb/Firefox%20is%20stuck%20in%20Safe%20Mode
What you notice in Questions are problems that people ask for help with. Often there are solutions to those problems that do not involve going back to an earlier version. But without details of your problem one can only provide the information you ask for which is ''how to go back to a previous version''.
'''For those that really need an earlier version of Firefox''', find your system and the Firefox version you want in releases, download and start the install.
* ftp://ftp.mozilla.org/pub/firefox/releases/
When reinstalling Firefox from a download, Firefox must be down once the installation starts. When the installation finishes, don't let the install start firefox for you. Instead end the install and start Firefox in your normal manner, thus preventing creating a new profile which does not have your bookmarks cookies, etc (but your old profile would still be around and would).
You can make Firefox 4.0.1 and '''Firefox 5.0''' look like Firefox 3.6.17, see numbered items 1-10 in the following topic
*[http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6)]
If an extension worked in Firefox 4.0, it should be working in Firefox 5.0 as well.
* [http://blog.mozilla.com/addons/2011/05/21/firefox-5-compatibility-bump/ Firefox 5 Compatibility Bump]
You can force 5.0 "compatibility" with the "[https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/ Compatibility Reporter]" extension, or with [http://kb.mozillazine.org/Extensions.checkCompatibility extensions.checkCompatibility] using about:config. ''Use at your own risk.''
'''Keep your extensions up to date''', don't wait for a Firefox update and then try to do everything after the Firefox update.
'''Research your''' extensions, some may have updates, some may be found in the developer comments or user comments on the add-on, or on the "'''View all versions'''" link which is part of the Release notes at the bottom of the add-on page.
[https://addons.mozilla.org/firefox/addon/is-it-compatible/ '''Is It Compatible?''' :: Add-ons for Firefox], Are your add-ons compatible with the next version of Firefox? Find out straight from the Add-ons window! -
How do I get my photos from a previous version of Photoshop Elements (6) into Photoshop Elements 12? Do I restore from a backup? I have over 12,000 pics ( a good portion with multiple versions) and don't want to lose captions and metadata. Thank you in advance for your help.
If this is on the same computer just install PSE 12. It should find your old catalog and upgrade it to PSE 12. If for some reason it doesn't, then go to file>manage catalogs, find your old catalog and tell PSE 12 to convert it.
If this is a new computer, then yes, full backup and restore. -
In previous versions of i Tunes I could highlight a song in my library and a genious list would show on the right side of the screen listing songs that were like the one highlighted. Now I do not get that list. Is there a way to get that back?
Hi again Bob,
I believe I've found the feature you were speaking about now. Information on the "In the Store" feature of iTunes can be found here:
Apple - iTunes - Inside iTunes - Using In the Store from within your iTunes Library.
http://www.apple.com/itunes/inside-itunes/2013/01/using-in-the-store-from-within -your-itunes-library.html
Thanks for using the Apple Support Communities. Have a good one!
-Braden -
I am trying to update to iTunes 10 to us my new iPad, but I can not remove a corrupted? "apple software update" program... I can get everything else off, but due to "previous version" of software update it will not continue.
I stopped in to see one of the genius at the local store who referred me to "Windows Installer 4.5 Redistributable" (I am trying to install it on a Windows XP System)
The last version on iTunes on my PC was iTunes 7.
Thanks for your help,
Julia from WoodridgeUnfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any Apple Software Update entries and click "Remove".
Quit out of CleanUp, restart the PC and try installing iTunes again. Does the install go through properly now?
(If you do find a clean download site for the correct version of CleanUp, please don't tell me where it is. Without wishing to sound paranoid (although I grant it does sound paranoid), there is a non-zero chance that posting links to download locations for the utility here at Discussions leads to that download location being shut down.) -
When I try to open video files purchased through iTunes in Quicktime, I get the message: 'Error 23132: an unknown error occurred. This never happened until I updated iTunes, but when I try to go back to the previous version, I still get the message. It is more convenient for me to play videos in Quicktime since iTunes is such a memory hog. Please help.
You may get better results if you switch to this alternate version: iTunes for Windows (64-bit - for older video cards) and, if needed, reinstall QuickTime. The new (nearly) all 64-bit version doesn't seem to play well with QuickTime. Perhaps if DRM authentication is required QuickTime needs to be able to see something that is part of the older 32-bit code.
tt2 -
Hi I use CA Internet Security Suite which checks ALL pages and searches, but it does not work with this version, also I wish to use Goggle Toolbar which ALSO does not work with this version where can I get the previous version? As my harddrive crashed I have had to install windows 7 and this version doesn't seem to allow me to change my homepage, why is this? Cheers Ernest
You can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html
Mozilla are working to prevent Mac users with non-compatible systems from getting the notification about Firefox 4, and also not displaying the "Download Firefox 4" button on http://www.mozilla.com
Maybe you are looking for
-
Is it possible, when setting Photoshop Elements as the external editor in iPhoto, to have Raw files open in Adobe Camera Raw? I tried this for a friend today and the Raw file opened in the Editor Window. We worked around this by first exporting the
-
Extra row in input template in BPS
hI EXPERTS Our business is shared by our company(referred to as 'internal') and some partners(referred to as External). we use web template reporting..so all web reports we have show data on internal and external business.So even in planning reports
-
Can I execute a program (like embedding browser) in J2ME program?
Excuse me~ can I use any function to execute embedding browser on the cell phone in a midlet? thanks for reply.
-
Activation of CS2 on a new computer
I like to deactivate CS2 on my old computer and transfer the activation to a new one. This does not work as it is presented in the program. The Adobe server has presumably changed its address or something. Anyone who knows how to do this? BR Gunnar
-
My lightroom 6 trial consistantly says LR is downloading but it never does
my lightroom 6 trial consistantly says LR is downloading but it never does, any solutions. thanks