Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2878

Re: Moving Log files from Data files location

$
0
0

Hello Karthik,

 

you can use the ASE "disk mirroring" feature for this task. Please have also a look into the documentation at

http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc36272.1572/html/commands/X27321.htm

 

Example:

 

# enable disk mirroring


1> use master

2> go

1> sp_configure 'disable disk mirroring',0

2> go

 

# maybe a restart is required because this is a static parameter...

 

# mirror device to new location


1> disk mirror name="SID_log_001", mirror="/sybase/SID/saplog_1/SID_log_001.dat"

2> go

 

# break mirror and use mirror side for new location

 

1> disk unmirror name="SID_log_001", side="primary", mode="remove"

2> go

 

# control your new device location


1> sp_helpdevice

2> go

 

 

Please be aware that ASE will not remove the old SID_log_001.dat file from sapdata_1 directory. This has to be done manually after you are sure that mirroring was successful.

 

Best regards

Christoph

 


Viewing all articles
Browse latest Browse all 2878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>