Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: 8i: how to find current scn number?
How about this method?? Real ugly
SQL*Plus: Release 9.2.0.1.0 - Production on Thu Jan 30 12:25:17 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
12:25:19 SQL> CREATE TABLE scn ( scn varchar2(25));
Table created.
12:25:40 SQL> INSERT INTO scn VALUES(
TO_CHAR(userenv('commitscn'),999999999999999));
1 row created.
12:26:41 SQL> select * from scn;
SCN
98038268
1 row selected.
12:26:48 SQL> I hope that I haven't totally missed the question
There's always more than one way to do the Oracle thing
Rick Weiss
-----Original Message-----
Sent: Thursday, January 30, 2003 11:36 AM
To: Multiple recipients of list ORACLE-L
Connected to:
Oracle8i Enterprise Edition Release 8.1.7.3.0 - Production
With the Partitioning option
JServer Release 8.1.7.3.0 - Production
SQL> create table scn(scn number);
Table created.
SQL> insert into scn values(userenv('COMMITSCN'));
1 row created.
SQL> select * from SCN;
SCN
SQL> Unfortunately, you cannot directly 'SELECT' the function ...
>----- Original Message -----
>From: "Daiminger, Helmut"
><Helmut.Daiminger_at_KirchGruppe.de>
>To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
>Sent: Thu, 30 Jan 2003 05:25:14
>
>Hi!
>
>How do I find out the current scn number that the
>database is at?
>
>In 9i I could use dbms_flashback package...
>
>This is 8.1.7 on Solaris 8.
>
>Thanks,
>Helmut
>
Regards,
Stephane Faroult
Oriole
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Stephane Faroul INET: sfaroult_at_oriolecorp.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Weiss, Rick INET: rweiss_at_state.mt.us Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Thu Jan 30 2003 - 13:34:09 CST
![]() |
![]() |