Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Sybase > mixed data & log segment

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-13-07, 07:57
sudarao sudarao is offline
Registered User
 
Join Date: Mar 2007
Posts: 54
mixed data & log segment

Hi,
How do I identify if a database has mixed data and log segments.

Thanks
Reply With Quote
  #2 (permalink)  
Old 11-14-07, 17:26
trvishi trvishi is offline
Registered User
 
Join Date: Sep 2003
Location: Switzerland
Posts: 371
sp_helpdb <dbname>

it will show data and log if its mixed
Reply With Quote
  #3 (permalink)  
Old 11-22-07, 01:33
moodleyn moodleyn is offline
Registered User
 
Join Date: Nov 2004
Posts: 2
HI there

i'm running Sybase 11.9.2 and another systems administrator had installed my database with mixed log and data...so datadevice is data and log and so is log device.

I'm a bit new to DBA stuff, but what would be the easiest to do to sort the problem out? i don't want to crash anything because it is our live server for music.

THanks alot for any info given,

NIRI
Reply With Quote
  #4 (permalink)  
Old 11-29-07, 08:05
vubhaskar vubhaskar is offline
Registered User
 
Join Date: Nov 2007
Posts: 3
hi

to seperate the data and log

1) create a new device with
disk init name ="diskname" physname="path to device" , size="no"

2) Moving the log to newly created device

alter database <database name> log on "newly created device"

sp_logdevice databasename, devicename

this two steps will help you in moving your log to different device.

3) to confirm that run sp_helplog
Reply With Quote
  #5 (permalink)  
Old 12-03-07, 11:43
tahirkhalil tahirkhalil is offline
Registered User
 
Join Date: Feb 2004
Posts: 8
Just a quick addition,

create a dummy table to move the log pointer to the new device:
create table dummy (col1 char(1))
go

insert into dummy values("a")

go 1000

dump tran <databasename> with truncate_only

To make sure we clear any log that might remain on the data device

use sp_helplog to make sure that the log starts on the new log device
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On