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
apex support multiply language[apex] ¥100 #18
Labels
feature
Type label, New feature or request
Comments
xyt52
changed the title
apex support multiply language
apex support multiply language[apex]
Oct 19, 2022
官方方案:在 apex 中运行 /opt/oracle/apex/22.1.0/builder/zh-cn/load_zh-cn.sql 这个脚本即可载入中文
|
chendelin1982
changed the title
apex support multiply language[apex]
apex support multiply language[apex] ¥100
Nov 27, 2022
判断容器是否开启,相关文件是否存在后载入中文 #!/bin/bash
while ( ! [ -n $(docker ps -q -f "name=^apex$") ] )
do
echo "starting..."
sleep 2
done
sudo docker exec -it apex /bin/bash -c "
dirpath="/opt/oracle/apex/22.1.0/builder/zh-cn"
filename="/opt/oracle/sqlcl/bin/sql"
while ( [ ! -d "$dirpath" ] && [ ! -e "$filename" ] )
do
echo "starting......"
sleep 2
done"
echo "startup complete"
echo "begin to load chinese..."
export password=$(grep "db_oracle_password" /credentials/password.txt|awk -F ": " '{print $2}')
sudo docker exec -it apex /bin/bash -c "
cd /opt/oracle/apex/22.1.0/builder/zh-cn
NLS_LANG=Chinese_Chinese.AL32UTF8
/opt/oracle/sqlcl/bin/sql -S sys/"$password"@apex-db:1521/xepdb1 as sysdba @/opt/oracle/apex/22.1.0/builder/zh-cn/load_zh-cn.sql
"
echo "finished" |
#!/bin/bash
while ( ! [ -n $(docker ps -q -f "name=^apex$") ] )
do
echo "starting..."
sleep 2
done
sudo docker exec -it apex /bin/bash -c "
dirpath="/opt/oracle/apex/*/builder/zh-cn"
filename="/opt/oracle/sqlcl/bin/sql"
while ( [ ! -d "$dirpath" ] && [ ! -e "$filename" ] )
do
echo "starting......"
sleep 2
done"
echo "startup complete"
export password=$(grep "apex_db_oracle_password" /credentials/password.txt|awk -F ": " '{print $2}')
echo "begin to load chinese..."
sudo docker exec -it apex /bin/bash -c "
cd /opt/oracle/apex/*/builder/zh-cn
NLS_LANG=Chinese_Chinese.AL32UTF8
echo exit | /opt/oracle/sqlcl/bin/sql sys/"$password"@apex-db:1521/xepdb1 as sysdba @load_zh-cn.sql
"
echo "finished" |
#!/bin/bash
status="000"
echo "starting......"
while [ $status == "000" ]
do
status=$(curl -IL -m 5 -s -w "%{http_code}\n" -o /dev/null "localhost:9001")
sleep 20
done
sleep 10
status=$(curl -IL -m 5 -s -w "%{http_code}\n" -o /dev/null "localhost:9001")
echo "$status"
echo "startup complete"
echo "begin to load chinese..."
password=$1
export password
sudo docker exec apex /bin/bash -c "
cd /opt/oracle/apex/*/builder/zh-cn && NLS_LANG=Chinese_Chinese.AL32UTF8 && echo exit | /opt/oracle/sqlcl/bin/sql sys/"$password"@apex-db:1521/xepdb1 as sysdba @load_zh-cn.sql
"
echo "finished" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
offical install
test access apex container to confirm, it seems has multiply language,how to set?
The text was updated successfully, but these errors were encountered: