A SCN for the entire database and the different SNA for the data files?

DB Version: 11 g

I always thought that there is a unique SCN for the database as a whole.
A quote from the link below as
When a control point is completed, Oracle stores the RCS individually in the control for each data file file
http://www.dbapool.com/articles/1029200701.html


What does that mean? There is a SNA for the entire database, and there are individual SCN for each data files?

Well, unfortunately, the article says more bad than good things. Or if I can't call them wrong, they are rather confusing and rather than clear things for the reader, its making them appear to look more confused.

First things, YVERT is used for read consistency (CR) mechanism and the backbone of the notion of Multiversioning. The control point is the mechanism to help that recovery is decided. Contrary to what said article, not any kind of checkpoints update both the data file and the control file, and also, there is not a type of them as well. In addition, the article says that the LAST_CHECKPOOINT is set to NULL, while its actually set to the infinity since it is not possible to detect the moment when the database is opened, that the last issue of control over the file would be. In the case of complete control point, this number is saved and is also associated with the toa Controlfile own database leader at the next startup. If this is not the case, there is an inconsistency in the stop_checkpoint of the data file and the stop_checkpoint reocrded in the control file, leading to a recovery of the instance.

There are several types of control points. Similarly, there are several types of SNA as well. Without going into the details of these, IMO, the article simply means that when the control point write over a file passes, oracle updates the file checkpoint on it and this is recorded in the Controlifle. as well.

HTH
Aman...

Tags: Database

Similar Questions

  • Defining the new path for the data files for restoring using the VALUE of NEWNAME FOR DATABASE

    Version: 11.2.0.3 Linux

    Today, I had to do a restore RMAN to a new server and I came across the post following RTO on the VALUE of NEWNAME FOR DATABASE

    ALTER database open resetlogs upgraded;         error to throw

    So, I thought to use it to indicate the new location of the data files to restore.

    That's what I did
    ===================

    Restore the control file and catalog items to backup using the command of CATALOGUE START WITH. Then I started the restoration
    $ rman target / cmdfile=restore.txt
    
    Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jul 26 04:40:41 2012
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database: SPIKEY (DBID=2576163333, not open)
    
    RMAN> run
    2>  {
    3>  SET NEWNAME FOR DATABASE TO '/fnup/hwrc/oradata/spikey';
    4>  restore database  ;
    5>  }
    6>
    7>
    8>
    executing command: SET NEWNAME
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of set command at 07/26/2012 04:40:43
    RMAN-06970: NEWNAME '/fnup/hwrc/oradata/spikey' for database must include %f or %U format
    
    Recovery Manager complete.
    Don't know how it worked for Levi without %f or %U. So, I added %f
     $ vi restore.txt
     $ cat restore.txt
    run
     {
     SET NEWNAME FOR DATABASE TO '/fnup/hwrc/oradata/spikey/%f';
     restore database  ;
     }
    
    
     $ rman target / cmdfile=restore.txt
    
    Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jul 26 04:45:45 2012
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database: SPIKEY (DBID=2576163333, not open)
    
    RMAN> run
    2>  {
    3>  SET NEWNAME FOR DATABASE TO '/fnup/hwrc/oradata/spikey/%f';
    4>  restore database  ;
    5>  }
    6>
    7>
    8>
    executing command: SET NEWNAME
    
    Starting restore at 26-JUL-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=19 device type=DISK
    
    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00001 to /fnup/hwrc/oradata/spikey/1
    channel ORA_DISK_1: restoring datafile 00002 to /fnup/hwrc/oradata/spikey/2
    channel ORA_DISK_1: restoring datafile 00003 to /fnup/hwrc/oradata/spikey/3
    channel ORA_DISK_1: restoring datafile 00004 to /fnup/hwrc/oradata/spikey/4
    channel ORA_DISK_1: restoring datafile 00005 to /fnup/hwrc/oradata/spikey/5
    channel ORA_DISK_1: restoring datafile 00006 to /fnup/hwrc/oradata/spikey/6
    channel ORA_DISK_1: restoring datafile 00007 to /fnup/hwrc/oradata/spikey/7
    channel ORA_DISK_1: restoring datafile 00008 to /fnup/hwrc/oradata/spikey/8
    channel ORA_DISK_1: restoring datafile 00009 to /fnup/hwrc/oradata/spikey/9
    channel ORA_DISK_1: reading from backup piece /u07/bkpfolder/SPIKEY_full_01nh0028_1_1_20120725.rmbk
    channel ORA_DISK_1: errors found reading piece handle=/u07/bkpfolder/SPIKEY_full_01nh0028_1_1_20120725.rmbk
    channel ORA_DISK_1: failover to piece handle=/u07/dump/bkpfolder/SPIKEY_full_01nh0028_1_1_20120725.rmbk tag=SPIKEY_FULL
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:56
    Finished restore at 26-JUL-12
    
    Recovery Manager complete.
    As you can see, RMAN restore data files to the desired location. But the data file names ended up as
    1
    2
    3
    .
    .      
    .
    9
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -----------| Holy Cow |-----------------------------


    So I had to rename each file as below
    $ mv 1 /fnup/hwrc/oradata/spikey/system01.dbf
    $ mv 2 /fnup/hwrc/oradata/spikey/sysaux01.dbf
    $ mv 3 /fnup/hwrc/oradata/spikey/undotbs01.dbf
    I would have been better in execution of the order for each data below file
    SET NEWNAME FOR DATAFILE
    Now, I think, there is no advantage in using NEWNAME SET of DATABASE to. Only the disadvantages. I did anything wrong above?

    Martin;

    On the issue of the VALUE of NEWNAME FOR DATABASE, you must specify at least one of the first three of the following substitution variables to avoid collisions of names: %b f % U. see semantic entry for TO 'filename' for a description of the possible substitution variables.

    You use %f

    %b
    
    Specifies the filename without the fully qualified directory path. For example, the datafile name /oradata/prod/financial.dbf is transformed to financial.dbf. This variable enables you to preserve the names of the datafiles while you move them to different directory. During backup, it can be used for the creation of image copies. The variable cannot be used for OMF datafiles or backup sets.
    
    %f
    
    Specifies the absolute file number of the datafile for which the new name is generated. For example, if datafile 2 is duplicated, then %f generates the value 2.
    
    %U
    
    Specifies a system-generated unique filename. The name is in the following format: data-D-%d_id-%I_TS-%N_FNO-%f. The %d variable specifies the database name. For example, a possible name might be data-D-prod_id-22398754_TS-users_FNO-7.
    

    Source - E10643-01

    Backup and recovery reference

    http://docs.Oracle.com/CD/E14072_01/backup.112/e10643/rcmsynta2014.htm

    I see CKPT and I agree on that!

    Best regards

    mseberg

  • OFA confuses me - why the points for editing data files 3?

    Hello

    I met lately about this statement:

    Table D-7 shows a hierarchical mapping of files of a compliant installation OFA sample with two directories of Oracle base and two databases. The database files are spread over three mount points, / U02, /u03 and /u04.



    of http://docs.oracle.com/html/B10811_05/app_ofa.htm

    My question is:
    Why three mount points (/ u02, /u03 and /u04) for the data files? Don' understant this.
    is it not better to store all the data files in a mount point?

    Although separate mount points don't necessarily mean that they are mounted on different tables, or readers, what examples are involving. Systems are often configured in this way for a number of reasons such as performance or recovery (ie. multiplexing of your recovery logs, or by placing data files for certain tablespaces on their own tables or units). The documentation is illustrating how be OFA compliant in this scenario.

  • After you rename the data file, cannot start database

    Oracle 11 g 2
    OEL 5 (ASM)
    Network infrastructure (cluster install) - no CARS yet

    Something interesting happened. Perhaps this question might be more suited to the "ASM" section, but that's.

    I gave a data in ASM file an alias with the following command (the ASM instance):
    SQL> alter diskgroup DATA add alias '+DATA/oradb/datafile/users01.dbf' for '+DATA/oradb/datafile/users.253.795630487';
    
    Diskgroup altered.
    Then, as mentioned in Note: 564993.1, we need to update the database as well with the new alias. However, when I went to the stopping and starting of the database, I received the following:
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    It's strange. Nothing has changed except the alias being added to the data file. This is all before operation. That's happened?

    I think that it may have to do with the different ASMOPER, ASMADMIN, ASMDBA groups that have been installed as part of the installation of the grid Infrastructure. In addition, the listener is running out of the GI home.

    All my variables environment (e.g. ORACLE_SID, ORACLE_HOME, etc.) are defined.

    Any ideas?

    Thank you.

    Hello
    When you connect with tnsnames alias while the database is down the listner did not know the service, so you must start the database on the server database with sqlplus / as sysdba. After starting the registry of data base with the listener and your connection works again.
    Alternativ you can add a service to your listener.ora to connect with him while he is arrested, as long as you do not have it you must use local connect which means sqlplus / as sysdba.

    concerning
    Peter

  • Get the former locations of the data files and Redo logs

    Version: 11.2
    Platform: Solaris 10

    When we manage hundreds of DBs, we do not know the locations of all DB files these allows DBs. say a DB goes down and you have all the required RMAN backups.

    When you restore the DB in a new location in the path of the new server, you must run the commands for the data files and ORLs below. But how do we know

    The former location of the data files.

    B. the old location of redo online stores that I can run

    run
    alter database rename file 'oldPath_of_OnlineRedoLogs' to 'newPath_of_OnlineRedoLogs' ;  --- Without this command , the restored control file will still reflect the old control file location
    run {
    set newname for datafile 1 to '/u04/oradata/lmnprod/lmnprod_system01.dbf' ;
    set newname for datafile 2 to '/u04/oradata/lmnprod/lmnprod_sysaux01.dbf' ;
    set newname for datafile 3 to '/u04/oradata/lmnprod/lmnprod_undotbs101.dbf' ;
    set newname for datafile 4 to '/u04/oradata/lmnprod/lmnprod_audit_ts01.dbf' ;
    set newname for datafile 5 to '/u04/oradata/lmnprod/lmnprod_quest_ts01.dbf' ;
    set newname for datafile 6 to '/u04/oradata/lmnprod/lmnprod_yelxr_ts01.dbf' ;
    .
    .
    .
    .
    .
    }

    Hello

    With the help of Oracle 11.2, you can use feature 'set newname for database' using OMF.

    SET NEWNAME FOR DATABASE TO '/oradata/%U';
    RESTORE DATABASE;
    SWITCH DATAFILE ALL;
    SWITCH TEMPFILE ALL;
    RECOVER DATABASE;
    

    After the restore and recover databases (i.e. before resetlog open) you can do to rename redolog. Just a query column member from v$ logfile and deliver ' alter database rename file 'oldPath_of_OnlineRedoLogs' to 'newPath_of_OnlineRedoLogs ';

    When we use the DSO is much easier to use OMF because Oracle automatically creates the directory structure.
    But when we use the file system that the OMF does not serve due DBA dislikes system generated on file system names.

    If you don't like OMF file system, you can use the script on thread below to help restore you using readable for datafile names, tempfile, and redo.

    {message: id = 9866752}

    Kind regards
    Levi Pereira

  • How to recover the data file in Oralcle 10 g...? No backups and no newspaper archiving

    All,

    I need to recover the data file 2, which is for the undo tablespace and it is in the State to recover and I need to recover the data files now.

    But the bad news is we have no backup at all and we have no archive logs (log archiving is disabled in the database)...

    In this case how can I recover the data file...?


    SQL > select a.file #, b.SID, a.status from v$ datafile a, v$ tablespace b where a.ts #= b.ts #;

    FILE NAME STATUS NO.
    ---------- ------------------------------------------------------------------------------------------ -------
    1 /export/home/oracle/flexcube/product/10.2.0/db_1/oradata/bwfcc73/system01.dbf SYSTEM
    * RETRIEVE /export/home/oracle/logs/bw/undotbs01.dbf 2 *.
    3 /export/home/oracle/flexcube/product/10.2.0/db_1/oradata/bwfcc73/sysaux01.dbf online
    4 /export/home/oracle/datafiles/bw/bwfcc73.dbf online
    5 /export/home/oracle/datafiles/bw/bwfcc73_01.dbf online

    SQL > archive logs list;
    Database log mode no Archive Mode
    Automatic archival disabled
    Destination of archive USE_DB_RECOVERY_FILE_DEST
    Sequence of journal online oldest 4940
    Current log sequence 4942

    Hello

    First, you must open a ticket with oracle Support and explore the options

    You can use this note to fix:
    RECOVERY OF A LOST IN A [ID 1013221.6] UNDO TABLESPACE DATA FILE

    If you are unable to drop Undo tablespace as Undo Segment recovery must

    You can download the trace file following the opening of the ticket

    SQL>Alter session set tracefile_identifier='corrupt';
    
    SQL>Alter system dump undo header "";
    
    Go to udump
    
    ls -lrt *corrupt*
    
    Upload this trace file
    
    Also upload the alert log file
    

    Kind regards
    Levi Pereira

    Published by: Levi Pereira on November 29, 2011 13:58

  • create a tablespace without specifying the path to the data file and the name

    Hello

    Is it possible to create a tablespace without specifying the name and the path of the data file.

    For example: just specify the name of the tablespace and the size of the data file, the data file must be created in a default location with the default name? Is this possible?

    user13364377 wrote:
    Hello

    Is it possible to create a tablespace without specifying the name and the path of the data file.

    For example: just specify the name of the tablespace and the size of the data file, the data file must be created in a default location with the default name? Is this possible?

    The use of the files managed by Oracle
    Internally, Oracle uses standard file system interfaces to create and delete files if necessary for the following data structures:

    * Tablespaces
    * Online redo logs
    * Control of files

    Through initialization parameters, you specify the directory of file system to use for a particular file type.
    EXAMPLE:
    The following parameters are included in the initialization parameter file:

    DB_CREATE_FILE_DEST = ' / u01/oradata/sample.
    DB_CREATE_ONLINE_LOG_DEST_1 = "/ u02/oradata/sample.
    DB_CREATE_ONLINE_LOG_DEST_2 = ' / u03/oradata/sample.

    The following statement is issued at the SQL prompt:

    SQL > CREATE a DATABASE sample.
    SQL > CREATE TABLESPACE tbs_2 DATAFILE SIZE 400 M;
    SQL > CREATE UNDO TABLESPACE undotbs_1;

    check the link for more information:
    http://download.Oracle.com/docs/CD/B10500_01/server.920/a96521/OMF.htm

  • all export and import and the data files location

    Hi guys,.

    can someone please confirm...

    If I export the entire base and my X tablespace uses the loc * 1 data file * / test1.dbf, in the database where I matters now in the data file is in loc * 2 * / test1.dbf, it does make a difference and the data gets imported correctly, Yes?

    If I export the entire base and my X tablespace uses the loc * 1 data file * / test1.dbf, in the database where I matters now in the data file is in loc * 2 * / test1.dbf, it does make a difference and the data gets imported correctly, Yes?

    No, it makes no difference and the import of the data correctly.

  • How can I re - attach the data files for the programs?

    Original title:

    reconnection of the files

    BONE had to be reinstalled.  All data is saved but lost programs.  Programs now reinstalled, but how can I re - attach the data files for the programs?

    Hello

    You copy the data on your computer (Documents, Photos, etc.) and file extensions should be automatically associated with programs they have written in.

    Otherwise:

    "Changing programs by default by using Set Program Access and defaults of the computer"

    http://Windows.Microsoft.com/en-us/Windows/set-program-access-computer-defaults#1TC=Windows-7

    "How to change file Associations in Windows 7 and Windows 8.

    http://www.7tutorials.com/how-associate-file-type-or-protocol-program

    See you soon.

  • Adding file control and the data file

    Hello

    I need to edit and add a control file and the data file to a database but its controlfile max and max datafiles parameters are reached. Is there any other step rather than create trace control file backup and change the db file and trace in nomount commissioning, please let me know.

    Oracle version: 10g
    platform: solaris.

    N °

  • RMAN-06056 and the data file does not exist

    Hello

    I'm working on Oracle 9i Database (9.2.0.8.0) on AIX 5.2 and we try to run a full backup of RMAN, but it seems to be failing with an error as follows;

    From backup to 27-SEPT.-10
    using the ORA_SBT_TAPE_1 channel
    using the ORA_SBT_TAPE_2 channel
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the backup to 27/09/2010 01:33:17 command
    RMAN-06056: could not access datafile 23

    I checked the v $ datafile and it shows that it is in a State of recovery.

    Select the State, file No., name from v$ datafile
    where status <>'in LINE '.
    order by 1

    RECOVER /u06/oradata/test_sys/data/msg_log06.dbf 23

    The file does not exist at the level of the BONE and the RMAN, it shows as;

    RMAN > resync catalog
    + 2 >. +

    from full resynchronization of the recovery catalog
    full complete Resync

    RMAN > outline report;

    Report of the database schema
    K - bytes Tablespace RB segs Datafile file name
    ---- ---------- -------------------- ------- -------------------
    819200 + 1 SYSTEM YES /u011/oradata/test_sys/data/system01.dbf+

    + 23 0 MSG_LOG NOT /u06/oradata/test_sys/data/msg_log06.dbf+

    The associated tablespace cannot be just deleted given that some other files of dependent data. The RMAN script has also been changed

    change archivelog than any overlap;
    backup database more archivelog entry remove
    Skip inaccessible;

    But the backup fails again, please advice.

    Concerning

    Run

    LIST OF BACKUP OF THE FILE 23

    to see if you have previous backups. If you have a backup of the data file, you can then
    Put the offline data file
    RESTORE the data file
    RECOVER the data file.

    If you want to 'ignore' this test taking it Offline datafile
    ALTER DATABASE DATAFILE OFFLINE 23

    then use "SKIP OFFLINE" in your RMAN BACKUP DATABASE command.

    Hemant K Collette

  • Enter the value for the data files:

    Hi all
    I use 10.2.0.1.0
    I have a tablespace "hg" with two data files.
    whenever I use after an order to drop this tablespace I hv asked values for data files
    Welcome is:

    SQL > drop tablespace hg, including content and data files;

    SQL > drop tablespace hg, including content and data files;

    I have two data files to the tablespace named as hg.dbf, hg1.dbf

    now what I hv value to enter? or how to calculate the value.


    Thank you

    Honey says:
    Yes I know its 'AND' but when I using the '&' then oracle asked me of ' enter the values of the data files: "k".
    Please try first, then the calculation of the value.
    It can be a variable binding value.
    If you find the answer please suggest steps

    Simple words, the "DROP TABLESPACE" command does not support '&' character. & is a substitution of placeholder for SQL variable * more.

    Even if you provide the value for the "data files" prompt, the command does not work as it would lead to "drop tablespace including contents tsname *"details of your file *.

  • Is there no matter what it is called line high water mark for the data files?

    Hi all

    I'm a little confused about that. Many links suggest that HWM is for Segments (data index etc.). But at the same time, I see a lot of discussion (on this forum as well) which suggest that the HWM is an attribute of the data file.

    for examplefind a watermark on a data file

    Please specify.

    Thank you

    user8896122 wrote:

    Hi all

    I'm a little confused about that. Many links suggest that HWM is for Segments (data index etc.). But at the same time, I see a lot of discussion (on this forum as well) which suggest that the HWM is an attribute of the data file.

    for examplefind a watermark on a data file

    Please specify.

    Thank you

    When all else fails Read The Fine Manual (see LINK below)

    Glossary

  • What happens if AUTOEXTEND is turned on and the data file reaches the limit?

    Hello

    I m using Oracle 11 g. I created a tablespace by using the following command:

    CREATE TABLESPACE MYTABLESPACE
    DATAFILE '< PATH > '.
    SIZE 1 G AUTOEXTEND ON MEASUREMENT OF LOCAL MANAGEMENT AUTOALLOCATE;


    The data file is almost full. The question is: given that AUTOEXTEND is enabled, a new data file will automatically create the original data file reaches the limit? (data file is PETIT_FICHIER)


    I would appreciate your help.


    Thank you

    998043 wrote:
    Hello

    I m using Oracle 11 g. I created a tablespace by using the following command:

    CREATE TABLESPACE MYTABLESPACE
    DATAFILE ''.
    SIZE 1 G AUTOEXTEND ON MEASUREMENT OF LOCAL MANAGEMENT AUTOALLOCATE;

    The data file is almost full. The question is: given that AUTOEXTEND is enabled, a new data file will automatically create the original data file reaches the limit? (data file is PETIT_FICHIER)

    I would appreciate your help.

    Thank you

    File stops growing & error is thrown.

  • Data in the data file header

    RDBMS version: 10.2.0.4.0, 11.2.0.2

    During the backup hot (RMAN and user managed backup), data can be written and read from data files. But its headers are frozen. Then, where will be data for the headers of data stored up to that hot backup is made?

    Why must 'means for the headers of data data' be 'stored' somewhere?

    The header is not updated. Header updates are Checkpoint SCN, LogSequence (which is not visible to us) etc. These updates are applied to the data file when the database tablespace backup is complete. Intermediate of the SCN values need not be "stored". When the ends of backup and a control point is completed, Oracle updates the header with the current SNA Checkpoint.

    Hemant K Collette

Maybe you are looking for

  • Firefox is not completely functional in certain areas. There are dead zones, and I have to scroll down to click on certain points.

    I have two main questions. First of all, if I want to click on the links at the top of my screen, I see is the pointer, so I can't click on the link. In addition, the arrow from the top on my scroll bar does not work and the scroll pane will not work

  • E73 DisplayPort to HDMI

    Hi all I have problems with DisplayPort to HDMI on one of our Dell S2415H monitors. We have a ThinkCentre E73 Tower. 8 GB of RAM, 120 GB SSD, Intel i5 4460S (memory) Current configuration is VGA to VGA on a monitor S2415H monitor and the second is li

  • HP Thin Client T5550: HPDM - sending of the zone settings

    Hello everyone, I have a huge issue with my HP Device Manager and I would appreciate your help. When I try to send to my HP Thin Client T5550 time zone settings, it is just the time zone of Dublin. It doesn't matter what time zone I send, it always c

  • disable the A6M processor bicoeur

    Hello! A laptop HP 2310er, processor A6 4400 m, it is possible to deactivate the Dual Core, as the fan when overclocking is affected?

  • BlackBerry Maps UTF-8

    I have a problem when the BlackBerry Maps with UTF-8 (characters such as o) call in the XML (the location document) string, because I put a string which includes such characters as the label or Description, and then they appear wrong in the applicati