Created
April 26, 2020 04:02
-
-
Save VikramVasudevan/9455f15c03a9791cf94386333a64c4ae to your computer and use it in GitHub Desktop.
Oracle ROWSCN Demo - Part 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT 'Inserting 3 rows into table...' STATUS_MSG FROM DUAL; | |
INSERT INTO T (x,y) VALUES(-1,'SOMENEWENTRY'); | |
INSERT INTO T (x,y) VALUES(-2,'SOMENEWENTRY2'); | |
INSERT INTO T (x,y) VALUES(-3,'SOMENEWENTRY3'); | |
COMMIT; | |
SELECT 'Fetching changed data in table ...' STATUS_MSG FROM DUAL; | |
SELECT t.* | |
-- dbms_rowid.rowid_block_number (ROWID) blockno, | |
-- SCN_TO_TIMESTAMP (t.ORA_ROWSCN), | |
-- t.ORA_ROWSCN | |
FROM t | |
WHERE t.ORA_ROWSCN > :max_row_scn; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment