Sybase 11.0.3.3落戶FreeBSD [三] 下載軟體及解壓

火星人 @ 2014-03-12 , reply:0


  
作者:薛啟康 來源:賽迪網
三、下載軟體及解壓
  到Sybase的站點下載最新的sybase-ase-11.0.3.3更新包。Sybase對這一版本進行了多次改進,目前推出了專為FreeBSD準備的一個軟體包,其中包括以下三個文件:

  sybase-ase-11_0_3_3-FreeBSD-6_i386.tgz

  sybase-doc-11_0_3_3-FreeBSD-6_i386.tgz

  sybase-ocsd-10_0_4-FreeBSD-6_i386.tgz

  可以看出這已是該版本的第6次更新了。

  以root登錄FreeBSD主機,增加用戶sybase
  #adduser

  根據提示增加一個Sybase用戶,同時增加一個Sybase組用戶。

  將下載的軟體包拷貝到/opt/sybase目錄中

  # cd Sybase

  以sybase用戶登錄,解壓以上三個壓縮文件:

  $ gunzip -c Sybase-ase-11_0_3_3-FreeBSD-6_i386.tgz|tar vxpf -

  $ gunzip -c Sybase-doc-11_0_3_3-FreeBSD-6_i386.tgz|tar vxpf -

  $ gunzip -c Sybase-oscd-10_0_4-FreeBSD-6_i386.tgz|tar vxpf -

  解壓完成,以下開始配置SQL伺服器。

  配置資料庫伺服器
  以sybase用戶登錄FreeBSD主機

  $ cd Sybase

  $ cd install

  $ ./sysinit

  屏幕顯示以下畫面選單項:

  SYBINIT

  1. Release directory: /opt/sybase

  2. Edit / View Interfaces File

  3. Configure a Server product

  4. Configure an Open Client/Server product

  Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

  Enter the number of your choice and press return:3

  選擇3后:出現以下提示:

  CONFIGURE SERVER PRODUCTS

  Products:

  Product Date Installed Date Configured

  1. SQL Server Mar 22 2000 21:22

  2. Backup Server Mar 22 2000 21:22

  Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

  Enter the number of your choice and press return: 1

  選擇1后,出現以下提示:

  EXISTING SYBASE SERVER

  1. Configure a new Adaptive Server

  2. Configure an existing Sybase Server

  3. Upgrade an existing Sybase Server

  Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

  Enter the number of your choice and press return: 1

  再選擇1

  ADD NEW ADAPTIVE SERVER

  1. Adaptive Server name: SYBASE

  Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

  Enter the number of your choice and press return: 1

  如果你要更改adaptive Server 的名稱,選擇1,鍵入你想用的名稱,完成後使用Ctrl-a接受目前配置,出現以下提示,開始對伺服器進行具體配置。

  SYBASE SERVER CONFIGURATION

  1. CONFIGURE SERVER'S INTERFACES FILE ENTRY Incomplete

  2. MASTER DEVICE CONFIGURATION Incomplete

  3. SYBSYSTEMPROCS DATABASE CONFIGURATION Incomplete

  4. SET ERRORLOG LOCATION Incomplete

  5. CONFIGURE DEFAULT BACKUP SERVER Incomplete

  6. CONFIGURE LANGUAGES Incomplete

  7. CONFIGURE CHARACTER SETS Incomplete

  8. CONFIGURE SORT ORDER Incomplete

  9. CONFIGURE AUDITING Incomplete

  Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

  Enter the number of your choice and press return:

  可以選擇1~9各項,對以上9項內容進行配置。

  例如,選擇第1項,配置完成後顯示如下:

  SERVER INTERFACES FILE ENTRY SCREEN

  Server name: SYBASE

  1. Retry Count: 0

  2. Retry Delay: 0

  3. Add a new listener service

  Modify or delete a service

  Listener services available:

  Protocol Address Port Name Alias

  4. tcp freebsd 7100 syb1103

  Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

  Enter the number of your choice and press return:

  配置完全部1~9項后,結果如下:

  SYBASE SERVER CONFIGURATION

  1. CONFIGURE SERVER'S INTERFACES FILE ENTRY Complete

  2. MASTER DEVICE CONFIGURATION Complete

  3. SYBSYSTEMPROCS DATABASE CONFIGURATION Complete

  4. SET ERRORLOG LOCATION Complete

  5. CONFIGURE DEFAULT BACKUP SERVER Complete

  6. CONFIGURE LANGUAGES Complete

  7. CONFIGURE CHARACTER SETS Complete

  8. CONFIGURE SORT ORDER Complete

  9. CONFIGURE AUDITING Complete

  Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

  Enter the number of your choice and press return:

  選擇ctrl-a之後,出現以下警告:

  WARNING: '/home/sybase/master.dat' is a regular file which is not recommended for a Server device.

  Press <return> to continue.

  這是因為我們正在使用的資料庫文件不是直接放置在raw設備上,而是使用了操作系統屏蔽下的文件系統,沒有關係,直接回車即可。接著程序生成設備、資料庫文件等,整個過程要2~3分鐘。最後程序提示「configuration completed successfully」,SQL Server的配置完成。

  據說,在Sybase-11.0.3.3中加入了對raw設備的支持,有興趣的朋友可以自己試試看。至此,伺服器配置完成。

  配置備份伺服器
  SQL Server配置好后,連按Ctrl-a進入如下選單畫面:

  SYBINIT

  1. Release directory: /opt/sybase

  2. Edit / View Interfaces File

  3. Configure a Server product

  4. Configure an Open Client/Server product

  此時,選擇2配置BACKUP Server,配置過程如下:

  選擇要配置的伺服器名(SYB_BACKUP),輸入相應的主機名稱、TCP埠號、別名等如下所示:

  SERVER INTERFACES FILE ENTRY SCREEN

  Server name: SYB_BACKUP

  1. Retry Count: 0

  2. Retry Delay: 0

  3. Add a new listener service

  Modify or delete a service

  Listener services available:

  Protocol Address Port Name Alias

  4. tcp freebsd 8000 SYB_BACKUP_Alias

  Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

  Enter the number of your choice and press return:

  本例中,筆者用了埠號8000,別名為:SYB_BACKUP_Alias(容易記)。之後按Ctrl-a確認。

  然後,配置BACKUP Server的日誌文件位置、語言、字符集等,如下所示:

  Enter the number of your choice and press return:

  BACKUP SERVER CONFIGURATION

  1. Backup Server errorlog: /opt/sybase/sybase/install/backup.log

  2. Enter / Modify Backup Server interfaces file information

  3. Backup Server language: us_english

  4. Backup Server character set: iso_1

  5. Backup Server tape configuration file: /opt/sybase/sybase/backup_tape.cfg

  Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

  Enter the number of your choice and press return:

  按Ctrl-a確認完成配置,之後安裝程序會保存配置,並試圖啟動BACKUP Server。

  至此,備份伺服器配置完成。





[火星人 via ] Sybase 11.0.3.3落戶FreeBSD [三] 下載軟體及解壓已經有141次圍觀

http://www.coctec.com/docs/linux/show-post-74163.html