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