Warning, file /sdk/codevis/thirdparty/soci/scripts/ci/oracle.sh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 # Definitions used by SOCI when building Oracle backend in CI builds 0002 # 0003 # Copyright (c) 2015 Vadim Zeitlin <vz-soci@zeitlins.org> 0004 # 0005 # Notice that this file is not executable, it is supposed to be sourced from 0006 # the other files. 0007 0008 # This is arbitrary. 0009 export ORACLE_CONTAINER=oracle-11g 0010 0011 # We use the same name for the path inside and outside the container. 0012 export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe 0013 export ORACLE_SID=XE 0014 0015 # Add path to Oracle libraries. 0016 export LD_LIBRARY_PATH=$ORACLE_HOME/lib 0017 0018 # Execute any command in the Oracle container: pass the command with its 0019 # arguments directly to the function. 0020 oracle_exec() 0021 { 0022 docker exec ${ORACLE_CONTAINER} "$@" 0023 } 0024 0025 # Execute SQLPlus in the Oracle container: pass the extra arguments to the 0026 # command to this function and its input on stdin. 0027 oracle_sqlplus() 0028 { 0029 docker exec --interactive --env ORACLE_HOME=${ORACLE_HOME} --env ORACLE_SID=${ORACLE_SID} ${ORACLE_CONTAINER} "$ORACLE_HOME/bin/sqlplus" -S -L "$@" 0030 }