Results 1 to 9 of 9
  1. #1
    Join Date
    Dec 2002
    Location
    Madrid - Spain
    Posts
    422
    Provided Answers: 1

    Unanswered: space required for create table(data+indexes)

    Good morning,
    I need to create a table in the database and I want to know how much disk space I need for the table (data + indexes).

    AIX 5.3 DB2 8

    Greetings.
    DBA DB2 for LUW

  2. #2
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    depending on the row size x number of rows
    and for the index : some reading
    Space requirements for indexes
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

  3. #3
    Join Date
    Dec 2002
    Location
    Madrid - Spain
    Posts
    422
    Provided Answers: 1
    The structure table is this.
    CREATE TABLE "IVRC "."IVNOTATD" (
    NOTA_CO_TABLA CHAR(4) NOT NULL ,
    NOTA_CO_CLAVE CHAR(75) NOT NULL ,
    NOTA_NU_SECUEN DECIMAL(3,0) NOT NULL ,
    MASC_NU_MASCAR DECIMAL(3,0) ,
    IBMSNAP_LOGMARKER TIMESTAMP ,
    CRCT_CO_INTERN_D DECIMAL(11,0) ,
    TIMEST_ENSERVICIO TIMESTAMP )

    And indexes is this:
    CREATE INDEX "IVRC "."IVNOTATDN_IDX1" ON "IVRC "."IVNOTATD"
    (CRCT_CO_INTERN_D ASC,
    NOTA_CO_TABLA ASC,
    NOTA_CO_CLAVE ASC,
    NOTA_NU_SECUEN ASC) PCTFREE 0 ;

    -- DDL Statements for indexes on Table "IVRC "."IVNOTATD"

    CREATE INDEX "IVRC "."IVNOTATDN_IDX2" ON "IVRC "."IVNOTATD"
    (TIMEST_ENSERVICIO ASC) PCTFREE 0 ;

    -- DDL Statements for indexes on Table "IVRC "."IVNOTATD"

    CREATE UNIQUE INDEX "IVRC "."IVNOTATDN_U0" ON "IVRC "."IVNOTATD"
    (NOTA_CO_TABLA ASC,
    NOTA_CO_CLAVE ASC,
    NOTA_NU_SECUEN ASC) PCTFREE 10 CLUSTER ;

    Greetings
    DBA DB2 for LUW

  4. #4
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    thanks for publishing the ddl - this will NOT resolve your problem
    I do not participate in spoon-feeding....
    all the doc is available - do some reading and try to apply .. if any problem, ask question
    If I need to come over todo your job - no problem for me, as long as you pay....
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

  5. #5
    Join Date
    Dec 2002
    Location
    Madrid - Spain
    Posts
    422
    Provided Answers: 1
    There are some guide or documentation about this requirements? give me please.

    Greetings.
    DBA DB2 for LUW

  6. #6
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    as indicated in previous update : a link to info center - all is in the book.....
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

  7. #7
    Join Date
    Dec 2002
    Location
    Madrid - Spain
    Posts
    422
    Provided Answers: 1
    lets answer another who wants to help.
    DBA DB2 for LUW

  8. #8
    Join Date
    Jun 2007
    Location
    germany
    Posts
    155
    Quote Originally Posted by georgipa View Post
    lets answer another who wants to help.
    as I have been very entertained by this thread thusfar,
    what do you mean?
    Dick Brenholtz, Ami in Deutschland

  9. #9
    Join Date
    Oct 2009
    Location
    221B Baker St.
    Posts
    486
    Hi Dick,

    what do you mean?
    Interpretation: I do not want to bother myself reading provided linked-to information from IBM. . . I want others to read the manul and post the method to calculate my space.

Posting Permissions

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