Problem with Flashback transaction query in 10g

Hello,
I'm having a problem when working with FLASHBACK_TRANSACTION_QUERY.
When I make a simple update of table PARTIES with some trigger (one transaction with XID=000300310027ACAA), expected result can be found in FLASBACK_TRANSACTION_QUERY:
select xid, start_scn, commit_scn, logon_user, undo_change#, operation, table_name, table_owner, undo_sql from flashback_transaction_query f
where xid = hextoraw('000300310027ACAA');
XID               START_SCN     COMMIT_SCN     LOGON_USER     UNDO_CHANGE#     OPERATION     TABLE_NAME          TABLE_OWNER     UNDO_SQL
000300310027ACAA     170337630398     170337630411     SYSTEM     1               UPDATE     PARTY_HIST_LOGS     ODS_OWNER          update ...
000300310027ACAA     170337630398     170337630411     SYSTEM     2               UPDATE     PARTIES          ODS_OWNER          update ...
000300310027ACAA     170337630398     170337630411     SYSTEM     3               BEGIN          null               null               null     
But after a while (cca 1 minute) all rows representing DML operations changes to one row with operation=UNKNOWN. And in the same time TABLE_OWNER, UNDO_SQL, ROW_ID is lost.
select xid, start_scn, commit_scn, logon_user, undo_change#, operation, table_name, table_owner, undo_sql from flashback_transaction_query f
where xid = hextoraw('000300310027ACAA');
XID     START_SCN     COMMIT_SCN     LOGON_USER     UNDO_CHANGE#     OPERATION     TABLE_NAME     TABLE_OWNER     UNDO_SQL
000300310027ACAA     170337630398     0     SYS     1     UNKNOWN     PARTIES     null          null               null
000300310027ACAA     170337630398     0     SYS     2     BEGIN          null          null          null               null
Do you have any explanations, why this happens?
Thanks a lot Filip
Here are some DB parameters:
Oracle 10g - 10.2.0.3.0 - 64bit Production
noarchive log mode
minimal supplemental logging enabled
UNDO_MANAGEMENT=AUTO
UNDO_RETENTION=57600
v$undostat.tuned_undoretention=345600
RETENTION GUARANTEE=YES

SELECT
o1.GRP_CODE
, o1.GRP_DESC
, o1.GRP_GROUP
, o1.GRP_KATEG
, o2.actual_amount
, o2.budg_amount
, o2.branch
FROM
vw_budget_codes o1 LEFT OUTER JOIN dw_fbudget_star o2 ON (o1.grp_code = o2.grp_code)
WHERE
o2.branch= '5455345'
Message was edited by:
TanteKaethe
Message was edited by:
TanteKaethe

Similar Messages

  • Flashback transaction query output

    Hi there,
    Here is my small demo.
    C:\Documents and Settings\Aman>net start oracleserviceorcl
    The OracleServiceORCL service is starting.............................
    The OracleServiceORCL service was started successfully.
    C:\Documents and Settings\Aman>sqlplus aman/
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Dec 9 19:38:00 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> create table a ( a number);
    create table a ( a number)
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    SQL> drop table a purge;
    Table dropped.
    SQL> create table a ( a number);
    Table created.
    SQL> insert into a values(1);
    1 row created.
    SQL> insert into a values(2);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> update a set a=100;
    2 rows updated.
    SQL> commit;
    Commit complete.
    SQL> select versions_xid from a
    2 versions between scn minvalue and maxvalue;
    VERSIONS_XID
    0A001100F2010000
    0A001100F2010000
    04001C00DD010000
    04001C00DD010000
    SQL> select xid, undo_sql
    2 from flashback_transaction_query
    3 where xid=hextoraw('0A001100F2010000');
    XID
    UNDO_SQL
    0A001100F2010000
    update "AMAN"."A" set "A" = '1' where ROWID = 'AAAM5kAAEAAAAG+AAA';
    0A001100F2010000
    update "AMAN"."A" set "A" = '2' where ROWID = 'AAAM5kAAEAAAAG+AAB';
    0A001100F2010000
    What I am not able to get is that I should be seeing 2 rows in the output of flashback transaction query view but I am seeing 3 with in one, there is no undo_sql shown but xid is shown. Can anyone let me know why there is this additional third row available and what does it signify?I assume it to be some what associated with commit that I gave but I amot sure as its just a hunch.Any inputs are highly welcome.
    Thanks and best regards,
    Aman....

    Yes, the transaction starts with your first dml statement.
    The BEGIN record in flashback_transaction_query marks the beginning of the transaction. If you order the rows by UNDO_CHANGE# you see that the dml statements are returned in reverse order and the last row is the BEGIN row. The view just displays it to mark the beginning of that transaction.
    It is a little bit strange as we can identify a single transaction by the XID column, but maybe that row is used for some other internal processing, I am just guessing.
    SQL> create table a ( a number);
    Table created.
    SQL> insert into a values(1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select versions_xid from a
      2  versions between scn minvalue and maxvalue;
    VERSIONS_XID
    0029001B0000450B
    SQL> column operation format a10
    SQL> column table_name format a10
    SQL> set lines 100
    SQL> column undo_sql format a20
    SQL> select xid, undo_sql, table_name, operation, undo_change# from flashback_transaction_query
      2  where xid=hextoraw('0029001B0000450B')
      3  order by undo_change#;
    XID              UNDO_SQL             TABLE_NAME OPERATION  UNDO_CHANGE#
    0029001B0000450B delete from "SYS"."A A          INSERT                1
                     " where ROWID = 'AAA
                     w4gAABAAAZHrAAA';
    0029001B0000450B                                 BEGIN                 2

  • Flashback Transaction Query very SLOWWWW

    We are planning to make numerous changes to data in our database soon and we
    want to be able to use flashback_transaction to rollback these changes if we
    need to. I have been able to use flashback_transaction_query to capture and
    create the undo sql but it is a VERY slow process. I have lowered the
    db_flashback_retention_target from 1140 to 360 in an attempt to reduce the
    amount of data we have to read to capture the undo sql but that didn't seem to
    help. Even with the db_flashback_retention_target set to 360 I am seeing
    statements over 6 hours old. Is there any way to speed up the process of
    capturing the undo sql? Here is the sql I use:
    select undo_sql
    from flashback_transaction_query
    where logon_user = 'ROLLOUT';

    This information is form the documentation -> http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_flashback.htm#sthref1493
    Flashback Tips – Performance
    * For better performance, generate statistics on all tables involved in a Flashback Query by using the DBMS_STATS package, and keep the statistics current. Flashback Query always uses the cost-based optimizer, which relies on these statistics.
    * The performance of a query into the past depends on how much undo data must be accessed. For better performance, use queries to select small sets of past data using indexes, not to scan entire tables. If you must do a full table scan, consider adding a parallel hint to the query.
    * The performance cost in I/O is the cost of paging in data and undo blocks that are not already in the buffer cache. The performance cost in CPU use is the cost of applying undo information to affected data blocks. When operating on changes in the recent past, flashback features essentially CPU bound.
    * Use index structures for Flashback Version Query: the database keeps undo data for index changes as well as data changes. Performance of index lookup-based Flashback Version Query is an order of magnitude faster than the full table scans that are otherwise needed.
    * In a Flashback Transaction Query, the type of the xid column is RAW(8). To take advantage of the index built on the xid column, use the HEXTORAW conversion function: HEXTORAW(xid).
    * Flashback Query against a materialized view does not take advantage of query rewrite optimizations.
    See Also:
    Oracle Database Performance Tuning Guide
    Also taking sql trace and analysing would help -> http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14211/sqltrace.htm#PFGRF01020

  • Flashback 기능 관련 질문 드립니다.[FLASHBACK TRANSACTION QUERY]

    flashback 기능을 공부 중에 있습니다.
    테스트 환경 은 10GR1 입니다.
    scott 에 dba 권한을 주구 쉽게 테스트 진행 중에
    예제와 좀 다른 결과가 나와서, 좀 이상하게 생각이 되서요..
    원래 이게 맞는지도 잘 모르겠네요..
    제가 테스트 진행에 참고하는 문서는
    Reviewed by Oracle Certified Master Korea Community
    ( http://www.ocmkorea.com http://cafe.daum.net/oraclemanager )
    A REWIND BUTTON FOR ORACLE 10G DATABASE
    – FLASHBACK BEST PRACTICES
    입니다. 오타가 좀 있더군요..
    아래와 같이 테스트를 진행 하였습니다.
    ### Test 시작
    # sysdate check
    --select sysdate from dual
    --2007/02/21 20:14:57
    # emp data check
    --select * from emp
    --7782     CLARK     MANAGER     7839     1981/06/09 00:00:00     2450          10
    --7788     SCOTT     ANALYST     7566     1982/12/09 00:00:00     3000          20
    --7839     KING     PRESIDENT          1981/11/17 00:00:00     5000          10
    --7844     TURNER     SALESMAN     7698     1981/09/08 00:00:00     1500     0     30
    --7876     ADAMS     CLERK     7788     1983/01/12 00:00:00     1100          20
    --7900     JAMES     CLERK     7698     1981/12/03 00:00:00     950          30
    --7902     FORD     ANALYST     7566     1981/12/03 00:00:00     3000          20
    --7934     MILLER     CLERK     7782     1982/01/23 00:00:00     1300          10
    ## 3rows 삭제
    --delete emp where empno in ( 7782,7788,7839 )
    --commit
    ## 삭제 결과 확인
    --select * from emp
    --7844     TURNER     SALESMAN     7698     1981/09/08 00:00:00     1500     0     30
    --7876     ADAMS     CLERK     7788     1983/01/12 00:00:00     1100          20
    --7900     JAMES     CLERK     7698     1981/12/03 00:00:00     950          30
    --7902     FORD     ANALYST     7566     1981/12/03 00:00:00     3000          20
    --7934     MILLER     CLERK     7782     1982/01/23 00:00:00     1300          10
    ## Sysdate Check
    -- select sysdate from dual
    -- 2007/02/21 20:16:19
    ## 원래 이부분은 원문은 where 절을 추가하여 아래와 같습니다.
    SELECT version xid, ename
    FROM emp
    VERSIONS BETWEEN
    TO_TIMESTAMP('03/15/2005 15:30:00', 'MM/DD/YYYY HH24:MI:SS') AND
    TO_TIMESTAMP('03/15/2005 16:10:00', 'MM/DD/YYYY HH24:MI:SS')
    WHERE empno = ‘7900’;
    제가 테스트 한건 특정 시간에 delete 혹은 dml 에 의해서 변경된 전체를
    찾는 다는 의미에서 where 절을 주지 않았습니다.
    ==> 이 부분이 맞는지 모르겠네요..
    -- select versions_xid, ename from emp versions between timestamp
    -- to_timestamp('2007.02.21 19:40:00','YYYY.MM.DD HH24:MI:SS') and
    -- to_timestamp('2007/02/21 20:16:19','YYYY.MM.DD HH24:MI:SS')
    ## Return 된 결과
    -- 0004002D0002F847     KING
    --0004002D0002F847     SCOTT
    --0004002D0002F847     CLARK
    --     CLARK
    --     SCOTT
    --     KING
    --     TURNER
    --     ADAMS
    --     JAMES
    --     FORD
    --     MILLER
    ## xid 값을 통해서 undo_sql 문장을 찾고 이를 통해서 손쉽게
    복구가 가능하다고 하는데 실제로 return 되는 undo_sql 문장은
    전체가 아닌 한 row 에 대한 undo_sql 문장만 return 되서요..
    --SELECT operation, undo_sql
    --FROM FLASHBACK_TRANSACTION_QUERY
    --WHERE xid = HEXTORAW('0004002D0002F847');
    --DELETE     insert into "SCOTT"."EMP"("EMPNO","ENAME","JOB","MGR","HIREDATE","SAL","COMM","DEPTNO")
    -- values ('7782','CLARK','MANAGER','7839',TO_DATE('81/06/09', 'RR/MM/DD'),'2450',NULL,'10');
    --BEGIN     
    ==> undo 로 return 되는것은 한 row 에 대한 undo_sql 문 !!
    # 이건 참고 문서 원문 입니다. xid 값을 통해서 원하는 문장 찾기
    SELECT operation, undo_sql
    FROM FLASHBACK_TRANSACTION_QUERY
    WHERE xid = HEXTORAW(‘0400260021450000’);
    ## Test 끝
    이것이 정상적인지 제가 miss 하고 가는 것이 있는지 조언
    부탁드립니다.
    좋은 하루 되세요 .
    글 수정:
    darkturtle
    글 수정:
    darkturtle

    flashback 기능은 9i때 도입된건 맞습니다. 다만 9i 때는 [flashback query] 만 제공 되었고,
    10g 이후부터
    lashback Database
    Flashback Drop
    Flashback Query
    Flashback Version Query
    Flashback Transaction Query
    Flashback Table
    모두 지원되며, 11g에서도 물론 지원됩니다.... 아마 더 추가된 flashback 기능이 있을 겁니다.. ^^

  • Problem with PJC (Print Dialog) - Forms 10g

    I have a problem with my PJC for Forms 10g r2. When I try to connect and run my PJC (raise Print dialog and put printer name in some text item) I get following message:
    oracle.forms.net.ConnectionException: Forms session <2> aborted: unable to communicate with runtime process.
         at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
         at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
         at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
         at oracle.forms.net.HTTPNStream.flush(Unknown Source)
         at java.io.DataOutputStream.flush(Unknown Source)
         at oracle.forms.net.StreamMessageWriter.run(Unknown Source)
    When I started application, on Java console I saw this message, so I think the server configuration is fine (I change everything I need in Default.env and FormsWeb.cfg files):
    Loading http://devsrv/forms/java/jESPrintDialog.jar from JAR cache
    What can I change with server configuration or deploying my project to this PJC can work normaly?
    Thanks....

    Hi and thanks!
    I resolve one part of my problem. Tt was about diferent compiler (in JDeveloper 10.1.3 compiler is 1.5 and in my oc4j server JRE is earlier version, so it can`t work normaly).
    I comiled PJC in 1.4 version of compiler and now I can start and run my PJC.
    But, there is another problem:
    this is my part of java code (note: everything work fine except one line when I want to get printer name from select printer dialog):
    try {
    boolean b;
    PrinterJob job = PrinterJob.getPrinterJob();
    b = job.printDialog();
    try {
    return job.getPrintService().getName();
    catch (Exception e) {
    System.out.println("Error: "+e.getMessage());
    return "My error:";
    } catch (Exception e) {
    System.out.println("ERROR: " + e.getMessage());
    return "Problem with PJC [esoft]";
    So, when pjc want to get back printer name
    return job.getPrintService().getName();
    i get following error (on Java console):
    java.lang.NoSuchMethodError
         at happypjc.PDialog.getProperty(PDialog.java:50)
         at oracle.forms.handler.UICommon.onGet(Unknown Source)
         at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Can you give me some hint about it. Everything is OK now, except this (very important) peace of code!
    best regards
    mret

  • Problems with Input Ready Query

    Hello All,
    I'm facing problems with input ready query for BI IP.
    I've created the input query on aggregation level and maintianed all the planning settings.  It is not allowing me to edit, when i'm attaching in the web template.
    I also attached a button copy function, and i'm able to execute it and save it, but it not allowing me to change manually.
    I also enabled the 3rd option for keyfigures...data can be changed with planning functions and user input.
    Please help me in this regard.
    We have just started the development of BI-IP, please suggest me if there are any notes to be applied.
    Regards
    Kumar

    Hello Johannes,
    Yes I've set to the finest granularity...even if it is Only one characteristic and one key figure without any restrictions...
    I've checked even planning tab page under properties...it is also fine..
    But still it is not allaowing me to go to edit mode...this is a fresh instalation and the query i'm working is the first one...
    Please suggest me if there are any notes to be applied, we are on Support Pack 10.
    Regards
    Jeevan Kumar

  • Flashback transaction query advice

    I need to be able to see all transactions on a table during a specific period of time (about every 15 minutes). I have a choice of creating a DB trigger on the table that captures the transactions and writes them to a new table or using the flashback transaction query feature. I haven't used flashback transaction query before in a production DB and was wondering if there were any performance issues I need to worry about (since there will be continous changes to the table being made). I think my query would be something like below and would be executing it very 15 minutes. Any advice/tips would be appreciated.
    SELECT last_name, versions_starttime, versions_operation
    FROM emp versions BETWEEN TIMESTAMP
    SYSTIMESTAMP - INTERVAL '15' MINUTE AND SYSTIMESTAMP
    WHERE versions_starttime is not null
    ORDER BY versions_endtime asc
    Edited by: bobmagan on Feb 7, 2013 5:32 AM

    Actually, this is a Flashback Versions query ( http://docs.oracle.com/cd/E11882_01/appdev.112/e17125/adfns_flashback.htm#i1019938 ), not a Flashback Transaction query (http://docs.oracle.com/cd/E11882_01/appdev.112/e17125/adfns_flashback.htm#i1007455 ). I found that the Flashback Version Queries were more reliable than the Flashback Transaction Queries.
    Be aware that truncates and other DDL will cause a 'break' and you will not be able to query before that.
    Make sure your undo_retention is set to keep undo long enough for your purposes.
    Test well. You may or may not see versions that were created within the same transaction.

  • Difference between Flashback Versions Query vs Flashback Transaction Query

    plz somebody can clearly tell me difference between
    --Flashback Versions Query
    --Flashback Transaction Query                                                                                                                                                                                                                                   

    Hi,
    I was able to test the data given by you
    CREATE TABLE test1(a number);
    INSERT INTO test1 values(1);
    INSERT INTO test1 values(3);
    COMMIT;
    UPDATE test1 SET a=10 WHERE a=1;
    COMMIT;
    ALTEr TABLE test1 ENABLE ROW MOVEMENT;
    INSERT INTO test1 values(1);
    INSERT INTO test1 values(3);
    COMMIT;
    ALTEr TABLE test1 ENABLE ROW MOVEMENT;
    SELECT * FROM test1 VERSIONS BETWEEN TIMESTAMP
    TO_TIMESTAMP('2011-07-25 15:50:00', 'YYYY-MM-DD HH24:MI:SS') AND
    TO_TIMESTAMP('2011-07-25 15:56:00', 'YYYY-MM-DD HH24:MI:SS');
    A
    3
    1
    10
    3
    I didnt get any error. Please check again.

  • No flashback versions query and flashback transaction query tools on EM?

    No Flashback Versions Query and Flashback Transaction Query tools on EM Console?
    How to do Flashback Versions Query work and Flashback Transaction Query on EM Console?

    No Flashback Versions Query and Flashback Transaction
    Query tools on EM Console?WOrks on mine.
    How to do Flashback Versions Query work and Flashback
    Transaction Query on EM Console?Part of the Maintenance , Recovery wizard. Not intended to be a casual query tool.

  • I have a problem with the transaction CBIH82

    Hi experts,
    I have a problem with the transaction CBIH82, when I try to assign a team in the tab "EventLocation", the transaction sends me the message "Equipment not available at the functional location".
    I previously reviewed the equipment is assigned to the transaction IL03.
    No authorization errors, I checked with the transaction SU53.
    Any idea to solve this problem?
    I appreciate it.

    Hello,
    I happened to again see this post where question is yet to be answered.
    As per SAP standard design, only those equipment would be allowed which are directly installed on the functional location. What this means is that those equipment which are not directly assigned to the functional location (might be assigned to another superior equipment which in turn is assigned to the functional location) can't be saved.
    Now, I am not sure why SAP has kept it like this when the same is allowed in notification.
    Can somebody clarify the business relevance of this standard behavior??
    Regards,
    Pavan

  • Problem executing a sql query in 10g environment

    Hi,
    I am having problem executing the following sql query in 10g environment. It works fine in 8i environment.
    I tried to_number(to_char) and it did not work.
    **A.APPL_ACTION_DT >= TO_CHAR("&v_strBeginStatusDate&", 'DD-MON-YYYY') AND A.APPL_ACTION_DT <= TO_CHAR("&v_strEndStatusDate&", 'DD-MON-YYYY')))**
    Any suggestions..
    --Pavan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I would be surprised if that worked in 8i as posted, although I no longer have 8i to test. You do not tell us the error message you are getting, but there are several things wrong with what you posted.
    First, the substitution variable requires only the & at the beginning, you have one on each end of your string, the one at the end will remain in the string that is passed to the database.
    Second, you cannot TO_CHAR a string with a date format as you are trying to do. The TO_CHAR function is overloaded and has two basic forms TO_CHAR(date, format_model) and TO_CHAR(number, format_model). Note that neither takes a string. It would appear that at least current versions of Oracle choose the second signature unless specifically passed a date datatype.
    SQL> select to_char('&h', 'dd-mon-yyyy') from dual;
    Enter value for h: 12
    old   1: select to_char('&h', 'dd-mon-yyyy') from dual
    new   1: select to_char('12', 'dd-mon-yyyy') from dual
    select to_char('12', 'dd-mon-yyyy') from dual
    ERROR at line 1:
    ORA-01481: invalid number format modelalthough I suspect that the error you are getting with your posted code is more likely to be ORA-01722: invalid number.
    Depending on the data type of appl_action_date, you are probably lokoing for TO_DATE instead of TO_CHAR.
    John

  • Problem with timestamp in query

    I have problem with timestamp in JPA query.
    I wonna select all data from database where difference between two timestamps is more than 3 month.
    Database:
    ID timestamp1 timestamp2
    1 20008-11-19 15:02000 20008-08-19 15:02000
    2 20008-11-19 15:02000 20008-11-14 15:02000
    @Column(name = "timestamp1", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    public Date timestamp1;
    @Column(name = "timestamp2", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    public Date timestamp2;
    sql query works:
    select id from table where
    MONTH( DATE(timestamp1) - DATE(timestamp2) ) > 3
    but how I can write in Java?
    I't doesnt wrk:
    Query query = em.createQuery("SELECT f.id FROM Foo f WHERE MONTH( DATE(f.timestamp1) - DATE(f.timestamp2) ) > 3 ")
    error:
    ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method .
    Exception data: <openjpa-1.0.2-r420667:627158 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: An error occurred while parsing the query filter 'SELECT f.id FROM Foo f WHERE MONTH( DATE(f.timestamp1) - DATE(f.timestamp2) ) > 3'.
    Error message: <openjpa-1.0.2-r420667:627158 nonfatal user error> org.apache.openjpa.kernel.jpql.ParseException: Encountered "MONTH (" at character 438, but expected: ["(", "+", "-", ".", ":", "", "=", "?", "ABS", "ALL", "AND", "ANY", "AS", "ASC", "AVG", "BETWEEN", "BOTH", "BY", "CONCAT", "COUNT", "CURRENT_DATE", "CURRENT_TIME", "CURRENT_TIMESTAMP", "DELETE", "DESC", "DISTINCT", "EMPTY", "ESCAPE", "EXISTS", "FETCH", "FROM", "GROUP", "HAVING", "IN", "INNER", "IS", "JOIN", "LEADING", "LEFT", "LENGTH", "LIKE", "LOCATE", "LOWER", "MAX", "MEMBER", "MIN", "MOD", "NEW", "NOT", "NULL", "OBJECT", "OF", "OR", "ORDER", "OUTER", "SELECT", "SET", "SIZE", "SOME", "SQRT", "SUBSTRING", "SUM", "TRAILING", "TRIM", "UPDATE", "UPPER", "WHERE", <BOOLEAN_LITERAL>, <DECIMAL_LITERAL>, <IDENTIFIER>, <INTEGER_LITERAL>, <STRING_LITERAL>].
    at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder$ParsedJPQL.parse(JPQLExpressionBuilder.java:1665)
    at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder$ParsedJPQL.<init>(JPQLExpressionBuilder.java:1645)

    The error is indocating improper formatting of your JPQL string. MONTH is not understood. I would recommend using your SQL string in a createNativeQuery(...) call instead.
    Doug

  • Problem with unit in Query

    Hallo Experts,
    We encounter a problem with unit in our Query.
    Szenario:
    We use the Unit like PC, SET in Query.
    In Table T006 those Units have value 0 in the field ANDEC, so they will be rounded up and rounded down in Query.
    Our Problem is some Queries need the rounding up and down but others don't need this function.
    Where and how should we change to solve the problem.
    thanks & Best regards

    hi,
    if you want to control the rounding off while unit conversion you can do it from SPRO
    In the BW system, goto SPRO -> SAP NetWeaver -> General Settings -> Check Units of Measurement -> Units of Measurement -> Choose the unit corresponding to 'KM' -> Click on 'Details' button in the toolbar.
    Look the field 'Decimal Pl rounding'. Change this to 3 or whatever value you choose and see if it works.
    in above link i have taken example of KM, you need need to select the required unit.
    let us know if this is solves your problem. I am not sure if this can be done for individual queries but this is controlled by UOM wise as mentioned above.
    Regards,
    Rk.

  • Problem with "Call Transaction" which calls a view cluster

    Hi Colleagues ,
    I have a rare issue with the call transaction , here is the use case for it :
    1> I call a transaction(calls a screen X) in a report ,
    2> I have a button in the screen , which calls another transaction(calls a screen X2) .
    3> On the screen X2 i have another button which calls transaction (calls the view cluster ).
    problem :
    i'm not able to see the navigation pane in the view cluster on the left. its missing .
    but when the view cluster is called direclty , i'm able to see the navigation pane in the view cluster ..
    My initial doubt was , is this the problem with nesting of 'Call Transaction' calls ????
    please answer the thread , i have to fix this ASAP.
    regards,
    Dilip

    problem solved.

  • Problem with Call Transaction opt-RACOMMIT = 'X'.

    Hello Experts
    I am having a problem with call transction. I am calling a Z transaction in function module. Within the Z transaction I am furhter calling some function modules and doing commit work and then some more processing  after the comit work inside  So to make sure the code after comit work is fired I am using opt-RACOMMIT = 'X' in call transaction. Whenever I set this parameter opt-RACOMMIT = 'X' call transaction fails and gives error saying No batch Input data for screen XXXX. However the Z tcode processed succesfully.
    By changing the Mode to E i found that it remians at the last screen of call transction after executing the Z transaction and never comes back 
    But if I donot use RACOMMIT = 'X'  everything is fine. Please let me know if anyone came across such problem. Any help will be apreciated.
    Thanks,
    kamal

    Hello,
    as you said, if there is more than commit statement in your ztransaction, then you should put RACOMMIT to 'X'.
    I think the problem is in your bdcdata: change it to be sure to get back to the 1st screen of your ztransaction. Then, at this point (1st screen) hit "back" button.
    Cordialement,
    Chaouki

Maybe you are looking for

  • Report development for tds deducted on expense GL accounts

    Dear Friends, I have to develop one report for the with holding tax deducted on the expense GL accounts. In the select lay out I will enter the  expense GL range and company code and posting date range. when I execute it has to show as               

  • Bind to RMI registry on remote host

    Is it possible to bing to a RMI registry on remote host. I get a Access exception when I try it. Is there is any work around for this? Any help will be greatly appreciated. Thanks R

  • HRMS Employee's Absence (Leave) Accrual Days

    Hello, I have implemented Oracle Global HRMS. I have created reports for leave balances and I need to show the current accrual for leave balances. The path for the leave value is:- On the People window, click on others, then select absence, Select An

  • BAPI_SALESORDER_CHANGE using this i want to change the Delivery Block

    Hi ABAP Gurus, i am working on a urgent requirement of changing the Delivery Block of sales order VA02. I am trying to do this using FM            BAPI_SALESORDER_CHANGE . Please see the following code which i am giving for the time being. it_headerx

  • Lion kills SoundTrack Pro, DVD Studio Pro and Color

    After installing Lion on my cloned boot drive FCP 7.0.3 runs but SoundTrack pro, DVD Studio Pro and Color return an error message indicating Lion can't run PowerPC programs. They also have a white slashed circle over them indicating they aren't compa