Home  >  Article  >  Database  >  更改sybase下设备名

更改sybase下设备名

WBOY
WBOYOriginal
2016-06-07 17:40:58894browse

一:基本情况环境:aix+ha+sybase互备起因:由于之前扩tempdb空间,在两台aix上建了相同的lv_tempdb名字,服务切换到同一台机器上,导致卷组不能激活,服务启动

一:基本情况

环境:aix+ha+sybase 互备

起因:由于之前扩tempdb空间,在两台aix上建了相同的lv_tempdb名字,服务切换到同一台机器上,导致卷组不能激活,香港空间,虚拟主机,服务启动失败

处理办法:更改系统表sysdevices

停止sybase服务

使用chlv -n 重命名lv名字

启动syabase服务

除此还需两边导出卷组在重新导入,ha同步校验等

 

二:以windows为例模拟该步骤(重命名tempdb设备)

1 设备基本状况

 

 

use master

go

sp_configure 'allow updates to system tables',1

go

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

go

sp_configure 'allow updates to system tables',0

go

 

 

 

5 验证

 

 

本文出自 “myblog” 博客,请务必保留此出处

,香港服务器
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn