Error ORA-04098

Please could somebody tell me what to do. I use both Procedure builder and Sql plus (Oracle 8i and Forms 6i). I ran a script catproc.sql (That is bundled in the admin subdirectory) last night. When I try drop a stored procedure or function - I get the error ORA-04098: trigger 'SYS.JIS$ROLE_TRIGGER$' is invalid and failed re-validation. When I try to describe the trigger SYS.JIS$ROLE_TRIGGER$ both logged on as an ordinary database user and as the dba,oracle claims that the trigger does not exist.
Please what do I do.
This problem did not occur until I ran the script catproc.sql.

Did you try compiling the trigger as SYS? What user did you run the catproc.sql script as? It should have bee run as the SYS user.

Similar Messages

  • Errore ORA-04098 creating Trigger.

    hi,
    I have some problem creating a simple trigger for auto increment of an "Id_column".
    I create a sequence: create sequence "sequence_name" minvalue 1 maxvalue 999 increment by 1
    then create trigger: create trigger "trigger_registry"
    before insert on "registry"
    for each row
    when (new.ID_registryA is null)
    begin
    select "Sequence_name".nextval into: new.ID_registry
    FROM DUAL;
    END;
    and finally I try to insert something into registry table but I got this error: ORA-04098: il trigger 'SYSTEM.TRIGGER_NAME' is invalid and failed re-validation.
    Has anybody got any idea about this error?

    user3745218 wrote:
    ok, so i've corrected all but the error is still the same: ORA-04098: il trigger 'SYSTEM.TRIGGER_NAME' is invalid and failed re-validation.
    Unless you post SQL*PLus snippet like this, we can't help you:
    SQL> create or replace
      2  trigger emp1_bir
      3  before insert
      4  on emp1
      5  for each row
      6  when (new.sal < 0)
      7  begin
      8  select sss.nextval into :new.empno from dual;
      9  end;
    10  /
    Warning: Trigger created with compilation errors.
    SQL> show error trigger emp1_bir
    Errors for TRIGGER EMP1_BIR:
    LINE/COL ERROR
    2/1      PL/SQL: SQL Statement ignored
    2/8      PL/SQL: ORA-02289: sequence does not exist
    SQL> SY.

  • Error ORA-04098: trigger 'GSD_WARTUNG.BI_WARTUNGS_AUFTRAEGE' is invalid...

    hello,
    whats this?? i just can't insert any data into my table anymore! the trigger is just marked as "invalid", what can i do to make it work again?
    thank you.
    josh

    ah damn the sequence didnt exist anymore! no idea how it was deleted, i never have done anything with sequences before... :-/

  • ORA-04098 trigger"BANKTRAN_BEF_DEL" is invalid and and failed re-validation

    Hey Experts,
    I created follwoing trigger successfully...
    create or replace trigger BANKTRAN_BEF_DEL
    before delete on BANKTRAN
    declare
    weekend_error EXCEPTION;
    not_authentocated_user EXCEPTION;
    begin
    if TO_CHAR(SysDate,'DY') = 'SAT' or TO_CHAR(SysDate,'DY') = 'SUN' THEN
    RAISE weekend_error;
    end if;
    if SUBSTR(User,1,3) <> 'ATN' THEN
    RAISE not_authentocated_user ;
    end if;
    EXCEPTION
    WHEN weekend_error THEN
    RAISE_APPLICATION_ERROR (-20001,
    'Deletions not allowed on weekends');
    WHEN not_authentocated_user THEN
    RAISE_APPLICATION_ERROR (-20002,
    'Deletions only allowed by authentocated users');
    end;
    but when deleting the records using query delete from BANKTRAN
    getting the below error
    ORA-04098 trigger"BANKTRAN_BEF_DEL" is invalid and and failed re-validation
    Edited by: SShubhangi on Jan 7, 2013 4:21 PM

    Alright.
    Now Try the DML that causes the Trigger to fire.
    And post the details.
    PS:- Please use {noformat}{noformat} before and after the SQL statements/results or code samples.
    It makes post more readable and you get better help.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • ORA-04098: error

    Dear All,
    I tried to logign to my database but I'm obtain the folowing message:
    ORA-04098: il trigger 'FLOWS_030100.WWV_AIU_FND_USER' non è valido oppure la nuova convalida non è riuscita
    I think I cancelled the trigger ... could you post me the code to re-create it?
    Please could you help me.
    Thnaks a lot
    Paolo
    Edited by: PaoloT on 22-ott-2009 14.22

    This is what I get from my XE database :
    SYS@xe > set long 100000
    SYS@xe > set pages 0
    SYS@xe > select description,trigger_body
      2  from dba_triggers
      3  where trigger_name='WWV_AIU_FND_USER';
    wwv_aiu_fnd_user
        after insert or update on wwv_flow_fnd_user
        for each row
    declare
      l_hist_id number;
      l_found boolean;
    begin
        if INSERTING and wwv_flow_fnd_user_api.g_password_save is not null then
                                    l_hist_id := wwv_flow_id.next_val;
                        insert into wwv_flow_password_history
                            (id, user_id, password, created, security_group_id)
                        values
                            (l_hist_id, :new.user_id, wwv_flow_fnd_user_api.g_password_save, trunc
    (sysdate), :new.security_group_id);
        elsif UPDATING and wwv_flow_fnd_user_api.g_password_save is not null then
                                    -- insert into history table only if this password with created date of toda
    y is not already saved
                                    l_found := false;
                                    for c1 in (select id into l_hist_id from wwv_flow_password_history
                                        where user_id = :new.user_id and password = wwv_flow_fnd_user_api.g_pass
    word_save and created = trunc(sysdate) and security_group_id = :new.security_gro
    up_id) loop
                                        l_found := true;
                                        exit;
                                    end loop;
                                    if not l_found then
                                        l_hist_id := wwv_flow_id.next_val;
                                        insert into wwv_flow_password_history
                                            (id, user_id, password, created, security_group_id)
                                        values
                                            (l_hist_id, :new.user_id, wwv_flow_fnd_user_api.g_password_save, tru
    nc(sysdate), :new.security_group_id);
                                    end if;
        end if;
        wwv_flow_fnd_user_api.g_password_save := null;
    end wwv_aiu_fnd_user;
    SYS@xe >

  • Error:ORA-01003: no statement parsed

    Hi,
    While clicking on details button of customized form it's give below error:
    1)Error:
    ORA-01003: no statement parsed
    Details..:
    ORA-01003: no statement parsed
    FRM-407535: ON-UPDATE trigger raised unhandled exception ORA-04098
    FND_FORMS_ERROR_MSG(ERRNO=4098) (REASON=ORA-01003: no statement parsed)
    2)Error:
    APP-FND-01388: Cannot read value for profile option
    FND_LOOK_AND_FEEL in routine & ROUTINE..
    Details..
    Message History
    APP-FND-01388: Cannot read value for profile option FND_LOOK_AND_FEEL in routine &ROUTINE.
    APP-FND-01388: Cannot read value for profile option FND_COLOR_SCHEME in routine &ROUTINE.
    APP-FND-01388: Cannot read value for profile option FND_INDICATOR_COLORS in routine &ROUTINE.
    ORA-01003: no statement parsed
    Please help me how to sort out the problem.
    Thanks
    Regards
    GSM

    Was this working before? If yes, any changes have been done recently?
    Did you compile the form successfully at the client side before uploading it to the server?
    Did you use the TEMPLATE.fmb file to create this custom form?
    Not sure what is the code you are using in that form, so posting it may help -- OERR: ORA 1003 no statement parsed [ID 18594.1]
    Thanks,
    Hussein

  • Oracle Errorr ORA-04098

    I have a customer who is getting ORA-04098 "Trigger is invalid and failed revalidation". The trigger and the procedures it calls compile without errors. The trigger is enabled. I have tried recompiling all the procedures and then the triggers again but this hasn't helped. It is Oracle 8.0.3 on Windows NT. Can anyone suggest a course of action to get this running?
    Thanks,
    Karl
    [email protected]

    Karl,
    This is the Oracle documentation on the error
    Please check back and look for the proper authorizations for the trigger.
    ORA-04098 trigger 'string' is invalid and failed re-validation
    Cause: A trigger was attempted to be retrieved for execution and was found to be invalid. This also means that compilation/authorization failed for the trigger.
    Action: Options are to resolve the compilation/authorization errors, disable the trigger, or drop the trigger.
    Hope this helps.
    Shyam
    null

  • Trigger is resulting in ORA-04098 (Trigger invalid)

    I'm trying to create a trigger which automatically updates the rpimary key each time a record is inserted in the table CONTACTS_MAN. This table is basically an address book.
    SQL> describe contacts_man
    Name Null? Type
    CONTACT_ID NOT NULL NUMBER
    DATEREF DATE
    TITLE VARCHAR2(200)
    FNAME VARCHAR2(50)
    MNAME VARCHAR2(50)
    SNAME VARCHAR2(50)
    SUFFIX VARCHAR2(5)
    COMPANY VARCHAR2(150)
    DEPARTMENT VARCHAR2(200)
    JOB_TITLE VARCHAR2(150)
    BUSINESS_ST1 VARCHAR2(200)
    BUSINESS_ST2 VARCHAR2(200)
    BUSINESS_ST3 VARCHAR2(200)
    BUSINESS_CITY VARCHAR2(200)
    BUSINESS_POSTCODE VARCHAR2(20)
    BUSINESS_COUNTY VARCHAR2(100)
    BUSINESS_COUNTRY VARCHAR2(100)
    BUSINESS_REGION VARCHAR2(150)
    HOME_ST1 VARCHAR2(150)
    HOME_ST2 VARCHAR2(200)
    HOME_POSTCODE VARCHAR2(150)
    HOME_CITY VARCHAR2(100)
    HOME_REGION VARCHAR2(50)
    BUSINESS_FAX VARCHAR2(50)
    BUSINESS_PHONE VARCHAR2(50)
    CAR_PHONE VARCHAR2(20)
    COMPANY_MAIN_PHONE VARCHAR2(50)
    HOME_PHONE VARCHAR2(50)
    MOBILE1 VARCHAR2(50)
    MOBILE2 VARCHAR2(50)
    ANNIVERSARY DATE
    DATE_OF_BIRTH DATE
    CHILDREN NUMBER
    GENDER VARCHAR2(10)
    EMAIL1 VARCHAR2(50)
    EMAIL2 VARCHAR2(50)
    EMAIL3 VARCHAR2(50)
    GOVERNMENT_ID VARCHAR2(500)
    HOBBY VARCHAR2(500)
    KEYWORDS VARCHAR2(500)
    LANGUAGES VARCHAR2(500)
    NOTES VARCHAR2(2500)
    REFERRED_BY VARCHAR2(150)
    SPOUSE VARCHAR2(100)
    WEBPAGE VARCHAR2(150)
    BUSINESS_PHONE2 VARCHAR2(100)
    CATEGORY NUMBER
    1) First I create the following sequence:
    CREATE SEQUENCE mancontacts_seq
    START WITH 10
    INCREMENT BY 1;
    2) Then create the following trigger:
    CREATE OR REPLACE TRIGGER contactman_autokey
    BEFORE INSERT ON CONTACTS_MAN
    FOR EACH ROW
    BEGIN
    :NEW.contact_id := mancontacts_seq.NEXTVAL;
    END;
    WHEN TRYING TO INSERT I GET THE FOLLOWING ERROR:
    SQL> INSERT INTO CONTACTS_MAN (FNAME, SNAME)
    2 VALUES ('MyFirstName', 'MySurname');
    INSERT INTO CONTACTS_MAN (FNAME, SNAME)
    ERROR at line 1:
    ORA-04098: trigger 'SYS.CONTACTMAN_AUTOKEY' is invalid and failed re-validation
    Any suggestions are greatly appreciated.
    Thank you!!
    Edited by: user9367338 on May 2, 2011 10:10 AM
    Edited by: user9367338 on May 2, 2011 10:12 AM

    Thanks for a prompt response. I am on 11g. I dropped the SYS trigger. Connected to the same user but not as DBA.
    Re-created sequence and triggers ensuring USER_SCHEMA.trigger and USER_SCHEMA.sequence.
    Managed to insert records with no errors now. Didn't quite catch the last comment about 11g since I'm able to create sequences outside the SYS schema (ie: as a normal user). Is this is ok or am I still missing something? Thanks

  • ORA-04098

    i'm getting the error message FRM-40735 AND ORA-04098 unhandled exception other than FORM_TRIGGER_FAILURE when i'm inserting the records into the database table from froms4.5.I DON'T have .fmb file but we have executable files .fmx how can i handle this situation.its an important process..
    thank.

    check out the error message in the oracle db message book (available online on otn).
    If you don't have the fmb you can't change the form but it might be a db problem that you can solve in the DB.

  • Not valid month Error Ora 01843

    hi
    This is an error while running a report 6i. in Oracle 8i Environment.
    "Not valid month Error Ora 01843"
    This report is working fine in Production. But it is not working in Development Database.
    Development database is the image of Production system.
    Any reason for this Error?

    Dear Naseer C ,
    We got similar experiences for several time.
    We quried like that.
    Selet moth from table;
    08-AUG-1988
    08-08-1988
    08-08-88
    We changed several time until diappear the message.
    Hopefully, it will help you.
    Best regards,
    S!G

  • Unable to add external data source in BAM : Error ORA-12505

    Hi,
    In BAM,
    Im trying to add an external data source for creating a data object.
    But when i try to test the connection i get the following error:
    Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    Source: "java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor "
    Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    Source: "oracle.net.ns.NetException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor "
    As mentioned in another post ((Listener does not currently know of SID given in connection descriptor
    i tried
    lsnrctl stop.
    delete listener.ora
    lsnrctl start
    lsnrctl reload
    But still get the same error;
    Im able to access the database with the specified username and password using sqlplus.
    Your help will be appreciated.
    Regards
    Vignesh Ramanathan

    For #5, not Windows, ConfigMgr 2012 R2. Anything before ConfigMgr 2012 R2 is not supported for the 8.1 ADK.
    For the permissions, what accounts are you setting this for. In general, if the share is on the same server, Everyone Full or Read on the Share and System Full or Read on the NTFS should work.
    For the error message, it looks like you are trying to import an OS Image and not an OS Install Package. OS images use a WIM file and OS Install Packages use the entire set of source files from the media. For OS images, you must thus explicitly point it
    to a specific WIM file.
    Jason | http://blog.configmgrftw.com

  • Error ORA-12560 prompts when trying to log in to the Enterprise Manager

    Hi all,
    I am a newbie to Oracle.
    Just installed the Oracle 9i Database Enterprise Edition (9.0.1) into Windows Server 2003 Standard Edition. Problem is encountered when trying to log in to the Enterprise Manager Standalone mode using either system/oracle or scott/tiger as credentials. Error "ORA-12560: TNS:protocol adapter error" prompts.
    I tried to check with some configuration and see whether the services are started. Services of "OracleOraHome90TNSListener" and "OracleServiceORCL" have been started and the database exists in the dedicated directory. Environment variables of "ORACLE_HOME" and "ORACLE_SID" have been added manually as the SID is set to orcl, which I just follow what the instruction manual has stated. Moreover, I can't get access using command prompt typing "svrmgrl"; error returned stating " 'svrmgrl' is not recognized as an internal or external command, operable program or batch file."
    Another information is that there is no domain set in my server. Just a server with a name being assigned in a workgroup.
    Hence, would you mind please advice me what to do in order to get access into the Enterprise Manager? It's quite an urgent task.
    A million thx in advance!
    Best Regards,
    Karen

    Hi Jigneshrp,
    Thanks for your reply.
    It is checked that the listener is running and TNS name service exists. Following your advice, I did create a new listener and another name service and use them, but the same error turns out when trying to log in to the Enterprise Manager again.
    Additional information to take note for is that while reconfiguring the existing listener or creating a new listener, a mesage prompts stating "The information provided for this listener is currently in use by other software on this computer. You can proceed with the configuration as it is, but it will not be possible to start this listener until the conflict is resolved. Would you like to continue with the continue with the configuration anyway? Yes/No".
    As for the reconfiguration or the new creation of TNS names service, when I am trying to test for the connection, the results in the details pane states that "Connecting... ORA-12560: TNS:protocol adapter error. The test did not succeed...."
    Would you mind pls advice me on these?
    Furthermore, there exist 2 questions I am wondering is that it is stated in the instruction manual that prior to the installation, a static IP should be specified for it instead of the DHCP one; hence, I wanna ask after the complete insallation, is it that the server should be running in the network, i.e. allow it to get connected with the outside network?
    2nd question is that can Oracle 9i Database Server Standard Edition (9.0.1) be installed under a Windows Server 2003 Standard Edition and just a Window XP Professional?
    Thanks for your reply.
    Best Regards,
    Karen

  • Error while trying to retrieve text for error ORA-12154

    Hello,
    I try to install php 5.1.2 on a WIN2003 server and IIS6 with the OCi8 extension without success from several days.
    On my server I've a 920 oracle client and the 10.1 instant client, I copy the tnsnames.ora in the instant client's directory.
    I've declare many environnement variables :
    - NLS_LANG : AMERICAN_AMERICA.WE8MSWIN1252
    - TNS_ADMIN : E:\...\oracle\instantclient_10_1
    - ORA_NLS33 : E:\..\oracle\920\ocommon\nls\ADMIN\DATA
    With the php command line the oci_connect function correctly works : the php command line use the instant client's tnsnames.ora. I can query with success my database.
    When I try to load a web php script (the same as the php command line script) I have the following error " Error while trying to retrieve text for error ORA-12154" ( oci_connect( $user , $pass, $sid ) . The $sid variable have the value of an alias declared in the tnsnames.ora.
    If I replace the sid's alias by something like this " (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xx.xx.xx.xx)(PORT=1521)))(CONNECT_DATA=(SID=xx)" in the oci_connect function, I have another error : Error while trying to retrieve text for error ORA-12705.
    A web page with the phpinfo function displays the following messages about oci8 extension : It seems to be correct.
    oci8
    OCI8 Support enabled
    Revision $Revision: 1.269.2.8 $
    Active Persistent Connections 0
    Active Connections 0
    Temporary Lob support enabled
    Collections support enabled
    Do you have any idea ? Thanks a lot

    The web server is not seeing the Oracle environment correctly. You need to set PATH to the instant client libraries. ORA_NLS33 is not used for Oracle 10g clients. Perhaps you have some library conflict with two versions of Oracle on the machine?
    These may help:
    http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html#envvars
    http://blogs.oracle.com/opal/2006/05/01

  • Error ORA-03113: end-of-file on communication channel in droppping  a table

    Good evening,
    I am very new on Oracle and I have a problem with some tables. Without any reason, apparently, I can't drop some of my table. Oracle gives me this error:
    ORA-03113: end-of-file on communication channel
    and then close the connection of the user.
    What I should have to do?
    It is very important.
    Thanks a lot
    best regards
    Anna Zanetti

    Good morning, I still have the same problem, I can't drop a table from my database.
    The message is again:
    Re: Error ORA-03113: end-of-file on communication channel
    The alert log file says:
    Fri Nov 17 12:27:31 2006
    Errors in file /usr/oracle/admin/oracledb/udump/oracledb_ora_4369.trc:
    ORA-07445: exception encountered: core dump [0955C61F] [SIGSEGV] [Address not mapped to object] [0xC] [] []
    and in file oracledb_ora_4369.trc there is:
    Exception signal: 11 (SIGSEGV), code: 1 (Address not mapped to object), addr: 0xc, PC: [0x955c61f, 0955C61F]
    Registers:
    %eax: 0x00000000 %ebx: 0x00012d95 %ecx: 0x58301930
    %edx: 0x00000000 %edi: 0x5830d9e8 %esi: 0x00000000
    %esp: 0xbfffae1c %ebp: 0xbfffb060 %eip: 0x0955c61f
    %efl: 0x00210282
    (0x955c61f) movzw 0xc(%eax),%eax(0x955c623) cmp $30,%eax
    (0x955c626) jle 0x955c63e
    (0x955c628) xor %edx,%edx
    (0x955c62a) push %edx
    *** 2006-11-17 12:27:31.658
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [0955C61F] [SIGSEGV] [Address not mapped to object] [0xC] [] []
    Current SQL statement for this session:
    drop table fiumiforjoin
    ----- Call Stack Trace -----
    calling call entry argument values in hex
    location type point (? means dubious value)
    08856247 call 0885776A 1 ? 0 ? 1 ? 1 ? 0 ? 0 ?
    08290320 call 0885605A 3 ? 0 ? 0 ? 0 ? 0 ? 0 ?
    0955C61F signal 08290320 B ? BFFFAAB0 ? BFFFAB30 ?
    0955D6BE call 0955C61F 5830F01C ? 0 ? FFFFFFFF ? 0 ?
    1 ? 5830F01C ?
    08DD1EEB call 0955CC22 BFFFB394 ? 0 ? 0 ? BFFFB348 ?
    58EAB2B0 ? C ?
    09434EF3 call 08DD1A28 BF2A8C4 ? BFFFC0C0 ?
    BFFFC0C0 ? 4 ? B6AB0300 ?
    B6ABC2E0 ?
    094106E0 call 094326D4 4 ? 0 ? BFFFC0C0 ?
    093D7BB5 call 0940FEF8 3 ? E ? BFFFC1F8 ? A4 ?
    093D630C call 093D7AC4 BFFFCDF0 ? BFFFCD08 ? 17 ?
    1 ? 0 ? A4 ?
    08293DE6 call 0850FFFF 5E ? 14 ? BFFFCDEC ?
    0A1ED44D call 08293DE6 5E ? 14 ? BFFFCDEC ? 0 ?
    08292122 call 0A1ECAE4 BF2A8C0 ? 5E ? BFFFCDEC ? 0 ?
    BFFFD6E8 ? BFFFD6E4 ?
    0941F190 call 0829193C 0 ? 0 ? BF2A8C0 ? BF83090 ?
    F1 ? 0 ?
    08293DE6 call 0850FFFF 3C ? 4 ? BFFFEB08 ?
    08291238 call 082937A8 3C ? 4 ? BFFFEB08 ? 0 ?
    0828F403 call 08291012 3C ? 4 ? BFFFEB08 ?
    08274A3D call 0828F39C BFFFEAEC ? 3C ? 4 ?
    BFFFEB08 ? B6CC017C ?
    B6C1A17C ?
    __libc_start_main() call 08274A3D 2 ? BFFFEBA4 ? BFFFEBB0 ? 0 ?
    +218 B6C1C898 ? B7600020 ?
    Any idea of what I have to do?
    Thanks for your help..
    Best Regards
    Anna Zanetti

  • Import Export Error (ORA-06502)

    All,
    We are trying to migrate the code from windows 2000 HTMLDB 1.5.0.00.33 to solaris 9 HTMLDB 1.5.0.00.33 by using the export/import function. After migration, one report went wrong with the following message.
    report error:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    The tables definition are identical and there's no data in the production table. When we try to reduce the query length from 3000 to 2500 characters, the error message disappears on production.
    Is there any HTMLDB global variable controls the maximum length of the report "region source"?
    Any response would be appreciate.
    Thanks,
    Tony
    ===========================================
    PS: Here's our query:
    select
    x.supreq_id,
    DECODE(x.pk, null, 'Add new record:', ''||'<img src="#IMAGE_PREFIX#edit.gif" border="0" alt="Edit Icon">') edit,
    x.pk,
    x.request,
    x.subject,
    x.severity,
    x.priority,
    x.status,
    x.request_type,
    x.response,
    x.username,
    x.created_date,
    x.note,
    x.cks
    from (
    select
    htmldb_item.hidden(1,supreq_id) supreq_id,
    supreq_id edit,
    supreq_id pk,
    htmldb_item.text(3, request,'','','onFocus="javascript:window.status=this.value" onBlur="javascript:window.status=''Done''"') request,
    htmldb_item.select_list_from_lov(4,subject,'REQUEST_SUBJECT','','NO') subject,
    htmldb_item.select_list(5, severity, '3,2,1', 'style="width:40px"','NO') severity,
    htmldb_item.select_list_from_lov(6,priority,'REQUEST_PRIORITY','','NO') priority,
    htmldb_item.select_list_from_lov(7,status,'REQUEST_STATUS','','NO') status,
    htmldb_item.select_list_from_lov(8, request_type, 'SUPPORT_REQUEST_TYPE','', 'NO') request_type,
    htmldb_item.text(9, response,'','','onFocus=javascript:window.status=this.value;') response,
    htmldb_item.select_list_from_lov(10, username, 'USER_EMPLOYEE', 'style="width:100px"','NO') username,
    htmldb_item.date_popup(11, rownum,created_date, 'mm/dd/yyyy', 8) created_date,
    htmldb_item.text(12, note,'','','onFocus=javascript:window.status=this.value;') note,
    htmldb_item.md5_checksum(request, subject, severity, priority, status, request_type, response, username, created_date,note) cks
    from
    art_sup_requests
    where
    (:P319_PRIORITY IS NULL OR :P319_PRIORITY ='%' OR
    INSTR(UPPER(ART_SUP_REQUESTS.PRIORITY),UPPER(:P319_PRIORITY)) > 0)
    AND
    (:P319_SEVERITY IS NULL OR :P319_SEVERITY ='%' OR
    INSTR(UPPER(ART_SUP_REQUESTS.SEVERITY),UPPER(:P319_SEVERITY)) > 0)
    AND
    (:P319_SUBJECT IS NULL OR :P319_SUBJECT ='%' OR
    INSTR(UPPER(ART_SUP_REQUESTS.SUBJECT),UPPER(:P319_SUBJECT)) > 0)
    AND (:P319_CREATED_DATE IS NULL OR
    TRUNC(ART_SUP_REQUESTS.CREATED_DATE)=TO_DATE(:P319_CREATED_DATE,'MM/DD/YYYY'))
    AND (:P319_REQUEST_TYPE IS NULL OR :P319_REQUEST_TYPE ='%' OR
    INSTR(UPPER(ART_SUP_REQUESTS.REQUEST_TYPE),UPPER(:P319_REQUEST_TYPE)) > 0)
    AND (:P319_REQUEST IS NULL OR
    INSTR(UPPER(ART_SUP_REQUESTS.REQUEST),UPPER(:P319_REQUEST)) > 0)
    AND (:P319_USERNAME IS NULL OR :P319_USERNAME ='%' OR
    INSTR(UPPER(ART_SUP_REQUESTS.USERNAME),UPPER(:P319_USERNAME)) > 0)
    AND (:P319_ID IS NULL OR ART_SUP_REQUESTS.SUPREQ_ID = :P319_ID)
    union all
    select
    htmldb_item.hidden(1,null) supreq_id,
    null edit,
    null pk,
    htmldb_item.text(3, null) request,
    htmldb_item.select_list_from_lov(4,null,'REQUEST_SUBJECT','','NO') subject,
    htmldb_item.select_list(5, null, '3,2,1', 'style="width:40px"','NO') severity,
    htmldb_item.select_list_from_lov(6,null,'REQUEST_PRIORITY','','NO') priority,
    htmldb_item.select_list_from_lov(7,null,'REQUEST_STATUS','','NO') status,
    htmldb_item.select_list_from_lov(8, null, 'SUPPORT_REQUEST_TYPE','', 'NO') request_type,
    htmldb_item.text(9, null) response,
    htmldb_item.select_list_from_lov(10, null,
    'USER_EMPLOYEE','style="width:100px"','NO') username,
    htmldb_item.date_popup(11, null, sysdate,'mm/dd/yyyy', 8) created_date,
    htmldb_item.text(12, null) note,
    htmldb_item.md5_checksum(null,null, null, null, null, null, null, null, null, null) cks
    from dual) x

    Scott,
    Thanks for the response. We've applied HTMLDB version 1.5.1.00.12 on both develop and production servers yesterday but the ORA-06502 error still persist. We've also tried to use package and "pl/sql return sql" instead of a long sql query but received the same result.
    The solaris instance is using "Western European ISO-8859-1" as the file character set and the windows is using "Western European Windows 1252". Is there any easy way to change the DAD character set on the production box?
    Thanks,
    Tony

Maybe you are looking for