Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated sed command to resolve charset not updating issue in 23c free #2675

Merged
Merged
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
Expand Up @@ -151,7 +151,7 @@ if [ "${ORACLE_SID}" = "XE" ]; then
export ORACLE_PWD=${ORACLE_PWD:-"$(openssl rand -hex 8)"}

# Set character set
su -c "sed -i -e \"s|###ORACLE_CHARACTERSET###|$ORACLE_CHARACTERSET|g\" /etc/sysconfig/\"$CONF_FILE\""
su -c "sed -i -e \"s|^CHARSET=.*$|CHARSET=$ORACLE_CHARACTERSET|g\" /etc/sysconfig/\"$CONF_FILE\""

# Creating Database
su -c "/etc/init.d/oracle-xe-21c configure << EOF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LISTENER_PORT=1521
EM_EXPRESS_PORT=5500

# Character set of the database
CHARSET=###ORACLE_CHARACTERSET###
CHARSET=AL32UTF8

# Database file directory
# If not specified, database files are stored under Oracle base/oradata
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ if [ "${ORACLE_SID}" = "FREE" ]; then
export ORACLE_PWD=${ORACLE_PWD:-"$(openssl rand -hex 8)"}

# Set character set
su -c "sed -i -e \"s|###ORACLE_CHARACTERSET###|$ORACLE_CHARACTERSET|g\" /etc/sysconfig/\"$CONF_FILE\""
su -c "sed -i -e \"s|^CHARSET=.*$|CHARSET=$ORACLE_CHARACTERSET|g\" /etc/sysconfig/\"$CONF_FILE\""

# Creating Database
su -c "/etc/init.d/oracle-free-23c configure << EOF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
LISTENER_PORT=1521

# Character set of the database
CHARSET=###ORACLE_CHARACTERSET###
CHARSET=AL32UTF8

# Database file directory
# If not specified, database files are stored under Oracle base/oradata
Expand Down