Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. set define off
  2. set verify off
  3. set serveroutput on size 1000000
  4. set feedback off
  5. WHENEVER SQLERROR EXIT SQL.SQLCODE ROLLBACK
  6. begin wwv_flow.g_import_in_progress := true; end;
  7. /
  8.  
  9. -- AAAA PPPPP EEEEEE XX XX
  10. -- AA AA PP PP EE XX XX
  11. -- AA AA PP PP EE XX XX
  12. -- AAAAAAAAAA PPPPP EEEE XXXX
  13. -- AA AA PP EE XX XX
  14. -- AA AA PP EE XX XX
  15. -- AA AA PP EEEEEE XX XX
  16. begin
  17. select value into wwv_flow_api.g_nls_numeric_chars from nls_session_parameters where parameter='NLS_NUMERIC_CHARACTERS';
  18. execute immediate 'alter session set nls_numeric_characters=''.,''';
  19. end;
  20. /
  21. -- Workspace, user group, user and team development export
  22. -- Generated 2016.12.08 21:16:43 by SYSTEM
  23. -- This script can be run in sqlplus as the owner of the Oracle Apex owner.
  24. begin
  25. wwv_flow_api.set_security_group_id(p_security_group_id=>4820315015320831);
  26. end;
  27. /
  28. ----------------
  29. -- W O R K S P A C E
  30. -- Creating a workspace will not create database schemas or objects.
  31. -- This API creates only the meta data for this APEX workspace
  32. prompt Creating workspace 2016-11-12...
  33. begin
  34. wwv_flow_fnd_user_api.create_company (
  35. p_id => 4820400539320930,
  36. p_provisioning_company_id => 4820315015320831,
  37. p_short_name => '2016-11-12',
  38. p_first_schema_provisioned => '2016-11-12',
  39. p_company_schemas => '2016-11-12',
  40. p_expire_fnd_user_accounts => '',
  41. p_account_lifetime_days => '',
  42. p_fnd_user_max_login_failures => '',
  43. p_allow_plsql_editing => 'Y',
  44. p_allow_app_building_yn => 'Y',
  45. p_allow_sql_workshop_yn => 'Y',
  46. p_allow_websheet_dev_yn => 'Y',
  47. p_allow_team_development_yn => 'Y',
  48. p_allow_to_be_purged_yn => 'Y',
  49. p_source_identifier => '2016-11-',
  50. p_builder_notification_message => '');
  51. end;
  52. /
  53. ----------------
  54. -- G R O U P S
  55. --
  56. prompt Creating Groups...
  57. ----------------
  58. -- U S E R S
  59. -- User repository for use with apex cookie based authenticaion.
  60. --
  61. prompt Creating Users...
  62. begin
  63. wwv_flow_fnd_user_api.create_fnd_user (
  64. p_user_id => '4820210153320831',
  65. p_user_name => 'SYSTEM',
  66. p_first_name => '',
  67. p_last_name => '',
  68. p_description => '',
  69. p_email_address=> '',
  70. p_web_password => '47B4C63B876FCD36557CDE998A064FC5',
  71. p_web_password_format => 'HEX_ENCODED_DIGEST_V2',
  72. p_group_ids => '',
  73. p_developer_privs=> 'ADMIN:CREATE:DATA_LOADER:EDIT:HELP:MONITOR:SQL',
  74. p_default_schema=> '2016-11-12',
  75. p_account_locked=> 'N',
  76. p_account_expiry=> to_date('201611121138','YYYYMMDDHH24MI'),
  77. p_failed_access_attempts=> 0,
  78. p_change_password_on_first_use=> 'N',
  79. p_first_password_use_occurred=> 'N',
  80. p_allow_app_building_yn=> 'Y',
  81. p_allow_sql_workshop_yn=> 'Y',
  82. p_allow_websheet_dev_yn=> 'Y',
  83. p_allow_team_development_yn=> 'Y',
  84. p_allow_access_to_schemas => '');
  85. end;
  86. /
  87. prompt Check Compatibility...
  88. begin
  89. -- This date identifies the minimum version required to import this file.
  90. wwv_flow_team_api.check_version(p_version_yyyy_mm_dd=>'2010.05.13');
  91. end;
  92. /
  93.  
  94. begin wwv_flow.g_import_in_progress := true; wwv_flow.g_user := USER; end;
  95. /
  96.  
  97. --
  98. prompt ...news
  99. --
  100. begin
  101. null;
  102. end;
  103. /
  104. --
  105. prompt ...links
  106. --
  107. begin
  108. null;
  109. end;
  110. /
  111. --
  112. prompt ...bugs
  113. --
  114. begin
  115. null;
  116. end;
  117. /
  118. --
  119. prompt ...events
  120. --
  121. begin
  122. null;
  123. end;
  124. /
  125. --
  126. prompt ...features
  127. --
  128. begin
  129. null;
  130. end;
  131. /
  132. --
  133. prompt ...tasks
  134. --
  135. begin
  136. null;
  137. end;
  138. /
  139. --
  140. prompt ...feedback
  141. --
  142. begin
  143. null;
  144. end;
  145. /
  146. --
  147. prompt ...task defaults
  148. --
  149. begin
  150. null;
  151. end;
  152. /
  153. commit;
  154. begin
  155. execute immediate 'begin dbms_session.set_nls( param => ''NLS_NUMERIC_CHARACTERS'', value => '''''''' || replace(wwv_flow_api.g_nls_numeric_chars,'''''''','''''''''''') || ''''''''); end;';
  156. end;
  157. /
  158. set verify on
  159. set feedback on
  160. prompt ...done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement