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

Thread: Export Problem

  1. #1
    Join Date
    May 2001
    Location
    India
    Posts
    55

    Arrow

    Hi,

    Here I have a problem in the export operation.


    Here I am doing full export.


    while exporting synonym I am getting the message like.

    EXP 00008 oracle error 904 encountered

    ORA-00094 invalid column name

    export terminated unsuccessfully.


    what is the problem in the export ?.

    my id is shankar_gk@hotmail.com,shankar_gk@usa.net

    Bye,

    G.shankar.

  2. #2
    Join Date
    Sep 2000
    Posts
    384
    It is a known bug .I forgot what patch we applied...
    If you have support log a tar with oracle otherwise try what the friend has advised.
    Radhakrishnan.M

  3. #3
    Join Date
    Feb 2001
    Posts
    163
    Doc ID: Note:1017276.102
    Subject: Oracle8i Export Fails on Synonym Export with EXP-00008 and ORA-00904
    Type: PROBLEM
    Status: PUBLISHED
    Content Type: TEXT/PLAIN
    Creation Date: 28-AUG-1999
    Last Revision Date: 28-JUN-2000


    Problem Description:
    ====================

    You are exporting from Oracle 8.1.5. The export is running smoothly until it
    begins to export the synonyms, then it returns the following:

    . exporting referential integrity constraints
    . exporting synonyms
    EXP-00008: ORACLE error 904 encountered
    ORA-00904: invalid column name
    EXP-00000: Export terminated unsuccessfully

    Running "catexp.sql" does not alleviate the problem.


    Problem Explanation:
    ====================

    A synonym named "DBMS_JAVA" exists without a corresponding package.


    Search Words:
    =============

    export, import, utilities, Oracle8i, 8i, synonym
    EXP-8 ORA-904

    Solution: Create Package "DBMS_JAVA" if Java is Enabled

    Solution Description:
    =====================

    Run script "$ORACLE_HOME/javavm/install/initdbj.sql" as internal
    in order to create package "DBMS_JAVA", which is required if Java
    is enabled.


    Solution Explanation:
    =====================

    Error is returned because export is executing a select statement
    which uses the procedure "DBMS_JAVA.LONGNAME".

    Using STACKTRACE tracing shows the select statement using the "LONGNAME"
    function:

    ---------
    ksedmp: internal or fatal error
    ORA-00904: invalid column name
    Current SQL statement for this session:
    SELECT SYNNAM, DBMS_JAVA.LONGNAME(SYNNAM), DBMS_JAVA.LONGNAME(SYNTAB)
    ,TABOWN,TABNODE, PUBLIC$, SYNOWN, SYNOWNID, SYNTIME
    FROM SYS.EXU8SYN
    WHERE SYNOWNID=:1
    ORDER BY SYNTIME

    The error is because the "DBMS_JAVA.LONGNAME" does not exist. Running the
    above script creates the package "DBMS_JAVA" and the "LONGNAME" function.

    Solution: Check for Synonym named DBMS_JAVA or DBMS_JAVA_TEST

    Solution Description:
    =====================

    Check for synonyms named DBMS_JAVA and DBMS_JAVA_TEST. If there is a synonym
    by either of these names, but there is not a corresponding DBMS_JAVA or
    DBMS_JAVA_TEST package, drop the synonym and rerun the export.


    Solution Explanation:
    =====================

    If Java is enabled, synonyms may have a "long" translation, so export uses a
    special query that invokes the DBMS_JAVA.LONGNAME function ("SELECT ...
    DBMS_JAVA.LONGNAME(SYNNAM) FROM ..."). If the DBMS_JAVA package has not been
    installed, this query will fail with and ORA-00904: "invalid column name".

    In Oracle 8.1.5, the Export utility tests if Java is enabled by looking for
    the synonym "DBMS_JAVA"; if it exists, Oracle assumes Java is enabled; if it
    doesn't, Oracle assumes Java is not enabled.

    Therefore, this problem will occur if the synonym for DBMS_JAVA exists, but
    there is not a corresponding DBMS_JAVA package.


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