DBA Data[Home] [Help]

PACKAGE: XDB.DBMS_XDBREPOS

Source


1 PACKAGE     dbms_xdbrepos AUTHID CURRENT_USER IS
2 
3   ---------------------------------------------
4   --  OVERVIEW
5   --
6   --  This package provides procedures to
7   --  (*) create a self-contained repository
8   --  (*) delete a previously registered repository
9   --  (*) alter a previously created repository
10   --
11   ---------------------------------------------
12 
13 ------------
14 -- CONSTANTS
15 --
16 ------------
17 ACL_SECURITY        CONSTANT NUMBER := 1;
18 EVENTS              CONSTANT NUMBER := 2;
19 VERSIONING          CONSTANT NUMBER := 4;
20 CONFIG_FILE         CONSTANT NUMBER := 8;
21 DOCUMENT_LINKS      CONSTANT NUMBER := 16;
22 NFS_LOCKS           CONSTANT NUMBER := 32;
23 
24 FULL_FEATURED       CONSTANT NUMBER := 63;
25 
26 -------------
27 -- DEBUG MODE
28 --
29 -------------
30 DEBUG_MODE          NUMBER := 0;
31 
32 ---------------------------------------------
33 -- FUNCTION - CreateRepository
34 --     Creates a self-contained repository
35 -- PARAMETERS -
36 --  reposOwner
37 --     Owner of repository (database user)
38 --  reposName
39 --     Name of repository (same restrictions as table names)
40 --  reposOptions
41 --     Repository configuration options
42 ---------------------------------------------
43 PROCEDURE CreateRepository(reposOwner IN VARCHAR2,
44                   reposName IN VARCHAR2,
45                   reposOptions IN PLS_INTEGER);
46 
47 ---------------------------------------------
48 -- FUNCTION - DropRepository
49 --     Drops repository and contents
50 -- PARAMETERS -
51 --  reposOwner
52 --     Owner of repository (database user)
53 --  reposName
54 --     Name of repository (same restrictions as table names)
55 ---------------------------------------------
56 PROCEDURE DropRepository(reposOwner IN VARCHAR2,
57                   reposName IN VARCHAR2);
58 
59 ---------------------------------------------
60 -- FUNCTION - SetCurrentRepository
61 --     Sets current repository for all subsequent resource
62 --     operations
63 -- PARAMETERS -
64 --  reposOwner
65 --     Owner of repository (database user)
66 --  reposName
67 --     Name of repository (same restrictions as table names)
68 ---------------------------------------------
69 PROCEDURE SetCurrentRepository(reposOwner IN VARCHAR2,
70                   reposName IN VARCHAR2);
71 
72 ---------------------------------------------
73 -- FUNCTION - MountRepository
74 --     Mounts specified repository at a given path in
75 --     source repository
76 -- PARAMETERS -
77 --  parentReposOwner
78 --     Owner of destination repository (database user)
79 --  parentReposName
80 --     Name of destination repository (same restrictions as table names)
81 --  parentMntPath
82 --     Path in the destination repository where mounting should occur
83 --  mountedReposOwner
84 --     Owner of source repository (database user)
85 --  mountedReposName
86 --     Name of source repository (same restrictions as table names)
87 --  mountedPath
88 --     Path in the source repository to mount
89 ---------------------------------------------
90 PROCEDURE MountRepository(parentReposOwner IN VARCHAR2,
91                   parentReposName IN VARCHAR2,
92                   parentMntPath IN VARCHAR2,
93                   mountedReposOwner IN VARCHAR2,
94                   mountedReposName IN VARCHAR2,
95                   mountedPath IN VARCHAR2  );
96 
97 ---------------------------------------------
98 -- FUNCTION - UnMountRepository
99 --     Unmounts repository from specified path
100 -- PARAMETERS -
101 --  parentReposOwner
102 --     Owner of destination repository (database user)
103 --  parentReposName
104 --     Name of destination repository (same restrictions as table names)
105 --  mountPath
106 --     Mount path in the destination repository to be removed
107 ---------------------------------------------
108 PROCEDURE UnMountRepository(parentReposOwner IN VARCHAR2,
109                   parentReposName IN VARCHAR2,
110                   mountPath IN VARCHAR2  );
111 
112 PROCEDURE Install_Repos(schema IN VARCHAR2, tables IN
113                         XDB$STRING_LIST_T);
114 PROCEDURE Drop_Repos(schema IN VARCHAR2, tables IN
115                      XDB$STRING_LIST_T);
116 end dbms_xdbrepos;