How to move a datafile using disk mirroring in Sybase12.5
Example: move audit01 device from /dir1/datafile1 to /dir2/datafile2
sp_configure ‘disable disk mirroring’, 0
go
shutdown with nowait
go
- restart dataserver
disk mirror
name = audit01,
mirror = "/dir2/datafile2"
go
disk unmirror
name = audit01,
side = "primary",
mode = remove
go
sp_helpdevice audit01
go
sp_configure 'disable disk mirroring", 1
go
- restart dataserver
from James blog
http://mysybase.blogspot.com/index.html
Sunday, 15 March 2009
Tuesday, 10 March 2009
sybase "number of user connections" in system table
"number of user connections"
select S.config, SY.name, S.value2 from syscurconfigs S, sysconfigures SY
where SY.name="number of user connections" and SY.config = S.config
select S.config, SY.name, S.value2 from syscurconfigs S, sysconfigures SY
where SY.name="number of user connections" and SY.config = S.config
Subscribe to:
Posts (Atom)