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 > Adding device to Segment problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-12-02, 14:12
Wale Wale is offline
Registered User
 
Join Date: Mar 2002
Posts: 156
Adding device to Segment problem

I have an issue here....Its never happened before. I normally use sybase central (ASE 11.5) to create new devices and add them to existing segments. For some reason Sebase Central crapped out but I finally re-registered the plug -in to fix this issue. My problem now is: After creating database devices, Sybase central somehow does not recognise these devices so that I may add them to existing segments to create much needed space. What do I do. Are there more options command line style that I could use that would/could force an existing device onto a segment?
Reply With Quote
  #2 (permalink)  
Old 03-12-02, 15:07
Wale Wale is offline
Registered User
 
Join Date: Mar 2002
Posts: 156
I also tried this

by the way I have also tried this................

disk init
name = "device name",
physname = "d:\physical_path\file_name.dat",
vdevno = 18, size = 102400

but when I try to add a new segment or add the device to an existing one I just get this error:

Server Message: Number 17281, Severity 16
The specified device is not used by the database.
Reply With Quote
  #3 (permalink)  
Old 03-13-02, 01:45
suchetan suchetan is offline
Registered User
 
Join Date: Mar 2002
Location: India
Posts: 7
Re: segment

Hi,

Your are Just creating the device. The device has not been allocacted to the database.You will have to do the following:

alter database [databasename] on [devicename]
devicename is the name you give in the disk init command.

If you have a user defined segment then you can do an sp_extendsegment to extend the segment on to this device.

If you are creating a new userdefined segment the you can do an sp_addsegment to add a new segment.


Regards,
__________________
Suchetan

Last edited by suchetan : 03-13-02 at 01:47.
Reply With Quote
  #4 (permalink)  
Old 03-13-02, 01:46
prithvi prithvi is offline
Registered User
 
Join Date: Feb 2002
Location: India
Posts: 9
Hi Wale,

After Adding the device, You must alter the database by

Alter database databasename to devicename = size.

then only the device is added to the particular database.After that u can
add these device to the segment.
__________________
Prithivi Nagaraj
Reply With Quote
  #5 (permalink)  
Old 03-13-02, 13:16
Wale Wale is offline
Registered User
 
Join Date: Mar 2002
Posts: 156
thanks guys

I did do this yesterday, and it worked fine. Thanks.
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