UJP - 技術情報

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

     

ASE 11.9.2 Install for RedHatLinux6.2 〜その8 sybaseユーザの環境変数設定〜

ASE 11.9.2 Install for RedHatLinux6.2

〜その8 sybaseユーザの環境変数設定〜


0.更新履歴

  • 2002.04.15 新規作成

1.はじめに

 このドキュメントでは,Linux版のSybase ASE11.9.2開発版をインストールする手順を説明する.

2.sybaseユーザの環境変数設定

  • bashなので,.profileファイルを確認する.

bash$ cd
bash$ pwd
/opt/sybase-11.9.2
bash$ ls -la .p*
-rwxr-xr-x    1 sybase   sybase       1867 Apr 15 17:38 .profile
bash$

  • .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`

export SYBPLATFORM="linux"
export LD_LIBRARY_PATH="$SYBASE/lib"
export LC_ALL="default"
export PATH="$SYBASE/bin:$PATH:."

unset LANG
    

変更後
#
# 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`
export SYBASE=/opt/sybase-11.9.2

export SYBPLATFORM="linux"
export LD_LIBRARY_PATH="$SYBASE/lib"
export LC_ALL="default"
export PATH="$SYBASE/bin:$PATH:.:$SYBASE/install"

unset LANG
    

  • .profileの変更内容を反映して,パスが設定されているか確認する.

bash$ . .profile

Do you want to start 'srvbuild' now? [y/n]: n

You can start it by hand later by executing
/opt/sybase-11.9.2/bin/srvbuild
bash$ env | grep PATH
LD_LIBRARY_PATH=/opt/sybase-11.9.2/lib
PATH=/opt/sybase-11.9.2/bin:/opt/sybase-11.9.2/bin:/bin:/usr/bin:/usr/local/bin:/us
r/bin/X11:/usr/X11R6/bin:.:.:/opt/sybase-11.9.2/install
bash$

  • ためしに,showserverコマンドを実行してみる.

bash$ showserver
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
sybase     872  0.0  0.1  1648  752 pts/0    S    18:06   0:00 sh -c /
opt/sybase-11.9.2/bin/backupserver -Spoweredge_back -e/opt/sybase-11.9
.2/database/log/backup.log -N25 -C20  > /dev/null 2>&1 
sybase     873  0.0  0.7  7376 4608 pts/0    S    18:06   0:00 /opt/sy
base-11.9.2/bin/backupserver -Spoweredge_back -e/opt/sybase-11.9.2/dat
abase/log/backup.log -N25 -C20
sybase     880  0.0  0.1  1648  752 pts/0    S    18:11   0:00 sh -c /
opt/sybase-11.9.2/bin/dataserver -spoweredge -d/opt/sybase-11.9.2/data
base/sysdevice/master.dat -e/opt/sybase-11.9.2/database/log/sqlserver.
log -M/opt/sybase-11.9.2  > /dev/null 2>&1 
sybase     881  2.0  2.6 30500 17236 ?       S    18:11   1:26 /opt/sy
base-11.9.2/bin/dataserver -spoweredge -d/opt/sybase-11.9.2/database/s
ysdevice/master.dat -e/opt/sybase-11.9.2/database/log/sqlserver.log -M
/opt/sybase-11.9.2
bash$

  • どうやら設定されているようである.



広告スペース
Google