@@ -23,25 +23,30 @@ The script assumes that either the image, `container-registry.oracle.com/middlew
23
23
24
24
```
25
25
$ ./create-rcu-schema.sh -h
26
- usage: ./create-rcu-schema.sh -s <schemaPrefix> -t <rcuType > -d <dburl> -i <image> -s <dockerstore> [-h]
26
+ usage: ./create-rcu-schema.sh -s <schemaPrefix> -t <schemaType > -d <dburl> -i <image> -u <imagePullPolicy> -p <docker-store> -n <namespace> -q <sysPassword> -r <schemaPassword> -o <rcuOutputDir> [-h]
27
27
-s RCU Schema Prefix (required)
28
28
-t RCU Schema Type (optional)
29
- Supported values: fmw(default),soa,osb,soaosb,soaess,soaessosb
29
+ (supported values: fmw(default), soa, osb, soaosb, soaess, soaessosb)
30
30
-d RCU Oracle Database URL (optional)
31
31
(default: oracle-db.default.svc.cluster.local:1521/devpdb.k8s)
32
- -p Fmw Infrastructure ImagePull Secret (optional)
33
- (default: docker-store )
34
- -i Fmw Infrastructure Image (optional)
32
+ -p FMW Infrastructure ImagePullSecret (optional)
33
+ (default: none )
34
+ -i FMW Infrastructure Image (optional)
35
35
(default: container-registry.oracle.com/middleware/fmw-infrastructure:12.2.1.4)
36
+ -u FMW Infrastructure ImagePullPolicy (optional)
37
+ (default: IfNotPresent)
38
+ -n Namespace for RCU pod (optional)
39
+ (default: default)
40
+ -q password for database SYSDBA user. (optional)
41
+ (default: Oradoc_db1)
42
+ -r password for all schema owner (regular user). (optional)
43
+ (default: Oradoc_db1)
44
+ -o Output directory for the generated YAML file. (optional)
45
+ (default: rcuoutput)
36
46
-h Help
37
47
38
48
$ ./create-rcu-schema.sh -s domain1
39
-
40
- ImagePullSecret[docker-store] Image[container-registry.oracle.com/middleware/fmw-infrastructure:12.2.1.4] dburl[oracle-db.default.svc.cluster.local:1521/devpdb.k8s]
41
- [oracle-db-54667dfd5f-76sxf] already initialized ..
42
- Checking Pod READY column for State [1/1]
43
- NAME READY STATUS RESTARTS AGE
44
- oracle-db-54667dfd5f-76sxf 1/1 Running 0 5m1s
49
+ ImagePullSecret[none] Image[container-registry.oracle.com/middleware/fmw-infrastructure:12.2.1.4] dburl[oracle-db.default.svc.cluster.local:1521/devpdb.k8s] rcuType[fmw]
45
50
pod/rcu created
46
51
[rcu] already initialized ..
47
52
Checking Pod READY column for State [1/1]
@@ -50,67 +55,68 @@ NAME READY STATUS RESTARTS AGE
50
55
rcu 1/1 Running 0 6s
51
56
NAME READY STATUS RESTARTS AGE
52
57
rcu 1/1 Running 0 11s
53
- CLASSPATH=/usr/java/jdk1.8.0_211 /lib/tools.jar:/u01/oracle/wlserver/modules/features/wlst.wls.classpath.jar:
58
+ CLASSPATH=/u01/jdk /lib/tools.jar:/u01/oracle/wlserver/modules/features/wlst.wls.classpath.jar:
54
59
55
- PATH=/u01/oracle/wlserver/server/bin:/u01/oracle/wlserver/../oracle_common/modules/thirdparty/org.apache.ant/1.9.8 .0.0/apache-ant-1.9.8 /bin:/usr/java/jdk1.8.0_211/ jre/bin:/usr/java/jdk1.8.0_211/ bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/java/default/ bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin:/u01/oracle/container-scripts :/u01/oracle/wlserver/../oracle_common/modules/org.apache.maven_3.2.5/bin
60
+ PATH=/u01/oracle/wlserver/server/bin:/u01/oracle/wlserver/../oracle_common/modules/thirdparty/org.apache.ant/1.10.5 .0.0/apache-ant-1.10.5 /bin:/u01/jdk/ jre/bin:/u01/jdk/ bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/u01/jdk/ bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin:/u01/oracle:/u01/oracle/wlserver/../oracle_common/modules/org.apache.maven_3.2.5/bin
56
61
57
62
Your environment has been set.
58
- Check if the DB service is ready to accept requests
59
- DB Connection URL [oracle-db.default.svc.cluster.local:1521/devpdb.k8s] and schemaPrefix is [domain1] rcuType [fmw]"
63
+ Check if the DB Service is ready to accept request
64
+ DB Connection String [oracle-db.default.svc.cluster.local:1521/devpdb.k8s], schemaPrefix [domain1] rcuType [fmw]
60
65
61
66
**** Success!!! ****
67
+
62
68
You can connect to the database in your app using:
69
+
63
70
java.util.Properties props = new java.util.Properties();
64
- props.put("user", "scott")
65
- props.put("password", "***** ");
71
+ props.put("user", "sys as sysdba");
72
+ props.put("password", "Oradoc_db1 ");
66
73
java.sql.Driver d =
67
74
Class.forName("oracle.jdbc.OracleDriver").newInstance();
68
75
java.sql.Connection conn =
69
- Driver.connect("scott", props);
76
+ Driver.connect("sys as sysdba", props);
77
+ Creating RCU Schema for FMW Domain ...
78
+ Extra RCU Schema Component Choosen[]
70
79
71
- Creating RCU Schema for FMW Domain ..
72
- RCU Logfile: /tmp/RCU2019-09-03_23-13_1113614917/logs/rcu.log
73
- Enter the database password(User:sys):
74
80
Processing command line ....
75
- Repository Creation Utility - Checking Prerequisites
76
- Checking Global Prerequisites
77
- The selected Oracle database is not configured to use the AL32UTF8 character set. Oracle strongly recommends using the AL32UTF8 character set for databases that support Oracle Fusion Middleware.
78
- Enter the schema password. This password will be used for all schema users of following components:MDS,IAU,IAU_APPEND,IAU_VIEWER,OPSS,WLS,STB.
79
81
80
82
Repository Creation Utility - Checking Prerequisites
81
83
Checking Component Prerequisites
82
84
Repository Creation Utility - Creating Tablespaces
83
85
Validating and Creating Tablespaces
86
+ Create tablespaces in the repository database
84
87
Repository Creation Utility - Create
85
88
Repository Create in progress.
86
- Percent Complete: 12
87
- Percent Complete: 30
88
- .....
89
- Percent Complete: 97
90
- Percent Complete: 100
89
+ Executing pre create operations
90
+ Percent Complete: 20
91
+ Percent Complete: 20
92
+ .....
93
+ Percent Complete: 96
94
+ Percent Complete: 100
95
+ .....
96
+ Executing post create operations
91
97
92
98
Repository Creation Utility: Create - Completion Summary
93
99
94
100
Database details:
95
- --------------------
96
- Host Name : oracle-db.default.svc.cluster.local
97
- Port : 1521
98
- Service Name : DEVPDB.K8S
99
- Connected As : sys
101
+ -----------------------------
102
+ Host Name : oracle-db.default.svc.cluster.local
103
+ Port : 1521
104
+ Service Name : DEVPDB.K8S
105
+ Connected As : sys
100
106
Prefix for (prefixable) Schema Owners : DOMAIN1
101
- RCU Logfile : /tmp/RCU2019-08-30_21-21_1875987468 /logs/rcu.log
107
+ RCU Logfile : /tmp/RCU2020-05-01_14-35_1160633335 /logs/rcu.log
102
108
103
109
Component schemas created:
104
110
-----------------------------
105
- Component Status Logfile
111
+ Component Status Logfile
106
112
107
- Common Infrastructure Services Success /tmp/RCU2019-08-30_21-21_1875987468 /logs/stb.log
108
- Oracle Platform Security Services Success /tmp/RCU2019-08-30_21-21_1875987468 /logs/opss.log
109
- Audit Services Success /tmp/RCU2019-08-30_21-21_1875987468 /logs/iau.log
110
- Audit Services Append Success /tmp/RCU2019-08-30_21-21_1875987468 /logs/iau_append.log
111
- Audit Services Viewer Success /tmp/RCU2019-08-30_21-21_1875987468 /logs/iau_viewer.log
112
- Metadata Services Success /tmp/RCU2019-08-30_21-21_1875987468 /logs/mds.log
113
- WebLogic Services Success /tmp/RCU2019-08-30_21-21_1875987468 /logs/wls.log
113
+ Common Infrastructure Services Success /tmp/RCU2020-05-01_14-35_1160633335 /logs/stb.log
114
+ Oracle Platform Security Services Success /tmp/RCU2020-05-01_14-35_1160633335 /logs/opss.log
115
+ Audit Services Success /tmp/RCU2020-05-01_14-35_1160633335 /logs/iau.log
116
+ Audit Services Append Success /tmp/RCU2020-05-01_14-35_1160633335 /logs/iau_append.log
117
+ Audit Services Viewer Success /tmp/RCU2020-05-01_14-35_1160633335 /logs/iau_viewer.log
118
+ Metadata Services Success /tmp/RCU2020-05-01_14-35_1160633335 /logs/mds.log
119
+ WebLogic Services Success /tmp/RCU2020-05-01_14-35_1160633335 /logs/wls.log
114
120
115
121
Repository Creation Utility - Create : Operation Completed
116
122
[INFO] Modify the domain.input.yaml to use [oracle-db.default.svc.cluster.local:1521/devpdb.k8s] as rcuDatabaseURL and [domain1] as rcuSchemaPrefix
@@ -122,69 +128,79 @@ Use this script to drop the RCU schema based `schemaPrefix` and `dburl`.
122
128
123
129
```
124
130
$ ./drop-rcu-schema.sh -h
125
- usage: ./drop-rcu-schema.sh -s <schemaPrefix> -d <dburl> [-h]
131
+ usage: ./drop-rcu-schema.sh -s <schemaPrefix> -d <dburl> -n <namespace> -q <sysPassword> -r <schemaPassword> [-h]
126
132
-s RCU Schema Prefix (required)
127
- -d Oracle Database URL
128
- (default: oracle-db.default.svc.cluster.local:1521/devpdb.k8s)
129
133
-t RCU Schema Type (optional)
130
- Supported values: fmw(default),soa,osb,soaosb,soaess,soaessosb
134
+ (supported values: fmw(default), soa, osb, soaosb, soaess, soaessosb)
135
+ -d Oracle Database URL (optional)
136
+ (default: oracle-db.default.svc.cluster.local:1521/devpdb.k8s)
137
+ -n Namespace where RCU pod is deployed (optional)
138
+ (default: default)
139
+ -q password for database SYSDBA user. (optional)
140
+ (default: Oradoc_db1)
141
+ -r password for all schema owner (regular user). (optional)
142
+ (default: Oradoc_db1)
131
143
-h Help
132
144
133
145
$ ./drop-rcu-schema.sh -s domain1
134
- CLASSPATH=/usr/java/jdk1.8.0_211/lib/tools.jar:/u01/oracle/wlserver/modules/features/wlst.wls.classpath.jar:
146
+ CLASSPATH=/u01/jdk/lib/tools.jar:/u01/oracle/wlserver/modules/features/wlst.wls.classpath.jar:
147
+
148
+ PATH=/u01/oracle/wlserver/server/bin:/u01/oracle/wlserver/../oracle_common/modules/thirdparty/org.apache.ant/1.10.5.0.0/apache-ant-1.10.5/bin:/u01/jdk/jre/bin:/u01/jdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/u01/jdk/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin:/u01/oracle:/u01/oracle/wlserver/../oracle_common/modules/org.apache.maven_3.2.5/bin
135
149
136
150
Your environment has been set.
137
- Check if the DB service is ready to accept requests
138
- DB Connection URL [oracle-db.default.svc.cluster.local:1521/devpdb.k8s] and schemaPrefix is [domain1]
151
+ Check if the DB Service is ready to accept request
152
+ DB Connection String [oracle-db.default.svc.cluster.local:1521/devpdb.k8s] schemaPrefix [domain1] rcuType[fmw ]
139
153
140
154
**** Success!!! ****
155
+
141
156
You can connect to the database in your app using:
157
+
142
158
java.util.Properties props = new java.util.Properties();
143
- props.put("user", "scott ");
144
- props.put("password", "**** ");
159
+ props.put("user", "sys as sysdba ");
160
+ props.put("password", "Oradoc_db1 ");
145
161
java.sql.Driver d =
146
162
Class.forName("oracle.jdbc.OracleDriver").newInstance();
147
163
java.sql.Connection conn =
148
- Driver.connect("scott ", props);
149
-
150
- RCU Logfile: /tmp/RCU2019-08-30_21-29_1679536190/logs/rcu.log
164
+ Driver.connect("sys as sysdba ", props);
165
+ Dropping RCU Schema for FMW Domain ...
166
+ Extra RCU Schema Component(s) Choosen[]
151
167
152
- Enter the database password(User:sys):
153
168
Processing command line ....
154
169
Repository Creation Utility - Checking Prerequisites
155
170
Checking Global Prerequisites
156
171
Repository Creation Utility - Checking Prerequisites
157
172
Checking Component Prerequisites
158
173
Repository Creation Utility - Drop
159
174
Repository Drop in progress.
160
- Percent Complete: 2
161
- Percent Complete: 14
162
- ....
163
- Percent Complete: 99
164
- Percent Complete: 100
175
+ Percent Complete: 2
176
+ Percent Complete: 14
177
+ .....
178
+ Percent Complete: 99
179
+ Percent Complete: 100
180
+ .....
165
181
166
182
Repository Creation Utility: Drop - Completion Summary
167
183
168
184
Database details:
169
- ----------------------------
170
- Host Name : oracle-db.default.svc.cluster.local
171
- Port : 1521
172
- Service Name : DEVPDB.K8S
173
- Connected As : sys
185
+ -----------------------------
186
+ Host Name : oracle-db.default.svc.cluster.local
187
+ Port : 1521
188
+ Service Name : DEVPDB.K8S
189
+ Connected As : sys
174
190
Prefix for (prefixable) Schema Owners : DOMAIN1
175
- RCU Logfile : /tmp/RCU2019-08-30_21-29_1679536190 /logs/rcu.log
191
+ RCU Logfile : /tmp/RCU2020-05-01_14-42_651700358 /logs/rcu.log
176
192
177
193
Component schemas dropped:
178
194
-----------------------------
179
- Component Status Logfile
180
-
181
- Common Infrastructure Services Success /tmp/RCU2019-08-30_21-29_1679536190 /logs/stb.log
182
- Oracle Platform Security Services Success /tmp/RCU2019-08-30_21-29_1679536190 /logs/opss.log
183
- Audit Services Success /tmp/RCU2019-08-30_21-29_1679536190 /logs/iau.log
184
- Audit Services Append Success /tmp/RCU2019-08-30_21-29_1679536190 /logs/iau_append.log
185
- Audit Services Viewer Success /tmp/RCU2019-08-30_21-29_1679536190 /logs/iau_viewer.log
186
- Metadata Services Success /tmp/RCU2019-08-30_21-29_1679536190 /logs/mds.log
187
- WebLogic Services Success /tmp/RCU2019-08-30_21-29_1679536190 /logs/wls.log
195
+ Component Status Logfile
196
+
197
+ Common Infrastructure Services Success /tmp/RCU2020-05-01_14-42_651700358 /logs/stb.log
198
+ Oracle Platform Security Services Success /tmp/RCU2020-05-01_14-42_651700358 /logs/opss.log
199
+ Audit Services Success /tmp/RCU2020-05-01_14-42_651700358 /logs/iau.log
200
+ Audit Services Append Success /tmp/RCU2020-05-01_14-42_651700358 /logs/iau_append.log
201
+ Audit Services Viewer Success /tmp/RCU2020-05-01_14-42_651700358 /logs/iau_viewer.log
202
+ Metadata Services Success /tmp/RCU2020-05-01_14-42_651700358 /logs/mds.log
203
+ WebLogic Services Success /tmp/RCU2020-05-01_14-42_651700358 /logs/wls.log
188
204
189
205
Repository Creation Utility - Drop : Operation Completed
190
206
pod "rcu" deleted
0 commit comments