DBAsupport.com Forums - Powered by vBulletin
Results 1 to 8 of 8

Thread: Scaling down an Import

  1. #1
    Join Date
    Nov 2001
    Posts
    118

    Scaling down an Import

    Hi There,

    I have to import a dumpfile with tables that are practically empty but have gigantic initial extents, therefore taking up loads of unnecessary disk space.

    Does anyone know how to import this file while disrgarding the initial extent values so that it fits into a small DB instance?

    Thanks
    Peer

  2. #2
    Join Date
    Aug 2001
    Location
    chennai,bangalore
    Posts
    840
    Hi,
    First you need to do an import which write all the DDL into a file, then edit the file to set small INITIAL and NEXT value and do the complete import. The import parameter used for this option in "indexfile"

    imp username/password file=export.dmp fromuser= touser= indexfile=

    regards
    anandkl
    anandkl

  3. #3
    Join Date
    Sep 2003
    Location
    over the hill and through the woods
    Posts
    995
    I would hope you're using LMT's
    Oracle it's not just a database it's a lifestyle!
    --------------
    BTW....You need to get a girlfriend who's last name isn't .jpg

  4. #4
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    You could just edit the fiule with a decent editor -- UltraEdit is good on Windows
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  5. #5
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    Originally posted by OracleDoc
    I would hope you're using LMT's
    This by itself will not make any difference regarding the space allocation for imported segments.
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

  6. #6
    Join Date
    Nov 2001
    Posts
    118
    Thanks for you help, Guys, but the problem has been solved, meaning the import request has been cancelled.

  7. #7
    Join Date
    Sep 2003
    Location
    over the hill and through the woods
    Posts
    995
    Originally posted by jmodic
    This by itself will not make any difference regarding the space allocation for imported segments.
    It would if you didn't specify storage para'ms in the table create.
    Oracle it's not just a database it's a lifestyle!
    --------------
    BTW....You need to get a girlfriend who's last name isn't .jpg

  8. #8
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    Originally posted by OracleDoc
    It would if you didn't specify storage para'ms in the table create.
    No matter if you did/didn't specify it at table create time - when you exported the table the current setting of the INITIAL are written into that dump file. And regardless if you subsequently import that table into a LMT or DMT, the imp utility will creat that table by alocating (at least) as much space in the target tablespace as it is stated for the INITIAL in the exp dump file for that taable.

    The only solution for the original problem is to precreate table before the import, regardles of wether LMT or DMT is used.
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

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