天天看點

更改sybase下裝置名

一:基本情況

環境:aix+ha+sybase 互備

起因:由于之前擴tempdb空間,在兩台aix上建了相同的lv_tempdb名字,服務切換到同一台機器上,導緻卷組不能激活,服務啟動失敗

處理辦法:更改系統表sysdevices

停止sybase服務

使用chlv -n 重命名lv名字

啟動syabase服務

除此還需兩邊導出卷組在重新導入,ha同步校驗等

二:以windows為例模拟該步驟(重命名tempdb裝置)

1 裝置基本狀況

2 更新裝置tempdb 裝置實體名字

use master

go

sp_configure 'allow updates to system tables',1

update sysdevices set phyname=’E:\data\newtempdb’ where name=’tempdb’

sp_configure 'allow updates to system tables',0

3 停止sybase服務,在作業系統更改裝置名字

E:\data\tempdb----------------àE:\data\newtempdb

4 啟動sybase服務

5 驗證

本文轉自 zhangxuwl 51CTO部落格,原文連結:http://blog.51cto.com/jiujian/1061330,如需轉載請自行聯系原作者

繼續閱讀