Skip to content

Commit 185cacd

Browse files
committed
Add disable disk asynch IO option
1 parent 3eff7b8 commit 185cacd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

assets/startup.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,19 @@ export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
1515
export PATH=$ORACLE_HOME/bin:$PATH
1616
export ORACLE_SID=XE
1717

18-
echo "ALTER PROFILE DEFAULT LIMIT PASSWORD_VERIFY_FUNCTION NULL;" | sqlplus -s SYSTEM/oracle
18+
if ! [ "$ORACLE_PASSWORD_VERIFY" = true ]; then
19+
echo "ALTER PROFILE DEFAULT LIMIT PASSWORD_VERIFY_FUNCTION NULL;" | sqlplus -s SYSTEM/oracle
20+
end
1921

2022
if [ "$ORACLE_ALLOW_REMOTE" = true ]; then
2123
echo "alter system disable restricted session;" | sqlplus -s SYSTEM/oracle
2224
fi
2325

26+
if [ "$ORACLE_DISABLE_ASYNCH_IO" = true ]; then
27+
echo "ALTER SYSTEM SET disk_asynch_io = FALSE SCOPE = SPFILE;" | sqlplus -s SYSTEM/oracle
28+
service oracle-xe restart
29+
fi
30+
2431
for f in /docker-entrypoint-initdb.d/*; do
2532
case "$f" in
2633
*.sh) echo "$0: running $f"; . "$f" ;;

0 commit comments

Comments
 (0)