Skip to content

Commit 57f5926

Browse files
authored
Documentrcudbinfo (#318)
* initial add rcudb info documentation * Update rcuinfo.md Add RCUDbInfo document * renme key tns.entry to tns.alias * fix formatting * formatting * formatting * add linkage to rcudb info * fix link * Update rcuinfo.md fix syntax and grammar * Update rcuinfo.md * Update rcuinfo.md * Update create.md * Update create.md * Update create.md * Update rcuinfo.md * Update rcuinfo.md * Update rcuinfo.md * Update create.md
1 parent a2af24c commit 57f5926

File tree

4 files changed

+49
-2
lines changed

4 files changed

+49
-2
lines changed

core/src/main/java/oracle/weblogic/deploy/create/RCURunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public RCURunner(String domainType, String oracleHome, String javaHome, List<Str
144144

145145
this.oracleHome = validateExistingDirectory(oracleHome, "ORACLE_HOME");
146146
this.javaHome = validateExistingDirectory(javaHome, "JAVA_HOME");
147-
this.rcuDb = "jdbc:oracle:thin:@" + rcuProperties.get(new PyString("tns.entry")).toString();
147+
this.rcuDb = "jdbc:oracle:thin:@" + rcuProperties.get(new PyString("tns.alias")).toString();
148148
this.rcuPrefix = rcuProperties.get(new PyString("rcu_prefix")).toString();
149149
this.rcuSchemas = validateNonEmptyListOfStrings(rcuSchemas, "rcu_schema_list");
150150
this.atpAdminUser = rcuProperties.get(new PyString("atp.admin.user")).toString();

core/src/main/python/wlsdeploy/aliases/model_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
RCU_DB_CONN = 'rcu_db_conn_string'
2525
RCU_VARIABLES = 'rcu_variables'
2626
USE_ATP = 'useATP'
27-
ATP_TNS_ENTRY = 'tns.entry'
27+
ATP_TNS_ENTRY = 'tns.alias'
2828
ATP_DEFAULT_TABLESPACE = 'atp.default.tablespace'
2929
ATP_TEMPORARY_TABLESPACE = 'atp.temp.tablespace'
3030
ATP_ADMIN_USER = 'atp.admin.user'

site/create.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ The Create Domain Tool understands three domain types: `WLS`, `RestrictedJRF`, a
1919

2020
To have the Create Domain Tool run RCU, simply add the `-run_rcu` argument to the previous command line and the RCU schemas will be automatically created. Be aware that when the tool runs RCU, it will automatically drop any conflicting schemas that already exist with the same RCU prefix prior to creating the new schemas!
2121

22+
It is also possible to specify the connection information in the model instead of using the command-line arguments. This is especially easier for databases that require complex database connection string and extra parameters, such as RAC or Oracle Autonomous Transaction Processing Cloud Service database. For information on how to use it, refer to [Specifying RCU connection information in the model](rcuinfo.md)
23+
2224
The Create Domain Tool has an extensible domain type system. The three built-in domain types (`WLS`, `RestrictedJRF`, and `JRF`) are defined in JSON files of the same name in the `WLSDEPLOY_HOME/lib/typedefs` directory. For example, the `JRF` domain type is defined in the `WLSDEPLOY_HOME/lib/typedefs/JRF.json` file whose contents look like those shown below.
2325

2426
```json

site/rcuinfo.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## Specifying RCU connection information in the model
2+
3+
During creating or updating a domain, there is new section `RCUDbInfo` in the model, under the `domainInfo` section, for specifying RCU database connection information without using the command-line arguments `-rcu_db` and `-rcu_prefix`. Use this to support a database where the connection string is more complex and requires extra options.
4+
5+
For example, in order to use the Oracle Autonomous Transaction Processing Cloud Database for the JRF domain, specify the following information in the model:
6+
7+
```yaml
8+
domainInfo:
9+
RCUDbInfo:
10+
useATP : 1
11+
rcu_prefix : DEV
12+
rcu_schema_password : xxxxx
13+
rcu_admin_user : admin
14+
tns.alias : dbatp_tp
15+
javax.net.ssl.keyStorePassword : xxxx
16+
javax.net.ssl.trustStorePassword : xxxx
17+
```
18+
The database wallet can be included in the archive file under `atpwallet` zipentry structure
19+
20+
`atpwallet/Walletxyz.zip`
21+
22+
Using the Create Domain Tool with the `-run_rcu` flag will create the RCU schemas against the Oracle Autonomous Transaction Processing Cloud Database and configure the datasources in the JRF domain to use the database. For example:
23+
24+
weblogic-deploy/bin/updateDomain.sh -oracle_home /u01/wls12213 -domain_type JRF -domain_home /u01/data/domains/demodomain -archive_file DemoDomain.zip -run_rcu
25+
26+
For a non-ATP database, use the following example:
27+
28+
```yaml
29+
domainInfo:
30+
RCUDbInfo:
31+
useATP : 0
32+
rcu_prefix : DEV
33+
rcu_schema_password : xxxxx
34+
rcu_admin_password : xxxx
35+
rcu_db_conn_string : 'dbhost:1521/pdborcl'
36+
```
37+
RCU `-variables` option of the repository creation utility can now be included in the `RCUDbInfo` section with the key `rcu_variables`:
38+
39+
```yaml
40+
domainInfo:
41+
RCUDbInfo:
42+
rcu_variables : 'xxxx'
43+
```
44+
45+

0 commit comments

Comments
 (0)