新ASE12.5 beta install for MacOS X
0.改訂履歴
- 2002.07.21 新規作成
1.はじめに
このドキュメントでは,Sybase Adaptive Server Enterprise(ASE)の12.5 Beta版をMacOS X 10.1.5にインストールする手順を説明する.
なお,以前のドキュメント「 ASE12.5 beta install for MacOS X」は,ダウンロードしたモジュールが古かったようで,不完全だったみたいである. 動かないし. 入手した情報がプレスリリース以前だったからな〜.
2.モジュールの入手
- ここで用いているのは,2002/7/21に,ダウンロードしたものである.
- ユーザ登録を行うと,ダウンロード用ページが表示されるので,そこからダウンロードする.
- ダウンロードしたものは以下の通り.


- 以前ダウンロードしたものと比べると,サイズも違う.

- マウントすると,ボリューム名に「B」が付いてる!
- 中身見てみる.

- 前のベータ版には無かったODBC等が入ってる!
3.インストール

- [Sybase_ASE_12502_beta.pkg]を起動する.










- これでインストールが終了している.
- ちなみに,この時点でASEが起動している.
4.稼働確認
- Terminalを開く.
- psコマンドで,dataserverが稼働しているか確認する.
Welcome to Darwin! [localhost:~] shinnai% ps -aux | grep data root 499 0.1 15.6 54896 40960 ?? S 0:03.72 /Applications/Sybase/ASE-12_5/bin/dataserver -sS shinnai 509 0.0 0.1 1368 232 std U+ 0:00.02 grep data [localhost:~] shinnai% |
- 見事に稼働してます.
- rootユーザで実行されてますね.
5.環境設定する
- インストールされたファイルを確認する
[localhost:~] shinnai% cd /Applications/Sybase/ [localhost:/Applications/Sybase] shinnai% ls ASE-12_5 SYBASE.srg interfaces ASEP-1_0 SYSAM-1_0 jConnect-5_5 Install Sybase Central.app jISQL.app OCS-12_5 charsets jutils-2_0 SYBASE.bak completes locales SYBASE.cfg config sybcent41 SYBASE.csh default.cfg SYBASE.krg device [localhost:/Applications/Sybase] |
- 現在のユーザに環境変数を設定する.
- そのために,自分が使っているシェルを確認する.
[localhost:/Applications/Sybase] shinnai% env | grep SHELL SHELL=/bin/tcsh [localhost:/Applications/Sybase] shinnai% |
- 何もしなければ,デフォルトのtcshになっているので,SYBASE.cshを使って環境変数を設定する.
[localhost:/Applications/Sybase] shinnai% source SYBASE.csh [localhost:/Applications/Sybase] shinnai% env | grep SYBASE SYBASE=/Applications/Sybase SYBASE_ASE=ASE-12_5 SYBASE_OCS=OCS-12_5 DSQUERY=SYBASE [localhost:/Applications/Sybase] shinnai% |
- コマンドラインの会話型SQLツール,isqlが使えるか確認する.
[localhost:/Applications/Sybase] shinnai% isql -v Sybase CTISQL Utility/12.5/P/DRV.12.5.0.1/Power Macintosh powerpc/MacOS X 10.1: Darwin 5.3/BUILD125-014/OPT/Tue Jun 11 21:44:45 2002 Confidential property of Sybase, Inc. Copyright 1987, 2002 Sybase, Inc. All rights reserved. Unpublished rights reserved under U.S. copyright laws. This software contains confidential and trade secret information of Sybase, Inc. Use, duplication or disclosure of the software and documentation by the U.S. Government is subject to restrictions set forth in a license agreement between the Government and Sybase, Inc. or other written agreement specifying the Government's rights to use the software and any applicable FAR provisions, for example, FAR 52.227-19. Sybase, Inc. 5000 Hacienda Drive, Dublin, CA 94568, USA [localhost:/Applications/Sybase] shinnai% |
6.接続してみる
- 稼働していることが変わったら,isqlを使ってデータベースに接続してみる.
- まずは,interfacesファイルを確認してみる.
[localhost:/Applications/Sybase] shinnai% cat interfaces SYBASE query tcp ether localhost 7100 master tcp ether localhost 7100 # # Backup Server # SYB_BACKUP query tcp ether localhost 7200 master tcp ether localhost 7200 # # XP server # SYBASE_XP query tcp ether localhost 7300 master tcp ether localhost 7300 # # SNMP Sub-Agent: sending RPC's to SNMP subagent causes trap generation # SYB_SNMP query tcp ether localhost 7400 # [localhost:/Applications/Sybase] shinnai% |
- サーバ名がSYBASEとして定義してあることがわかった.
- isqlで接続してみる.
[localhost:/Applications/Sybase] shinnai% isql -Usa -P -SSYBASE Msg 2409, Level 11, State 2: Server 'SYBASE': Cannot find the requested character set in Syscharsets: name = 'eucjis'. No conversions will be done. Msg 4017, Level 16, State 1: Server 'SYBASE': Neither language name in login record 'japanese' nor language name in syslogins '<NULL>' is an official language name on this SQL Server. Using server-wide default 'us_english' instead. 1> |
- とりあえずつながった.
- キャラクタセットなどがあって無いので,警告がでているが,とりあえず無視する.
- バージョンを確認してみる.
1> select @@version 2> go -------------------------------------------------------------------------------- --------------------------------------------------------------------------------- --------------------------------------------------------------------------------- ------------- Adaptive Server Enterprise/12.5.0.2/Early Adopter/P/Apple PowerPC/OS X 10.1.5/re l125x/1/32-bit/OPT/Mon Jul 8 19:21:34 2002 (1 row affected) 1> |
- Early Adopterと書いてある.
- Buildが2002.07.08なので,Mac World EXPO in N.Y.用に,ぎりぎりに作ったんだろうな...
7.ASEをシャットダウンする
- ASEをシャットダウンしてみる.
1> shutdown 2> go Server SHUTDOWN by request. The SQL Server is terminating this process. CT-LIBRARY error: ct_results(): ???????????????: ?? Net Library ???: Net-Library ???????????????????? [localhost:/Applications/Sybase] |
- ???とでているのは文字化けなので気にしない.
- この状態で正しくシャットダウン要求を受け付けている.
- プロセスを確認してみる.
[localhost:/Applications/Sybase] shinnai% ps -aux | grep dataserver shinnai 541 0.0 0.1 1368 216 std R+ 0:00.00 grep dataserver [localhost:/Applications/Sybase] shinnai% |
- 終了している模様.
8.ASEの起動
- 正常に終了したので,今度は起動してみる.
- $SYBASE/$SYBASE_ASE/installディレクトリに移動する.
[localhost:/Applications/Sybase] shinnai% cd $SYBASE/$SYBASE_ASE/install [localhost:Sybase/ASE-12_5/install] shinnai% pwd /Applications/Sybase/ASE-12_5/install [localhost:Sybase/ASE-12_5/install] shinnai% |
- ファイルの一覧を確認する.
[localhost:Sybase/ASE-12_5/install] shinnai% ls -la total 456 drwxrwxrwx 23 root admin 738 Jul 22 01:33 . drwxrwxrwx 17 root admin 534 May 18 04:59 .. -rw------- 1 root admin 1675 May 17 10:23 .gdb_history -rwxr-xr-x 1 root admin 455 Jul 12 07:48 RUN_SYBASE -rwxr-xr-x 1 root admin 180 Jul 10 00:13 RUN_SYB_BACKUP -rw-r--r-- 1 root admin 19337 Jul 22 02:17 SYBASE.log -rw-r--r-- 1 root admin 9220 Jul 22 02:17 SYBASE.out -r-xr-xr-x 1 root admin 2097 Jul 9 23:29 bootstrap -rw-r--r-- 1 root admin 24987 Jul 22 01:29 errorlog -rwxr-xr-x 1 root admin 287 Apr 28 14:14 eucjis -rw-r--r-- 1 root admin 1897 Jul 22 01:33 installcommit.out -rw-r--r-- 1 root admin 7656 Jul 22 01:33 installjconnect.out -rw-r--r-- 1 root admin 62289 Jul 22 01:33 installmaster.out -rw-r--r-- 1 root admin 423 Jul 22 01:29 installmodel.out -rw-r--r-- 1 root admin 1875 Jul 22 01:33 installpubs2.out -rw-r--r-- 1 root admin 494 Jun 26 06:45 installservers -rw-r--r-- 1 root admin 932 Jul 22 01:33 installservers.out -rwxr-xr-x 1 root admin 285 Apr 28 14:14 iso_1 -rwxr-xr-x 1 root admin 35712 May 4 11:32 startserver -rwxr-xr-x 1 root admin 26 May 18 05:22 startup -rw-r--r-- 1 root admin 812 Jul 22 01:29 sybprocs.out -rw-r--r-- 1 root admin 354 Jun 26 06:47 sybprocs.sql -rwxr-xr-x 1 root admin 273 Apr 28 14:14 utf8 [localhost:Sybase/ASE-12_5/install] shinnai% |
- rootユーザで実行されているので,とりあえず今回もrootユーザにスイッチしてからASEを起動してみる.
[localhost:Sybase/ASE-12_5/install] shinnai% su Password:■■■■■■■■■■ [localhost:Sybase/ASE-12_5/install] root# ./startserver -f ./RUN_SYBASE -f ./RUN_SYB_BACKUP [localhost:Sybase/ASE-12_5/install] root# Backup Server/12.5.0.1/Engineering Release/P/PowerPC G4/Mac OS X 10.1.4/rel125x/1/32-bit/OPT/Mon Jul 8 19:11:45 2002 Confidential property of Sybase, Inc. Copyright 1987, 2002 Sybase, Inc. All rights reserved. Unpublished rights reserved under U.S. copyright laws. This software contains confidential and trade secret information of Sybase, Inc. Use, duplication or disclosure of the software and documentation by the U.S. Government is subject to restrictions set forth in a license agreement between the Government and Sybase, Inc. or other written agreement specifying the Government's rights to use the software and any applicable FAR provisions, for example, FAR 52.227-19. Sybase, Inc. 5000 Hacienda Drive, Dublin, CA 94568, USA ???? 'srv.log' ? Backup Server ???????????? [localhost:Sybase/ASE-12_5/install] root# |
- 再度isqlで接続してみる.
[localhost:sybase/ASE-12_5/install] root# isql -Usa -P -SSYBASE Msg 2409, Level 11, State 2: Server 'SYBASE': Cannot find the requested character set in Syscharsets: name = 'eucjis'. No conversions will be done. Msg 4017, Level 16, State 1: Server 'SYBASE': Neither language name in login record 'japanese' nor language name in syslogins '<NULL>' is an official language name on this SQL Server. Using server-wide default 'us_english' instead. 1> |
- 動いていることが確認できた.
- ASEがメモリをどれくらい消費しているか確認する.
1> sp_configure "max memory" 2> go Parameter Name Default Memory Used Config Value Run Value Unit Type ------------------------------ ----------- ----------- ------------ ----------- -------------------- ---------- max memory 33792 67584 33792 33792 memory pages(2k) dynamic (1 row affected) (return status = 0) 1> |
- 2kブロック×33792個なので,66MBで稼働している.
- では,再度シャットダウンして終了する.
1> shutdown SYB_BACKUP 2> go *** malloc[618]: Deallocation of a pointer not malloced: 0x1bf700; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug Backup Server: 3.48.1.1: The Backup Server will go down immediately. Terminating sessions. 1> shutdown 2> go Server SHUTDOWN by request. The SQL Server is terminating this process. CT-LIBRARY error: ct_results(): ???????????????: ?? Net Library ???: Net-Library ???????????????????? [localhost:sybase/ASE-12_5/install] root# |
- お疲れさまでした.

