unix下安裝Sybase數(shù)據(jù)庫(kù)的步驟說(shuō)明
安裝Sybase數(shù)據(jù)庫(kù)的方法根據(jù)系統(tǒng)的環(huán)境不同而有所區(qū)別,下面為您介紹的是unix下安裝Sybase數(shù)據(jù)庫(kù)的方法介紹,供您參考。
unix下安裝Sybase數(shù)據(jù)庫(kù)大致步驟說(shuō)明如下:
1、 用scoadmin建立 sybase用戶
2、 sybase登錄,
在/usr/sybase目錄下.profile文件最后加入如下語(yǔ)句: SYBASE=/usr/sybase export SYBASE DSQUERY=SYBASE export DSQUERY
3、 root登錄,設(shè)置共享內(nèi)存最大值:
#cd /etc/conf/cf.d
#./configure
然后在出現(xiàn)的一系列設(shè)置選項(xiàng)中選擇第16項(xiàng)來(lái)設(shè)置共享內(nèi)存最大值,根據(jù)計(jì)算機(jī)的內(nèi)存大小來(lái)設(shè)置不同的值,64M設(shè)為67108864,128M設(shè)為68108864。錄入新值后,以后3項(xiàng)不改,直接回車,然后按q退出,出現(xiàn)提示是否接受(y/n),選y
4、 更改目錄 /etc/conf/sdevice.d中aio、sio、suds三個(gè)文件的第一項(xiàng),將N改Y
5、 #vi /etc/rc2 在最后加入一行: /etc/suds_ctrl -a 50
6、 執(zhí)行#/etc/conf/cf.d/link_unix 進(jìn)行鏈接,
出現(xiàn) ……………boot by default?(y/n) y
……………kernel enviroment rebuilt (y/n) y
#reboot
7、 root登錄,#mount /dev/cd0 /mnt
8、 sybase登錄,$/mnt/sybload -D
提示:是否/usr/sybase目錄(y/n)? y
… Local or Remote … >L
… disk file of the global archive… >/mnt/sybimage
… Authoring String … >序列號(hào)
…Sybase Products available for installation… 1. ……
2. product No.2 SQL Server.sco.10.0.2 3. …… >2
>回車
if this list is correct as show …… please enter ‘y’ or ‘Y’ to cotinue …(y/n)
y
Positioning Media For loading Please Wait 開(kāi)始從光盤(pán)上拷貝文件 x. ………
9、$su #umount /mnt
10、 Ctrl-d
回到sybase用戶
$cd /usr/sybase/install
$./sybinit
1. release directory
2. Edit/view interfaces file
3. Configure a server product
4. Configure an open client/server product
5. Configure a Front End product Ctrl_a(accept) Ctrl_x(exit screen) 選2 后出現(xiàn)
1. Add a new entry
2. Modify an exisiting entry
3. View an existing entry
4. Delete an existing entry
選1 后出現(xiàn)
1. Server name: 輸入1后再輸入server名字:SYBASE,
按Ctrl_a后出現(xiàn)
1. Retry count : 0
2. Retry deiay : 0
3. Add a new listetener service
分別選1和2,將其值改為2
選3后出現(xiàn)
1. Hostname/Address
2. Port: ( 建議在5000-50000之間)
3. Name Alias:
4. Delete this service from the interfaces entry
選1輸入本機(jī)名:localhost,
選2輸入8888,Ctrl_a接受
Is this information correct ……(y/n) y
Ctrl_a
Write the changes to the interfaces file now?
y
Ctral_a
11、 返回主菜單,
選3.configure a server product 后出現(xiàn)
1. SQL Server
2. Backup Server
選1后出現(xiàn)
1. Configure a new SQL Server
2. Configure an existing SQL
3. Upgrade an existing SQL Server
選1,Ctrl_a 確認(rèn)后出現(xiàn)9項(xiàng)
1. CONFIGURE SERVER’S INTERFACES FILE ENTRY COMPLETE
2. MASTER DEVICE CONFIGURATION INCOMPLETE
3. SYBSYSTEMPROCS DATABASE CONFIGURATION INCOMPLETE
4. SET ERRORLOG LOGATION INCOMPLETE
5. CONFIGURE DEFAULT BACKUP SERVER INCOMPLETE
6. CONFIGURE LAGUAGES INCOMPLETE
7. CONFIGURE CHARACTER SETS INCOMPLETE
8. CONFIGURE SORT ORDER INCOMPLETE
9. ACTIUATE AUDITING INCOMPLETE
從2至9開(kāi)始設(shè)置
選2出現(xiàn)
1. Master device
2. Size <17>
選2設(shè)為30,
Ctrl_a確認(rèn)退回上級(jí)菜單
選3出現(xiàn)
1. Sybsystemprocs database size (Meg):12
2. Sybsystemprocs logical device name: sysprocsdev
3. Create new device for the sybsystemprocs database: yes
4. Physical name of new device: /usr/sybase/sybprocs.dat
5. Size of the new device (Meg): 12
選1和5將值改為17,Ctrl_a確認(rèn)退回上級(jí)菜單
依次選擇第4到第9項(xiàng)出現(xiàn)
分別Ctrl+a 確認(rèn)即可 ,然后出現(xiàn)提示(y/n) 選擇 "y"
Ctrl+a 確認(rèn)
設(shè)置完成后根據(jù)提示進(jìn)行確認(rèn)。
12。 開(kāi)始安裝程序。
13 安裝完成后退出
回到菜單 1. SQL Server
2. Backup server
選擇 2
Ctrl+a 確認(rèn)
出現(xiàn)的菜單下選擇 2。Enter/modify backup server interfaces files informantion
Ctrl+a 確認(rèn)
出現(xiàn)菜單中
將 1,2 項(xiàng)設(shè)為2 《與前面相應(yīng)步驟類似》
然后選擇第3項(xiàng)
將 1. hostname/address <本機(jī)名> (如 localhost)
2.prot <設(shè)為9999> (注5000-50000之間任意,但不要與前面設(shè)的port相同)
第3,4 項(xiàng)不改。
Ctrl+a 確認(rèn)
以下操作根據(jù)提示或Ctrl+a確認(rèn),或根據(jù)提示(y/n)按y
完成操作后也就完成了sybase 的安裝。
【編輯推薦】