ASE 12.5 for Linux Install 〜Step 8 環境変数の追加〜
ASE 12.5 for Linux Install
〜Step 8 環境変数の追加〜
0.更新履歴
1.はじめに
このドキュメントでは,RedHat Linux 7.2に,Sybase Adaptive Server Enterprisee
12.5 for Linuxをインストールする手順を示す.
2.環境変数の設定
- rpmで追加されたLinux上のsybaseユーザの環境変数で,足りないものがあるので追加する.
- 足りないというか,これを追加するとより便利になるものである.
- 現在のログインシェルファイルを確認する.
- シェルがデフォルトではbashとなっているので,それを前提とする.
bash-2.05$ pwd
/opt/sybase-12.5
bash-2.05$ cat .profile
#
# Never run any DBA or SA under for sybase as root
#
if [ `id -u` -eq 0 ]; then
echo "This account should not be ran with uid = 0"
exit 1
fi
# Have SYBASE set to the correct location
# SYBASE=`pwd` ; export SYBASE
export SYBASE=`rpm -q --queryformat '%{installprefix}' sybase-common-12.5`
export SYBPLATFORM="linux"
export LD_LIBRARY_PATH="$SYBASE/lib"
export LC_ALL="default"
export PATH="$PATH:."
if [ -f ${SYBASE}/SYBASE.sh ]; then
. ${SYBASE}/SYBASE.sh
fi
unset LANG
if [ ! "${PAGER}" ]; then
PAGER=cat ; export PAGER
fi
# Have the README and WARNINGS at least presented once.
if [ -f ${SYBASE}/.readme ]; then
${PAGER} ${SYBASE}/README
rm -f ${SYBASE}/.readme
if [ `id -u` = 0 ]; then
cat <<\EOM
WARNING: Before configuring this release of Sybase Adaptive Server
Enterprise we strongly recommend you to run from an other login
account then root.
This because the SQL Server can be configured to operate on designated
disk partitions resulting in data loss if the permissions are not
setup properly.
EOM
echo -n "Do you like to continue? [y/n]: "
read ans
case $ans in
[Yy]*) break ;;
*) exit ;;
esac
fi
fi
bash-2.05$
|
bash-2.05$ pwd
/opt/sybase-12.5
bash-2.05$ cat .profile
#
# Never run any DBA or SA under for sybase as root
#
if [ `id -u` -eq 0 ]; then
echo "This account should not be ran with uid = 0"
exit 1
fi
# Have SYBASE set to the correct location
SYBASE=`pwd` ; export SYBASE
#export SYBASE=`rpm -q --queryformat '%{installprefix}' sybase-common-12.5`
export SYBPLATFORM="linux"
export LD_LIBRARY_PATH="$SYBASE/lib"
export LC_ALL="default"
export PATH="$PATH:.:$SYBASE/ASE/install"
if [ -f ${SYBASE}/SYBASE.sh ]; then
. ${SYBASE}/SYBASE.sh
fi
unset LANG
if [ ! "${PAGER}" ]; then
PAGER=cat ; export PAGER
fi
# Have the README and WARNINGS at least presented once.
if [ -f ${SYBASE}/.readme ]; then
${PAGER} ${SYBASE}/README
rm -f ${SYBASE}/.readme
if [ `id -u` = 0 ]; then
cat <<\EOM
WARNING: Before configuring this release of Sybase Adaptive Server
Enterprise we strongly recommend you to run from an other login
account then root.
This because the SQL Server can be configured to operate on designated
disk partitions resulting in data loss if the permissions are not
setup properly.
EOM
echo -n "Do you like to continue? [y/n]: "
read ans
case $ans in
[Yy]*) break ;;
*) exit ;;
esac
fi
fi
bash-2.05$
|
- ログインしなおして,showserverコマンドを実行して,パスが生きているか確認する.
bash-2.05$ su - sybase
Password:■■■■■■■■■■■■■■■■
bash-2.05$ showserver
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
sybase 1395 0.0 15.6 50968 39700 ? S Jan31 0:10 /opt/sybase-12.
5/ASE/bin/dataserver -sgx150 -d/opt/sybase-12.5/database/sysdevice/master.dat
-e/opt/sybase-12.5/ASE/install/gx150.log -c/opt/sybase-12.5/ASE/gx150.cfg -M/o
pt/sybase-12.5/ASEsybase 1414 0.0 2.1 8860 5500 ? S Jan31 0:
00 /opt/sybase-12.5/ASE/bin/backupserver -Sgx150_back -e/opt/sybase-12.5/datab
ase/log/backup.log -Ljapanese -Jsjis -N25 -C20 -M/opt/sybase-12.5/ASE/bin/sybm
ultbuf
bash-2.05$
|