Alter tablespace end backup

Hey guys,.

Just a small request:

I have a 9i database hot backup is taken every day, now, when one of the tbspc is in backup mode, my server crashes (Windows)... and when the server is set up once again, my db is at the mount point (like the tbspz is always in backup mode)... now, when I request backup$ v It shows me that the file belonging to this tablespoons is in ACTIVE mode, so ideally what I do is Id o "alter backup end for the tbspz name", that takes my spoons soup out of backup mode and change the status of my file of data not ACTIVE... This is somethng I know and I saw... but I also learned to know when db is in Mount State of the file is ENABLED and I 'recover file data;'... .it retrieves my file and becomes the status of my data file no is NOT ACTIVE... no idea why and how this happens?

Kind regards
Aurélie

Aurélie,

Oracle claims recovery when it detects that the RCS in the header of the data file is lower than other database files. When you put a tablespace offline backup the header of the data files GET correspondents causing freezed in blocks broken inside the data file. When you exit the oracle of the backup mode thaws the header and retrieves the data files by applying redo data.

Now if your system crashes, then the next time you start the oracle will ask for recovery of data files associated with the storage space, because header has been previously locked and SNA was not updated in the header. In the oracle recovery process thaws headers and apply redo data (unless the header is unfreezed THAT SCN cannot be updated, so the recovery process must thaw it).

You can simulate this by putting one of the storage space to backup abort mode and stop (on the test ;)) environment

Kind regards
S.K.

A request: Please do not use unnecessary shortcuts in the forum, which are usually used in the chat. as... shud qstns answr, dnt (some people consider abuse of language)

Tags: Database

Similar Questions

  • ALTER TABLESPACE BEGIN BACKUP MODE

    Hi all
    When we issue alter tablespace begin backup command then freezes the data file headers and all modified blocks will be written to streams and when we issue end backup command then the database will write the blocks changed to data files by accessing files redo.
    my doubt is suppose archiver process archive redo files and all redo files are overwritten. now how the database will write the changed blocks to restore and database dealing with this task.

    TIA

    "Hot backup" is obsolete with 10g or more recent technology as Rman covers this much better.
    Please switch to RMAN at your early convenience.

    Also, as the database must be in archivelog backup online, it is not a problem, that the online redo log files are overwritten, like recovery will use two online redolog files and archived.
    Your question doesn't make sense to me.
    Redo are written in files LGWR, ARCH Archive files. Changes are written to the database by DBWR. All who are independent processes, and the changes are written to redo front to be written to the database.

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • How to Setup Data Guard with alter tablespace... begin backup approach

    Hello!

    I am writing this compilation of documents in a guard daata establishing in 10g. I was in charge to present different approaches in implementing on Rhel 5.

    I came across 3 procedures (which is to duplicate a database with RMAN, then configure it to a Data Guard feature). I read a process using (let's this is what the article said, but procedure was presented):

    alter tablespace... .begin backup;
    alter tablespace... .end backup;

    then copy the generated files and configure it to the data protection feature.

    Someone help it with that? Is there like a blogsite or steps I can take for this scenario?

    Hello;

    The best I found was: (and its same 10 Oracle! and not RMAN.)

    http://sites.Google.com/site/catchdba/physical-standby-database-using-HOTBackup

    There, an old link here on this topic:

    DataGuard configuration using hot backup files

    Hard to find much on this topic as "Hot Backup" almost always comes to RMAN.

    This collection of notes can also help:

    DataGuard knowledge browser Product Page [ID 267955.1]

    And the "Formidable" Powerpoint:

    www.dbspecialists.com/files/presentations/standbydb.ppt

    Seems that this method is dead somewhere between Oracle 8 and Oracle 9

    Best regards

    mseberg

    Published by: mseberg on March 16, 2012 20:31

  • How to change the 'Drive' for the BSO cubes (just like we do using "alter tablespace" for ASO cubes) using MAXL etc.?

    Hello team,

    I'm trying to make a backup copy of the cube by using the copy commands, BSO

    but after copy, I need to change the drive letter (for the data and indexes of the files) using MAXLs.

    I am able to do for cubes ASO using "Alter tablespace" i.e. for example, change "D:\" car ' to 'E:\. "for the tablespace files.

    I need to do the same for the BSO cubes? any idea?

    Kind regards

    Amit

    Don't forget while you can also change the drive it can't displace data. You would have to export the data, delete the database, change the disks, and then reload.

    For the actual command of MaxL watch the MaxL Alter Database command. You can add, dorp or set volumes of disk for ind and pag files

  • Update and select ask when tablespace in backup mode

    Hello

    I have a question related to the DML statement when the tablespace is in backup mode. Suppose that when putting the tablespace in begin backup mode and then during user times run an update on this tablespace statement and validation of the transaction and any other user run the select query on the same data and image that will appear and where to display the data will be taken.

    steps to follow:

    alter tablespace users begin backup;

    Update emp set sal = 4000 where empno = 101;
    commit;
    Select * from emp where empno = 101;

    Now what result will appear and where data will get.

    Thank you
    Gulshan

    Hello

    alter tablespace users begin backup;
    
    update emp set sal=4000 where empno=101;
    commit;
    select * from emp where empno=101;
    

    As far as I KNOW, the database could function normally and you will not find the difference from the point of view of the transactions. If you check process and the Oracle architecture, bit blurry will be established towards the top and vectors to additional would be saved upward in the newspapers online redo - due to which size of redo would be higher than in normal operations. Second, you must be concerned about the backup - which may not be compatible. In order to better opt for RMAN instead of the user managed backups.

    -Pavan Kumar N

  • Missing ALTER TABLESPACE syntax... STRATEGY TO ADD DEFAULT ILM

    Hi all

    I'm checking the syntax of the statement:

    ALTER TABLESPACE tbs1

    STRATEGY TO ADD DEFAULT ILM

    STORE COMPRESS ADVANCED SEGMENT LINE AFTER 30 DAYS OF ACCESS LOW;

    The statement of work, but I found this syntax in the SQL (version 12.1) reference.   The song 'ILM add POLICY' after the 'DEFAULT' keyword is not documented.

    Did I miss something or Iit s a lack of documentation?

    Thank you

    Best regards

    Angelo Della Penna

    John,

    The OP post "alter TABLESPACE.

    (The DEFAULT clause for ALTER TABLESPACE for the TABLESPACE points CREATE documenttion).

    There is no clause of ILM for default for CREATE TABLESPACE.

    https://docs.Oracle.com/database/121/SQLRF/statements_7003.htm

    Therefore, it is undocumented (or a bug in the documentation)

    MK

  • alter tablespace his online;

    Dear all,

    SQL > alter tablespace his online;

    alter tablespace his online

    *

    ERROR on line 1:

    ORA-01113: file 6 needs media recovery

    ORA-01110: data file 6: ' / u01/app/oracle/product/11.2.0/db_1/dbs/tbs_data.dat'

    Can someone tell me what is the problem here

    SQL > recover datafile ' / u01/app/oracle/product/11.2.0/db_1/dbs/tbs_data.dat';

    ORA-00279: change 1859444 September at 17/06/2013 02:57:17 necessary to screw 1

    ORA-00289: suggestion:

    /flash_recovery/flash_recovery_area/SA/ARCHIVELOG/2013_07_01/o1_mf_1_35_%U_.arc

    ORA-00280: change 1859444 thread 1 is in sequence #35

    Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}

    Auto

    ORA-00308: cannot open archived log

    ' /flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc

    '

    ORA-27037: unable to get file status

    Linux-x86_64 error: 2: no such file or directory

    Additional information: 3

    ORA-00308: cannot open archived log

    ' / flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc'

    ORA-27037: unable to get file status

    Linux-x86_64 error: 2: no such file or directory

    Additional information: 3

    Can someone help me on this please.

    Thank you

    Gallot

    Dear all,

    While moving oracle files from one place to another place, I missed the space of a single table data file. So, to create this data file, I did this tablespace as offline and tried to use RMAN to restore this data file 6. He recreated the new data file 6 but he could not recover this file because some log files are missing. Then everything just, I did just deleted the Tablespace SA and created a new one with same. Because there is not a lot of data in the database.

    And my problem is solved

    Thank you

    Hiroji gallot

  • Can I plug in (food) a tablespace, RMAN backup in another DB?

    11.2.0.3/AIX 6.1

    We accidentally dropped a DB development without taking the last backup expdp of a basic scheme. All objects on this schema belong to the single tablespace and we have this tablespace RMAN backup. Is there anyway we could recreate this pattern by restoring the backup tablespace in a different database?

    Yes.

    Use the function/method of TRANSPORT TABLESPACE:

    http://Oracle.Su/docs/11g/backup.112/e10643/rcmsynta2021.htm

    See also sys.dbms_tts.transport_set_check

    RMAN> transport tablespace emp_data, emp_data2
               tablespace destination '/u01/app/oracle/oradata'
               auxiliary destination '/u04/app/oracle/oradata';
    

    If you need to check your endian use this query format:

    SELECT
      PLATFORM_NAME,
      ENDIAN_FORMAT
    FROM
      V$TRANSPORTABLE_PLATFORM;
    

    http://www.Fadalti.com/Oracle/database/how_to_transportable_tablespaces.htm

    http://husnusensoy.WordPress.com/2008/07/12/migrating-data-using-transportable-tablespacetts/

    Best regards

    mseberg

  • alter tablespace offline...

    Hello

    http://docs.Oracle.com/CD/E11882_01/server.112/e25494/tspaces005.htm

    just a quick question,
    alter tablespace....offline temporary
    A tablespace can be taken offline temporarily, even if there are error conditions for one or more files in the storage space. When you specify TEMPORARY offline, the database supports offline data files that are not already in offline mode, the control points as she does.
    If no file is offline, but you use the temporary clause, media recovery is not required to bring to the online storage space. However, if one or more files from the storage space are offline due to clerical errors, and you are taking the tablespace offline temporarily, the tablespace requires recovery before you can bring it online.

    Based on the explanation above, done means that these datafile (with the error condition) code with the storage space you want to use offline will not in offline mode.
    Oracle will be only offline these 'good' datafile associate with storage space?

    My confusiong early when he mentions:
    if one or more files of the tablespace are offline because of write errors,
    which make me feel that even in the midst of erros, all storage data files will be always taken offline.

    The documents also mention:
    Specify TEMPORARY only when you cannot take the tablespace offline normally. In this case, only the files taken offline because of errors need to be recovered before the tablespace can be brought online. Specify IMMEDIATE only after trying both the normal and temporary settings.
    In this case, based on my current knowledge, I mention since all data files are taken offline in the middle of the condition of erros, we just need to recover those files that have the condition of error on them. ???

    Published by: flaskvacuum on March 1, 2012 11:45

    >
    Oracle will be only offline these 'good' datafile associate with storage space?
    >
    Well, Yes, but it's because the files of data with errors will already be ordering offline offline will not be offline them.
    >
    that means the code of these datafile (with the error condition) with the tablespace you want to use offline will not be in offline mode
    >
    No - the doc says that data files wilth errors have been offline. And after ordering TEMPORARY if you try to put the storage space online, it will fail because it will try to put offline the with online also return errors.

    That's why the doc has this cautionary
    >
    Caution:

    If you take a tablespace offline, use the NORMAL clause (default) if possible. This setting ensures that the tablespace requires not coming online restore, even if after incomplete recovery, you reset the sequence of redo logs using an ALTER DATABASE OPEN RESETLOGS.
    >
    You should check the status of all data files before you use CONNECTION TEMPORARY offline, or if a data file is already offlilne because of a clerical error, you will find that what you thought was temporary will avoid you to bring online storage space unless you do a recovery.

  • Alter tablespace name wrong when creating data file

    Hello

    While creating a data file, I used alter tablespace name wrong.
    For example,.
    I used:
    ALTER TABLESPACE ADD datafile APPS_TS_SEED ' / d01/oracle/stkmnfun/db/apps_st/data/a_txn_data05.dbf' size 1024M;

    Correct one:
    ALTER TABLESPACE ADD datafile APPS_TS_TX_DATA ' / d01/oracle/stkmnfun/db/apps_st/data/a_txn_data05.dbf' size 1024M;

    I have created a more a_txn_data06 with the correct STORAGE space...
    But, did anyone know how this can be corrected?


    Thanks in advance,

    As long as it has not at all affected in this data file, you can deposit with
    alter tablespace... datafile drop...

    Kind regards
    Uwe Hesse

    http://uhesse.WordPress.com

  • is it OK to alter tablespace temp SYS of the running production database

    Dear,

    is it OK to alter tablespace temp of the user SYS of the running production database

    Business database version 10.2.0.5
    single instance on AIX

    We have two temp tablespace temp and temp2

    I'm trying to rebuild the index by using sys connection but its not working, cannot extend the temp tablepspace

    then I checked this system a default temp tablespace is of a size of 2 GB

    on the other hand, all other schemas has (including the owner of the index) have the temp of larger size.


    He suggests to change the tablespace temp of SYS.

    Ok. Then the answer is Yes, change the SYS temp tablespace should not be a problem. If you use SYS to reconstructions of index maintenance is another story. In any case, Yes, change the tablespace temp should not be a problem. Other sessions of this user would continue using the old tablespace until their completed transaction. New transactions will begin using the newly designated temp tablespace.

    Hope that helps,

    -Mark

  • alter tablespace temp failed

    C:\Documents and Settings\Administrateur > sqlplus

    SQL * more: Release 8.1.7.0.0 - Production on Mon Dec 13 12:56:25 2010

    (c) Copyright 2000 Oracle Corporation. All rights reserved.

    Enter the user name: sys as sysdba
    Enter the password:

    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the partitioning option
    Release 8.1.7.0.0 - Production jserver

    SQL > set linesize 3333
    SQL > select * from dba_tablespaces;

    NOM_TABLESPACE INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE MIN_EXTLEN STATUS LOGGING EXTENT_MAN DISTRIBUTION CONTENT PLU
    ------------------------------ -------------- ----------- ----------- ----------- ------------ ---------- --------- --------- --------- ---------- --------- ---
    RECORD PERMANENT ONLINE SYSTEM 65536 65536 1 2147483645 50 65536 DICTIONARY USER NO.
    RECORD PERMANENT 524288 524288 8 4096 50 524288 DICTIONARY USER NO. RBS ONLINE
    RECORD PERMANENT 131072 131072 1 4096 0 131072 DICTIONARY USER NO. USERS ONLINE
    TEMP 65536 65536 1 0 65536 TEMPORARY USER NO. DICTIONARY ONLINE REGISTRATION
    TOOLS 32768 32768 1 4096 0 32768 CONSIGNMENT PERMANENT ONLINE DICTIONARY USER NO.
    RECORD PERMANENT ONLINE 131072 131072 1 4096 0 131072 DICTIONARY USER NO. INDX
    RECORD PERMANENT DRSYS 65536 65536 1 2147483645 50 65536 USER NO. DICTIONARY ONLINE

    7 selected lines.

    SQL > alter tablespace temp add tempfile 'E:\oracle\product\10.2.0\oradata\temp03.dbf' size 12 M;
    alter tablespace temp add tempfile 'E:\oracle\product\10.2.0\oradata\temp03.dbf' size 12 M
    *
    ERROR on line 1:
    ORA-03217: invalid option to alter the TEMPORARY TABLESPACE


    SQL >

    oracleRaj wrote:
    any solution... ??

    You must upgrade the database 11g, Execute following and post result it

    alter tablespace temp add datafile 'E:\oracle\product\10.2.0\oradata\temp03.dbf' size 12M;
    
  • Question about ALTER TABLESPACE add datafile on/slide

    Good afternoon

    As an exercise, I created a STORETABS tablespace and added a data file using the command:
    SQL> alter tablespace storetabs add datafile 'e:/storetabs3.dbf' size 50M;
    This successful step. A new file was created at the root of e: as expected.

    Following this command, I have published:
    SQL> alter tablespace storetabs drop datafile 'e:/storetabs3.dbf';
    
    Tablespace altered.
    The command succeeded. However, the file * ' e:/storetabs3.dbf' * has not been deleted. After re-reading the documentation found at http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_3002.htm, I feel that deleting the operating system file itself is something that must still be done manually.

    Question: Am I right that there is no option to cause 'alter tablespace < tablespace > drop datafile < datafilename >' remove it the o/s file? In other words, should the o/s file always be deleted manually as a separate step?

    Thank you for your help,

    John.

    John,

    Don't know what part of the documentation page you are referring to but on the same page to the following location
    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28286/statements_3002.htm#sthref5437,
    He clearly staes

    Specify DROP to drop from the tablespace an empty datafile or tempfile specified by filename or file_number.
    This clause causes the datafile or tempfile to be removed from the data dictionary and deleted from the operating system.
    The database must be open at the time this clause is specified
    
  • everything except the tablespace from backup system

    Is there a way to everything except the tablespace from backup system without having to specify each individual tablespace?

    version is 10.1.0.5 on HP - UX itanium.

    The reason is the database has been updated since 7.3.4-> 8i - > 10.1.0.5 and we now migrate with RMAN to instead of the user managed backups however, we met a bug when save the index blocks in the system tablesapce this only impacts backupsets compressed so if I can exclude the system tablespace I can run two backups one uncompressed which captures the system tablespace , then another that captures everything. I would really avoid specifying storage space in a script that she then introduced the possibility of a tablespace is added and is not included in the backup.

    Unfortunately, if you want to do a full database backup, you will not be able to exclude the SYSTEM tablespace. With this in mind, you will have left with specifying the tablespace backups.

  • Exclude a tablespace in backup rman

    Data Guard with primary and physical standby on Oracle 11.2.0.1 on redhat 5.2. I'm for duplicate primary to the wait. The primary has a tablespace offline and I want to exclude from the protection of the data. With RMAN to backup as
    BACKUP DEVICE TYPE DISK FORMAT '/u01/flash/dg/%d_%U' DATABASE PLUS ARCHIVELOG;
    Questions
    (1) how to make RMAN report what source objects (files, tablespaces) to include in the backup command before running a real backup?
    (2) how can I do the command exclude the offline tablespace, I don't want to copy?

    Thank you

    Daniel is correct. What you thought was:

    SKIP TABLESPACE MYOFFLINETBS;

    However, Standby plays by different rules, and regardless of whether or not a tablespace is offline pending must be prepared to get it back online.

    I don't normally bother with a redundant post, but I had it in my notes:

    RMAN DUPLICATE for STANDBY does not work with SKIP or EXCLUDE TABLESPACE [1174944.1 ID]
         
    See you soon.

Maybe you are looking for