[oracle@jumper oracle]$ sqlplus eygle/eygle
SQL*Plus: Release 9.2.0.4.0 - Production on Mon Dec 19 19:34:53 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production With the Partitioning option JServer Release 9.2.0.4.0 - Production
19:34:58 SQL> col myscn for 9999999999999999 19:34:58 SQL> variable myscn number; 19:34:58 SQL> create table eygle (c1 number);
Table created.
19:35:00 SQL> exec :myscn := dbms_flashback.get_system_change_number();
PL/SQL procedure successfully completed.
19:35:00 SQL> print myscn;
MYSCN IXDBA.NET技术社区 ----------------- 107374274756
19:35:00 SQL> insert into eygle values(1);
1 row created.
19:35:00 SQL> commit;
Commit complete.
19:35:00 SQL> exec :myscn := dbms_flashback.get_system_change_number();
PL/SQL procedure successfully completed.
19:35:00 SQL> print myscn;
MYSCN ----------------- 107374274777
19:35:00 SQL> select * from eygle as of scn(:myscn); select * from eygle as of scn(:myscn) * ERROR at line 1: ORA-01466: unable to read data - table definition has changed
19:41:10 SQL> select * from eygle as of scn(:myscn); select * from eygle as of scn(:myscn) * ERROR at line 1: ORA-01466: unable to read data - table definition has changed
19:43:03 SQL> select dbms_flashback.get_system_change_number myscn from dual;
MYSCN ----------------- 107374274944
19:43:15 SQL> select * from eygle as of scn 107374274944;
C1 ---------- 1
|