linux安裝sybase注意事項

2021-06-19 12:18:52 字數 1530 閱讀 4858

1.修改環境變數

修改/home/sybase/.bashrc,加入以下三行:

lang=c 

export lang

否則會報錯

your sybase home directory is /opt/sybase.

check the environment variable sybase if it is not the one you want!

using locale name "zh_cn.utf-8" defined in environment variable lang

cannot access /opt/sybase/locales/message/chinese/common.loc file

cannot access /opt/sybase/locales/message/chinese/cslib.loc file

00:00:00000:00000:2013/12/03 11:06:40.16 kernel kscsinit: connectivity library error. operation: cs_ctx_alloc().

1.linux預設安裝路徑為 /opt/sybase,只有目錄所有者sybase這才能執行startserver(chown -r sybase.sybase /opt/sybase)

如果一般使用者執行,錯誤資訊為 

cannot execute file run_my_sybaselinux
2.如果安裝完sybase後未執行sybase.sh,則執行startserver -f  run_my_sybaselinux

報錯資訊如下

/opt/sybase/ase-15_0/bin/dataserver: error while loading shared libraries: libsbgse2.so: cannot open shared object file: no such file or directory

解決1:修改/home/sybase/.bash_profile或者/home/sybase/.bashrc ,追加/opt/sybase/sybase.sh指令碼內容,即環境變數只針對sybase使用者,其他使用者不能執行showserver,bcp等相關命令

解決2:copy乙份sybase.sh到/etc/profile.d/下面,這樣相當於對所有使用者設定了環境變數

3.設定為自啟動

在/etc/rc.d/rc.local檔案加入一行:

su - sybase -c "/opt/sybase/ase-15_0/install/startserver -f /opt/sybase/ase-15_0/install/run_ghlinux -f /opt/sybase/ase-15_0/install/run_ghlinux_back &

綜上:在執行./setup.bin完成安裝後,要完成環境變數的設定和目錄歸屬者的設定才行

linux下sybase的安裝

sybase 的安裝與配置 一 安裝資訊 1 sybase 版本 ase12.5 為rpm包。2.作業系統平台 linux 二 使用rpm 安裝sybase 資料庫軟體 1 用root 使用者登陸 linux cd mnt user sybase 12.5 使用者存放 sybase 的資料夾 rpm...

Sybase的安裝步驟

前兩天由於要給銀行做專案,銀行的資料庫是sybase.所以自己學了一些sybase方面的知識,然後做了一些總結.首先就是資料庫的安裝,安裝不可小瞧,如果選錯一步,那麼安裝完後,是不能使用的,或者是在使用過程中出現的問題,你就不知道怎麼解決.只能解除安裝重新安裝.所以首先要學會安裝.版本 15.0.1...

linux下 sybase 12 5 命令列安裝

1.用 root建立sybase 使用者,並修改許可權 chmod 755 home sybase 2 修改核心引數,設定共享記憶體直接修改 etc sysctl.conf新增 kernel.shmmax nnnn 單位byte nnnn 具體引數等於你想設定的共享記憶體,最小64m,nnnn最小為...