Skip to content

Commit 95a2028

Browse files
authored
Disable password expiration
1 parent 5f148c2 commit 95a2028

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

assets/setup.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,18 @@ mv /assets/startup.sh /usr/sbin/startup.sh &&
4242
chmod +x /usr/sbin/startup.sh &&
4343

4444
# Remove installation files
45-
rm -r /assets/
45+
rm -r /assets/ &&
4646

4747
# Create initialization script folders
4848
mkdir /docker-entrypoint-initdb.d
4949

50+
# Disable password expiration
51+
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
52+
export PATH=$ORACLE_HOME/bin:$PATH
53+
export ORACLE_SID=XE
54+
55+
echo "ALTER PROFILE DEFAULT LIMIT PASSWORD_VERIFY_FUNCTION NULL;" | sqlplus -s SYSTEM/oracle
56+
echo "alter profile DEFAULT limit password_life_time UNLIMITED;" | sqlplus -s SYSTEM/oracle
57+
echo "alter user SYSTEM identified by oracle account unlock;" | sqlplus -s SYSTEM/oracle
58+
5059
exit $?

0 commit comments

Comments
 (0)