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

Thread: 8i 'nested table' export not importing into 10g

  1. #1
    Join Date
    Nov 2005
    Posts
    2

    8i 'nested table' export not importing into 10g

    Hi,
    I have exported a user schema from version 8.1.7 using a standard exp command:

    exp FRED/password FILE=FRED.dmp OWNER=FRED rows=Y grants=Y log=FRED.log

    Checking the log file all seems fine.

    The file is then imported into ORACLE 10g 10.2.0

    imp FRED/password FILE=FRED.dmp FULL=y

    All works except a table containing an outer nested table. The DESCRIPTOR table and nested table VALS_ALLOWED_TABLE (and data) are missing. Using IMP SHOW on the 10g server I can see that the definition of the tables and this works when run from sqlplus...
    CREATE TABLE DESCRIPTOR
    (
    DESCRIPTOR_NAME VARCHAR2(24) NOT NULL,
    DESC_VALS_ALLOWED DEFAULT "SHM"."DESC_VALS_ALLOWED_T"(),
    ...
    ...
    LAST_MOD_ID VARCHAR2(30)
    )
    NESTED TABLE DESC_VALS_ALLOWED STORE AS VALS_ALLOWED_TABLE
    TABLESPACE SHM

    The type DESC_VALS_ALLOWED_T is created fine,
    CREATE TYPE DESC_VALS_ALLOWED_T OID "ABC4567" As TABLE OF VARCHAR2(8);

    any thoughts why it simply does not work? Does the OID matter?

    thanks
    Phil

  2. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Any errors reported in your IMP log?
    Have you ever successfully EXP/IMP offending table in the past?
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  3. #3
    Join Date
    Nov 2005
    Posts
    2
    Hi,

    No , this is the first time an exp/imp has ben performed; I have tried 8i to 8i and the same problem occurs.. so it is not the oracle version but how exp generates the dmp file for import.

    I keep getting the following when I try to import, this is the nested table:

    IMP-00017: following statement failed with ORACLE error 2203:
    "ALTER TABLE "VALS_ALLOWED_TABLE" PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS" 255 LOGGING STORAGE(INITIAL 0)"
    IMP-00003: ORACLE error 2203 encountered
    ORA-02203: INITIAL storage options not allowed

    I am trying to why the exp ( EXPORT!)... generates this clause, it causes the import to fail each time.

    thanks
    Phil

  4. #4
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Import is failing because Oracle -via Import- is attempting to alter "initial" storage allocation which is not possible.

    Try this...
    1- Pre Create your table
    2- Include option IGNORE=Y in your Import statement
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

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