ASE 12.5 for Linux Install 〜Step 2 パッケージのインストールと確認〜
ASE 12.5 for Linux Install
〜Step 2 パッケージのインストールと確認〜
0.更新履歴
1.はじめに
このドキュメントでは,RedHat Linux 7.2に,Sybase Adaptive Server Enterprisee
12.5 for Linuxをインストールする手順を示すものである.
2.パッケージのインストールと確認
- rootユーザでログインする.
- 現在,ASEがインストールされているか確認する.
[root@gx150 root]# rpm -qa | grep sybase
[root@gx150 root]#
|
[root@gx150 root]# env | grep LANG
LANG=ja_JP.eucJP
GDM_LANG=ja_JP.eucJP
[root@gx150 root]# LANG=C
[root@gx150 root]# export LANG
[root@gx150 root]# env | grep LANG
LANG=C
GDM_LANG=ja_JP.eucJP
[root@gx150 root]#
|
[root@gx150 root]# mount /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@gx150 root]#
|
- 書込み禁止なので,読み込みだけでマウントしていると警告メッセージ.無視する.
- CD-ROMの中身を確認する.
[root@gx150 root]# cd /mnt/cdrom
[root@gx150 cdrom]# ls
sybase-ase-12.5-3.i386.rpm sybase-korean-12.5-3.i386.rpm
sybase-chinese-12.5-3.i386.rpm sybase-openclient-12.5-3.i386.rpm
sybase-common-12.5-3.i386.rpm sybase-polish-12.5-3.i386.rpm
sybase-efts-12.5-3.i386.rpm sybase-portuguese-12.5-3.i386.rpm
sybase-esql-12.5-3.i386.rpm sybase-spanish-12.5-3.i386.rpm
sybase-french-12.5-3.i386.rpm sybase-sqlremote-7.0.2-1.i386.rpm
sybase-german-12.5-3.i386.rpm sybase-thai-12.5-3.i386.rpm
sybase-japanese-12.5-3.i386.rpm
[root@gx150 cdrom]#
|
[root@poweredg cdrom]# rpm -ihv sybase-common-12.5-3.i386.rpm
Preparing... ########################################### [100%]
1:sybase-common ########################################### [100%]
[root@poweredg cdrom]# rpm -ihv sybase-ase-12.5-3.i386.rpm
Preparing... ########################################### [100%]
1:sybase-ase ########################################### [100%]
[root@poweredg cdrom]# rpm -ihv sybase-openclient-12.5-3.i386.rpm
Preparing... ########################################### [100%]
1:sybase-openclient ########################################### [100%]
[root@poweredg cdrom]# rpm -ihv sybase-japanese-12.5-3.i386.rpm
Preparing... ########################################### [100%]
1:sybase-japanese ########################################### [100%]
[root@poweredg cdrom]#
|
[root@gx150 cdrom]# rpm -qa | grep sybase
sybase-ase-12.5-3
sybase-japanese-12.5-3
sybase-common-12.5-3
sybase-openclient-12.5-3
[root@gx150 cdrom]#
|
4.sybinstall.shの実行
- sybaseユーザでログインする.
- rootユーザからなので,パスワードが不要である.
[root@gx150 cdrom]# su - sybase
Before configuring this installation of Sybase Adaptive Enterprise
Server we strongly advise to install a Sybase DBA account and correct
product permissions. This post configuration can be performed at
any time by running the sybinstall.sh shell script as root (uid=0).
'${SYBASE}/install/sybinstall.sh'
First time configuration of Sybase Adaptive Server Enterprise (ASE)
can be done as follows:
=> Login as 'sybase'
=> Setup your environment (if not done by the login process)
Bourne-Shell users
. .profile
C-Shell users:
source .cshrc
=> Start the license daemon
startd.sh $SYBASE/$SYBASE_SYSAM
=> Enter your license information
lmgr
=> Start 'asecfg'
asecfg
For more detailed information please refer to the Installation Guide.
On-line documentation for any Sybase product can be found on our Dynaweb
pages accessible from:
<http://www.sybase.com>
<http://sybooks.sybase.com/dynaweb>
Enjoy this Sybase Adaptive Server Enterprise installation !
bash-2.05$
|
bash-2.05$ pwd
/opt/sybase-12.5
bash-2.05$
|
bash-2.05$ env | grep SYBASE
SYBASE_FTS=FTS
SYBASE_SYSAM=SYSAM
SYBASE_ASE=ASE
SYBASE=/opt/sybase-12.5
SYBASE_OCS=OCS
bash-2.05$
|
bash-2.05$ env | grep PATH
LD_LIBRARY_PATH=/opt/sybase-12.5/ASE/lib:/opt/sybase-12.5/FTS/lib:/opt/syba
se-12.5/OCS/lib:/opt/sybase-12.5/SQLRemote/lib:/opt/sybase-12.5/lib
PATH=/opt/sybase-12.5/ASE/bin:/opt/sybase-12.5/OCS/bin:/opt/sybase-12.5/SYS
AM/bin:/opt/sybase-12.5/shared/jre/bin:/bin:/usr/bin:/usr/local/bin:/usr/bi
n/X11:/usr/X11R6/bin:.
bash-2.05$
|
bash-2.05$ env | grep LM_
LM_LICENSE_FILE=/opt/sybase-12.5/SYSAM/licenses/license.dat:
bash-2.05$
|
- rootユーザになり,sybinstall.shを実行する.
- sybaseユーザの環境変数を継承するため,suで-(ハイフン)をつけない.
bash-2.05$ su
Password:
[root@gx150 sybase-12.5]# pwd
/opt/sybase-12.5
[root@gx150 sybase-12.5]# install/sybinstall.sh
[root@gx150 sybase-12.5]#
|
- 正しく実行されていれば,次のようなファイルが作成されているので確認する.
[root@gx150 sybase-12.5]# ls -la /etc/rc.d/init.d/sybase
-r-xr-xr-x 1 root root 1601 Jan 30 16:28 /etc/rc.d/init.d/sybase
[root@gx150 sybase-12.5]#
|
5.sybaseユーザのパスワードの設定
- パッケージを展開した時に作成されるsybaseユーザには,何かしらのパスワードが設定されているようだが,なんだかわからないので,rootユーザでsybaseユーザのパスワードそ再設定する.
[root@gx150 sybase-12.5]# passwd sybase
Changing password for user sybase
New password: ■■■■■■
BAD PASSWORD: it is based on a dictionary word
Retype new password: ■■■■■■
passwd: all authentication tokens updated successfully
[root@gx150 sybase-12.5]#
|
- パスワードを"sybase"として設定したため,セキュリティがあまい!と警告が出ているが無視する.
6.情報格納用ディレクトリの作成
ここでは,Sybase社の公式的な方法ではないが,データベースのデータを格納するためのディレクトリや,ログを格納するディレクトリを作成する.
なお,これ以降の設定は,このディレクトリ構成を前提として作成する.
- sybaseユーザに戻り,ディレクトリを作成する.
[root@gx150 sybase-12.5]# exit
exit
bash-2.05$ id
uid=500(sybase) gid=500(sybase) groups=500(sybase)
bash-2.05$
bash-2.05$ cd
bash-2.05$ pwd
/opt/sybase-12.5
bash-2.05$ ls
ASE Installer OCS-12_5 SYBASE.sh collate jConnect-5_5 shared-1_0
ASE-12_5 Installer-1_1 README SYSAM config jutils-2_0 sybcent32
ASEP Installer.log SYBASE.csh SYSAM-1_0 install locales
ASEP-1_0 OCS SYBASE.env charsets jConnect-4_5 shared
bash-2.05$ mkdir database
bash-2.05$ mkdir database/idxdevice
bash-2.05$ mkdir database/datdevice
bash-2.05$ mkdir database/sysdevice
bash-2.05$ mkdir database/logdevice
bash-2.05$ mkdir database/tmpdevice
bash-2.05$ mkdir database/log
bash-2.05$ mkdir database/dump
bash-2.05$ ls database
datdevice dump idxdevice log logdevice sysdevice tmpdevice
bash-2.05$
|