Results 1 to 3 of 3

Thread: Resize (Shrink) Sybase Database

  1. #1

    Thread Starter
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383

    Resize (Shrink) Sybase Database

    I am using Sybase ASE 15.0.2
    I have loaded a clients database from a dump and it required a 15GB database.
    However, when I look at the usage there is only ~350MB of data in there.

    Sybase seems to create a file on disk the size of your database despite how much of it is used.
    I cant really afford to spare 15GB on my disk.
    Is there anyway to resize the database so that it is only 2GB in size?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Resize (Shrink) Sybase Database

    I would check the SysBase documentation or their web site. If this is common for the product, there has to be some built in way to accomplish what you are after.

  3. #3

    Thread Starter
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383

    Re: Resize (Shrink) Sybase Database

    You'd think so wouldn't you?
    Although, I can't find anything.
    I think the next best thing would be to use the bcp command to export all the data out to flat files and create a new database and import them back in.

    However, I don't know how to generate the DDL scripts in Sybase to recreate the tables and indexes for the data to go back into

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width