dbTalk Databases Forums  

Move index-segment

comp.databases.sybase comp.databases.sybase


Discuss Move index-segment in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Heinz Müller
 
Posts: n/a

Default Move index-segment - 10-20-2008 , 12:00 PM






Hi,

SYBASE 12.5.4, Solaris 10.

Can anyone give me a hint how to move an index segment from one device to another?
Is it similiar like to move a log segment?

Regards,
Heinz



Reply With Quote
  #2  
Old   
Bret_Halford
 
Posts: n/a

Default Re: Move index-segment - 10-20-2008 , 04:30 PM






On Oct 20, 11:00*am, "Heinz Müller" <onkelhe... (AT) mscologne (DOT) de> wrote:
Quote:
Hi,

SYBASE 12.5.4, Solaris 10.

Can anyone give me a hint how to move an index segment from one device toanother?
Is it similiar like to move a log segment?

Regards,
Heinz

Yes, you would use sp_extendsegment to move the segment onto the new
device, and
sp_dropsegment to remove it from the original device.

You may then want to rebuild any indexes assigned to that segment to
get their actual
space allocation to move onto the new device.


Reply With Quote
  #3  
Old   
Bret_Halford
 
Posts: n/a

Default Re: Move index-segment - 10-20-2008 , 04:30 PM



On Oct 20, 11:00*am, "Heinz Müller" <onkelhe... (AT) mscologne (DOT) de> wrote:
Quote:
Hi,

SYBASE 12.5.4, Solaris 10.

Can anyone give me a hint how to move an index segment from one device toanother?
Is it similiar like to move a log segment?

Regards,
Heinz

Yes, you would use sp_extendsegment to move the segment onto the new
device, and
sp_dropsegment to remove it from the original device.

You may then want to rebuild any indexes assigned to that segment to
get their actual
space allocation to move onto the new device.


Reply With Quote
  #4  
Old   
Bret_Halford
 
Posts: n/a

Default Re: Move index-segment - 10-20-2008 , 04:30 PM



On Oct 20, 11:00*am, "Heinz Müller" <onkelhe... (AT) mscologne (DOT) de> wrote:
Quote:
Hi,

SYBASE 12.5.4, Solaris 10.

Can anyone give me a hint how to move an index segment from one device toanother?
Is it similiar like to move a log segment?

Regards,
Heinz

Yes, you would use sp_extendsegment to move the segment onto the new
device, and
sp_dropsegment to remove it from the original device.

You may then want to rebuild any indexes assigned to that segment to
get their actual
space allocation to move onto the new device.


Reply With Quote
  #5  
Old   
Bret_Halford
 
Posts: n/a

Default Re: Move index-segment - 10-20-2008 , 04:30 PM



On Oct 20, 11:00*am, "Heinz Müller" <onkelhe... (AT) mscologne (DOT) de> wrote:
Quote:
Hi,

SYBASE 12.5.4, Solaris 10.

Can anyone give me a hint how to move an index segment from one device toanother?
Is it similiar like to move a log segment?

Regards,
Heinz

Yes, you would use sp_extendsegment to move the segment onto the new
device, and
sp_dropsegment to remove it from the original device.

You may then want to rebuild any indexes assigned to that segment to
get their actual
space allocation to move onto the new device.


Reply With Quote
  #6  
Old   
Bret_Halford
 
Posts: n/a

Default Re: Move index-segment - 10-20-2008 , 04:30 PM



On Oct 20, 11:00*am, "Heinz Müller" <onkelhe... (AT) mscologne (DOT) de> wrote:
Quote:
Hi,

SYBASE 12.5.4, Solaris 10.

Can anyone give me a hint how to move an index segment from one device toanother?
Is it similiar like to move a log segment?

Regards,
Heinz

Yes, you would use sp_extendsegment to move the segment onto the new
device, and
sp_dropsegment to remove it from the original device.

You may then want to rebuild any indexes assigned to that segment to
get their actual
space allocation to move onto the new device.


Reply With Quote
  #7  
Old   
Bret_Halford
 
Posts: n/a

Default Re: Move index-segment - 10-20-2008 , 04:30 PM



On Oct 20, 11:00*am, "Heinz Müller" <onkelhe... (AT) mscologne (DOT) de> wrote:
Quote:
Hi,

SYBASE 12.5.4, Solaris 10.

Can anyone give me a hint how to move an index segment from one device toanother?
Is it similiar like to move a log segment?

Regards,
Heinz

Yes, you would use sp_extendsegment to move the segment onto the new
device, and
sp_dropsegment to remove it from the original device.

You may then want to rebuild any indexes assigned to that segment to
get their actual
space allocation to move onto the new device.


Reply With Quote
  #8  
Old   
Bret_Halford
 
Posts: n/a

Default Re: Move index-segment - 10-20-2008 , 04:30 PM



On Oct 20, 11:00*am, "Heinz Müller" <onkelhe... (AT) mscologne (DOT) de> wrote:
Quote:
Hi,

SYBASE 12.5.4, Solaris 10.

Can anyone give me a hint how to move an index segment from one device toanother?
Is it similiar like to move a log segment?

Regards,
Heinz

Yes, you would use sp_extendsegment to move the segment onto the new
device, and
sp_dropsegment to remove it from the original device.

You may then want to rebuild any indexes assigned to that segment to
get their actual
space allocation to move onto the new device.


Reply With Quote
  #9  
Old   
Bret_Halford
 
Posts: n/a

Default Re: Move index-segment - 10-20-2008 , 04:30 PM



On Oct 20, 11:00*am, "Heinz Müller" <onkelhe... (AT) mscologne (DOT) de> wrote:
Quote:
Hi,

SYBASE 12.5.4, Solaris 10.

Can anyone give me a hint how to move an index segment from one device toanother?
Is it similiar like to move a log segment?

Regards,
Heinz

Yes, you would use sp_extendsegment to move the segment onto the new
device, and
sp_dropsegment to remove it from the original device.

You may then want to rebuild any indexes assigned to that segment to
get their actual
space allocation to move onto the new device.


Reply With Quote
  #10  
Old   
Heinz Müller
 
Posts: n/a

Default Re: Move index-segment - 10-21-2008 , 10:07 AM




"Bret_Halford" <bret (AT) sybase (DOT) com> schrieb im Newsbeitrag
news:097cf71e-4a70-49c9-9701-288b0dbb7402 (AT) u40g2000pru (DOT) googlegroups.com...
On Oct 20, 11:00 am, "Heinz Müller" <onkelhe... (AT) mscologne (DOT) de> wrote:

Quote:
Yes, you would use sp_extendsegment to move the segment onto the new
device, and
sp_dropsegment to remove it from the original device.

You may then want to rebuild any indexes assigned to that segment to
get their actual
space allocation to move onto the new device.
Bret,

thank you.

My colleage has solved it with sp_placeobject. But I'm wondering how he did that,
because the description of sp_placeobject tells that it is only for future space
allocation.

I'll ask him tommorrow.

Heinz




Reply With Quote
Reply




Thread Tools
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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.