How to perform a Oracle-Offline-Backup started from within SAP in Cluster

Hello,
I didn't find a solution on web (at SAP/SUN/newsgroups) for the following problem:
environment
- offline-backup of Oracle-database (database of an SAP-R/3 ERP-system)
- Sun Cluster 3.1 environment (SUNW.oracle_server:3.1, SUNW.oracle_listener:3.1, SUNW.sap_ci_v2)
- backup should be started from within the SAP R/3 scheduler (SAP transaction: db13)
- Oracle-RMAN-backup with Legato networker 7.1
- SID of SAP-system: Q22
problem
When SAP starts the backup-job (scheduler: db13, type: Full database offline backup >> option: offline_force) the brbackup commands shuts down the database and starts RMAN-backup. But then the Sun Cluster sees that the database is down and starts it up. This action of the cluster crashes the backup.
Now I found a tricky solution for that problem:
1.
Install sudo because the following script will not be run as root...
2.
run visudo and add this line (the scheduler db13 uses the OS-user <SID>adm)
q22adm ALL=NOPASSWD: /usr/cluster/bin/
3.
make a shell-script which should reside on a global mount:
/sapmnt/Q22/MB/offline_backup_Q22.sh
#!/bin/sh
/usr/local/bin/sudo /usr/cluster/bin/scswitch -n -j Q22db-srv
sleep 10
/usr/sap/Q22/SYS/exe/run/brbackup -u / -c force -t offline_force -m full -p initQ22rmanoffline.sap
/usr/local/bin/sudo /usr/cluster/bin/scswitch -e -j Q22db-srv
4.
edit the table sapr3.sxpgcotabe in the Oracle-database and add an entry like:
NAME: ZOFFLINEBACKUP_Q22
OPSYSTEM: ANYOS
OPCOMMAND: /sapmnt/Q22/MB/offline_backup_Q22.sh
this is not possible via SAP, use Oracle-tools!
5.
edit table sdbac via SAP-transaction se16, select DBSYS=ORACLE and add an entry like:
SHORTCUT ZOFF
DBSYS ORACLE
OPSYS *
LANGUAGE E
SHORTNAM FullOffClu
LONGNAME Full database offline backup >SunCluster
HOST $DBHOST
CTYPE EXT
CNAME ZOFFLINEBACKUP_Q22
6. Schedule the offline-backup via SAP-transaction (new type available: Full database offline backup >SunCluster)
I hope that maybe helps someone...
cu, Otmar

You may find further informations here:
<span style="text-decoration: none"><font color="#0000FF">www.oracle-10g.de</font></span></font></strong></span></p>
<p><span class="bibliotext"><strong>
<font size="2" face="Arial">

Similar Messages

  • How do I set my iTunes to start from current song on my iPhone 5?

    How do I set my iTunes to start from the current song on my iPhone 5?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • How can I turn off app auto start from last status? At OS X 10.8.3

    How can I turn off app auto start from last status? At OS X 10.8.3

    system preferences >general > close windows when quitting an application

  • How do I change the table to start from right to left

    How do I change the table to start from right to left

    iWork apps have bugs that make them unsuitable for RTL scripts in various ways.  You might be better off using a different app if your work has a lot of RTL text.

  • How to  access the ORACLE APPS table structures from SAP

    Hi Experts,
        How to  access the ORACLE APPS table structures from SAP? Is it possible from SAP?
    Thanks in advance
    Thomas

    Hi Silviya,
    you can access this database using a technique called DB Multiconnect - sometimes written as multi-connect.
    Search the SAP documentation and notes for this term and you will find how to do it.
    Essentially you configure the remote database connection via transaction DBCON.
    If your SAP system is not running on Oracle you will need to install the db-specific kernel files for Oracle along with the Oracel db client software - SQL*Net.
    Then you can access the Oracle database from ABAP using native-SQL. It works a treat!
    Cheers
    Graham Robbo

  • How to call Operating System commands / external programs from within APEX

    Hi,
    Can someone please suggest how to call Operating Systems commands / external programs from within APEX?
    E.g. say I need to run a SQL script on a particular database. SQL script, database name, userid & password everything is available in a table in Oracle. I want to build a utility in APEX where by when I click a button APEX should run the following
    c:\oracle\bin\sqlplusw.exe userud/password@database @script_name.sql
    Any pointers will be greatly appreciated.
    Thanks & Regards,

    Hi Guys,
    I have reviewed the option of using scheduler and javascript and they do satisfy my requirements PARTIALLY. Any calls to operating system commands through these features will be made on the server where APEX is installed.
    However, here what I am looking at is to call operating systems programs on client machine. For example in my APEX application I have constructed the following strings of commands that needs to be run to execute a change request.
    sqlplusw.exe user/password@database @script1.sql
    sqlplusw.exe user/password@database @script2.sql
    sqlplusw.exe user/password@database @script3.sql
    sqlplusw.exe user/password@database @script4.sql
    What I want is to have a button/link on the APEX screen along with these lines so that when I click that link/button this entire line of command gets executed in the same way it would get executed if I copy and paste this command in the command window of windows.
    Believe me, if I am able to achieve what I intend to do, it is going to save a lot of our DBAs time and effort.
    Any help will be greatly appreciated.
    Thanks & Regards,

  • How To send DMS(Documents cv01,cv03n,cv04n) from one sap system to othersap

    Hello Experts,
    I am working Document management system(CV01,cv02n,cv03n,cv04n)...
    I want to send the documents from one SAP system to Other SAP system
    Using ALE/Idocs....
    Please Help on this any sample programs....or function module....
    Thanks
    Preethi

    Hello,
    Please refer to the thread:
    How To send DMS(Documents cv01,cv03n,cv04n) from one sap system to othersap
    Best Regards, Murugesh AS

  • Oracle offline backup in cluster setup

    Dear Experts,
    I have installed CRM 2007 on windows and oracle 10g with High availability setup (cluster) and currently in the process of Post-Installation.
    As part of post installation, I have to apply support patches. Before that I wanted to take one backup of the system and tried taking the offline backup. My SAP and DB resources are on Node A and before starting the backup I have gone through the "Note 378648 - Offline backup support with Oracle Fail Safe"
    and have set the environment varaibles on both Node A and Node B.
    Have started the backup from DB13 and initially backup started and DB resource went offline and backup started and files are getting backedup in the path given. But immediately all DB resources came online on Node A and was able to login to SAP. Strange part is even after DB was online backup continued to copy the files in menitoned path and at the end backup completed with errors stating that instance was started during the offline backup and could not start already running instance.
    Online backup is working fine. Please suggest how to sort out this issue.
    Thanks & Regards,
    Sharath

    Hi,
    The good news is that your cluster works perfectly for fail overs !
    The bad news is that, there is something wrong in your configuration because the database was not set offline as a cluster ressource. Do you have a standalone gateway on the Oracle node ?
    Regards,
    Olivier

  • Oracle offline backup with brtools errors BR0278E BR0279E

    Hi, all
    I have problem with offline backup.
    For backup i use mtx and  scripts mount_tape.sh and dismount_tape.sh
    script mount_tape.sh loading media tapes in robot head
    script dismount_tape.sh unloading media tapes
    All online backups working with this scripts and  perform successfully   
    I can manually connect to server r2 using rsh. (rsh r2)
    All online backups finished without errors.
    What could be my problem? Help  please.
    Errors:
    BR0143I Backup type: offline_force
    BR0113I Files will be compressed by hardware
    BR0130I Backup device type: pipe_box
    BR0107I Remote backup device will be accessed through pipe
    BR0102I Following backup device will be used: /dev/rmt/2mn
    BR0103I Following backup volume will be used: LPS248L3
    BR0145I Automatic volume mounting is active
    BR0289I BRARCHIVE will be started at the end of processing
    BR0134I Unattended mode with 'force' active - no operator confirmation allowed
    BR0208I Volume with name LPS248L3 required in device /dev/rmt/2mn
    BR0280I BRBACKUP time stamp: 2011-04-23 23.51.00
    BR0388I Mounting volume LPS248L3 in device /dev/scsi/changer/c4t0d0 ...
    BR0278E Command output of 'LANG=C rsh r2 -l sidadm /bin/sh -c "'mount_tape.sh TRP-B /dev/scsi/changer/c4t0d0 LPS248L3 > /dev/null    echo ERR_RC: \$? 1>&2'"':
    No source specified
    BR0280I BRBACKUP time stamp: 2011-04-23 23.51.01
    BR0279E Return code from 'LANG=C rsh r2 -l sidadm /bin/sh -c "'mount_tape.sh TRP-B /dev/scsi/changer/c4t0d0 LPS248L3 > /dev/null    echo ERR_RC: \$? 1>&2'"': 0
    BR0390I Mounting volume LPS248L3 in device /dev/scsi/changer/c4t0d0 failed
    BR0056I End of database backup: befsqqzv.afp 2011-04-23 23.51.01
    BR0280I BRBACKUP time stamp: 2011-04-23 23.51.01
    BR0054I BRBACKUP terminated with errors

    My Basis ver 640. This note about error in 700 .
    may be other ideas?
    BR0002I BRARCHIVE 6.40 (52)
    Patch   Date     Info
      3  2004-01-26  Support for secure copy 'scp' command (note 700733)
    11  2004-06-25  Workaround for ORA-12158 on Tru64 Unix (note 749041)
    12  2004-07-28  BRARCHIVE fails for database in mount state (note 759839)
    17  2004-10-28  Taking over structure changes into standby database (note 786921)
    19  2004-12-02  Extended handling of archive duplex destination (note 797315)
    21  2005-01-21  New parameters and options for BR*Tools 6.40 (note 811637)
    22  2005-01-21  Enhancements in verifikation of backups (note 811638)
    36  2006-01-11  Small functional enhancements in BR*Tools (note 914174)
    38  2006-03-29  BR*Tools support for MDM databases (note 936665)
    39  2006-05-23  Wrong exit code of BRARCHIVE and BRCONNECT (note 950787)
    40  2006-08-30  Wrong message numbers in BR*Tools 6.40 (note 976755)
    43  2007-04-26  BR*Tools failing with ORA-01455 for database > 16 TB (note 1050329)
    44  2007-05-31  New BR*Tools command options (note 1060696)
    47  2008-01-03  Aborting BRARCHIVE, BRBACKUP and BRRESTORE runs (note 1129197)
    51  2009-08-12  BRARCHIVE does not save all summary logs on RAC (note 1375023)
    release note               680046
    kernel release             640
    patch date                 2010-01-14
    patch level                52
    make platform              sun_64
    make mode                  OCI_920
    make date                  Jan 30 2010
    Edited by: Andrey Burakov on Apr 29, 2011 7:24 AM
    Edited by: Andrey Burakov on Apr 29, 2011 7:30 AM
    Edited by: Andrey Burakov on Apr 29, 2011 7:32 AM

  • HT1212 i have forgotten the password to my ipad and it says connect to itunes but my computer cant connect to the ipad because of the code and i need it know how to wipe the whole ipad and start from scratch?

    i have forgotten the password to my ipad and its says connect to itunes but i cant connect it to my computer because of the code on the ipad so i need to know how to wioe the whole ipad and start again like a brand new ipad?

    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school enviroment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • HT1386 How do I move my iPhone backups etc from 1 Laptop to another?

    Hello,
    I have my iPhone backed up on a crappy old laptop and want to move everything to my new laptop.
    How can i do this without a) having to wipe and re-sync my phone and b) without losing all my backup data from the old laptop.
    Thanks
    KT

    To avoid data loss, copy your entire iTunes folder from your current computer to your new one following one of the methods in this guide: http://support.apple.com/kb/HT4527.  Then authorize the new computer for any Apple IDs used to purchase media from iTunes or App store.  Then create a new iPhone backup on your new computer by:
    Before connecting your phone, open iTunes and disable automatic syncing (iTunes>Preferences>Devices>Prevent...)
    Now connect your phone and right-click on its name when it appears on the left sidebar of iTunes and select Backup
    When this finishes you can go back and re-enable automatic syncing if you prefer this.  Also be sure to migrate your contacts and calendar to your new computer prior to syncing if you are syncing with Outlook or another supported program using iTunes.  If you fail to do this you will lose your contacts and calendar.
    FYI, your backups are located here:
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Windows Vista/7: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\

  • How can I reset/refresh Mail and start from scratch in Lion?

    Just completed the upgrade to Lion last night.  On Snow Leopard I had been using Thunderbird as my mail client, but I'm interested in seeing what the upgrades in Mail look like and will do.  Before Thunderbird I did use Mail, so opening the app brought up all my old settings, smart boxes, etc.  I want to start from scratch as though I had never used Mail before - how can I reset it to "zero"?  Can I, or do I need to just manually delete the accounts, folders, boxes, etc. and then re-add them?
    Thanks for the help and advice.

    Ok, answering my own question. I found this article: http://www.christian-kalmar.com/fixing-a-broken-face-detection/
    Rebuilding faces database now. Hopefully it works properly.

  • I'm trying to set up a DAQ assist just to measure some voltage, how do i get the graph to start from 0 (time) every time I press run

    Hi all,
    I am trying to set up a simple DAQ assist to measure some voltages (currently a 9 volt battery to aid set up), when choosing to use a waveform chart to log the voltages the graph doesnt start from 0 (time seconds) how do I do this and get it to reset every time I press run or even stop.
    What I want to see at the end is a chart for the full lenght of the test showing voltage against time in seconds.
    Any ideas peeps
    many thanks
    Shane

    Hi Shane,
    Look at this VI
    Here, I clear the chart before running the VI, using a 'history data' property node ( i pass an empty array to clear it)
    In effect, each time you run the VI, the chart will begin at 0:00
    Hope this helps
    Regards
    Dev
    Attachments:
    chart_start.vi ‏20 KB

  • How can I recover a book I started from a file?

    I have recently installed the iPhoto 9.2.1 from App Store.
    I am having many problems with iPhoto after an electrical cut when I was working with it.
    First, when I opened iPhoto immediately after that, many of the events appeared in black box, when I open a file of these,  black boxes appears, photos could not being seeing, but click in one, the photo appears.
    I realized that those files I did not working with them for long.
    I am interested to recover them, How could I do it?
    I copy iPhoto Library into a external hard disc to safe and start from the beginning. I need to work in one book.
    Second,The photos for that book were in the external hard disc. I imported them into iPhoto and start working. I thought that everything was solved out.
    This morning when I opened the computer and iPhoto, My work, begun the previous day, was not there, iPhoto ask me if I want to recover iPhoto Library and  thinking that that was my last work, I said yes.
    But it was not, It was the old library, but the work that interests me has disappeared.
    How can I recover this work I started? It must be in some place.
    Thanks for your advice

    Sorry, it'll be impossible for any of us (the forum regulars) to post in this thread without making obvious suggestions like this; it's safe to ignore these suggestions, I understand that you are powerless here to make reasonable suggestions like "Fire the incompetent translation firm that can't keep up with its clients and retain one that actually has the licenses for the apps necessary to complete the project."  If nothing else, all of the people who search Google for the phrase "translation downsave CS5 CS4 book" will learn that the best answer is "tell your translation supplier that they will lose your business if they fail to upgrade."
    But in your case - no, I know of no such script to re-save a CS4 book from IDMLs spat out of CS5. The scripting forum is thataway; maybe they know of a script someone else has already written for this purpose. Mostly because, especically in a book file, one of the steps before saving the INDDs and book in CS4 should be "a human compares the IDML opened in CS4 against the INDDs in CS5, or PDFs generated from same, before Saving As CS4 INDD."

  • How can I make my movies always start from the beginning?

    I want to use my iPod to present short videos as part of a live presentation. I've conquered the hurdles, and have the iPod sending video out to my projector, but I want to ensure that every movie starts at the beginning, even if I had cut it short in the last presentation.
    I thought I saw a setting for this somewhere, but now I can't find it.

    WaMuHIP07 wrote:
    Right-click the videos that you want to always start from the beginning in iTunes. The options tab of the video file properties contains this option control. Uncheck the box that says "Remember Play Postion."
    Or hit the left side of your scroll wheel when launching it on your iPod

Maybe you are looking for