Trigger Compilation Errors after Full Import with Datapump

Hello All,
We did a full import with Oracle Datapump, and encountered some errors related to triggers:
ORA-39082: Object type TRIGGER:"CONVERT3"."CUBCNVT_AUDIT_RESET" created with compilation warnings
ORA-39082: Object type TRIGGER:"CONVERT3"."CUBCNVT_AUDIT_RESET" created with compilation warnings
ORA-39082: Object type TRIGGER:"CONVERT3"."CUBCNVT_AUDIT" created with compilation warnings
ORA-39082: Object type TRIGGER:"CONVERT3"."CUBCNVT_AUDIT" created with compilation warnings
ORA-39082: Object type TRIGGER:"CONVERT3"."CURCNVT_AUDIT_RESET" created with compilation warnings
ORA-39082: Object type TRIGGER:"CONVERT3"."CURCNVT_AUDIT_RESET" created with compilation warnings
ORA-39082: Object type TRIGGER:"CONVERT3"."CURCNVT_AUDIT" created with compilation warnings
ORA-39082: Object type TRIGGER:"CONVERT3"."CURCNVT_AUDIT" created with compilation warningsWe are wondering if there is some bug with the datapump on oracle 10.2.0.2. What caused such errors and how to resolve this trigger issue?
Thanks!

Hello,
Show errors / at the end of the trigger and see if any of the dependent objects is missing resulting in error at compilation.
Also you can try manually fixing the issue
CREATE OR REPLACE TRIGGER table1_trg
   AFTER INSERT
   ON TABLE1    REFERENCING NEW AS new OLD AS old
   FOR EACH ROW
DECLARE
   tmpvar   NUMBER;
BEGIN
Trigger code
EXCEPTION
   WHEN OTHERS
   THEN
      -- Consider logging the error and then re-raise
      RAISE;
END table1_trg;
SHOW ERRORS;Regards

Similar Messages

  • Trigger compile errors

    Need some direction. I have a user table defined that I would like to track any change in the Active column. when this occurs, I want a trigger to fire on after update to the BPF.Users table. The trigger will insert into the user_audit_log table. There is a sequence defined for that table as well. Here is the trigger:
    CREATE OR REPLACE TRIGGER user_update
    AFTER UPDATE OF active ON BPF.users
    FOR EACH ROW
    when (new.Name <> NULL)
    DECLARE
         currentuser CHAR(6);
         timenow DATE;
    BEGIN
    SELECT USER INTO currentuser from DUAL;
    timenow := SYSDATE;
    INSERT INTO BPF.user_audit_log
    VALUES (user_audit_seq.NEXTVAL, currentuser,:New.Name, timenow, 'Active Status Change');
    END;
    The user_audit_log table is define:
    CREATE TABLE BPF.user_audit_log
    (uaID NUMBER(38) PRIMARY KEY,
    uacuruser VARCHAR2(20),
    uachguser VARCHAR2(20),
    uadate DATE,
    uamsg VARCHAR2(1000)
    Now for the weird part, when I create the trigger, it has compile errors but does not say what they are. I can create the trigger without the insert statement and it compiles fine. I have no idea what is wrong with it. Can anyone give me some direction? Thanks so much!

    Thank you for your help. It has to do with the NVARCHAR2 definition. The character values have to be in this format, n'value', in order for it to insert. Now I just have to figure out how to do that. But here is the table definition.
    SQL> describe BPF.Users
    Name Null? Type
    USER_ID NOT NULL NUMBER(10)
    NAME NOT NULL NVARCHAR2(100)
    FULL_NAME NVARCHAR2(100)
    EMAIL NVARCHAR2(400)
    ACTIVE NOT NULL NUMBER(1)
    PREFERENCES NVARCHAR2(4000)
    DEFAULT_BU_ID NOT NULL NUMBER(10)
    WF_USER_ID NUMBER(10)
    DEFAULT_SECURITY_PROFILE_ID NOT NULL NUMBER(10)
    SYSTEM NOT NULL NUMBER(1)
    REPORTSTO_USER_ID NUMBER(10)
    DEFAULT_FA_ID NOT NULL NUMBER(10)
    USER_ATTR_1 NVARCHAR2(1000)
    USER_ATTR_2 NVARCHAR2(1000)
    USER_ATTR_3 NVARCHAR2(1000)
    USER_ATTR_4 NVARCHAR2(1000)
    USER_ATTR_5 NVARCHAR2(1000)
    USER_ATTR_6 NVARCHAR2(1000)
    USER_ATTR_7 NVARCHAR2(1000)
    USER_ATTR_8 NVARCHAR2(1000)
    USER_ATTR_9 NVARCHAR2(1000)
    USER_ATTR_10 NVARCHAR2(1000)
    ORIGINAL_EMAIL NVARCHAR2(200)
    DEFAULT_PASSWORD NVARCHAR2(40)

  • Capture sql_test ||Trigger compilation errors.

    Thanks Liu Fan.
    I use the sql statement you gave me,it works well on sqlplus, but while put into trigger and have warning message:
    Warning: Trigger created with compilation errors.
    following is code snippet:
    create or replace trigger test_trg
    after UPDATE or DELETE or INSERT on emp
    declare
    this_sql_text varchar2(800);
    CURSOR c1 is
    select b.sql_text from v$session a, v$sqltext_with_newlines b where a.sql_address = b.address
    and a.audsid = (select userenv('SESSIONID') from dual)
    and a.sql_hash_value =b.hash_value
    order by b.piece;
    rec c1%ROWTYPE;
    begin
    open c1;
    loop
    fetch c1 into rec;
    exit when c1%NOTFOUND;
    this_sql_text := this_sql_text &#0124; &#0124; rec.sql_text;
    end loop;
    close c1;
    insert into change_audit (changeDate, mysql_text) values (sysdate,this_sql_text);
    end;
    Does Anyone have a clue why this is happening? Any help will be greatly appreciated.
    null

    I create the same trigger as yours to test. But it failed in compiling because the v$session view cannot be resolved. Then try to wrap the sql statement in dynamic sql. Then compilation is successful and cannot resolve the view during execution.
    My suggestion is that if you can do a test in your system schema to see if the view can be resolved. Following the the test script:
    (You can call this proc in your trigger.)
    PROCEDURE TEST_TRACESQL AS
    PRAGMA AUTONOMOUS_TRANSACTION;
    TYPE TestType IS REF CURSOR;
    test_cv TestType;
    sql_stmt VARCHAR2(200);
    sql_text VARCHAR2(2000);
    tmp_text VARCHAR2(200);
    BEGIN
    sql_stmt := 'select b.sql_text ' &#0124; &#0124;
    'from sys_session a, sys_sqltext b ' &#0124; &#0124;
    'where a.sql_address = b.address ' &#0124; &#0124;
    'and a.audsid = (select userenv(''SESSIONID'') from dual) ' &#0124; &#0124;
    'and a.sql_hash_value = b.hash_value';
    DBMS_OUTPUT.PUT_LINE(SQL_STMT);
    OPEN test_cv FOR sql_stmt;
    LOOP
    FETCH test_cv INTO tmp_text;
    EXIT WHEN test_cv%NOTFOUND;
    sql_text := sql_text &#0124; &#0124; tmp_text;
    END LOOP;
    CLOSE test_cv;
    INSERT INTO test_sql (sqltext) values(sql_text);
    COMMIT;
    END;
    null

  • Trigger Compilation Error

    Good day all. I have been trying to get this trigger to work for the past three hours but to no avail. I would greatly appreciate some assistance with the two errors generated from the trigger compilation please.
    the code is:
    CREATE TABLE "User"
    (     "userId" NUMBER NOT NULL ENABLE,
         "userName" VARCHAR2(20) NOT NULL ENABLE,
         "password" VARCHAR2(20) NOT NULL ENABLE,
         "fName" VARCHAR2(30) NOT NULL ENABLE,
         "lName" VARCHAR2(30) NOT NULL ENABLE,
         "dob" Date NOT NULL ENABLE,
         "dateCreated" DATE NOT NULL ENABLE,
         "userType" VARCHAR2(20) NOT NULL ENABLE,
         CONSTRAINT "USER_PK" PRIMARY KEY ("userId") ENABLE,
         CONSTRAINT "uSER_FK1" FOREIGN KEY ("userType")
              REFERENCES "UserTypeLookUp" ("userType") ENABLE)
    CREATE SEQUENCE "User_SEQ" MINVALUE 1 MAXVALUE 9999999 INCREMENT BY 1 START WITH 1 NOCACHE NOORDER NOCYCLE
    CREATE OR REPLACE TRIGGER "BI_User"
    before insert on "User"
    for each row
    begin
    select "User_SEQ".nextval into :NEW.userId from dual
    end;
    ALTER TRIGGER "BI_User" ENABLE;
    the error when i compile the trigger is;
    Line Position Text
    2 35 PLS-00049: bad bind variable 'NEW.USERID'
    4 1 PLS-00103: Encountered the symbol "/" when expecting one of the following: begin case declare end exception exit for goto if loop mod null pragma raise return select update while with
    When i try to do and insert on the table i get this error;
    ORA-04098: trigger 'CSR.BI_User' is invalid and failed re-validation
         Error     Unable to process row of table User.
    OK

    First close your SELECT with ";"

  • BPEL Compilation Error: Load of wsdl "with Message part element undefined..

    Hi Friends,
    I am getting following error while compiling my BPEL process:
    Error: Load of wsdl "FTPWrite.wsdl with Message part element undefined in wsdl [file:/D:/MyData/_MyProjects/052_Amazon_MetadataInterface/001_SVN/002_Intl/trunc/MetadataInterfaceIntl_2013Apr15_WorkingCode/MetadataInterface_Intl/MetadataInterface_Intl.wsdl] part name = reply     type = {http://com.fox.metadata/MetadataInterfaceIntl/MetadataInterface_Intl/types}processResponse" failed
    However the reply message is already defined in the MetadataInterface_Intl.wsdlas shown below:
    Code for MetadataInterface_Intl.wsdl::::
    "<?xml version= '1.0' encoding= 'UTF-8' ?>
    <wsdl:definitions
    name="MetadataInterface_Intl"
    targetNamespace="http://xmlns.oracle.com/MetadataInterfaceIntl/MetadataInterface_Intl/MetadataInterface_Intl"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:inp1="http://com.fox.metadata/MetadataInterfaceIntl/MetadataInterface_Intl/types"
    xmlns:tns="http://xmlns.oracle.com/MetadataInterfaceIntl/MetadataInterface_Intl/MetadataInterface_Intl"
    >
    <wsdl:types>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:import namespace="http://com.fox.metadata/MetadataInterfaceIntl/MetadataInterface_Intl/types" schemaLocation="xsd/Metadata_Interface.xsd"/>
    </xsd:schema>
    </wsdl:types>
    <wsdl:message name="requestMessage">
    <wsdl:part name="request" element="inp1:process"/>
    </wsdl:message>
    *<wsdl:message name="replyMessage">*
    *<wsdl:part name="reply" element="inp1:processResponse"/>*
    *</wsdl:message>*
    <wsdl:portType name="execute_ptt">
    <wsdl:operation name="execute">
    <wsdl:input message="tns:requestMessage"/>
    <wsdl:output message="tns:replyMessage"/>
    </wsdl:operation>
    </wsdl:portType>
    </wsdl:definitions>"
    Surprisingly, this same code was compiling file last week and now I have no clue why I am getting this error. Can someone please shade some light on this issue?
    Thanks,
    Sachin.

    Hello
    I have had the same problem in Oracle BPM and solved it using the following steps:
    1- In your application navigator window, expand the project that contains the business rule.
    2- In the SOA Content, double click on your wsdl file.
    3- When the file opens, select the schema view from the bottom of the page.
    4- In the schema view, expand all the schema nodes and check if you see any values in red. If you see one, that value has probably caused the error and you should correct it using the property inspector window.
    In my case, the schema location value was set to a wrong path, so I changed it and the error resolved.
    Also, some error that appear as warning in the rule editor will show as compile error later, such as input types not being used and such, so those must be resolved before compiling.
    Hope that was helpful
    good luck

  • Compilation error after installling BizTalk 2013 CU2

    Hi,
    I started getting the below error in the orchestration project
    "non-readonly field/property access is limited to distinguished fields on class-based messages"
    it was failing at this line RequestMessage.DocumentElement.LocalName == "Fault".
    Here RequestMessage is a message of type System.Xml.XmlDocument. 
    It was working again after I uninstalled BizTalk 2013 CU2. Has anyone faced this problem and what was the solution .
    Looking at the release notes of CU2 at
    http://support.microsoft.com/kb/2892599/en-gb it says about a fix to XpathMutator class
    "FIX: XpathMutatorStream class does not work as expected when you execute Xpath statements against XmlDocuments in BizTalk Server 2013"
    Probably this is causing the compilation error. Can we raise this with the BizTalk Product team if someone else has also faced this issue ?
    Regards,
    Mahesh

    What subsequent CU's? There hasn't been any CU's for BizTalk Server 2013 since CU2 which was released in Oct. 2013 (almost 1 1/2 year ago now!)
    http://support.microsoft.com/kb/2555976
    Morten la Cour

  • Compile error after upgrade to jdev 1013 from 9052

    Hi,
    I just upgraded to jdev 10.1.3.0.4. We had this program compile correctly in jdev 9052, but is now erroring out during compile:
    Error(5,34): identifier expected (with enum highlighted), at the following line.
    import gov.epa.cdx.axis.security.enum.AuthMethod;
    Can you help me to correct this? Thanks.

    SU is a service update but that won't fix your problem.
    "enum" is a keyword in Java 5 and therefore may not be used in identifiers.
    In 9.0.5.2 you were compiling with JDK 1.4 I presume.
    Either change the package name or use JDK 1.4 for your project.
    Sascha

  • Compile error: Eclipse confuses Type with Window.Type

    Hi there,
    I'm using Eclipse Luna (Version: Luna Service Release 1a (4.4.1)) and JDK 1.8.0_31.
    Our projects are build with Maven. Maven build works without any problems and also our Netbeans users do not have any issues.
    But Eclipse shows compile errors and it seems, that it confuses the generic Java Type with java.awt.Window.Type which was introduced with Java 1.7.
    I created the following minimized example, which reproduces the compile problem.
    This class creates a instance of MyDialog which uses the generic Java Type:
    public class TypeTest {
    public static void main(String[] args) {
    String str = new String();
    MyDialog<String> dialog = new MyDialog<String>();
    String x = dialog.getValue(str);
    And this is the implementation of the dialog of type Type:
    import javax.swing.JDialog;
    public class MyDialog<Type> extends JDialog {
    public MyDialog() {
    super();
    public Type getValue(Type value) {
    return value;
    Eclipse persists that for getValue in MyDialog the Type is a Window.Type, which is wrong!
    This is the compile error message:
    The method getValue(Window.Type) in the type MyDialog<String> is not applicable for the arguments (String)
    Since it works without any issues for the maven build and the netbeans users, it seems to me that this is an Eclipse issue or bug? Or can someone give me a hint, how this can be solved?
    Thanks and kind regards,
    Daniel

    I just found that this question has never been answered, and from a cursory look I wasn't actually sure if this is a bug or not.
    Turns out I already wrote a little "essay" on what seems to be the same issue, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=396378#c6
    Bottom line: JLS doesn't seem to specify how to interpret / handle a conflict between an inherited member type and a same-named type parameter.
    This seems to impliy that both implementations, javac and ecj - although different - are both valid wrt JLS.

  • GW link on VO throws compile error after SP5

    How can we get GW7 WebAccess link in VO to work properly with NW65 but
    after applying SP5.
    Throws a compile error message while directly launching the right URL
    http://servername/gw/webacc
    works well.
    Any suggestions pls
    Best Regards

    Vasanth,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Compilation errors after upgrading from 8.1.6 to 10.2

    I recently upgraded a Weblogic Workshop application from version 8.1.6 to 10.2 using the Import wizard in Weblogic Workshop 10.2. However, I am getting the following compilation errors:
    Problem encountered finding XML Schema metadata for XML Bean
    com.ssmb.amps.workflow.projectionApproval.ProjectionApprovalDocument
    Does any one has any idea on it?
    Thanks,
    Albert

    Hi,
    Once upgraded from s.1 to 10.2, XML Schemes are converted to XMLBeans. So, during compiliation XMLSchemas are encountered. Try deleting XMLSchemas and compile. Hope it may help.
    Krishna

  • 10.1.3 Internal compilation error after unistalling extension cwd4all

    I installed the cwd4all extension from the "check for updates" wizard.
    Then i decided that I didn't need it so I uncheck it from the Tools>Preferences>Extensions but when I tried to compile apreviously working class I got an "Internal compilation error, terminated with a fatal exception" error.
    Rechecking (i.e. reinstalling) the extension solved the problem, so then I removed both the jar and the relative folder from the extensions directory and I got the same error.
    I don't want to reinstall the extension.
    Any suggestions?

    Hi,
    Extensions that are provided on the "Open Source and Partner Extensions" extension center are written by third parties and come with absolutely no warranty or guarantees whatsoever.
    If you want to make sure you're running JDeveloper in a completely supported mode, you should uncheck the "Open Source and Partner Extensions" update center on the "Source" page of Check for Updates before checking for updates (or if you're installing updates via the automatic check balloon, only select extensions which are marked as being from the "Official Oracle Extensions" update center).
    Brian

  • Oracle automatic statistics optimizer job is not running after full import

    Hi All,
    I did a full import in our QA database, import was successful, however GATHER_STATS_JOB is not running after sep 18 2010 though its enable and scheduled, i did query last_analyzed table to check and its confirmed that it didnt ran after sep18,2010.
    Please refer below for the output
    OWNER JOB_NAME ENABL STATE START_DATE END_DATE LAST_START_DATE NEXT_RUN_D
    SYS GATHER_STATS_JOB TRUE SCHEDULED 18-09-2010 06:00:02
    Oracle defined automatic optimizer statistics collection job
    =======
    SQL> select OWNER,JOB_NAME,STATUS,REQ_START_DATE,
    to_char(ACTUAL_START_DATE, 'dd-mm-yyyy HH24:MI:SS') ACTUAL_START_DATE,RUN_DURATION
    from dba_scheduler_job_run_details where
    job_name='GATHER_STATS_JOB' order by ACTUAL_START_DATE asc; 2 3 4
    OWNER JOB_NAME STATUS REQ_START_DATE ACTUAL_START_DATE
    RUN_DURATION
    SYS GATHER_STATS_JOB SUCCEEDED 16-09-2010 22:00:00
    +000 00:00:22
    SYS GATHER_STATS_JOB SUCCEEDED 17-09-2010 22:00:02
    +000 00:00:18
    SYS GATHER_STATS_JOB SUCCEEDED 18-09-2010 06:00:02
    +000 00:00:26
    What could be the reason for GATHER_STATS_JOB job not running although its set to auto
    SQL> select dbms_stats.get_param('AUTOSTATS_TARGET') from dual;
    DBMS_STATS.GET_PARAM('AUTOSTATS_TARGET')
    AUTO
    Does anybody has this kind of experience, please share
    Apprecitate your responses
    Regards
    srh

    ?So basically you are saying is if none of the tables are changed then GATHER_STATS_JOB will not run, but i see tables are updated still the job is not running. I did >query dba_scheduler_jobs and the state of the job is true and scheduled. Please see my previous post on the output
    Am i missing anything here, do i look for some parameters settings
    So basically you are saying is if none of the tables are changed then GATHER_STATS_JOB will not run,GATHER_STATS_JOB will run and if there are any table in which there's a 10 percent change in data, it will gather statistics on that table. If no table data have changes less than 10 percent, it will not gather statistics.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/stats.htm#i41282
    Hope this helps.
    -Anantha

  • Flex compilation error after adding an additional output port to a query

    Hello,
    I need to add an additional output port to a query in order to dynamically filter some results. Our version of VC 7.0 (SP16) doesn't support filter components with access to store data.
    Just when we add an extra output port to the query and deploy it we run into a flex compilation error.
    Has somebody come along with that?
    Kind regards
    Stefan

    Hi
    Why exactly you want another output port. With same output port you can drag multiple filters & restrict the output.
    Creation of second output port is not required.
    If first way is not suitable in your case, then you add that query twice (or multiple times) & pass the same input parameters.
    If still it is not serving the purpose then please elaborate your requirement as what dynamic filter you want.
    Regards
    Sandeep

  • Windows Installation Error after Full Recovery

    Hi,
    I upgraded a Satellite A135-S4656 from a 160GB hard drive to 320GB hard drive. I did a full recovery with the recovery cd's. At the end of the recovery, I the following message:
    "Windows setup could not configure windows to run on this computer's hardware"
    After saying ok to the message above and rebooting. I get to the Windows Vista splash screen and then i get the following message:
    "Windows could not complete the installation. To install Windows on this computer, restart the intallation."
    I ran the recovery once again and went through the whole recovery - still get the same messages.
    Your help with this will be appreciated.
    Hard drive info
    Toshiba 320GB 2.5 SATA HDDR320I02X

    if you know how to partition the hdd try to split that hdd into two 50/50 and re-run system recovery again.
    =========================================================
    the only easy day was yesterday.....
    =========================================================

  • Compilation error in jsp script with weblogic 9.1 server

    Hi All,
              i am using weblogic 9.1 compiler to compile my jsp code.
              it gives me compilation error.
              The root cause of the error is %% which comes in the code.
              for e.g take this code:-
              <%
              System.out.println("%%abc");
              %>
              this code will give error while error.
              here it is identifing %% as termination tag!
              same code works in tomcat & weblogic 8.1
              can anyone give any information in this regard.
              Reagrds
              Rahul

    I am also getting the same error. If you have solved this issue please share the solution.
              Thanks,
              Dikshit

Maybe you are looking for