Unable to Execute QUery ORA -00911 Probably Oracle Bug Please confirm

HI Gurus,
Unable to run the query:
Was able to run select query fine, was able to run insert query fine...but when combining and running, its throwng the follwoing error:
Is this a bug in ORacle?
Error starting at line 1 in command:
INSERT INTO MigrationCorrespData1(did) SELECT did from revisions where (dInDate >={ts '2011-09-01 00:00:01'} and dInDate <={ts '2012-01-01 23:59:59'})
Error at Command Line:1 Column:80
Error report:
SQL Error: ORA-00911: invalid character

It's not a bug, your syntax just isn't Oracle syntax.
I googled a bit (which you could have done yourself as easily) and it appears that your syntax is JDBC syntax. The Oracle equivalent is timestamp:
select timestamp'2009-12-08 00:00:00.000' my_ts from dual;
MY_TS                         
08-DEC-09 12.00.00.000000000 AMEdited by: InoL on Jun 6, 2012 8:57 AM

Similar Messages

  • SharePoint 2010 Unable to execute query: Error 0x80131530

    I am seeing the below error message in the ULS logs while accessing some set of items in the list and the item will not get
    opened after long tim. 
    "Unable to execute query: Error 0x80131530
    Unknown SPRequest error occurred. More information: 0x80131530
    System.Web.HttpException: Request timed out."
    This list has 202 items in total with 45 columns in total (includes
    5 lookup columns, 3 append history columns). 
    Items which has more than 20 versions is not loading.
    In the same site, there is another list of the same template with 2009 items and some items with more
    than 80 versions works fine.
    Please let me know if you have any suggestion to fix this.

    Yes there are 2 simple SPD workflows. One of the workflow operation is to send email and other one is to create an item in another based on condition.
    The other list which works fine also has similar SPD workflows. 

  • Error while executing query ORA-00932

    Hi I have the following query and its giving error please resolve.....
    SELECT DISTINCT acthed,rcptno,depdate,matdate,depamt,intrate,intaccd,intpaid,intpble,paytfreq,instalamt,autrenfg,
    curbalnc,curbdrcr,clrbalnc,clrbdrcr,acstatus,lnachd,lnacno,siflag,siacthed,siactnum,catgcode,lastitcal,
    tdsflag, tdsamt, tdsdate, tdsint,actnum FROM tdmaster WHERE acstatus = 1
    AND fundstat = 'Y' AND acthed = 4016
    AND depdate < to_number(trunc('30-SEP-2011','mm') + 22) //Error here //
    AND ((lastitcal) < '30-SEP-2011' or lastitcal is null)
    ORDER BY depdate ASC;
    Please send the executable query....
    Thanks in advance...

    Hi user11384749,
    If the column depdate have date datatype then you may use to_date function to convert text into date then do addition in it:
    depdate < (to_date('30-SEP-2011','dd-MM-YYYY') + 22)
    this will compare the depdate with 22-OCT-11 date
    I hope this will be your answer
    Regards,
    M.A.Bamboat

  • Unable To Execute Query

    Hi All,
    Given below Query works fine when I am running for some set of item
    Select * from
    (SELECT cdp.NAME model_name,
    (SELECT NAME
    FROM cz_ps_nodes
    WHERE ps_node_id = cpn.devl_project_id
    AND deleted_flag = 0) modelroot,
    p_cim.ref_part_nbr parent_ref_part_nbr, cim.ref_part_nbr,
    (SELECT NAME
    FROM cz_ps_nodes
    WHERE ps_node_id = cpn.parent_id
    AND deleted_flag = 0) parent_fv,
    cpn.NAME fv, cim.desc_text item_desc, bcb.item_num,
    cpn.initial_num_value conf_quantity,
    bcb.component_quantity bom_quantity,
    DECODE (cpn.bom_required_flag,
    0, 'O',
    1, 'Y'
    ) conf_required_flag,bcb.optional,
    DECODE (bcb.optional, 1, 'O', 2, 'Y') bill_required_flag,
    DECODE (cpn.maximum_selected, 1, 1, 2) maximum_selected,
    bcb.mutually_exclusive_options bill_mutex_flag,
    DECODE (cpn.MINIMUM,
    -1, -9999,
    NULL, 0,
    cpn.MINIMUM
    ) conf_min_value,
    DECODE (bcb.low_quantity,
    -1, -9999,
    NULL, 0,
    low_quantity
    ) bom_min_qty,
    DECODE (cpn.maximum,
    -1, 0,
    NULL, 0,
    cpn.maximum
    ) conf_max_value,
    DECODE (bcb.high_quantity,
    -1, 0,
    NULL, 0,
    high_quantity
    ) bom_max_qty,
    cpn.effective_from conf_effectivity_date,
    bcb.effectivity_date bom_effectivity_date,
    cpn.effective_until, bcb.disable_date bill_end_date,
    cpn.component_sequence_id conf_component_sequence_id,
    bcb.component_sequence_id bom_component_sequence_id,
    cpn.component_sequence_path
    FROM [email protected] bbom,
    [email protected] bcb,
    [email protected] msi,
    cz_item_masters cim,
    cz_ps_nodes cpn,
    (SELECT ref_part_nbr,ps_node_id,inventory_item_id
    FROM [email protected] msi,
    cz_item_masters cim,
    cz_ps_nodes cpn
    WHERE cpn.deleted_flag = 0
    AND cim.deleted_flag = 0
    AND cpn.item_id = cim.item_id
    AND cim.ref_part_nbr = msi.segment1
    AND msi.organization_id = 101) p_cim
    ,cz_devl_projects cdp
    WHERE cpn.devl_project_id = cdp.devl_project_id
    AND cpn.item_id = cim.item_id
    AND cim.ref_part_nbr = msi.segment1
    AND msi.inventory_item_id = bcb.component_item_id
    AND msi.organization_id = 101
    AND bcb.bill_sequence_id = bbom.bill_sequence_id
    AND p_cim.ps_node_id = cpn.parent_id
    AND bbom.assembly_item_id = p_cim.inventory_item_id
    AND cpn.bom_sort_order IS NOT NULL
    AND cpn.deleted_flag = 0
    AND cdp.deleted_flag = 0
    AND cim.deleted_flag = 0
    AND cdp.devl_project_id = 183880
    AND cpn.effective_from=bcb.effectivity_date
    AND ( cpn.bom_required_flag DECODE (bcb.optional, 1, 0, 2, 1)
    OR DECODE (cpn.maximum_selected, 1, 1, 2) bcb.mutually_exclusive_options
    where fv in ('F4584B','F4585B') or 1=2 order by item_num;
    but when I am trying to run for all records I am getting following error
    "ORA-00904: "SYS_ALIAS_2"."MAXIMUM_SELECTED": invalid identifier
    ORA-02063: preceding line from DVOA081" .
    I am unable to understand why I am getting this error when I am running (Same query) for all records & why I am not getting any errors when I am running for two items.
    Can any one help me to resolve this. Appreciate your immediate response.
    Error Query:
    Select * from
    (SELECT cdp.NAME model_name,
    (SELECT NAME
    FROM cz_ps_nodes
    WHERE ps_node_id = cpn.devl_project_id
    AND deleted_flag = 0) modelroot,
    p_cim.ref_part_nbr parent_ref_part_nbr, cim.ref_part_nbr,
    (SELECT NAME
    FROM cz_ps_nodes
    WHERE ps_node_id = cpn.parent_id
    AND deleted_flag = 0) parent_fv,
    cpn.NAME fv, cim.desc_text item_desc, bcb.item_num,
    cpn.initial_num_value conf_quantity,
    bcb.component_quantity bom_quantity,
    DECODE (cpn.bom_required_flag,
    0, 'O',
    1, 'Y'
    ) conf_required_flag,bcb.optional,
    DECODE (bcb.optional, 1, 'O', 2, 'Y') bill_required_flag,
    DECODE (cpn.maximum_selected, 1, 1, 2) maximum_selected,
    bcb.mutually_exclusive_options bill_mutex_flag,
    DECODE (cpn.MINIMUM,
    -1, -9999,
    NULL, 0,
    cpn.MINIMUM
    ) conf_min_value,
    DECODE (bcb.low_quantity,
    -1, -9999,
    NULL, 0,
    low_quantity
    ) bom_min_qty,
    DECODE (cpn.maximum,
    -1, 0,
    NULL, 0,
    cpn.maximum
    ) conf_max_value,
    DECODE (bcb.high_quantity,
    -1, 0,
    NULL, 0,
    high_quantity
    ) bom_max_qty,
    cpn.effective_from conf_effectivity_date,
    bcb.effectivity_date bom_effectivity_date,
    cpn.effective_until, bcb.disable_date bill_end_date,
    cpn.component_sequence_id conf_component_sequence_id,
    bcb.component_sequence_id bom_component_sequence_id,
    cpn.component_sequence_path
    FROM [email protected] bbom,
    [email protected] bcb,
    [email protected] msi,
    cz_item_masters cim,
    cz_ps_nodes cpn,
    (SELECT ref_part_nbr,ps_node_id,inventory_item_id
    FROM [email protected] msi,
    cz_item_masters cim,
    cz_ps_nodes cpn
    WHERE cpn.deleted_flag = 0
    AND cim.deleted_flag = 0
    AND cpn.item_id = cim.item_id
    AND cim.ref_part_nbr = msi.segment1
    AND msi.organization_id = 101) p_cim
    ,cz_devl_projects cdp
    WHERE cpn.devl_project_id = cdp.devl_project_id
    AND cpn.item_id = cim.item_id
    AND cim.ref_part_nbr = msi.segment1
    AND msi.inventory_item_id = bcb.component_item_id
    AND msi.organization_id = 101
    AND bcb.bill_sequence_id = bbom.bill_sequence_id
    AND p_cim.ps_node_id = cpn.parent_id
    AND bbom.assembly_item_id = p_cim.inventory_item_id
    AND cpn.bom_sort_order IS NOT NULL
    AND cpn.deleted_flag = 0
    AND cdp.deleted_flag = 0
    AND cim.deleted_flag = 0
    AND cdp.devl_project_id = 183880
    AND cpn.effective_from=bcb.effectivity_date
    AND ( cpn.bom_required_flag DECODE (bcb.optional, 1, 0, 2, 1)
    OR DECODE (cpn.maximum_selected, 1, 1, 2) bcb.mutually_exclusive_options
    where fv in ('F4584B','F4585B') or 1=1 order by item_num;
    Error Mesg : ORA-00904: "SYS_ALIAS_2"."MAXIMUM_SELECTED": invalid identifier ORA-02063: preceding line from DVOA081
    I check DB links details everything is working as expected.
    Can anyone help me to resolve this issues at the earliest. Thanks in advance.
    Thanks,
    Jehangeer Shaik

    That looks worryingly like an optimizer bug. "SYS_ALIAS_2" is a system-generated name it assigns to a subquery, but the fact that you're getting a parse error from the remote database suggests that something went wrong after successfully parsing and transforming locally. The remote database isn't on a wildly different Oracle version or anything is it? What versions are you on? My guess is it chooses a different execution plan in your two cases, and one of them fails. You might try experimenting with the DRIVING_SITE hint (wild guess), otherwise you may need to start looking at tracefiles and talking to Oracle Support.

  • Unable to execute query 'TerrSearch'

    I am trying to execute a query as per below but i get a runtime error CX_CRM_UNSUPPORTED_OBJECT.
    Can anybody explain why this is happening as i have used the same code to execute queries on other objects but this error happens only for 'TerrSearch' ?
    I am able to execute this query directly from GENIL_BOL_BROWSER for this object.
    DATA:   results        TYPE REF TO if_BOL_ENTITY_col,
                 core          TYPE REF TO cl_crm_bol_core,
                 ls_query_params     type genilt_query_parameters,
                 lt_selection_params type genilt_selection_parameter_tab,
                 ls_selection_params type genilt_selection_parameter.
    core = cl_crm_bol_core=>get_instance( ).
    core->start_up( 'ALL' ).
    ls_query_params-max_hits = '1'.
    ls_selection_params-attr_name = 'BP_PARTNER'.
    ls_selection_params-sign      = 'I'.
    ls_selection_params-option    = 'EQ'.
    ls_selection_params-low = lv_bupa_string.
    APPEND ls_selection_params to lt_selection_params.
    results = core->dquery( iv_query_name           = 'TerrSearch'
                                       is_query_parameters     = ls_query_params
                                       it_selection_parameters = lt_selection_params ).

    Hi,
    the coding seems fine so far. Just copied and executed it in our system.
    Maybe you can try starting BOL component set "TM" instead of "ALL". The name "ALL" by no means stands for all BOL component sets. It is just one huge one that you should avaoid where possible.
    The error message you get usually comes up when you are using the wrong component set and the object is not present in it. Have a look at variable PROPERTIES_TAB  in method CL_CRM_GENIL_OBJ_MODEL->IF_GENIL_OBJ_MODEL~GET_OBJECT_KIND() with the debugger during runtime.
    cheers Carsten

  • Sort causing ORA-00911

    I have a query that works fine, when I add sorting to it, I get failed to parse SQL query:
    ORA-00911: invalid character. The report displays an office, county, state, type1, type2, cost. I need it to sort: state, county, type1, type2 in that order. Nothing seems to be working properly with any of these sorts. These fields only contain text data. Using HTMLDB 1.61
    Thanks,
    Scott

    Did you get anywhere with your ORA-00911? Just wondering, as I received a bunch of them the other day when running scripts on htmldb.oracle.com - it seems a special (hidden) character was being appended to my file whenever I uploaded (I had to edit each file after the upload and delete what appeared to be a blank line, at the end of the file).
    On another note, did you ever do anything with Crystal Reports and HTMLDB (I see you were asking questions last year - if so write to me at [email protected] )

  • Execute Query through Variable

    I want to execute query through variable in Oracle Developer
    sql_text varchar(1000);
    sql_text:='select some query';
    How to execute this query text stored in sql_text variable?
    Regards,

    If your query returns only one row, you can use:
    EXECUTE IMMEDIATE sqltext INTO <list of into variables> USING <list of input bind variables>.
    If you query returns more than one row, you must open a cursor:
    - either with DBMS_SQL package
    - or declare a REF CURSOR and use OPEN ,FETCH, CLOSE:
    c REF CURSOR;
    OPEN c FOR sqltext;
    FETCH c INTO <list of into variables>;
    CLOSE c

  • SQLException : query java.sql.SQLException: ORA-00911: invalid character

    Hi folks
    I am not sure why this is happening. Only thing I can think of is field table_name has spaces then when I tried trim it does not like it.
    Please help
    Thanks a lot!
    --------Here's the code ---------------
    I have simple query (oracle database table names to extract and count the number of rows in each table) . This is the code snippet.
    try {  // creating a table in the database
    // querying mytable
    String query;
    query = "select table_name from user_tables;";
    ResultSet rs = stmt1.executeQuery(query);
    ResultSet rs1 =null;
    Statement stmt2 = null;
    while (rs.next())
    System.out.println("table name : " + rs.getString(1) );
    rs1 = stmt2.executeQuery("select count(*) from " + rs.getString(1));
    } catch (SQLException e)
    { System.out.println("SQLException : query " + e);
    }

    ORA-00911 invalid character
    Cause: Special characters are valid only in certain places. If special characters other than $, _, and # are used in a name and the name is not enclosed in double quotation marks (�), this message will be issued. One exception to this rule is for database names; in this case, double quotes are stripped out and ignored.
    Action: Remove the invalid character from the statement or enclose the object name in double quotation marks.
    So, I think you problem is a semicolon at then end of your query.
    Hope this helps,
    Boris

  • ORA-29540: class oracle/xml/sql/query/OracleXMLStaticQuery does not exist

    I am getting below error when trying to generate xml. Browsing on google did not help me. I would appreciate if someone can provide the solution.
    SQL> select dbms_xmlquery.getxml('select * from dual', 2) from dual;
    ERROR:
    ORA-29540: class oracle/xml/sql/query/OracleXMLStaticQuery does not exist
    ORA-06512: at "SYS.DBMS_XMLQUERY", line 19
    ORA-06512: at "SYS.DBMS_XMLQUERY", line 271
    ORA-06512: at line 1

    Then it is probably not the case that you are affected by the issue described in Metalink document 185857.1, but if I were you I would check it anyway, since it might be the problem.

  • Creating Oracle table is giving ORA-00911 error

    Hi,
    I got a small code which I am trying to implement in order to create a table in Oracle 8i database. The code compiles fine. However, when I run, it is giving ORA-00911 error(invalid character). Any help is highly appreciated in advance. Thanks.
    CODE:
    import java.sql.*;
    import java.io.*;
    import sun.jdbc.odbc.*;
    public class createor {
    public static void main (String args[]) {
    try{
    DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
         Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@myserv:1521:cooler", "scott", "tiger");
    Statement stmt = conn.createStatement ();
         stmt.execute(     "create table JoltData ("+
                   "programmer varchar (32),"+
                   "day char (3),"+
                   "cups integer);"
    stmt.close();
    }catch (Exception e) {e.printStackTrace();}

    Try this code, it works for me.
    import java.sql.*;
    import java.util.*;
    import java.text.*;
    class dbtestcreatetable {
        public static void main (String args []) throws SQLException {
            try {
                DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
                Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@myserver:1521:mysid",
                                                               "password",
                                                               "userid");
                String sql = "CREATE TABLE MYTABLE3 (COL1 VARCHAR(3))";
                Statement statement = conn.createStatement();
                int cnt = statement.executeUpdate(sql);
                statement.close();
                conn.close();
            catch (Exception e) {
                System.out.println("Java Exception caught, error message="+e.getMessage());
    }

  • Error when executing statement for table/stored proc.  : ORA-00911

    Hi All,
    I am posting IDOC->XI->JDBC, approx 5000 Idocs.
    But few messages are giving following error in XI-_SXMB_MONI
    Can any one guide me what is the cause of error? I check whole Idoc data I am not able to see bad character? can any once guide me what are the bad character in XML to post data in oracle? so that i can search in XML and how to avoide this error.
    "com.sap.aii.af.ra.ms.api.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'HRP1001' (structure 'INSERT_PAD34'): java.sql.SQLException: ORA-00911: invalid character"

    > I am talking about following IDOC.<ZRMD_A06> ->
    > <E1PLOGI SEGMENT="1">-> <E1PITYP SEGMENT="1"> ->
    > <E1PAD34 SEGMENT="1"> -><PROZT>0.00 #</PROZT>.
    > Can we remove this # during message mapping in XI??
    sure you can remove it using Replace function or by writing UDF.
    as I am seing # is last character..<b>so remove # with " " (single space) and then use the TRIM fucntion.</b>
    Thanks
    Farooq.
    *<b>Rewards points if you find it useful*</b>

  • ORA-01722: Error while executing query in Query Designer

    Hi All;
    I am getting the below error while executing a query
    ORA-01722: invalid number
    Error reading the data of InfoProvider
    Error while reading data; navigation is possible
    Have anyone encountered this before? How do i resolve this?
    Thanks!
    ~ Arun KK

    Hi,
    Did you checked all the setting required to run this query are present in the Qualtiy system??
    Which means all the characteristics,key figures are in active state.
    Also all the cubes are in active state with no issues with the involved in the dimensions used for the query.
    Also do a check in the query and if you have authorization try to save the same query and execute the saved one again in quality and see if the same error happens again.
    Thanks
    Ajeet

  • ORA-00911 Error code in JDBC where no special character is used - Oracle 10

    Hi,
    I am using Oracle 10G and Tomcat 5.5. I am trying to update a the CONFIRMED column of a table called LISTSERV_WAITING_LIST_TABLE. Please see my code below.
    public void doPost(HttpServletRequest request, HttpServletResponse response){
         String resRef = getServletContext().getInitParameter("java.comp.env");
         String jdbcDbRef = getServletContext().getInitParameter("jdbc.database");
         Context dbInitContext = null;
         Context dbEnvContext = null;
         DataSource dbSource = null;
         Connection conn = null;
    PreparedStatement prepStatement = null;
    String uemail = request.getParameter("email").toUpperCase();
         String userId = request.getParameter("userId");
         String waitingListTable = getServletContext().getInitParameter("db.waiting.list.table.name");
         try{ 
              dbInitContext = new InitialContext();
              dbEnvContext = (Context)dbInitContext.lookup(resRef);
              dbSource = (DataSource)dbEnvContext.lookup(jdbcDbRef);
              conn = dbSource.getConnection();
    String sqlcmd = "update " + waitingListTable + " SET CONFIRMED = 'YES' WHERE UEMAIL = '" + uemail + "' and USERID = '" + userId + "';";
    prepStatement = conn.prepareStatement(sqlcmd);
    prepStatement.executeUpdate();
         }catch(NamingException e){
              log("Area 4A: NamingException occured");
         }catch( SQLException e){
         log("Area 4B: Exception occured", e);
    When I run the code, I receive the following error message:
    SEVERE: FinalSubscriber: Area 4B: Exception occured
    java.sql.SQLException: ORA-00911: invalid character
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:213)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:952)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1160)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3368)
         at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
         at com.sainc.nsb.FinalSubscriber.doPost(FinalSubscriber.java:40)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:831)
         at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
         at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1203)
         at java.lang.Thread.run(Unknown Source)
    However, when I type the value of the string sqlcmd (used in the PreparedStatement) directly into Oracle, the update works. An example of that string is:
    update listserv_waiting_list SET CONFIRMED = 'YES' WHERE UEMAIL = '[email protected]' and USERID = '1142369642862';
    It contains no stange character and rows are inserted successfully in another class of the program that uses the same mechanism. The problem comes when I update the table.
    Any idea as to what is wrong? Your help will be appreciated.
    Thanks,
    Nguessan

    buddy, why don't you use a stored procedure and make your update, i hate that upkeeping.
    callablestatement and the power of Plsql are ur saviours.
    regards, djoudi.

  • Frm-40505:ORACLE error: unable to perform query in oracle forms 10g

    Hi,
    I get error frm-40505:ORACLE error: unable to perform query on oracle form in 10g environment, but the same form works properly in 6i.
    Please let me know what do i need to do to correct this problem.
    Regards,
    Priya

    Hi everyone,
    I have block created on view V_LE_USID_1L (which gives the error frm-40505) . We don't need any updation on this block, so the property 'updateallowed' is set to 'NO'.
    To fix this error I modified 'Keymode' property, set it to 'updatable' from 'automatic'. This change solved the problem with frm-40505 but it leads one more problem.
    The datablock v_le_usid_1l allows user to enter the text (i.e. updated the field), when the data is saved, no message is shown. When the data is refreshed on the screen, the change done previously on the block will not be seen (this is because the block updateallowed is set to NO), how do we stop the fields of the block being editable?
    We don't want to go ahead with this solution as, we might find several similar screens nad its diff to modify each one of them individually. When they work properly in 6i, what it doesn't in 10g? does it require any registry setting?
    Regards,
    Priya

  • FRM-40505  Oracle Error: Unable to perform query(URGENT)

    Hi I developed a form with a control_block and table_block(based on table)
    in same Canvas.
    Based on values on control_block and pressing Find button detail block will be queried.
    Control_block ->
    textitem name "payment_type" char type
    text item name "class_code " char type
    push button "find"
    base table: --> payment_terms(termid,payment_type,class_code,other colums)
    table_block is based on above table
    Now I have written when-button-pressed trigger on find button..
    declare
    l_search varchar2(100);     
    BEGIN
    l_search := 'payment_type='|| :control_block .payment_type||' AND class_code='||:control_block .class_code ;
    SET_BLOCK_PROPERTY('table_block',DEFAULT_WHERE,l_search);
    go_block('table_block');
    EXECUTE_QUERY;
    EXCEPTION
         when others then
         null;
    END;
    I am getting
    FRM-40505 Oracle Error: Unable to perform query
    please help..

    You don't need to build the default_where at run time. Just hard-code the WHERE Clause property as:
        column_x = :PARAMETER.X
    But, if for some compelling reason, you MUST do it at run time this should work:
        Set_block_property('MYBLOCK',Default_where,
            'COLUMN_X=:PARAMETER.X');
    Note that there are NO quotes except for first and last. If you get some sort of error when you query, you should actually see :Parameter.X replaced with :1 when you do Help, Display Error.

Maybe you are looking for

  • Ipod won't sync to my laptop!!!!!!!!!!!

    I downloaded songs to my old computer and then i got a lap top so i tried to get all the songs from my ipod to my lap top but it won't let me sync the purchased songs... what do i do?

  • 0BALANCE logic ,how does it work

    Gurus, in 0FIGL_C10 we have the key figure 0BALANCE ,can any one explain how does it work . it has properties aggregation ="SUM" Exception aggregation ="LAST VALUE" Agg.Reference Char = "0FISCPER" said that if we have 3 records coming from ECC below

  • Errors occured when compile the bpel process

    Errors occurred when compile the bpel process using bpel designer for Eclipse: (com.oracle.bpel.designer_0.9.13) using PM: bpel_jboss_101200 More error infomation following: Buildfile: E:\OraBpelDEclipse3.2\workspace\AboutTest\build.xml main: [bpelc]

  • Error message ORA-27101 shared memory realm does not exist,Please help me

    My oracle(oracle 8.1.6) is installed successfully,But when I connect to the database it shows me the error: ORA-27101 shared memory realm does not exist. How can I deal with it?Please help me.

  • Database PSU/CPU and FMW CPUs

    I have been hired to a new work place. there are the systems with the applications such Fusion Middleware11g (FMW) products -- OID, OAM, OIM, Portal and so on, and the Oracle databases as the backend which have the FMW applications' repositories inst