What will happen to this script if there is no interruption?

Friends,

OS: RHEL AS 3
DB: 9iR2 (9.2.0.4)

I know RMAN is advised but... we use the user managed backup.

It's our managed user backup. I manually run this script for the last 3 years with no problems.
I'm now automate this script by passing through crontab.
now my question is... when executing this script if there is no interruption of any cause or by sudden break or disconnect sudden or any other...
What happens to this script? to corrupt my db?
If any interruption happens what should I do?
alter tablespace system begin backup;
host cp /u01/app/oracle/oradata/test/system01.dbf /u02/online_backup
alter tablespace system end backup;

alter tablespace undotbs1 begin backup;
host cp /u01/app/oracle/oradata/test/undotbs01.dbf /u02/online_backup
alter tablespace undotbs1 end backup;

alter tablespace CWMLITE begin backup;
host cp /u01/app/oracle/oradata/test/cwmlite01.dbf /u02/online_backup
alter tablespace CWMLITE end backup;

alter tablespace DRSYS begin backup;
host cp /u01/app/oracle/oradata/test/drsys01.dbf /u02/online_backup
alter tablespace DRSYS end backup;

alter tablespace INDX begin backup;
host cp /u01/app/oracle/oradata/test/indx01.dbf /u02/online_backup
alter tablespace INDX end backup;

alter tablespace test_DEFAULT begin backup;
host cp /u01/app/oracle/oradata/test/test_DEFAULT.dbf /u02/online_backup
alter tablespace test_DEFAULT end backup;

alter tablespace ODM begin backup;
host cp /u01/app/oracle/oradata/test/odm01.dbf /u02/online_backup
alter tablespace ODM end backup;

alter tablespace TOOLS begin backup;
host cp /u01/app/oracle/oradata/test/tools01.dbf /u02/online_backup
alter tablespace TOOLS end backup;

alter tablespace USERS begin backup;
host cp /u01/app/oracle/oradata/test/users01.dbf /u02/online_backup
alter tablespace USERS end backup;

alter tablespace XDB begin backup;
host cp /u01/app/oracle/oradata/test/xdb01.dbf /u02/online_backup
alter tablespace XDB end backup;

alter system switch logfile;
Thank you

for running this script if there is no interruption by any cause is by > sudden force or disconnecting sudden or any other...
What happens to this script? to corrupt my db?
If any interruption happens what should I do?

If there is power failure there is possibility that your data files may be corrupted.

If it happens during the backup operation and assuming that the file did not get corrupted, you can open without any problems

But you must check the State of the data file before the opening of the DB. IF none of the tablespace in backup mode Begin you must mount the database and issue the command end backup

Then your DB will come back

The script has nothing to do with corruption on the frame.

If you have files in backup mode you will not be able to open the DB

A simple demo

A simple could help you what happens if there is a stop in the waiver of the script

SQL> alter tablespace users begin backup;

Tablespace altered.

SQL> host ocopy D:\ORACLE\ORADATA\RMAN\RMAN\USERS01.DBF D:\ORACLE\ORADATA\RMAN\RMAN

SQL>  host ocopy D:\ORACLE\ORADATA\RMAN\RMAN\USERS01.DBF D:\ORACLE\ORADATA\RMAN

SQL> conn sys/sgdf@rman as sysdba
Connected.
SQL> shutdown immediate
ORA-01149: cannot shutdown - file 4 has online backup set
ORA-01110: data file 4: 'D:\ORACLE\ORADATA\RMAN\RMAN\USERS01.DBF'

*here i have shutdow the database from windows services while the tablesapce is in backup mode*

ORA-12571: TNS:packet writer failure
SQL>  conn sys/sgdf@rman as sysdba
ERROR:
ORA-12518: TNS:listener could not hand off client connection

SQL> startup

SQL> conn sys/sgdf@rman as sysdba
Connected.
SQL> select name from v$database;

NAME
---------------------------
RMAN

SQL> select count(*) from dba_objects;
select count(*) from dba_objects
                     *
ERROR at line 1:
ORA-01219: database not open: queries allowed on fixed tables/views only

SQL> SELECT * FROM V$BACKUP WHERE STATUS = 'ACTIVE';

     FILE# STATUS                                                    CHANGE#
---------- ------------------------------------------------------ ----------
TIME
----------
         4 ACTIVE                                                    1395431
09-15-2008

SQL> alter tablespace users end backup;

Tablespace altered.

SQL> alter database open;

Database altered.

So if the underlying file has been corrupted, then you must restore backup valid that's all

Published by: Maran Viswarayar Sep 15, 2008 18:50
Added the simple demo

Published by: Maran Viswarayar Sep 15, 2008 18:53

Tags: Database

Similar Questions

  • On this forum, what will happen after the beta period?

    I was wondering what will happen on this forum after the beta period. I think that there are a number of options:
    -the forum will be deleted or at least is more accessible for participants of the beta
    -the forum will stay for a longer period of time, perhaps unalterable, but remains limited to the participants of the beta product and management
    -the forum is open to the public, read-only or read / write

    What happens on the forum may be long term help people decide what and how they post here.

    Thank you

    Hi, Wilfred,

    Excellent question. If we continue to make great questions in the forum like this, we can (and probably) turn this into a public forum with all the threads of discussion held. We will probably remove the beta announcements and also remove/modify entries that are specific to beta, but keep the rest for future participants to take advantage.

    This is all the more reason to keep this forum for discussions, questions, exchange of ideas and comments.

    Thank you

    Joe Huang

  • I support a very large school district running Firefox 3.6. What will happen at the end of life date? In the online environment, we test this week.

    I run the test center for a very large school district with over 120 students of k. We have a current deployed at base of 54 client machines of k using Firefox 3.6. We have not upgraded for many reasons, of which the most important is to remove the possibility of use in navigation private students and dealing with plugin-updates for the digital non-born (read dumber than a bag of hammers users) that make up the majority of the customer base.

    We test ESR now, but only discovered this end of life for 3.6 is tomorrow, 4/24. We are currently in the middle of the scale of the State of online tests. The question is, what will happen tomorrow, when the browser will end of life. ESR wiki mentions that "an update to the current version of Firefox Desktop will be available through the Update Service Application"

    So the main question is, are my students/teachers goes to get a popup telling them that they have updated the browser if we have already turned off updates? If so, can I I disable remote using SCCM, because there will be all sorts of havoc.

    Please advise as soon as possible and thank you in advance.

    An addon like https://addons.mozilla.org/en-US/firefox/addon/disable-private-browsing-pl/ can help, or http://kb.mozillazine.org/User:Dickvl / Private_Browsing_disable (don't forget, this is beyond what this forum can help you with if you need help making these changes).

  • Vista 64-bit for Windows 7 32 bit. What will happen to my laptop?

    I have VISTA 64 bit OS and I want to reformat my laptop to Windows 7 but I have Windows 7 32 bit. What will happen to my laptop if I install Windows 7 32 bit? I'm afraid that my laptop will be slow or something because I install 32 bit. Please help me...

    Hello

    There is no way to upgrade from Vista 64 bit to Windows 7 32 bit.

    It must be done with a clean install. as you say.

    It should work fine.

    http://Windows.Microsoft.com/en-us/Windows-Vista/32-bit-and-64-bit-Windows-frequently-asked-questions

    Have you checked if your computer is Compatible Windows 7?

    Go to your computer / computer laptop manufacturer Web site and see if Windows 7 drivers are available for your make and model computer / laptop.

    If this is not available, Windows 7 will not properly work for you.

    Run the "Windows 7 Upgrade Advisor.

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=20

    Check if your specifications are compatible for Windows 7:

    "Windows 7 system requirements"

    http://Windows.Microsoft.com/en-us/Windows7/products/system-requirements

    "Windows 7 Compatibility Center" for software and hardware:

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx

    Windows 7 upgrade paths:

    http://TechNet.Microsoft.com/en-us/library/dd772579 (v = ws.10) .aspx

    «Installation and reinstallation of Windows 7»

    http://Windows.Microsoft.com/en-us/Windows7/installing-and-reinstalling-Windows-7

    See you soon.

  • I have CC 2015. When I'm working in camera raw under lens Corrections no profile tab is displayed.  What is happening with this?  I have a color tab and a manual tab but no profile tab.

    I have CC 2015. When I'm working in camera raw under lens Corrections no profile tab is displayed. What is happening with this? I have a color tab and a manual tab but no profile tab.

    Hi stephenr,.

    When you open a raw image in Photoshop, it will open in Camera Raw first and you would be able to see the profile tab of sub Lens Correction

    However, when you go to the filter menu > filter Camera Raw > then tab of profile is not supposed to be there, and this is the expected behavior.

  • What will happen if immediate restore session / cancel stop of the database?

    I have a long session restoration after I killed him. Session state is 'DEAD' and when I check the transaction of $ v, it will take nearly 24 hours to a complete restoration. We can not wait if a long time because we have another job dependencies need restoration must be completed as soon as possible. In the end, we plan to stop immediately. This will help? What will happen to the restore session if we issue immediate shutdown or shutdown abort? Is the restoration completed successfully?

    If you SHUTDOWN ABORT when there are very many active transactions or be restored, then the default FAST_START_PARALLEL_ROLLBACK that occurs at the start of subsequent proceedings in fact means that the restore is performed more quickly.
    However, if it is a large single transaction as a DELETION on a table with an Index, it is best to disable FAST_START_PARALLEL_ROLLBACK before restarting the Instance immediately after a SHUTDOWN ABORT. Parallel cancellation of a single important transaction with an Index can be slower!

    FAST_START_PARALLEL_ROLLBACK is a parameter instance that LOW as default (IE a value of 2 x CPU_COUNT) and can be set to HIGH or FALSE.

    Note: If you SHUTDOWN ABORT and START the database, Oracle has to do a Rollforward of Redo Logs (for data blocks that have not been updated) before that, an OPEN. It is generally a very fast operation. Uncomitted transaction cancellation is an operation delayed - this means that the restore is initiated by SMON or parallel slaves after the database is OPEN. If a block containing a row that has been updated and not committed is referenced by a database session after OPENING, but before it has been restored, made Oracle a rollback accelerated this line of the block and then continues to the restoration of other lines in the background.

    Thus, if the transaction had been on the Table 'A' and the database is SHUTDOWN ABORT and commissioning, users can still access and update of all other tables other than table 'A', while the transaction is put in place, in the background, after the OPENING.

    Hemant K Collette

  • Upgrading RAM... what will happen on my cluttered Desktop?

    Re; early 2009 iMac 10.10.5 (2) x 2 GB RAM modules pre upgrade.

    When I go through the procedure of Exchange to my old for additional RAM modules and more new RAM modules, what will happen on my busy office, if anything?

    It is my understanding that links file that you drag on the desktop are stored in RAM.

    When I leave the current RAM modules, all that now appears will be lost, or much less accessible?

    Accessibility is the whole point to have them there.

    Am I worrying unnecessarily, or if I am save these file, image and video links very used somewhere?

    Nothing will happen.  The content of the Finder window is not stored in volatile RAM, but in the database and preference files to make them permanent, subject to your evolution, which is on the desktop at any time.

  • I use Windows XP and care April 2014 if I always use the it, what will happen after that Microsoft no longer supports it?

    I use Windows XP and care April 2014 if I always use the it, what will happen after that Microsoft no longer supports it?  My computer will become unusable?  It works great and I would keep it if I can.  I use a Dell Inspiron 530 desktop.  Some people have told me that "nothing will happen" and others tell me that my computer will be more vulnerable.  I use ESET NOD 32 and Malwarebytes.  They tell me that they should still continue to work.  I am told that because my computer was purchased in September 2008, he cannot me upgraded to Windows 7.  I'm not a geek and would need assistance "passage" my files from one computer to the other as well.  And then what to do with my old top office.  I'm very worried and I had to face the fact that Microsoft is not going to deliver any security updates patches after April of 2014.

    I can't wait to hear from someone on this problem and more just to go out and invest in Windows 8!  Thank you.

    I can tell you one thing, all or almost of windows xp device drivers will disappear from the computer manufacturers support websites and will reappear on all these shady sites who claim to be download for free but comes with unwanted software. Download the latest device drivers and keep several copies of them and download them to your skydrive or dropbox account fo guard.

    I doubt that will happen. I've seen Windows 2000 drivers still on websites mfg.

  • What will happen to the SQL Query based object View (EmployeesVO)

    Schema used: HR

    1. I created a view through SQL Query view object object (Table Employees - EmployeesVO).
    2. Creates an entity of the Employees (EmployeesEO) table object.
    3. In the section EmployeesVO (View object) entity objects, I chose EmployeesEO (entity object).

    What will happen to the View SQL Query object based on (EmployeesVO) will it change to VO based on entities or still to be based query VO.

    It is there because you can still base your query based Vo EO according to Vo.

    After that you base your VO on EO you can now use 'Add the attribute of the entity' to base your attribute on the atrributes of EO. Or if you skilled enough you can manually change the XML to VO

  • What will happen to my website when my Adobe license expires?

    If I create and publish my site with Adobe Muse, what will happen to the site when my license expires Adobe Muse? I have to keep Muse subscription in order to maintain my site?

    The site will remain live, unless you are the hosts with a free BusinessCatalyst site. You will not be able to change or update, unless you're really good with HTML, CSS and JavaScript.

    I hope this helps.

    David

    http://creativemuse.co

  • I can't enter serial number installation window because mailboxes do not letters, what will happen?

    I can't enter serial number installation window because mailboxes do not letters, what will happen?

    If there are letters in the code so it is not a serial number.  Serial numbers have 24 numbers (6 groups of 4 digits).  You can be a redemption code which is what allows you to purchase a serial number - usually if you buy in a store or other third party affiliates.

    Find your serial number

    Using redemption code

    http://helpx.Adobe.com/x-productkb/global/redemption-code-help.html

  • Datastore NFS changed IP, what will happen?

    Hello

    ESXi 4.0, 4.1

    If I change the IP address of a NFS with VM data inside store, what will happen?

    I believe that the virtual machine in this data store will be 'away' and I need to re - add in the inventory?

    In any case I can avoid this?

    Thank you.

    Fajar.

    Yes, it's the only option, either forced to do svmotion or add virtual machines.

    Thank you

    -A

  • I install the new cc2014 update, but for some reason any in my computer displays double former app and the new, but the new dose did not setup that I have in my old version! What will happen?

    I install the new cc2014 update, but for some reason any in my computer displays double former app and the new, but the new dose did not setup that I have in my old version! What will happen?

    Thanks, I have solved this problem, simply delete the old and manually I have brand new!

  • What will happen to the data if we remove a disc in ASM

    Friends-

    Question: Under RAC environment we use ASM for storage. I want to know what will happen to the data if we remove a disc?

    Please advise on this.

    Concerning
    VSH

    You are welcome. If the answer to this question, please mark the thread as closed and give points where won. Thank you

  • Guys, it is advisable to use low-power mode even if it is not yet on 20%? What will happen then?

    Guys, it is advisable to use low-power mode even if it is not yet on 20%? What will happen then?

    It uses less energy than if you don't.

Maybe you are looking for

  • Docking station for 13 of Yoga

    Is there a docking station (preferably tested) compatible for the 13 of Yoga? In addition, what is the maximum resolution of the video card will lead on an external monitor? It will make WQHD (2560 x 1440)? Thank you

  • paper won't be pulled into printer

    3040 printer is new and printed one day and woudn't pull paper in the printer the next day.

  • Trouble with my router WRT110

    Hello! All this problem started when I upgraded the machine I'm typing this on Windows 7 Ultimate.  No matter what I did, it wouldn't connect to the existing network. I finally found a way to connect by entering the identification number of the route

  • Dell PowerEdge T320 does not start

    Hello Customers told Dell T320 server that no longer starts. He said that he tired to update firmware iDrac, but after restart server could not start. Server initializes the memory and starts initialization of iDrac, stays there for a few minutes, gi

  • Windows 7 takes 6 + minutes to start

    Gerry, Thank you for your continued patience and help. I deleted all the "files not found" and unfortunately no results.  I also 'unchecked' all the events highlighted in pink/red, also with no results. I guess the next thing is to start to uncheck i