Re: scn number

From: Michel Cadot <micadot{at}altern{dot}org>
Date: Sun, 19 Dec 2004 09:32:31 +0100
Message-ID: <41c53cb1$0$21926$636a15ce_at_news.free.fr>


[Quoted] "Michel Cadot" <micadot{at}altern{dot}org> a écrit dans le message de news:41c16f14$0$7556$636a15ce_at_news.free.fr...
|
| "Uwe Schmidt" <uwe.schmidt_at_dataport.de> a écrit dans le message de
| news:newscache$hx7t8i$9om$1_at_www-neu.dzsh.de...
| | Hy NG,
| |
| |
| | is there
| | 1) a view or a table where i can select the actuel scn-number from the db ?
| | 2) if the db is down (offline), can i see the last scn-number ? in
| | ctrl-file, data-file, logfile (in alert-file, i
| | know)
| |
| |
| | Thanks .....
| |
|
| 1. select dbms_flashback.get_system_change_number from dual;
| 2. It is in the control file but you can't see it.
| Maybe in the mount state there is a x$ table containing that?
|
| Regards
| Michel Cadot
|
|

Assuming the last shutdown was not abort, in the mount state, you can get it with:

[Quoted] select checkpoint_change# from v$database;     -- from control file
select checkpoint_change#, last_changes# from v$datafile;  -- from control file
select checkpoint_change# from v$datafile_header;    -- from datafile headers

Regards
Michel Cadot Received on Sun Dec 19 2004 - 09:32:31 CET

Original text of this message