在linux下自動啟動 sybase資料庫

2021-07-14 20:01:16 字數 744 閱讀 5043

啟動sybase資料庫

cd   /opt/sybase/ase-16.0/instatll

執行 startserver -f run_servername

開機無需登入使用者即可實現自動啟動

安裝好sybase後,在 /etc/rc.d/rc.local 下新增(根據配置會有所不同自己可以參考前面配置sybase的引數)

touch /var/lock/subsys/local

su sybase -c"source /home/sybase/.bash_profile;/opt/sybase/ase-12_5/install/startserver -f/opt/sybase/ase-12_5/install/run_sybase"

su sybase -c"source /home/sybase/.bash_profile;/opt/sybase/ase-12_5/install/startserver -f/opt/sybase/ase-12_5/install/run_sybasebak"

還有一點如果安裝sybase時設定的是ip的話,如果ip變動會導致無法啟動sybase服務,需要修改,最好採用主機名方式,可以直接在/etc/hosts 中設定主機名 以後可以直接修改ip

順帶說一句 如果出現lang 環境語言變數未改變,導致本機isql登陸不上,使用其他工具可以連線上sybase的情況,請在配置rc.local 檔案的時候在上面三條命令前加入  

lang=c

export lang

linux下自動啟動mysql

linux下自動啟動mysql 在mysql二進位製包裡面,有乙個叫mysql.server的啟動指令碼程度。把它複製到 etc rc.d init.d目錄裡面 cd ect rc.d init.d cp home mysql support files mysql.server mysql 接著把...

linux下自動啟動mysql

在mysql 二進位製包裡面,有乙個叫mysql server的啟動指令碼程式。把它複製到 etc rc.d init.d目錄裡面 cd etc rc.d init.d cp usr local mysql share mysql mysql server mysql 接著把它的屬性改為 x exe...

在soalris下自動啟動 oracle

1 首先編寫乙個sh檔案 etc init.d dbora,內容如下 bin sh set oracle home to be equivalent to the oracle home from which you wish to execute dbstart and dbshut ora ho...