I was wondering if there is a way to drop a device without
dropping the database first, the device is not associated
with any segment but when I issue sp_dropdevice ASE says
that the device is being used by a database. I have dig in
the document and so far it's seems I have to drop the
databse first and that's not an option.
Thanks in advance,
Laval.
HTH,
Rob
-------------------------------------------------------------
Rob Verschoor
Certified Sybase Professional DBA for ASE 12.5/12.0/11.5/11.0
and Replication Server 12.5 / TeamSybase
Author of Sybase books (order online at www.sypron.nl/shop):
"Tips, Tricks & Recipes for Sybase ASE"
"The Complete Sybase Replication Server Quick Reference Guide"
"The Complete Sybase ASE Quick Reference Guide"
mailto:r...@YOUR.SPAM.sypron.nl.NOT.FOR.ME
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------
<Laval Tsang> wrote in message news:418bb27b.481...@sybase.com...
Laval,
If you can't drop the device, ASE thinks it is needed for a database. You
need to be careful here in case it is actually being used. Let's start by
getting the output from sysdevices and sysusages.
Mark Kusma
"Rob Verschoor" <r...@DO.NOT.SPAM.sypron.nl.REMOVE.THIS.DECOY> wrote in
message news:418bbd4c@forums-2-dub...
Rob V.
"Mark K" <xxxx> wrote in message news:418f6654$1@forums-1-dub...
If the former:
The device can be mirrored to a new device, then the mirror broken
retaining the secondary side, thus swapping the new device for the
old device
If the later:
http://www.isug.com/Sybase_FAQ/ASE/section1.2.html#1.2.12
-bret
That's what my intention was, is to shrink the database to a
smaller size, after having originally messed around with the
device. Now the device is not assigned to any segment, so
this means it's not being used by any database but the
Sysdevice shows my device with low=318767104,
high=318818303,
status=2 and Sysusage shows a dbid, segmap=0,
vstart=318767104 and a good guess(i'll confirm after going
through the docs) is that it's still being used but it's not
assigned
to any segemnt as sp_helpdb would confirm.
Bottomline, what I am looking for is a way to reverse an
"Alter database xxx on new_device=##"
Thanks.
> > > > --- Rob Verschoor
Actually, it doesn't mean that. segments just control where
future allocations of objects go. If an object has been allocated
extents on some device fragment, it is not moved off that device
fragment when you drop the segment from the fragment.
-bret