August 2011
Intermediate to advanced
416 pages
10h 14m
English
Another useful operation in XML DB Repository is to create links. The following example creates a folder in XML DB Repository and adds resources to this folder by linking to the existing resources (create_file_link.sql):
Listing 3-9 Creating Links in XML DB Repository
CALL create_path_proc(‘/public/chp03/event/xmlbook_ann/contacts’, 2);
DECLARE
v_res BOOLEAN;
BEGIN
DBMS_XDB.link(‘/public/contact/xml/john_smith.xml’,
‘/public/chp03/event/xmlbook_ann/contacts’, ‘john_smith.xml’);
END;
/
COMMIT;
We can check the created link using the following SQL query (check_created_links.sql):
Listing 3-10 Listing Resources in an XML DB Repository Directory
SELECT path FROM PATH_VIEW
WHERE ...
Read now
Unlock full access