1
1
/*
2
- * Copyright (c) 2017, 2024 , Oracle and/or its affiliates.
2
+ * Copyright (c) 2017, 2025 , Oracle and/or its affiliates.
3
3
* Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
4
4
*/
5
5
package oracle .weblogic .deploy .create ;
@@ -71,7 +71,6 @@ public class RCURunner {
71
71
private static final String DB_CONNECT_SWITCH = "-connectString" ;
72
72
private static final String DB_USER_SWITCH = "-dbUser" ;
73
73
private static final String DB_ROLE_SWITCH = "-dbRole" ;
74
- private static final String ORACLE_DB_ROLE = "SYSDBA" ;
75
74
private static final String SCHEMA_PREFIX_SWITCH = "-schemaPrefix" ;
76
75
private static final String COMPONENT_SWITCH = "-component" ;
77
76
private static final String READ_STDIN_SWITCH = "-f" ;
@@ -104,14 +103,15 @@ public class RCURunner {
104
103
* @param connectString the database connect string
105
104
* @param schemaPrefix the schema prefix
106
105
* @param dbUser the database administrator user name
106
+ * @param dbRole the database administrator role
107
107
* @param componentsList the list of RCU schemas
108
108
* @param extraRcuArgsMap any extra RCU arguments map
109
109
* @param sslArgsProperties the SSL-related arguments map
110
110
* @throws CreateException if a parameter validation error occurs
111
111
*/
112
112
public RCURunner (String oracleHome , String javaHome , String databaseType , String oracleDatabaseConnectionType ,
113
- String connectString , String schemaPrefix , String dbUser , List < String > componentsList ,
114
- PyDictionary extraRcuArgsMap , PyDictionary sslArgsProperties )
113
+ String connectString , String schemaPrefix , String dbUser , String dbRole ,
114
+ List < String > componentsList , PyDictionary extraRcuArgsMap , PyDictionary sslArgsProperties )
115
115
throws CreateException {
116
116
117
117
this .oracleHome = validateExistingDirectory (oracleHome , "ORACLE_HOME" );
@@ -128,7 +128,7 @@ public RCURunner(String oracleHome, String javaHome, String databaseType, String
128
128
129
129
this .schemaPrefix = validateNonEmptyString (schemaPrefix , "rcu_prefix" );
130
130
this .dbUser = validateNonEmptyString (dbUser , "rcu_admin_user" );
131
- this .dbRole = computeDbRole () ;
131
+ this .dbRole = dbRole ;
132
132
this .componentsList = validateNonEmptyListOfStrings (componentsList , "rcu_schema_list" );
133
133
this .extraRcuArgsMap = extraRcuArgsMap ;
134
134
this .sslArgsProperties = sslArgsProperties ;
@@ -206,14 +206,6 @@ private boolean isOracleDatabase() {
206
206
return ORACLE_DB_TYPE .equals (this .databaseType ) || EBR_DB_TYPE .equals (this .databaseType );
207
207
}
208
208
209
- private String computeDbRole () {
210
- String dbRole = null ;
211
- if (isOracleDatabase () && !this .atpDB ) {
212
- dbRole = ORACLE_DB_ROLE ;
213
- }
214
- return dbRole ;
215
- }
216
-
217
209
private Map <String , String > getRcuDropEnv () {
218
210
Map <String , String > env = new HashMap <>(1 );
219
211
env .put ("JAVA_HOME" , this .javaHome .getAbsolutePath ());
0 commit comments