Code Listing 3: Changing the metadata in the RESOURCE_VIEW

update resource_view
   set res = updateXml(res,'/Resource/Owner/text()','&1')
where under_path(res,'/home') = 1
and existsNode(res,'/Resource[DisplayName="&1"]') = 1
/
update resource_view
   set res = updateXml(res,'/Resource/Owner/text()','&1')
where under_path(res,'/home/&1') = 1
and existsNode(res,'/Resource[DisplayName="questions"]') = 1
/
update resource_view
   set res = updateXml(res,'/Resource/Owner/text()','&1')
where under_path(res,'/home/&1') = 1
and existsNode(res,'/Resource[DisplayName="surveys"]') = 1
/
-- etc...
commit;

E-mail this page
Printer View Printer View
Oracle Is The Information Company About Oracle | Oracle RSS Feeds | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Privacy