Skip to content

Commit 138276a

Browse files
jshum2479ddsharpe
authored andcommitted
change to use same passwords for all schema users during rcu creation (#385)
1 parent 54f215d commit 138276a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public class RCURunner {
4141
private static final String CREATE_REPO_SWITCH = "-createRepository";
4242
private static final String DB_TYPE_SWITCH = "-databaseType";
4343
private static final String ORACLE_DB_TYPE = "ORACLE";
44+
private static final String USER_SAME_PWD_FOR_ALL ="-useSamePasswordForAllSchemaUsers";
4445
private static final String DB_CONNECT_SWITCH = "-connectString";
4546
private static final String DB_USER_SWITCH = "-dbUser";
4647
private static final String DB_USER = "SYS";
@@ -289,6 +290,8 @@ private String[] getRcuCreateArgs() {
289290
createArgs.add(CREATE_REPO_SWITCH);
290291
createArgs.add(DB_TYPE_SWITCH);
291292
createArgs.add(ORACLE_DB_TYPE);
293+
createArgs.add(USER_SAME_PWD_FOR_ALL);
294+
createArgs.add("true");
292295
createArgs.add(DB_CONNECT_SWITCH);
293296
createArgs.add(rcuDb);
294297
if (ATP_DB) {
@@ -338,13 +341,10 @@ private List<String> getRcuCreateStdinLines(String rcuSysPass, String rcuSchemaP
338341
}
339342

340343
private List<String> getRcuStdinLines(RcuOpType rcuOpType, String rcuSysPass, String rcuSchemaPass) {
341-
int extraRcuSchemaPasswordCount = getExtraRcuSchemaPasswordCount(rcuOpType);
342-
List<String> stdinLines = new ArrayList<>(rcuSchemas.size() + extraRcuSchemaPasswordCount);
344+
List<String> stdinLines = new ArrayList<>(2);
343345
stdinLines.add(rcuSysPass);
346+
stdinLines.add(rcuSchemaPass);
344347

345-
for (int i = 0; i < rcuSchemas.size() + extraRcuSchemaPasswordCount; i++) {
346-
stdinLines.add(rcuSchemaPass);
347-
}
348348
return stdinLines;
349349
}
350350

0 commit comments

Comments
 (0)