Flashback version and transaction
Hi
Does flashback versions and flashback transactions query use the undo data.How long can we use flashback versions query..
Sekar_BLUE4EVER wrote:
Hi
Does flashback versions and flashback transactions query use the undo data.How long can we use flashback versions query..Yes they both use UNDO data. You need to specify UNDO_RETENTION
Check the following link:
http://www.databasejournal.com/features/oracle/article.php/3819031/Is-Your-UNDO-Tablespace-Prepared-for-Oracles-Flashback-Technology.htm
Kamran Agayev A.
Oracle ACE
My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/
Similar Messages
-
Flashback Query, Versions and Transactions
My flashback question pertains to recovering from a deleted row that was committed. To recover the row using flashback would I use flashback query embedded in an UPDATE statement? Or would I query FLASHBACK_TRANSACTION_QUERY to get the undo_sql then take the statement(s) and apply them to restore the row?
MattIf the row was deleted you'd have to insert it.
ME_XE?delete temp;
100 rows deleted.
Elapsed: 00:00:00.04
ME_XE?insert into temp select * from temp as of timestamp sysdate-1 where col1 = 1;
1 row created.
Elapsed: 00:00:00.46
ME_XE?commit;
Commit complete.
Elapsed: 00:00:00.01
ME_XE?select * from temp;
COL1 SOME_DATE
1 22-JUL-2008 03 25:17
1 row selected.
Elapsed: 00:00:00.00
ME_XE?Edited by: Tubby on Nov 7, 2008 1:38 PM -
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. -
Difference between Flashback Versions Query vs Flashback Transaction Query
plz somebody can clearly tell me difference between
--Flashback Versions Query
--Flashback Transaction QueryHi,
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. -
Transfering Master and Transaction data to active and non active versions
Hi Gurus,
I am planning to transfer ECC master and transaction data to APO active and simulation versions.My question is
1. Is it possible to release Master and transaction data to active and non active versions ?
2. How i need to config if i want to release Master and Transaction data in version 001?
Please let me know .
Thanks in Advance
Regards,
RajHi Raj,
1) Once you create active integration models for master data and
transactional data, the data will get updated in active version 000
2) For creation of non active version use transaction
/SAPAPO/MVM
3) For copying of data from active to non active version, use
transaction /SAPAPO/VERCOP
Regards
R. Senthil Mareeswaran. -
Doubt regarding flashback versions query
I am working with Oracle 10g database on Oracle Enterprise Linux
I was trying this query both as sysdba and connected as the respective user .
When connected as sysdba I was of course appending schema name to the table name while running the query so there were no errors.
SELECT VERSIONS_STARTTIME, VERSIONS_ENDTIME
FROM emp_data
VERSIONS BETWEEN TIMESTAMP MINVALUE AND MAXVALUE
ORDER BY VERSIONS_STARTTIME ;
VERSIONS_STARTTIME VERSIONS_ENDTIME But unfortunately the query is returning null .
Let me know if any parameter has to be enabled for the query to work or what went wrong. The table of course has many transactions running and I was able to get the change through ora_rowscn but flashback versions query was the one not working.
Let me know if I have missed anythingPrabu,
If the transaction is still going on means they are not yet committed than Versions query won't show you anything.Also if you have surpassed the Undo_retention andhave most probably lost the required undo data,you wont be able to get any output from it.So check these two things.There are no special parameters required to use this feature except for automatic undo management and Undo retention.
In the meantime,you may also want to look at this link for a simple description of this and other flashback features,
http://www.oracle-base.com/articles/10g/Flashback10g.php
HTH
Aman.... -
Hi
Please explain me the advantages of Flashback Versions Query in 10g.I read 2 or more articles but still doubtful.It will be a great help if anybody clarify my doubt.
Thanx & cheers
Antonyhi
i want to give a example for better understanding on flashback version query
SQL> select * from a;
NO
1
2
3
SQL> delete from a where no=2;
commit;
1 row deleted.
SQL>
Commit complete.
SQL>
SQL> select * from a;
NO
1
3
SQL> r
1 SELECT versions_xid AS XID,
2 versions_startscn AS START_SCN,
3 versions_endscn AS END_SCN,
4* versions_operation AS OPERATION,no from a VERSIONS BETWEEN SCN MINVALUE AND MAXVALUE
XID START_SCN END_SCN O NO
0005002C0000045B 205513026 D 2
0009000D00000487 205512880 I 3
0009000D00000487 205512880 205513026 I 2
0009000D00000487 205512880 I 1
verions of rows between two times and transaction that changed the rows
use this xid with flashback_transaction_query to get the undo_sql for revert the changes
SQL> select LOGON_USER,UNDO_CHANGE#,OPERATION,UNDO_SQL from flashback_transaction_query where XID='0005002C0000045B';
LOGON_USER UNDO_CHANGE# OPERATION UNDO_SQL
SCOTT 1 DELETE insert into "SCOTT"."A"("NO") values ('2');
SCOTT 2 BEGIN
Thanks and Regards
Kuljeet Pal Singh -
Hi All,
Is there any difference between R/3 4.7 version and ECC 5.0 for the transaction RSA5.
Regards,
AndyAndy
Functionality wise I didn't see any difference other than new datasources in ECC5.0
Thnaks
Sat -
Cannot use Flashback Versions Query in Oracle 10g
If I want use Flashback Versions Query for one Table in my Database 10.1.0.4 then I receive follow error message:
500 Internal Server Error
java.lang.RuntimeException: options is null
at oracle.sysman.emSDK.jsp.ListBean.applyAttributes(ListBean.java:70)
at oracle.sysman.emSDK.jsp.ShuttleBean.render(ShuttleBean.java:41)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.laf.xhtml.RowLayoutRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
.... and so on
Can any of you help me?At what stage did you get this error?. Have you already selected the type of Flash Back Versions Query you want e.g Specifying type of Point in Time (Row Evaluation, Timestamp or SCN) or just when you select from the Action?
-
File and Transaction Parity in PI 7.1
Hello,
We are currently designing our file and transaction Parity architechture for SAP PI 7.1. Could you please let me know where can I start on it. Does PI offers any out of the box parity services and any kind on documentation on it.
Thank you.The procedure is the same as it was in SAP PI7.0 or lower versions.....no major change on this front.
Search SDN for documents related to your protocol.
Regards,
Abhishek. -
Flashback query works, but not flashback versions query
This is a test database (Oracle10g 10.1.0.5), not in archivelog mode. I deleted one row 2 hours ago. I can still use flashback query:
select * from tm_instances as of timestamp to_timestamp('STARTTIME_HERE') to view this row. But I can't use the following flashback versions query:
SELECT versions_startscn, versions_starttime,
versions_endscn, versions_endtime,
versions_xid, versions_operation from tm_instances VERSIONS BETWEEN TIMESTAMP to_timestamp('STARTTIME_HERE') and MAXVALUE
It gave the following error:
ORA-30052: invalid lower limit snapshot expression
So I guess flashback query works better than flashback versions query?
undo_retention is set to 900 by default here.
Thanks,
Haicurrently function returns all mydate rows, i just want mydesired date rowsCheck if there is a column in the table with the same name as the function parameter. It's the most probable reason of such DML operations behaviour in PL/SQL procedures and function.
Rgds. -
Flashback query vs. flashback versions query
I have noticed that I can do a regular flashback query as far back as I have UNDO data available for the query, as long as long as the table definition has not changed. Flashback versions query, however, is limited to the UNDO retention parameter.
So, for example, if my UNDO_RETENTION parameter is set to the default 900 seconds, I can only go back 15 minutes in time, even if the regular flashback query shows data in the table from 1 hour ago.
Why does Oracle hold to the the retention parameter for versions query, but let you go back farther for the regular query?Flashback query shows 7th Nov value and the next query shows 8th nov value..
thanks,
baskar.l -
How to ceate a new Country key,currency ,version and value type for report
hi,
can you please let me know How to ceate a new Country key,currency ,version and value type for report
along with tables and tcodes.
thanking youNot clear on your comments
How to ceate a new Country key,currency,
version and value type for report
because in one line you are saying you want to create Country Key, which means your requirement is in some transaction whereas at the end, you say for report.
Can you let us know you want to develop a report and if so, from which transactions, you want to take datas. You have to be clear on this.
thanks
G. Lakshmipathi -
Read-only version of transaction FBL5N.
Hello Everybody,
I have to create a GOTO report from a query, where the jumping target should be the read-only version of transaction FBL5N.
Please let me know what is the read-only version of transaction FBL5N.
Thanks in advance
ShameemHi Siggi,
If I am right, I would be able to create the GOTO report, by specifying the jump target as the Transaction FBL5N.
And whenever the user uses the GOTO option, he would be able to only view the invoice details and not change anything.
Thanks,
Shameem -
Flashback Versions Query vs Flashback Querya
Hi,
When I run the following Flashback Query, it shows that employee number 101 has salary of 17000 at "2009-11-07 11:30:00":
SQL> SELECT employee_id, department_id, salary FROM employees
AS OF TIMESTAMP
TO_TIMESTAMP ('2009-11-07 11:30:00 PM', 'YYYY-MM-DD HH:MI:SS AM')
WHERE employee_id=101;
EMPLOYEE_ID DEPARTMENT_ID SALARY
101 90 17000However, when I run the following Flashback Versions Query on the same row,
it doesn't show the row status when the salary was 1700.
SELECT
VERSIONS_STARTTIME AS START_TIME,
VERSIONS_ENDTIME AS END_TIME,
versions_operation AS OPERATION,
last_name,
salary
FROM EMPLOYEES
VERSIONS BETWEEN TIMESTAMP MINVALUE AND MAXVALUE
WHERE employee_id = 101;
START_TIME END_TIME O LAST_NAME SALARY
08-NOV-09 09.45.59 AM U Kochhar 19500
08-NOV-09 09.45.38 AM 08-NOV-09 09.45.59 AM U Kochhar 19000
08-NOV-09 09.45.38 AM Kochhar 18000
Why the Flashback Versions Query doesn't display status of the rows retreived by the Flashback Query although both of them depend on the Undo?
Thanks in advance.Flashback query shows 7th Nov value and the next query shows 8th nov value..
thanks,
baskar.l
Maybe you are looking for
-
When i synced my new iphone to my pc i clicked the wrong button - instead of restoring it from my old phone's last backup i clicked set up as new iphne - now it appears all my old texts and my notes have gone. Any ideas how I can get them back?
-
Hi I just updated my MacBook Pro to OS X, so I have to update my iPhoto as well, but I'm not sure what Apple ID my mac is registered under, how do I find that?
-
Spry Tabbed Panels - not correct in IE but correct in Chrome and MF
Hi, I'm having problems with an extension I used for a client, so I want to use the Spry tabbed panels form dreamweaver, but they in IE8 it puts all the content under each other in the first tab ?? In Chrome and MF its correct. Do you know about this
-
2 wired network adapters on 1 computer
I have 2 wired network adapters on 1 computer (windows XP sp3). I used to use on board one, but now I want to use the plugged in one. The problem is I don't know how to use it because windows doesn't automatically change to it. Could you show me how
-
Why doesn't the calendar carry the event title over multiple days?
When creating a multiple-day event, the calendar does not carry the title over all of the days in the event. In IOS6, this worked, but with the new IOS7, it does not. Has anyone else had this problem?