Skip to content

Commit 78eddb3

Browse files
authored
Pass wallet password as an optional positional argument (#2600)
* Added Wallet Password as an optional positional argument * Fixed lint errors
1 parent 1247955 commit 78eddb3

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

OracleDatabase/SingleInstance/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,11 @@ Similarly, to disable TCPS connections for the database, please use the followin
221221
# Disable TCPS in the database
222222
docker exec -it <container name> /opt/oracle/configTcps.sh disable
223223

224+
To configure wallet password, please use the following command:
225+
226+
# Setup TCPS for port 16002 and pass wallet password as argument
227+
docker exec -it <container name> /opt/oracle/configTcps.sh 16002 localhost <WALLET_PWD>
228+
224229
**NOTE**:
225230

226231
* Only database server authentication is supported (no mTLS).

OracleDatabase/SingleInstance/dockerfiles/19.3.0/configTcps.sh

+8
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,16 @@ elif [[ "$1" =~ ^[0-9]+$ ]]; then
138138
# If TCPS_PORT is not set in the environment, honor the TCPS_PORT passed as the positional argument
139139
TCPS_PORT=${TCPS_PORT:-"$1"}
140140
HOSTNAME="$2"
141+
# Optional wallet password
142+
if [[ -n "$3" ]]; then
143+
WALLET_PWD="$3"
144+
fi
141145
else
142146
HOSTNAME="$1"
147+
# Optional wallet password
148+
if [[ -n "$2" ]]; then
149+
WALLET_PWD="$2"
150+
fi
143151
fi
144152

145153
# Default TCPS_PORT value

OracleDatabase/SingleInstance/dockerfiles/21.3.0/configTcps.sh

+8
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,16 @@ elif [[ "$1" =~ ^[0-9]+$ ]]; then
141141
# If TCPS_PORT is not set in the environment, honor the TCPS_PORT passed as the positional argument
142142
TCPS_PORT=${TCPS_PORT:-"$1"}
143143
HOSTNAME="$2"
144+
# Optional wallet password
145+
if [[ -n "$3" ]]; then
146+
WALLET_PWD="$3"
147+
fi
144148
else
145149
HOSTNAME="$1"
150+
# Optional wallet password
151+
if [[ -n "$2" ]]; then
152+
WALLET_PWD="$2"
153+
fi
146154
fi
147155

148156
# Default TCPS_PORT value

0 commit comments

Comments
 (0)