MINI MINI MANI MO
--
-- THE FUNCTIONS, PACKAGES AND TYPES SUPPLIED BY THIS PACKAGE AND ITS EXTERNAL
-- INTERFACE ARE RESERVED BY ORACLE AND ARE SUBJECT TO CHANGE IN FUTURE
-- RELEASES.
-- THIS PACKAGE MUST NOT BE MODIFIED BY THE CUSTOMER. DOING SO
-- COULD CAUSE INTERNAL ERRORS AND SECURITY VIOLATIONS IN THE DBMS.
--
Rem
Rem $Header: ordim/src/server/sql/dcm/ordcrpsp.sql /main/10 2017/07/31 20:13:42 smavris Exp $
Rem
Rem ordcrpsp.sql
Rem
Rem Copyright (c) 2006, 2017, Oracle and/or its affiliates.
Rem All rights reserved.
Rem
Rem NAME
Rem ordcrpsp.sql - Ord c(Dicom) r(repository) p (package) sp(spec)
Rem
Rem DESCRIPTION
Rem Defines an invoker rights package ORDSYS.ORD_DICOM_ADMIN
Rem This package provide the admin interface for the dicom repository.
Rem NOTES
Rem
Rem MODIFIED (MM/DD/YY)
Rem smavris 07/24/17 - Remove undocumented import and exportDataModel
Rem smavris 03/26/13 - XbranchMerge smavris_bug-16473669 from
Rem st_ordim_12.1.0
Rem smavris 03/15/13 - Common start and end scripts
Rem myalavar 03/25/09 - remove csid from importdatamodel
Rem myalavar 02/23/09 - add zip file to import/exportDataModel
Rem myalavar 02/05/09 - schema qualify names
Rem myalavar 01/06/08 - add exportDataModel
Rem myalavar 01/06/08 - add importDataModel
Rem myalavar 09/11/08 - add generateTagListDoc()
Rem myalavar 09/20/06 - abortDataModel -> rollbackDataModel
Rem myalavar 07/11/06 - remove updateDocument
Rem myalavar 07/11/06 - add abortDataModel
Rem myalavar 04/04/06 - dicom repos package spec
Rem myalavar 04/04/06 - Created
Rem
@@?/rdbms/admin/sqlsessstart.sql
create or replace package ORDSYS.ORD_DICOM_ADMIN
authid current_user
AS
--
-- public constants
--
DT_URL CONSTANT VARCHAR2(700) := 'xmlns:dt="http://xmlns.oracle.com/ord/dicom/datatype_1_0"';
STORED_TAGLIST_DOC_SET CONSTANT VARCHAR2(64) :='USER';
DMDL_DOC_SET CONSTANT VARCHAR2(64) :='USER';
--==============================================================================
--loads a single document of the specified docType into repos
-- docName must be unique
--==============================================================================
PROCEDURE insertDocument(
docName IN VARCHAR2,
docType IN VARCHAR2,
xmlDoc XMLTYPE
);
--==============================================================================
-- return the configuration document as an XMLType.
--docName uniquely identfies the document
--==============================================================================
FUNCTION getDocumentContent(docName IN VARCHAR2) return XMLTYPE;
--==============================================================================
-- export the document to a file specfied by fileName in the location specfied
-- by dirName is the directory object created by
-- create or replace directory command
-- the dirName must match the name listed in all_directories
--==============================================================================
PROCEDURE exportDocument(
docName IN VARCHAR2,
dirName IN VARCHAR2,
fileName IN VARCHAR2
);
--==============================================================================
-- Documents installed by Oracle cannot be removed
--delete of dictionary documents is not supported in this release
--==============================================================================
PROCEDURE deleteDocument(docName IN VARCHAR2 ) ;
--==============================================================================
-- Starts the data model edits , locks the data model
--==============================================================================
PROCEDURE editDataModel;
--==============================================================================
-- Commits changes and publishes the new data model
-- unlocks the data model
--==============================================================================
PROCEDURE publishDataModel;
--==============================================================================
-- aborts the changes to the data model
-- unlocks the data model
--==============================================================================
PROCEDURE rollbackDataModel;
--==============================================================================
-- Generates the STORED_TAG_LIST document as an XMLType
-- for the specified set of constraint and mapping documents in the repository
-- Useful for keeping the STORED_TAG_LIST in sync with the repos docs
-- args: docSet: the allowed values are 'ALL', 'ORACLE' 'USER'
-- The default value 'USER' is represented by the constant
-- STORED_TAGLIST_DOC_SET
--
--==============================================================================
FUNCTION generateTagListDocument(docSet in varchar2 default STORED_TAGLIST_DOC_SET)
return XMLType;
--==============================================================================
END ORD_DICOM_ADMIN;
/
show errors;
@?/rdbms/admin/sqlsessend.sql
OHA YOOOO