Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
b7c4c66f801f92d14faa0d791ccda721 19.3.0/LINUX.X64_193000_grid_home.zip
1858bd0d281c60f4ddabd87b1c214a4f 19.3.0/LINUX.X64_193000_db_home.zip
b7c4c66f801f92d14faa0d791ccda721 19.3.0/LINUX.X64_193000_db_home.zip
1858bd0d281c60f4ddabd87b1c214a4f 19.3.0/LINUX.X64_193000_grid_home.zip
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# $ docker build -t oracle/database:19c-rac .


ARG BASE_OL_IMAGE=oraclelinux:8
ARG BASE_OL_IMAGE=oraclelinux:9
ARG SLIMMING=false
# Pull base image
# ---------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2019,2025 Oracle and/or its affiliates.
Expand All @@ -11,9 +12,9 @@
#

# Image Cleanup Script
# shellcheck disable=SC1090

source /home/"${GRID_USER}"/.bashrc
# shellcheck disable=SC2034

ORACLE_HOME=${GRID_HOME}

rm -rf /u01/app/grid/*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2019,2025 Oracle and/or its affiliates.
Expand All @@ -11,7 +12,7 @@
#

# Image Cleanup Script
# shellcheck disable=SC1090

source /home/"${DB_USER}"/.bashrc
ORACLE_HOME=${DB_HOME}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand Down Expand Up @@ -34,7 +35,7 @@ if [ "$GRID_HOME" == "" ]; then
fi;

# Install Oracle binaries
# shellcheck disable=SC2115

unzip -q "$INSTALL_SCRIPTS"/"$PATCH" -d "$GRID_USER_HOME" && \
rm -f "$INSTALL_SCRIPTS"/"$GRID_PATCH" && \
cd "$GRID_USER_HOME"/"$PATCH_NUMBER"/"$PATCH_NUMBER" && \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand All @@ -8,7 +9,7 @@
# Description: Enable RAC feature in Oracle Software
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
# shellcheck disable=SC1090

source /home/"${DB_USER}"/.bashrc

export ORACLE_HOME=${DB_HOME}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand All @@ -20,7 +21,6 @@ if [ "$EDITION" == "" ]; then
fi;

# Check whether correct edition has been passed on
# shellcheck disable=SC2166
if [ "$EDITION" != "EE" -a "$EDITION" != "SE2" ]; then
echo "ERROR: Wrong edition has been passed on!"
echo "Edition $EDITION is no a valid edition!"
Expand Down Expand Up @@ -60,6 +60,5 @@ fi


# Install Oracle binaries
# shellcheck disable=SC2015
unzip -q "$INSTALL_SCRIPTS"/"$INSTALL_FILE_2" -d "$DB_HOME" && \
"$DB_HOME"/runInstaller -silent -force -waitforcompletion -responsefile "$INSTALL_SCRIPTS"/"$DB_INSTALL_RSP" -ignorePrereqFailure || true
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand All @@ -11,7 +12,6 @@
#

EDITION=$1
# shellcheck disable=SC2034
PATCH_NUMBER=$2

# Check whether edition has been passed on
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand Down Expand Up @@ -33,7 +34,7 @@ fi
if [ -z ${EXECUTOR} ]; then
EXECUTOR="python3"
fi
# shellcheck disable=SC2164

cd $BASE_DIR
$EXECUTOR $SCRIPT_NAME

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand All @@ -9,7 +10,7 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
#
# shellcheck disable=SC2034

EDITION=$1

# Create Directories
Expand All @@ -33,7 +34,6 @@ if [ "${SLIMMING}x" != 'truex' ] ; then
chown -R "${GRID_USER}":oinstall "$GRID_HOME"
mkdir -p "$INVENTORY"
chown -R "${GRID_USER}":oinstall "$INVENTORY"
# shellcheck disable=SC2129
echo "export PATH=$GRID_PATH" >> /home/"${GRID_USER}"/.bashrc
echo "export LD_LIBRARY_PATH=$GRID_LD_LIBRARY_PATH" >> /home/"${GRID_USER}"/.bashrc
echo "export SCRIPT_DIR=$SCRIPT_DIR" >> /home/"${GRID_USER}"/.bashrc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand All @@ -20,9 +21,14 @@ if [ -n "$region" ]; then
for proxy in $(printenv | grep -i _proxy | cut -d= -f1); do unset $proxy; done
echo "-$region" > /etc/yum/vars/ociregion
fi

# Refer Doc ID 2760289.1 for error- "libxcrypt-compat compat-openssl11" only available in OL9
# Error in invoking target 'libasmclntsh19.ohso libasmperl19.ohso client_sharedlib' of makefile '/u01/app/oracle/product/19c/dbhome_1/rdbms/lib/ins_rdbms.mk'.
mkdir /asmdisks && \
mkdir /responsefiles && \
chmod ug+x /opt/scripts/startup/*.sh && \
yum -y install systemd oracle-database-preinstall-19c net-tools which zip unzip tar openssl expect e2fsprogs openssh-server vim-minimal passwd which sudo hostname policycoreutils-python-utils python3 lsof rsync && \
yum -y install systemd oracle-database-preinstall-19c net-tools which zip \
unzip tar openssl expect e2fsprogs openssh-server vim-minimal passwd which \
sudo hostname policycoreutils-python-utils python3 lsof rsync libxcrypt-devel \
libxcrypt fontconfig libvirt-libs librdmacm libibverbs liblsan libasan \
libxcrypt-compat compat-openssl11 && \
yum clean all
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
8ac915a800800ddf16a382506d3953db 21.3.0/LINUX.X64_213000_db_home.zip
b3fbdb7621ad82cbd4f40943effdd1be 21.3.0/LINUX.X64_213000_grid_home.zip
b3fbdb7621ad82cbd4f40943effdd1be 21.3.0/LINUX.X64_213000_grid_home.zip
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2019,2025 Oracle and/or its affiliates.
Expand All @@ -11,9 +12,9 @@
#

# Image Cleanup Script
# shellcheck disable=SC1090

source /home/"${GRID_USER}"/.bashrc
# shellcheck disable=SC2034

ORACLE_HOME=${GRID_HOME}

rm -rf /u01/app/grid/*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2019,2025 Oracle and/or its affiliates.
Expand All @@ -11,7 +12,7 @@
#

# Image Cleanup Script
# shellcheck disable=SC1090

source /home/"${DB_USER}"/.bashrc
ORACLE_HOME=${DB_HOME}

Expand All @@ -32,4 +33,4 @@ rm -rf "$ORACLE_HOME"/inventory/Scripts/comps.xml.*
rm -rf "$ORACLE_HOME"/inventory/Scripts/oraclehomeproperties.xml.*
rm -rf "$ORACLE_HOME"/inventory/Scripts/oraInst.loc.*
rm -rf "$ORACLE_HOME"/inventory/Scripts/inventory.xml.*
rm -rf "$INVENTORY"/logs/*
rm -rf "$INVENTORY"/logs/*
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand Down Expand Up @@ -34,7 +35,7 @@ if [ "$GRID_HOME" == "" ]; then
fi;

# Install Oracle binaries
# shellcheck disable=SC2115

unzip -q "$INSTALL_SCRIPTS"/"$PATCH" -d "$GRID_USER_HOME" && \
rm -f "$INSTALL_SCRIPTS"/"$GRID_PATCH" && \
cd "$GRID_USER_HOME"/"$PATCH_NUMBER"/"$PATCH_NUMBER" && \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand All @@ -8,7 +9,7 @@
# Description: Enable RAC feature in Oracle Software
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
# shellcheck disable=SC1090

source /home/"${DB_USER}"/.bashrc

export ORACLE_HOME=${DB_HOME}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand All @@ -20,7 +21,6 @@ if [ "$EDITION" == "" ]; then
fi;

# Check whether correct edition has been passed on
# shellcheck disable=SC2166
if [ "$EDITION" != "EE" -a "$EDITION" != "SE2" ]; then
echo "ERROR: Wrong edition has been passed on!"
echo "Edition $EDITION is no a valid edition!"
Expand Down Expand Up @@ -60,6 +60,5 @@ fi


# Install Oracle binaries
# shellcheck disable=SC2015
unzip -q "$INSTALL_SCRIPTS"/"$INSTALL_FILE_2" -d "$DB_HOME" && \
"$DB_HOME"/runInstaller -silent -force -waitforcompletion -responsefile "$INSTALL_SCRIPTS"/"$DB_INSTALL_RSP" -ignorePrereqFailure || true
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand All @@ -11,7 +12,6 @@
#

EDITION=$1
# shellcheck disable=SC2034
PATCH_NUMBER=$2

# Check whether edition has been passed on
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand Down Expand Up @@ -33,8 +34,8 @@ fi
if [ -z ${EXECUTOR} ]; then
EXECUTOR="python3"
fi
# shellcheck disable=SC2164

cd $BASE_DIR
$EXECUTOR $SCRIPT_NAME

# Tail on alert log and wait (otherwise container will exit)
# Tail on alert log and wait (otherwise container will exit)
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand Down Expand Up @@ -39,4 +40,4 @@ if [ "${SLIMMING}x" != 'truex' ]; then
echo "export PATH=$GRID_HOME/bin:$DB_PATH" >> /home/"${DB_USER}"/.bashrc
echo "export LD_LIBRARY_PATH=$GRID_HOME/lib:$DB_LD_LIBRARY_PATH" >> /home/"${DB_USER}"/.bashrc
fi
fi
fi
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand All @@ -9,7 +10,7 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
#
# shellcheck disable=SC2034

EDITION=$1

# Create Directories
Expand All @@ -33,11 +34,10 @@ if [ "${SLIMMING}x" != 'truex' ] ; then
chown -R "${GRID_USER}":oinstall "$GRID_HOME"
mkdir -p "$INVENTORY"
chown -R "${GRID_USER}":oinstall "$INVENTORY"
# shellcheck disable=SC2129
echo "export PATH=$GRID_PATH" >> /home/"${GRID_USER}"/.bashrc
echo "export LD_LIBRARY_PATH=$GRID_LD_LIBRARY_PATH" >> /home/"${GRID_USER}"/.bashrc
echo "export SCRIPT_DIR=$SCRIPT_DIR" >> /home/"${GRID_USER}"/.bashrc
echo "export GRID_HOME=$GRID_HOME" >> /home/"${GRID_USER}"/.bashrc
echo "export GRID_BASE=$GRID_BASE" >> /home/"${GRID_USER}"/.bashrc
echo "export DB_HOME=$DB_HOME" >> /home/"${GRID_USER}"/.bashrc
fi
fi
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
# LICENSE UPL 1.0
#
# Copyright (c) 2018,2025 Oracle and/or its affiliates.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=all
#############################

# Copyright 2025, Oracle Corporation and/or affiliates. All rights reserved.
Expand All @@ -8,9 +9,9 @@
# Author: [email protected]
TIMESTAMP=`date "+%Y-%m-%d"`
LOGFILE="/tmp/oracle_rac_cmd_${TIMESTAMP}.log"
# shellcheck disable=SC2046,SC2068

echo $(date -u) " : " $@ >> $LOGFILE
# shellcheck disable=SC2124

cmd=$@

$cmd
Expand Down
Loading