Oracle errors frm-40508 &ora-02291

hello
i m having a problem
i have two tables for my project with one of em master and the other a detail one
i m using developer 2000 for frontend
when i try inserting data in the forms developed i encounter an error frm-40508 which says "unable to insert record" the corresponding ora error is ora-02291 which says "integrity constraint violated - parent key not found"
i have a primary key in my master table which is used to connect it to details table through foreign key.feilds for the primary key in master and foreign key in details are same
i dont have any such problem if i input data through sql command insert
plz suggest me some solution to this problem
thnx
nipun

Hi,
Just try watching is therer ar no unique indexes on that table where u are doing an insert. another reason might be the composite primary key or the combination that might be confusing you.
U can try out adding an exception block to the trigger and try raise when-dup-val-on-index exception
Thanks,
Vishal

Similar Messages

  • Unable to insert into table Showing error FRM-40508

    I want to insert data in text items of form into a table by using procedure in program unit. i declared all the parameters and calling this procedure in When-button-pressed trigger of push-button.it is not showing any compilation error, but run time error FRm-40508 ORACLE Error: Unable to insert the record.

    The Table Structure:-
    PROB_ID VARCHAR2(50)
    PERSON_NAME NOT NULL VARCHAR2(50)
    MODULE NOT NULL VARCHAR2(100)
    START_DATE DATE
    VERSION NOT NULL VARCHAR2(50)
    ASSIGNED_BY VARCHAR2(100)
    FUNCTIONALITY VARCHAR2(4000)
    ERR_TYPE VARCHAR2(150)
    ERR_COMPONENT VARCHAR2(100)
    ERR_LOCATION VARCHAR2(250)
    PROB_DESC VARCHAR2(4000)
    PROB_SOLTN VARCHAR2(4000)
    STATUS VARCHAR2(100)
    END_DATE DATE
    and the code is in When-button-pressed
    Declare
         v_pname char(5);
         v_mod char(6);
    v_datetime VARCHAR2(9);
    v_pid varchar2(50);
    v_version varchar2(50);
    v_assign varchar2(50);
    v_func varchar2(50);
    v_etype varchar2(50);
    v_ecomp varchar2(50);
    v_eloc varchar2(50);
    v_pdesc varchar2(50);
    v_psoltn varchar2(50);
    v_status varchar2(50);
    v_edatetime varchar2(50);
    uname varchar2(50) := 'fcclog';
    pwd varchar2(50) := 'fcclog';
    con varchar2(50) := 'orcl';
    cursor c1 is select prob_id from log_table;
    BEGIN
         -- Creating the unique Problem ID by adding all the item value
         v_pname := :log_table.pname_lst;
         v_mod := :mod_table.mod_name;
         v_datetime:= to_char(:log_table.start_date);
         --:log_table.prob_id := v_pname||v_mod||v_datetime ;
         v_pid := v_pname||v_mod||v_datetime ;
         for r in c1 loop
         if v_pid = r.prob_id then
              v_pid := v_pid + 1;
         end if ;
         end loop;
         :log_table.prob_id := v_pname||v_mod||v_datetime ;
         v_pid := :log_table.prob_id;
         -- Inserting into database--
         v_version := :log_table.version;
         v_assign := :log_table.assigned_lst;
         v_func := :log_table.funct_txt;
         v_etype := :log_table.err_type;
         v_ecomp := :log_table.err_component;
         v_eloc := :log_table.err_location;
         v_pdesc := :log_table.prob_desc;
         v_psoltn := :log_table.prob_soltn;
         v_status := :log_table.status;
         v_edatetime := :log_table.end_date;
         log_insert(v_pid,v_pname,v_mod,v_datetime,v_version,v_assign,v_func,v_etype,v_ecomp,v_eloc,v_pdesc,v_psoltn,v_status,v_edatetime);
         commit;
         exception
              when others
              then
              DBMS_OUTPUT.PUT_LINE(SQLERRM);
              rollback;
         end;
    And the Code in Procedure (log_insert) of Program Unit.
    PROCEDURE log_insert(
    p_pname varchar2,
         p_mod varchar2,
    p_datetime VARCHAR2,
    p_pid varchar2,
    p_version varchar2,
    p_assign varchar2,
    p_func varchar2,
    p_etype varchar2,
    p_ecomp varchar2,
    p_eloc varchar2,
    p_pdesc varchar2,
    p_psoltn varchar2,
    p_status varchar2,
    p_edatetime varchar2)
    IS
    BEGIN
    insert into fcclog.log_table(PROB_ID,PERSON_NAME,MODULE,START_DATE,VERSION,ASSIGNED_BY,FUNCTIONALITY,ERR_TYPE,ERR_COMPONENT,ERR_LOCATION,PROB_DESC,PROB_SOLTN,STATUS,END_DATE)
    values(p_pid,p_pname,p_mod ,p_datetime,p_version,p_assign,p_func,p_etype,p_ecomp,p_eloc,p_pdesc,p_psoltn,p_status,p_edatetime);
    END;

  • EXP-00056: ORACLE error 4021 encountered ORA-04021: timeout occurred while

    hi all oracle gurus ,
    i have this problem which i am facing its like this.i have a batch file that runs export every night one week back it was all okay .few days back when i looked the log files it gives me this error ---EXP-00056: ORACLE error 4021 encountered
    ORA-04021: timeout occurred while waiting to lock object
    what should i do this is a production database runing in windows platform and there is no backup pls help me .....
    export log file -------
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user PILOT
    . exporting foreign function library names for user FINANCE
    . exporting foreign function library names for user MBCNEWS
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user PILOT
    . exporting object type definitions for user FINANCE
    . exporting object type definitions for user MBCNEWS
    About to export PILOT's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    EXP-00056: ORACLE error 4021 encountered
    ORA-04021: timeout occurred while waiting to lock object
    ORA-06512: at "SYS.DBMS_METADATA", line 1511
    ORA-06512: at "SYS.DBMS_METADATA", line 1548
    ORA-06512: at "SYS.DBMS_METADATA", line 1864
    ORA-06512: at "SYS.DBMS_METADATA", line 3707
    ORA-06512: at "SYS.DBMS_METADATA", line 3689
    ORA-06512: at line 1
    EXP-00000: Export terminated unsuccessfully
    robyav

    this is a production database runing in windows platform and there is no backup
    what should iWell first of all you should stop using EXP for backups, it's quite unsuitable, and start using RMAN instead. Find out more.
    If you have a Metalink account you shoudl read Note:298968.1. But teh headline is there is a bug in 10gR1 which is fixed in 10gR2. This may not help you much. The workaround is to try running the export again later, which may not be any more helpful.
    Cheers, APC

  • ORACLE error 959 encountered ORA-00959: tablespace 'xyz' does not exist

    im importing a dump to a newly created BD and im using 11g. I have already tablespaces and user for the dump to be imported.
    The problems is, i have a total of 5 tablespaces created, all 4 are working well except the one tablespace and im receiving a 959 error(IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'xyz' does not exist). The log mentions that the tablespace does not exist even if this tablespace exist in the list of tablespace and datafiles created.
    Hope you could help me with this. Thanks
    Edited by: user8667617 on Feb 18, 2010 11:06 PM

    SQL> Select name from v$datafile;
    NAME
    C:\APP\ORACLEADMIN\ORADATA\ORC11\SYSTEM01.DBF
    C:\APP\ORACLEADMIN\ORADATA\ORC11\SYSAUX01.DBF
    F:\ORC11DBUNDO\UNDOTBS01.DBF
    E:\ORC11DBUSER\USERS01.DBF
    E:\ORC11DBUSER\INT_TRANSACTIONS_DATA.DBF
    E:\ORC11DBUSER\INT_DATA.DBF
    E:\ORC11DBUSER\CAS_DATA.DBF
    E:\ORC11DBUSER\COS_DATA.DBF
    E:\ORC11DBUSER\INT_ONLINE_TRANSACTIONS_DATA.DBF
    9 rows selected.
    SQL> Select * from v$tablespace;
    TS# NAME INC BIG FLA ENC
    0 SYSTEM YES NO YES
    1 SYSAUX YES NO YES
    2 UNDOTBS1 YES NO YES
    4 USERS YES NO YES
    3 TEMP NO NO YES
    6 INT_TRANSACTIONS_DATA YES NO YES
    7 INT_DATA YES NO YES
    8 CAS_DATA YES NO YES
    9 COS_DATA YES NO YES
    10 INT_ONLINE_TRANSACTIONS_DATA YES NO YES
    10 rows selected.
    SQL>
    here are the result of my query and it seems that the tablespace is recognized by the DB.
    is there still any reason why? also when i try to drop the said tablespace in getting a response of the "tablespace does not exist" but when i try to create the tablespace it says that "ORA-00604: error occurred at recursive SQL level 1
    ORA-00001: unique constraint (SYS.I_TS1) violated"
    hope you can help me with this.

  • Error frm-40735 ora-01403

    I read that this is a general purpose error for Forms, but I couldn't find an answer for my situation. I have a datablock based on a view, and a command button that has a trigger for selecting values into the block where one of the blocks fields matches those records. Here is the pl/sql code for the button's when-button-pressed trigger:
    BEGIN
    SELECT VIEW.ATTRIBUTE1, VIEW.ATTRIBUTE2
    INTO :DATABLOCK.TEXTFIELD1, :DATABLOCK.TEXTFIELD2
    FROM VIEW
    WHERE :DATABLOCK.TEXTFIELD = VIEW.ATTRIBUTE3;
    END;
    When I try to run this in Forms, I get the Error frm-40735 ora-01403. I can run similar code from SQL Plus. I would really appreciate some help.
    regards

    Let me give a better example: If I have two tables:
    create table dept (
    dept_no NUMBER,
    dept_name VARCHAR2(10),
    CONSTRAINT dept_pk PRIMARY KEY (dept_no)
    create table Location (
    loc_no NUMBER,
    loc_name VARCHAR2(10),
    dept_no NUMBER,
    CONSTRAINT loc_pk PRIMARY KEY (loc_no),
    CONSTRAINT loc_fk FOREIGN KEY (dept_no)
    REFERENCES dept(dept_no)
    and I create a master-detail form between the two. If I try to search by the loc_name, with the two tables joined by the master-detail, and have a trigger on a command button with the code:
    BEGIN
    SELECT d.dept_no, d.dept_name
    INTO :DEPARTMENT.DEPT_NO, :DEPARTMENT.DEPT_NAME
    FROM Location l, Dept d
    WHERE :LOCATION.LOC_NAME = l.loc_name;
    END;
    why do I encounter the error?

  • 11.5.10.2 to R12.1.1 upgrade : ORA-20000: Oracle Error Rebuild1= -904 - ORA-00904: "TAB"."USER_PROP": invalid identifier

    EBS version : 11.5.10.2
    DB version : 11.2.0.3
    OS version : AIX 6.1 (64 bit)
    As a part of 11.5.10.2 to R12.1.1 upgrade, while applying merged 12.1.1 upgrade driver(u6678700.drv), I got below error :
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ATTENTION: All workers either have failed or are waiting:
    FAILED: file ECXQBKUP.sql on worker 1.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Worker 1 log:
    ========================================
    Start time for file is: Mon Aug 05 2013 10:54:29
    sqlplus -s APPS/***** @/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql/ECXQBKUP.sql &un_apps &pw_apps &un_fnd
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    declare
    ERROR at line 1:
    ORA-20000: Oracle Error Rebuild1= -904 - ORA-00904: "TAB"."USER_PROP": invalid
    identifier
    ORA-06512: at line 46

    I tried fix inside 12.0.6 Patch 6728000 Fails On Ecxqbkup.Sql (Doc ID 760122.1) but getting same error :
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:51:44 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ECXQBKUP.sql apps apps applsys
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
      select count(*) into in_cnt from ecx_inqueue
    ERROR at line 26:
    ORA-06550: line 26, column 36:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 26, column 3:
    PL/SQL: SQL Statement ignored
    drix10:/home/appltest>sqlplus '/as sysdba'
    SQL*Plus: Release 11.2.0.3.0 Production on Tue Aug 6 11:47:38 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> exec dbms_aqadm.drop_queue_table( queue_table=> 'APPS.ECX_INQUEUE',force=>true);
    PL/SQL procedure successfully completed.
    SQL> exec dbms_aqadm.drop_queue_table( queue_table=> 'APPS.ECX_OUTQUEUE',force=>true);
    PL/SQL procedure successfully completed.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:52:07 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ECXINQ.sql
    Enter value for 4: system
    Enter value for 5: manager
    Connected.
    Enter value for 1: apps
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Enter value for 2: apps
    Connected.
    PL/SQL procedure successfully completed.
    Commit complete.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:53:38 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ECXGINQ.sql
    Enter value for 4: system
    Enter value for 5: manager
    Connected.
    Enter value for 1: apps
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Enter value for 2: apps
    Connected.
    PL/SQL procedure successfully completed.
    Commit complete.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:54:04 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ECXOUTQ.sql
    Enter value for 4: system
    Enter value for 5: manager
    Connected.
    Enter value for 1: apps
    Grant succeeded.
    Grant succeeded.
    Grant succeeded.
    Enter value for 2: apps
    Connected.
    PL/SQL procedure successfully completed.
    Commit complete.
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>
    drix10:/fmstop/r12apps/apps/apps_st/appl/ecx/12.0.0/patch/115/sql>sqlplus apps/apps @ECXQBKUP.sql apps apps applsys
    SQL*Plus: Release 10.1.0.5.0 - Production on Tue Aug 6 11:54:26 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    declare
    ERROR at line 1:
    ORA-20000: Oracle Error Rebuild1= -904 - ORA-00904: "TAB"."USER_PROP": invalid
    identifier
    ORA-06512: at line 46
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options

  • Error frm:40508

    Hi All
    i have a table in that table
    i have colums
    customer_name
    customer_id
    customer_add
    customer_contact_no
    hI HERE customer_name is unique_key
    i want when i type duplicate customer_name then (which is already stored in database)
    message('customer already exist');
    but i get this error frm:40508
    please guide
    thanks and regards
    vikas

    In PRE-INSERT trigger check if the Customer already exists or not if exists then give a message as:
    declare
       cursor c_exists is
         select 1
         from customer
         where customer_name = :customer.customer_name;
    begin
       open c_exists;
       fetch c_exists into v_exists;
       close c_exists;
       if v_exists = 1 then
          message('customer already exist');
          raise form_trigger_failure;
       end if;
    end;You can also do the same is WHEN-VALIDATE-ITEM trigger for customer_name.
    Hope this helps.
    Edited by: Arif Khadas on Apr 15, 2010 4:10 PM

  • Exp 报EXP-00008: ORACLE error 904 encountered;ORA-00904错误

    环境:RAC11gR2+Redhat6.1
    [oracle@bppfedb1 mouse]$ exp BPPF_EAS/ApNCNOZqGx BUFFER=64000 FILE='/home/oracle/mouse/exp_bppf_tvs20121126.DMP' log='/home/oracle/mouse/exp_bppf_tvs20121126.log' OWNER=BPPF_EAS
    Export: Release 11.2.0.3.0 - Production on Tue Nov 27 00:12:16 2012
    Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
    OLAP, Data Mining,
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses ZHS16GBK character set (possible charset conversion)
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user BPPF_EAS
    . exporting PUBLIC type synonyms
    EXP-00008: ORACLE error 904 encountered
    ORA-00904: : invalid identifier
    EXP-00000: Export terminated unsuccessfully
    使用
    expdp BPPF_EAS/ApNCNOZqGx directory=DATA_PUMP_DIR dumpfile=exp_bppf_tvs20121126.dmp schemas=BPPF_EAS logfile=exp_bppf_tvs20121126.log
    换用expdp可以成功
    尝试了几台服务器都遇到这个问题,暂时没有找到问题的原因

    问题已解决:
    ORACLE error 904 问题是因为回收了public 的dbms_java执行权限,重新授予解决。
    trace=y需要的权限问题: 应该需要grant dba to xxx; 单exp_full_database好像不行,下面是测试的情况
    when the Data Pump TRACE parameter is used in Oracle10g Release 2 or higher, then the user who connects to the database and runs the export DataPump job needs to have the DBA role or the EXP_FULL_DATABASE role (the same applies to Import DataPump with TRACE parameter: DBA or IMP_FULL_DATABASE role required), e.g.:
    GRANT exp_full_database TO scott;
    -- or:
    GRANT dba TO expdp_role;
    测试:
    oracle@linux:~/mouse> sqlplus /nolog
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 5 07:23:00 2012
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    SQL> conn /as sysdba
    Connected.
    SQL> drop user mouse cascade;
    User dropped.
    SQL> create user mouse identified by mouse_2012
    2 default tablespace users
    3 temporary tablespace temp
    4 quota unlimited on users ;
    grant connect to mouse;
    grant resource to mouse;
    grant select any table to mouse;
    grant select any dictionary to mouse;
    grant exp_full_database to mouse;
    User created.
    SQL>
    Grant succeeded.
    SQL>
    Grant succeeded.
    SQL>
    Grant succeeded.
    SQL>
    Grant succeeded.
    SQL>
    Grant succeeded.
    SQL>
    SQL>
    SQL> conn mouse/mouse_2012
    create table test as select * from dba_users;Connected.
    SQL>
    Table created.
    SQL> !
    oracle@linux:~/mouse> exp mouse/mouse_2012 tables=test file=test.dmp feedback=100000 buffer=10000000 indexes=y triggers=y trace=y;
    Export: Release 11.2.0.1.0 - Production on Wed Dec 5 07:24:35 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    EXP-00056: ORACLE error 1031 encountered
    ORA-01031: insufficient privileges
    EXP-00000: Export terminated unsuccessfully
    oracle@linux:~/mouse> exit
    exit
    SQL> conn /as sysdba
    Connected.
    SQL> grant dba to mouse;
    Grant succeeded.
    SQL> !
    oracle@linux:~/mouse> exp mouse/mouse_2012 tables=test file=test.dmp feedback=100000 buffer=10000000 indexes=y triggers=y trace=y;
    Export: Release 11.2.0.1.0 - Production on Wed Dec 5 07:24:50 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses ZHS16GBK character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    . . exporting table TEST
    33 rows exported
    Export terminated successfully without warnings
    继续跟踪

  • Oracle forms error frm-40508: unable to insert record

    Hi Everyone,
    I have been having this problem for 2 weeks and I realize that I spent alot of time I couldn't get to fix the problem so I need your help.
    Here is my situation. First, I installed Oracle 10g in my laptop with Oracle forms10g and Oracle forms904i. I had oracle_home folder as the top level structure then I have inside oracle folder, Oracle10g in it own folder, Oracle9i release2 in it own folder. then I created the user account "student" using the system/manager account finally I granted privilleges as follow:
    GRANT ALL PRIVILLEGES
    TO student
    WITH ADMIN OPTION;
    this was working perfecty I didn't need to grant objects privilleges such as
    GRANT INSERT, UPDATE, DELETE
    ON customers
    TO student;
    Then I created a form Application prototype and it works well I could Insert, Update and Delete but now I am creating an e-commerce application prototype I created an new account using a system/manager account as I did previously and grant all privilleges. When I try to grant object privileges the message that I receive says ORA-01919 : role 'INSERT' doesn't exist
    When I run the application I am unable to insert the record through forms I get message frm-40508 Orcle error: unable to insert record.
    I deinstall the Oracle and clean my laptop and did a clean installation using only Oracle Server10g and Oracle Developer10g I am getting the same message frm-40508.
    Can someone please help me on this. the insert command that I am running is a simple one such as
    INSERT INTO customers
    VALUES( block_name.field_name, ....);
    COMMIT;

    frm 40735:When button pressed trigger raised unhanded exceptionplease help me to solve this>
    The FRM-40735 is a generic Unhandled Exception. Please post the full error message so we can better help you.
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Error Handling for ORA-02291

    Dear all,
    please help me, what exception name i must use
    (like "NO_DATA_FOUND" or "DUP_VAL_ON_INDEX") for error handling
    (exception) for ORA-02291 : integrity constraint(....) violated -
    parent key not found.
    Thank you.
    Regards
    Teguh Santoso

    Find out the error no. Oracle returns for this error & in the
    front-end (Ex:Forms) create a Pragma Exception error handler &
    give ur user defined error message when the user encounters
    it....
    Hope this suffices.
    Santhosh

  • Error FRM-40508 - Please help urgent !!!

    Hi All,
    I'm trying to design a form (Forms 6i) having 3 data blocks. Values from 3 different table are returned to the related fields in the blocks. At the bottom of form, I've created a "push-button" to take these values and add into 4th table.
    I gete rror FRM-40508. I trapped error and found that its actually trying to insert into table of "First Data Block", which it should not. My Insert statement in the Trigger of push-button (when-button-pressed) doesn't refer to that table.
    However, I found that, in designer mode, if I click on the push-button I see the first block's name in the Block Name space (upper right hand corner). I don't understand this but feel that that is the problem.
    Please help ASAP.
    Thanks
    Prashant
    null

    Here is the fun.
    I created one more data block manually. Creted push-button and following insert stmt in "When-button-pushed" trigger. (real table names changed to dummy)
    ===========================================
    declare
    seqno number:=0;
    begin
    select DUMMY_SEQ.nextval into seqno from dual;
    insert into LOG_dummy(
    ID, GROUP_ID, ANSWER_ID, QUESTION_ID, ANSWER_TEXT
    values
    seqno,
    :sur.survey_id,
    :sur_ans.answer_id,
    :sur_quest.question_id,
    :sur_ans.answer_desc
    commit;
    clear_form(No_Validate);
    END;
    =============================================
    The error pops up because of "commit". When I pressed shift-F1 it shows that it can't insert into one of the data blocks. The insert stmt shown there is nowhere in my code of trigger. If I remove "Commit" from above, I Don't get error but record doesn't get inserted either in the table mentioned above :-(
    I don't understand what's going on... If anybody in US is willing to help, I can call and talk on phone. I've to finish it this week, any case and I'm stuck on this :-(
    ~ Prashant
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by ahmed gaber ([email protected]):
    are the 3 blocks related with 3 tables ,
    and you'r trying to insert the values in another table ?
    if yes : so what is the code you wrote in the trigger? to know the answer.
    and try to check if there is any not-null columns required ok//<HR></BLOCKQUOTE>
    null

  • Error FRM-40735, ORA-04062 While Making Payments

    Hi, while making payments it raised following errors:
    FRM-40735:POST-FORMS-COMMIT trigger raised unhandeled exception ORA-04062these are steps in navigation:
    invoice >> action 1...pay in full>>>payment method (bill payables)
    does anyone know how to overcome this error ??
    thx

    Was this working before? If yes, any changes been done recently?
    Do you have any invalid objects in the database?
    Please see these docs.
    Receipts Workbench Error: Listing of ORA Errors [ID 1364345.1]
    Receipts Workbench Error: Listing of FRM Errors [ID 1361887.1]
    Thanks,
    Hussein

  • Error frm-40735 ora-01422

    Hi,
    I have two tables:
    dept(
    dept_name VARCHAR2(10),
    dept_info VARCHAR2(10),
    CONSTRAINT dept_pk PRIMARY KEY (dept_name)
    location(
    loc_name VARHCHAR2(10),
    loc_info VARCHAR2(10),
    dept_name VARCHAR2(10),
    CONSTRAINT loc_pk PRIMARY KEY (loc_name),
    CONSTRAINT loc_fk FOREIGN KEY (dept_name)
    REFERENCES dept (dept_name)
    dept has the values ('dname1', 'dinfo1'), ('dname2', 'dinfo2'), ('dname3', 'dinfo3')
    location has the values ('locname1', 'dname1', 'linfo1'), ('locname2', 'dname2', 'linfo2'), ('locname3', 'dname2', 'linfo3'), ('locname4', 'dname3', 'linfo4'), ('locname5', 'dname3', 'linfo5'),
    I have a data block based on the location table. I also have a command button with the WHEN-BUTTON-PRESSED trigger:
    BEGIN
    SELECT loc_name, loc_info
    INTO :DATABLOCK.LOC_NAME, :DATABLOCK.LOC_INFO
    FROM location
    WHERE dept_name = :DATABLOCK.DEPT_NAME;
    END;
    If I try to do a search for a dept_name that has only one value in location, the Form will work properly and retreive that row. However, if I do a search for a dept_name that has two or more values in the table, I get the FRM-40735 ORA-01422 ERROR. I can tell that the Form will not allow me to retreive more that one row at a time, but what is a way that I can retreive more than one row at a time? I have set the datablock to Tabular and display 10 records, so it could retrieve the right amount of rows. Please help.

    I have a data block based on the location table.So do you want to show all the locations in that block which match the given DEPT_NAME ?
    If your block is based on the location-table you would just set the WHERE-condition on that block and do a requery, there is no cursor needed for that, so try the following code in your WHEN-.BUTTON-PRESSED-trigger.
    SET_BLOCK_PROPERTY('LOCATION', ONETIME_WHERE, 'dept_name=' || DATABLOCK.DEPT_NAME);
    EXECUTE_QUERY;If you have to use a select to do something other with the result than populating the block, then for a select returning more than one row, you have to use a cursor, something like:
    DECLARE
      CURSOR crDept IS
        SELECT loc_name, loc_info
          FROM location
        WHERE dept_name = :DATABLOCK.DEPT_NAME;
    BEGIN
      FOR rec IN crDept LOOP
        IF :SYSTEM.RECORD_STATUS!='NEW' THEN
          CREATE_RECORD;
        END IF;
        :DATABLOCK.LOC_NAME:=rec.LOC_NAME;
        :DATABLOCK.LOC_INFO:=LOC_INFO;
      END LOOP;
    END;

  • Error FRM-40735 , ORA-01438

    Hi,
    In my form, for the Master-Details Data Block, the DML source is Procedure,
    For eg, the DetailsBlock name is "Files", and given below is the procedure to update that block. I have two doubts regarding to it,
    1. When user click Save button , i want to execute this procedure for all the records, now it is updating only one row, because of dmlset(1) (how should i do loop, I am new baby).
    2. Insert into TableA query is not executing, i am getting the error ORA -01438
    Scenario is :
    The datas are loaded into block from TableA and TableB.If the value of the column VALIDREJECTION is "InValid" then that row shoube be updated in the TableA, if it is not in TableA, then it should be inserted to TableA. That is TableB contains all records(both Valid & InValid) , but TableA contains only records with VALIDREJECTION ='InValid"
    My Procedure is :
    procedure filesUpdate(dmlset in out disputeFiles_tab) is
    cursor c_files is
    select FILEID
    from TableA
    where FILEID=dmlset(1).FILEID;
    tempout TableA.fileid%type;
    begin
    if dmlset(1).VALIDREJECTION='Valid' then
         DELETE FROM TABLEA WHERE FILEID=dmlset(1).FILEID;
    else
    --if Valid changed to InValid and updated, then it should be inserted
    open c_files;
    fetch c_files into tempout;
    IF c_files%NOTFOUND then
    insert into TableA(FILEID,VALIDREJECTION,USERID)
    values(dmlset(1).FILEID,dmlset(1).VALIDREJECTION,
    dmlset(1).USERID);
    ELSE
    update TableA
    set FILEID=dmlset(1).FILEID,
    VALIDREJECTION=dmlset(1).VALIDREJECTION,
    USERID=dmlset(1).USERID,
    where FILEID=dmlset(1).FILEID;
    END IF;
    close c_files;
    end if;
    end;
    Thanks in Advance ,
    bye bye

    Hi,
    From oracle error documentation...
    ORA-01438: value larger than specified precision allowed for this column
    Cause: When inserting or updating records, a numeric value was entered that exceeded the precision defined for the column.
    Action:     Enter a value that complies with the numeric column's precision, or use the MODIFY option with the ALTER TABLE command to expand the precision.
    May be you are trying to enter CHAR value to NUMBER field.
    Check it out!

  • Oracle error - ociexecute(): OCIStmtExecute: ORA-01858

    Using PHP 4.3.11 on Linux and ADODB data abstraction library.
    Oracle client version is 10.1.
    Can sucessfully connect to remote database (version 9.2.0.6 NLS_LANG AL32UTF8).
    When doing a simple select from a view:
    select RTS_LOAD from VW_R_PROJECTED_LOAD_OUTPUT
    I get the error message:
    ociexecute(): OCIStmtExecute: ORA-01858: a non-numeric character was found where a numeric was expected in /opt/devftp/var/www/php/adodb/461/drivers/adodb-oci8.inc.php on line 942
    1858: ORA-01858: a non-numeric character was found where a numeric was expected
    If in my PHP script I directly query the underlying table that this Oracle view is based on, I have no problem.
    Using SQLPlus on the web server I don't have any problems at all selecting from the view, it is definitely a valid view.
    Any clues? If so please email as well as posting response here.
    Geoff
    [email protected]

    Hi !
    I think Your view has to_date function in its definition, and this to_date is called without second parameter: date format. Probably NLS_DATE_FORMAT is set to different values in SQL*Plus and PHP environment. You can check it out by running
    select * from v$nls_parameters;
    in SQL*Plus and in PHP.
    If there are two different values You should modify view to use to_date in form: to_date(some_date_string, ‘poroper_date_format’)
    Regards,
    Pawel

Maybe you are looking for

  • Can iMac not waking from sleep be caused be a corrupt file

    I have had my 27" iMac from July of 2011 (running Montain Lion, 8 GB RAM, 2TB hardrive, 3.4 GHz,Intel i7) for over a year and a half and ever since I bought it, it has had a problem waking from sleep.  I can hear the computer running, but when I clic

  • How to compile a form built in forms 10g on windows platform?

    Hi All, I have built a 10g form on my local desktop on windows 7 and compiled/deployed it in apps on linux server. I need to deploy the same form fmb on oracle apps hosted on windows platform. Please let me know if fmb works fine or not. And also pro

  • Handling sql query in jsp while extracing records from 3 tables

    hi to one and all, i want to implement the sql query given below in jsp in execute query statement . the query is working in sql but not when implemented using jsp. please help me in resolving this. Query SELECT e.Department , e.ETitle , s.basic , s.

  • Replacing the superdrive

    i burned a dvd yesterday and popped it out, and now the tray on my SONY DVD RW DW-D150A superdrive will not retract. it goes in about 1/2" before it stops, and then comes back out again. the eject commands / key all work still, but the tray physicall

  • What's Publishing Type mapped to any order ( Sales order... )?

    Hi all! i am preparing a APO project and having some question of Publishing Type ( in distribution defenition ). i know publishing types are integrated to some order. ex: 53:Sales order is integrated to Sales oreder. but , i don't know a few Publishi