Edit D:\app\Administrator\product\11.2.0\dbhome_1\apex\core\provision.sql
set define '^' set verify off prompt ...wwv_flow_provisioning Rem Rem SCRIPT ARGUMENTS Rem none Rem Rem INTERNATIONALIZATION Rem unknown Rem Rem MULTI-CUSTOMER Rem unknown Rem Rem SCRIPT ARGUMENTS Rem none Rem Rem RUNTIME DEPLOYMENT: NO Rem Rem MODIFIED (MM/DD/YYYY) Rem mhichwa 02/23/2001 - Created Rem mhichwa 02/25/2001 - Extended Rem mhichwa 02/26/2001 - Improved termination Rem mhichwa 02/27/2001 - Do not create company on request, only on provision Rem mhichwa 02/27/2001 - Added remove by company ID Rem mhichwa 02/28/2001 - Added work_log Rem mhichwa 03/04/2001 - Added make_modification_request Rem mhichwa 03/04/2001 - Added reject service modification request procedure Rem mhichwa 03/04/2001 - Added add schema request Rem mhichwa 03/09/2001 - Added reporting by company Rem mhichwa 03/10/2001 - Modified reporting Rem mhichwa 03/10/2001 - Added reporting by user Rem sdillon 03/22/2001 - Added reset_password Rem sdillon 03/26/2001 - Altered ADD_SCHEMA to take in default & temp ts Rem sdillon 03/26/2001 - Added pre process request for request data in UI Rem sdillon 03/30/2001 - Added install_ and remove_demo Rem sdillon 03/30/2001 - Added reset schema password Rem sdillon 04/02/2001 - Removed remove_demo Rem sdillon 04/03/2001 - Added provision storage by request Rem sdillon 04/04/2001 - Changed auto_provision_company for default db size Rem sdillon 04/17/2001 - Added functions total requests and total open requests Rem sdillon 05/03/2001 - Changed provision_request to take a password. Necessary b/c you cant get Rem the plain-text web_password via sql anymore Rem cbcho 06/27/2002 - Added install_forum_flow and remove_forum_flow Rem cbcho 06/28/2002 - Added install_forum_scripts Rem cbcho 07/16/2002 - Added p_schema to install_forum_scripts Rem cbcho 07/16/2002 - Added p_schema to remove_demo_tables Rem cbcho 07/16/2002 - Added p_schema to install_demo_tables Rem rmattama 08/23/2002 - Added p_security_group_id to make_request and auto_provision_company Rem jstraub 07/24/2003 - Removed report_by_sgid, report_by_current_company and report_by_user since obsolete Rem jstraub 09/25/2003 - Removed instal_demo, install_demo_flow, install_form_flow, remove_demo, remove_demo_flow, Rem remove forum_flow, install_forum_scripts, install_demo_scripts Rem sspadafo 07/29/2004 - Add restricted_schema, site_admin_is_resricted, validate_schema_name functions (Bug 3781714) Rem sspadafo 05/01/2005 - Add p_use_existing parameter to add_schema and add_schema_by_request procedures Rem sspadafo 07/11/2005 - Add p_workspace_name to restricted_schema functions Rem sspadafo 09/15/2005 - Expose create_flow_super_user,create_cookie_based_user for XE provisioning Rem nagkrish 01/04/2007 - Added procedures accept_request, provision_accept_request, delete_accepted_request to enable email verification workspace creation Rem jkallman 02/15/2007 - Added functions get_schemas_by_sgid and get_tablespaces_by_sgid Rem jkallman 02/15/2007 - Add parameters p_drop_users and p_drop_tablespaces to terminate_service_by_sgid create or replace package wwv_flow_provisioning as -- Copyright (c) Oracle Corporation 1999. All Rights Reserved. -- -- DESCRIPTION -- This package provides provisioning and account management services. -- -- SECURITY -- Only available to the internal super user -- -- NOTES -- Oracle platform requires the following for a properly provisioned env. -- -- -- +----------------------+ +--------------------------+ -- | | pcid sgid /| | -- | |--------------------| wwv_flow_company_schemas | -- pcid | wwv_flow_companies | pcid \| | -- +-----------| |------+ +--------------------------+ -- | | | | | schema -- | +----------------------+ | | -- | | | -- | | | -- sgid /|\ /|\sgid /|\ schema -- +----------------------+ +----------------------+ +-----------+ -- | | | | | | -- | wwv_flow_developers | | wwv_flow_fnd_user | | wwv_flows | -- | (privs) | | or wwv_flow_db_auth | | | -- | | | (users) | | | -- +----------------------+ +----------------------+ +-----------+ -- ------------------------------------ -- U T I L I T Y F U N C T I O N S -- procedure create_flow_super_user ( p_user_id in number, p_user_adminid in varchar2, p_security_group_id in number) ; procedure create_cookie_based_user ( p_provision_id in number, p_password in varchar2) ; function site_admin_is_restricted return boolean ; function site_admin_is_restricted_i return integer ; function restricted_schema( p_schema in varchar2, p_workspace_name in varchar2) return boolean ; function restricted_schema_i( p_schema in varchar2, p_workspace_name in varchar2) return integer ; function reserved_schema( p_schema in varchar2) return boolean ; function reserved_schema_i( p_schema in varchar2) return integer ; function validate_schema_name( p_schema in varchar2, p_workspace_name in varchar2) return varchar2 ; function total_service_requests return number ; function total_open_service_requests return number ; function total_change_requests return number ; function total_open_change_requests return number ; ----------------------------- -- D E M O R E Q U E S T S -- procedure install_demo_tables( p_security_group_id in number, p_schema in varchar2 default null) ; procedure remove_demo_tables( p_security_group_id in varchar2, p_schema in varchar2 default null) ; ---------------------------------------------- -- A U T O P R O V I S I O N C O M P A N Y -- procedure auto_provision_company ( p_company_name in varchar2 default null, p_schema_name in varchar2 default null, p_schema_password in varchar2 default null, p_database_size in varchar2 default 'SMALL', p_admin_userid in varchar2 default null, p_admin_password in varchar2 default null, p_admin_first_name in varchar2 default null, p_admin_last_name in varchar2 default null, p_admin_title in varchar2 default null, p_admin_email in varchar2 default null, p_project_description in varchar2 default null, p_security_group_id in varchar2 default null); ---------------------------- -- M A K E R E Q U E S T S -- procedure make_request ( p_COMPANY_NAME in varchar2 default null, p_ADMIN_FIRST_NAME in varchar2 default null, p_ADMIN_LAST_NAME in varchar2 default null, p_ADMIN_TITLE in varchar2 default null, p_ADMIN_EMAIL in varchar2 default null, p_ADMIN_PHONE in varchar2 default null, p_ADMIN_USERID in varchar2 default null, p_COMPANY_ADDRESS in varchar2 default null, p_CITY in varchar2 default null, p_STATE in varchar2 default null, p_ZIP in varchar2 default null, p_COUNTRY in varchar2 default null, p_COMPANY_TYPE in varchar2 default null, p_COMPANY_WEB_SITE in varchar2 default null, p_NUMBER_OF_EMPLOYEES in varchar2 default null, p_COMPANY_PHONE in varchar2 default null, p_COMPANY_FAX in varchar2 default null, p_ORACLE_PARTNER in varchar2 default null, p_HOW_DID_YOU_HEAR_ABOUT_US in varchar2 default null, p_SERVICE_USE_STATUS in varchar2 default null, p_DATABASE_SIZE in varchar2 default null, p_SERVICE_START_DATE in varchar2 default null, p_SERVICE_TERMINATION_DATE in varchar2 default null, p_SCHEMA_NAME in varchar2 default null, p_ESTIMATED_END_USERS in varchar2 default null, p_PAGE_VIEWS_PER_DAY in varchar2 default null, p_project_description in varchar2 default null, p_project_justification in varchar2 default null, p_security_group_id in varchar2 default null); ----------------------------------------- -- P R E P R O C E S S R E Q U E S T -- procedure pre_process_request ( p_id in number) ; ------------------------------------ -- P R O V I S I O N R E Q U E S T -- procedure provision_request ( p_id in number, p_password in varchar2, p_admin_password in varchar2) ; ------------------------------------ -- A C C E P T R E Q U E S T -- procedure accept_request ( p_id in number) ; ----------------------------------------------------- -- P R O V I S I O N A C C E P T E D R E Q U E S T -- procedure provision_accept_request ( p_id in number, email_id in varchar2, p_password in varchar2, p_admin_password in varchar2) ; ------------------------------------------------- -- D E L E T E A C C E P T E D R E Q U E S T -- procedure delete_accepted_request ( p_id in number) ; ------------------------------------ -- D E N Y R E Q U E S T -- procedure deny_request ( p_id in number) ; ------------------------------------ -- T E R M I N A T E S E R V I C E -- procedure terminate_service ( p_id in number) ; procedure terminate_service_by_sgid ( p_security_group_id in number, p_drop_users in varchar2 default 'N', p_drop_tablespaces in varchar2 default 'N') ; ------------------------------------------------- -- D E L E T E P R O V I S I O N R E Q U E S T -- procedure delete_provision_request ( p_id in number) ; ---------------------------------------------------- -- M A K E M O D I F I C A T I O N R E Q U E S T -- procedure make_modification_request ( p_security_group_id in number default wwv_flow_security.g_security_group_id, p_service_name in varchar2, p_service_attribute_1 in varchar2 default null, p_service_attribute_2 in varchar2 default null, p_service_attribute_3 in varchar2 default null, p_service_attribute_4 in varchar2 default null, p_service_attribute_5 in varchar2 default null, p_service_attribute_6 in varchar2 default null, p_service_attribute_7 in varchar2 default null, p_service_attribute_8 in varchar2 default null) ; procedure reject_modification_request ( p_request_id in number) ; procedure delete_modification_request ( p_request_id in number) ; ------------------------------------- -- S C H E M A M O D I F I C A T I O N S -- -- p_security_group_id = identifies company -- p_schema_name = identifies the new schema to be created -- p_db_size = megabytes -- procedure add_schema_by_request ( p_request_id in number, p_use_existing in boolean default false) ; procedure add_schema ( p_request_id in number, p_security_group_id in number, p_schema_name in varchar2, p_default_ts in varchar2, p_temporary_ts in varchar2, p_use_existing in boolean default false) ; procedure remove_schema ( p_security_group_id in number, p_schema_name in varchar2) ; procedure remove_schema_by_request ( p_request_id in number) ; procedure provision_storage_by_request ( p_request_id in number) ; function reset_password ( p_company in varchar2, p_username in varchar2, p_size in number default 6) return varchar2 ; function reset_schema_password ( p_schema in varchar2, p_size in number default 6) return varchar2 ; -- -- For a given security_group_id, return a delimited list of workspace schemas -- function get_schemas_by_sgid ( p_security_group_id in number, p_separator in varchar2 default null ) return varchar2 ; -- -- For a given security_group_id, return a delimited list of default tablespaces -- associated with the workspace schemas -- function get_tablespaces_by_sgid ( p_security_group_id in number, p_separator in varchar2 default null ) return varchar2 ; end wwv_flow_provisioning; / show errors
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de