Howto take a CONSISTENT backup of AS-Java WITHOUT shutting down?

According to the official documentation one needs to shutdown the Java instance (EP, KM, BI-Java) and backup filesystem and database at the same time to ensure consistency, so far I understood.
Since there is no easy way of finding out, who's logged in at a specific moment, we have no chance to inform logged in/working users about an imminent downtime/shutdown.
Things become even worse, if backups are taken at night when different timezones are using the system productively.
What is a recommended "best practice" for those kind of setups? Is there anywhere an information on which of the running applications writes data into the filesystem so we could probably keep it in sync with the database "manually" in case we need to recover a backup, that was taken online?
Any input greatly appreciated.
Markus

Hi Markus,
my strategy is to take an online (cons) backup every night and an offline backup every sunday at 00:00.
There is a way to take an online cons backup, and now is supported in 2004s (maybe too in NW04 but NOT in was 6.20).
Here are my scripts for online/offline backup.
Online :
xcopy E:\usr\sap E:\BO\j2e /Q /E /C /H /R /O /Y
xcopy E:\FSDB E:\BO\fsdb\ /Q /E /C /H /R /O /Y
brbackup -p initp1pOnline.sap -d disk -t online_cons -m all -c -u system/password -k no -e 0 -l E -a -p initp1pOnline.sap -save_delete -d disk -n 10000 -c -u system/password -k no -l E
Offline :
stopsap name=p1p nr=00 sapdiahost=sapep1p
stopsap name=p1p nr=01 sapdiahost=sapep1p
net stop SAPP1P_00
net stop SAPP1P_01
xcopy E:\usr\sap E:\bof\j2e /Q /E /C /H /R /O /Y
xcopy E:\FSDB E:\bof\fsdb /Q /E /C /H /R /O /Y
brbackup -c -u system/password
net start SAPP1P_01
net start SAPP1P_00
startsap name=p1p nr=01 sapdiahost=sapep1p
startsap name=p1p nr=00 sapdiahost=sapep1p
I tested both backups and was able to restore from scratch without problem.
Brad

Similar Messages

  • Is it possible to take a full backup without shutting down an instance?(10g

    Hi. everyone.
    Is it possible to take a full backup without shutting down an instance?
    The db version is 10gr2.
    As far as I know, in order to take a full backup of a database,
    one need to shutdown a database.
    Our db environment is a RAC environment which has two nodes.
    Yesterday, I heard from a hardware vendor that we do not need to shutdown
    instances(2-nodes) in order to take a full backup.
    Best Regards.

    Hi,
    >>As far as I know, in order to take a full backup of a database, one need to shutdown a database.
    In fact, a database operating in NOARCHIVELOG mode is necessary to shutdown the database in order to perform a full backup (Cold Backup), but otherwise a database that is operating in ARCHIVELOG mode, then is possible to perform a full database backup with the database in a open state. (Hot Backup)
    For more information see if these links below can help you:
    Oracle Backup and Recovery
    http://www.oracle.com/technology/deploy/availability/htdocs/BR_Overview.htm
    Oracle Backup and Recovery FAQ
    http://orafaq.com/faqdbabr.htm
    Cheers

  • Java program shuts down when I close Terminal.

    I use following:
    Java: 1.3.1_01
    Platform: Solaris
    Shell: bourn
    I've a java program in which, I've implemented shutdown hooks (Runtime.addshutdownhook()) for proper shut down of my application.
    I've a shell script to start & stop this application.
    Now, if I use bourn shell to start this app, when I close the terminal window, the program also shuts down.
    I tried using 'nohup' command but its not working. I also tried starting it in background by appending '&'. It is not working either.
    Can someone pls give me solution?
    - Samir

    I don't think there is a solution to your problem (other than not to close the terminal window) because according to the documentation:
    addShutdownHook
    public void addShutdownHook(Thread hook)
    Registers a new virtual-machine shutdown hook.
    The Java virtual machine shuts down in response to two kinds of events:
    1) The program exits normally, when the last non-daemon thread exits or when the exit (equivalently, System.exit) method is invoked, or
    2) The virtual machine is terminated in response to a user interrupt, such as typing ^C, or a system-wide event, such as user logoff or system shutdown.
    The behavior you described is consistent with what I see on my Windows 98SE.
    V.V.

  • Backup drive keeps rotating after shutting down the iMac

    Hi,
    since I installed Leopard, my backup drive (LaCie USB) stays in operational mode after I shut down the iMac (intel 20").
    When I choose to shut down the mac, the drive starts to rotate but doesn't stop... Under Tiger this wasn't an issue.
    I think the problem is that Leopard doesn't "tell" the LaCie drive to go in sleep mode before the computer shuts down.
    Does anyone experience the same problem and know what the solution is?
    regards, Martijn

    Actually it does open but nothing shows up. I can't use my iMac unless I use the Safari browser and I want to use Firefox! I'm at my wits end as to how to fix this. I have tried everything that troubleshooting has suggested on Mozilla support. Help!!!!!!!!

  • Is db backup ok if OEM not shut down?

    Greetings,
    I have an automated backup script that shuts down O9iAS before backuping up the db. I cannot shutdown OEM via script because OEM requires a password.
    If I ignore OEM and shut everything else down, will my db backups be ok?
    TIA

    try to update your graphics drivers or to disable hardware acceleration in firefox under tools > options > advanced > general
    [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]

  • Mac Pro suddenly takes very long to boot and won't shut down... just spins

    My Mac started taking very long to boot up... maybe 10 minutes before the icon bar becomes available.
    Also, it won't shut down... it just spins. I've waited 30 minutes with no results.
    Any help would be greatly appreciated

    CBuss,
    The long boot cycle points to preference corruption. And not the kind that can be corrected with re-boots etc., Check Hard Drive>Library>Preferences to see if the listings make "visual" sense. If there are a lot of letters with circles over them and numbers interspersed, you are skating out on thin ice.
    Back up everything now, then do a clean install of your current OS. Do not to an "archive". That will probably archive the corruption as well. Go up to Snow Leopard if you can. Add your data back manually as well. If you keep going with these lingering start ups, you will shortly get the "?" at startup instead of the Apple/ Chime and the long, expensive, recovery (by somebody else) will begin.
    As for the 'shut down" issue.. I am still in the dark. Something is still "running" and canceling the shut down cycle.
    Cheers
    Toby

  • Consistent backup RMAN

    hi ,
    10gR2 on win 2003
    i want to take the consistent backup of the database using RMAN using controlfile i fired these queries
    datbase is open & database is in noarchivelog mode
    my question why i everytime fail to mount the database from RMAN? i tried it with archive log option also but the result is same.
    or AM i missing a step if yes suggest me steps required.
    C:/rman target /@orcl
    rman> shutdown immediate;
    using target database control file instead of recovery catalog
    database closed
    database dismounted
    Oracle instance shut down
    RMAN> startup force dba;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 07/20/2009 11:44:57
    ORA-12514: TNS:listener does not currently know of service requested in connect
    rman> startup mount
    RMAN> startup mount
    RMAN-00571: ====================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ========
    RMAN-00571: ====================================================
    RMAN-03002: failure of startup command at 07/20/2009 11:47:47
    RMAN-06171: not connected to target database
    Thanks

    Hi,
    Please follow the procedure...
    1. First please check if your listener is listnening for your database service by entering the Listener prompt
    Lsnrctl
    Then execute the command "Services"
    C:\Documents and Settings\admin>lsnrctl
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 20-JUL-2009 13:07:13
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    Welcome to LSNRCTL, type "help" for information.
    LSNRCTL> services
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=abc)(PORT=1522)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    Service "orcl" has 1 instance(s).
      Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    The command completed successfully2. If it is listening to your database service....go the machine from where you want to connect to the database and check your tnsnames.ora file for the entry for your database listener. In your case i suppose its already there as you have already pasted your file and it contains entry for the ORCL.
    3. Go to the command prompt and try TNSPING ORCL...See if its working.
    4. Go to to the RMAN prompt...
    C:\Documents and Settings\admin>rman
    Recovery Manager: Release 10.2.0.1.0 - Production on Mon Jul 20 13:10:19 2009
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    RMAN> connect target sys/oracle@abc
    connected to target database: ABC (DBID=3898979772)
    RMAN>Please let us know if you still face any issues connecting to the Database through RMAN
    Regards

  • Logical backup of a schema without taking the data of particular table

    How can I take the logical backup of a schema without taking the backup of data of a one particular table?? I need to give the dump to the client but I do not want to give them data of one particular table.

    @Werner:
    Requirement is to have a "logical backup of a schema without taking the backup of data of a one particular table".
    I presume the requirement to have all tables with data and one table without data in a single dump file.
    ROWS=N will not export any data for any table
    :)

  • Does java shut down childprocesses automatically?

    I use the following codesnippet to start a program called glpsol which uses alot of memory. The problem is that java (probably) shuts down the process after 7minutes and i cant catch the exception as i thought, i dont get nothing.
    when i start glpsol with the same infile at the shellprompt, it takes about 30 minutes. Anyone got a clue or an explanation
    try
    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec("glpsol -o "+filnamn+".out --lpt "+filnamn);
    int inp;
    int err;
    while ((err = proc.getErrorStream().read()) != -1)
    System.out.write(err);
    proc.waitFor();
    catch (Exception e)
    e.printStackTrace();
    ***********

    You need to read the data from the process output stream as well. The application might halt if the buffer gets full.
    /Kaj

  • Mac shutting down during backups to iomega hd

       I have a 27" iMac and am using an Iomega hard drive for backups. The Mac has begun shutting down witout warning seemingly during regular Time Machine backups to my Iomega external HD. Prior to isolating the HD I had no clue as to what might be causing it and have spent several hours on successive days with a senior technician trying to solve the mystery. Hardware failure was suggested, but reinstalling Mavericks was done as diagnostic measure. I became suspicious when I noticed that the machine would begin a backup and stall after about 15 Kbyte into 80GB backup.  I got the idea of ejecting and unplugging the external drive and backing up to the internal HD as a means of making sure that the act of backing up itself wasn't the problem. The backup completed successfully and the machine was allowed to rest for awhile to make sure it would go into sleep mode without shutting down. When it didn't shut down and was going into sleep mode on schedule without problems I then manually shut down the computer, plugged the external drive back in and turned on the power. I then restarted the computer. The external drive was detected and all files could be found. After letting it rest awhile, going into sleep mode and awakening properly after button push, I performed a file transfer from the external drive to the internal drive which was a success. I'm presently backing up regularly to the internal drive without problems. Though it would seem that the external drive might be the cause of the problem, the fact that it's obviously not corrupted and can communicat through manual commands makes me suspect that there is something wrong with the operating system. I don't recall that I was having this problem prior to installing Mavericks. My case with Apple Care is still open and I will be speaking to the senior tech when he is back tomorrow. Has anyone else done any trouble shooting that I haven't tried or come up with similar results?

       I have a 27" iMac and am using an Iomega hard drive for backups. The Mac has begun shutting down witout warning seemingly during regular Time Machine backups to my Iomega external HD. Prior to isolating the HD I had no clue as to what might be causing it and have spent several hours on successive days with a senior technician trying to solve the mystery. Hardware failure was suggested, but reinstalling Mavericks was done as diagnostic measure. I became suspicious when I noticed that the machine would begin a backup and stall after about 15 Kbyte into 80GB backup.  I got the idea of ejecting and unplugging the external drive and backing up to the internal HD as a means of making sure that the act of backing up itself wasn't the problem. The backup completed successfully and the machine was allowed to rest for awhile to make sure it would go into sleep mode without shutting down. When it didn't shut down and was going into sleep mode on schedule without problems I then manually shut down the computer, plugged the external drive back in and turned on the power. I then restarted the computer. The external drive was detected and all files could be found. After letting it rest awhile, going into sleep mode and awakening properly after button push, I performed a file transfer from the external drive to the internal drive which was a success. I'm presently backing up regularly to the internal drive without problems. Though it would seem that the external drive might be the cause of the problem, the fact that it's obviously not corrupted and can communicat through manual commands makes me suspect that there is something wrong with the operating system. I don't recall that I was having this problem prior to installing Mavericks. My case with Apple Care is still open and I will be speaking to the senior tech when he is back tomorrow. Has anyone else done any trouble shooting that I haven't tried or come up with similar results?

  • Shut down to take huge time

    Hi All,
    I am using 11.1.1.3 on windows server 2003,when i started essbase,planning, HFR,web analysis related services and after completion of my work i am trying to shut down it will take 1-2 hours to shutdown.
    please any one help me to resolve this challenge.
    Thanks,

    Are you stopping the services before shutting down the machine, I know there was an issue with OpenLdap and if you didn't stop the service it would take a long time for the machine to shut down.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Regarding Backup of ABAP+JAVA system

    Hi,
    We've ECC 5.0(ABAPJAVA) system in which we've configured JDI and NWDS was installed on server's desktop. Now my concern here is how to take the backup of ABAPJAVA system which should include NWDS changes as well.
    Please give me some suggestions on this.
    Thanks in Advance.
    Kind regards,
    Mogileeswar

    Hello,
    Please see Markus Doehr's response
    at 
    Re: Backup/Recovery strategy for SAP netweaver 7.0 SR3 connected to BI JAVA
    I  suggest you consider those as two different instance even if they run on the same hardware.
    Taking a backup of a Java instance to a restorable state (in case of a DR) requires:
    - a database backup
    - a backup of the \usr\sap\<SID-of-J2EE> at the same time the database backup is running
    - a registry backup (including the users and their UUIDs)
    This will enable you to install a plain operating system, installing the database software and recover your Java instance. Note: This works only if the hostname and the SID are the same as on the original system. This procedure can not be used to do a system copy of the Java instance.
    Taking a backup of ABAP is almost the same:
    - a database backup
    - a backup of the \usr\sap\<SID-of-ABAP>
    - a registry backup
    Since it's not possible to restore the registry partially but only completely a restore of it will overwrite the current values which is not a problem since they are basically the same.
    The BI-Java instance is not directly dependent on the BI-ABAP backend but depending on where your users are stored the Java instance might not come up if your ABAP is not running.
    Regards,
    Paul

  • Consistent Backup Of Online Database

    Hi
    How can I take consistent backup of online database.
    If I open database in read only mode and take RMAN backup + Full Cold Backup from operating system commands.
    Did the above backups will be consistent?
    If yes please advise how to alter the status of system to read only.
    Wishes
    Jawad

    Cold backups are known to be a consistent backups , while Hot Backups are not considerd as conssistent backups, you required archivelogs to make them consistent . I am bit strange that you are using two backup methods . I would suggest you to use Hot Backups , if you have production database , otherwise cold backups will do the trick for you .
    Hare Krishna
    Alok

  • Operating System Consistent Backup (Archive Mode)

    Hi
    In archive log mode, after putting a tablespace in backup mode one by one as follows:
    Alter tablespace tablespace_Name begin backup;
    If I create backup using operating system commands one by one for all tablespaces. Will this backup consider as consistent? Will it require archive logs to keep it consistent?
    Wishes
    Jawad

    hi,
    Your hot backups consider to be consistent only,when you have all the archivelogs sice you made the hot backup.when you put tablespace in backup mode, then the dbfile header freezes at the point you fire 'alter tablespace <name> begin backup' ;
    on the other hand the rest of the files have diff scn's.this is the reason it does not consider to be a consistent backups.that dosent mean you should not take hot backups,insted oracle recommend to operate your db in archivelog mode specially if it is prod db.
    hare krishna
    Alok

  • Consistent Backup

    Dear Friends,
    I am learning backup&recovery. Sometimes I feel confused during reading the guide. Here are 2 question:
    1. When I take a tablespace offline normally, oracle takes a checkpoint to the tablespace's datafiles. So, All the committed data should be written to these files from online redo log, right? And these files may contain some uncommitted data, right?
    2. If I shutdown the database with immediate option. Does the data files in this database contain uncommitted data? If yes, when I want to do a whole consistent backup, that's why I also need to backup the undo tablespace? is my understanding right?
    Thanks,
    Ricky

    from the documentation regarding question A
    When a tablespace goes offline, Oracle does not permit any subsequent SQL statements to reference objects contained in that tablespace. Active transactions with completed statements that refer to data in that tablespace are not affected at the transaction level. Oracle saves rollback data corresponding to those completed statements in a deferred rollback segment in the SYSTEM tablespace. When the tablespace is brought back online, Oracle applies the rollback data to the tablespace, if needed.

Maybe you are looking for

  • Error while creating the Generic Connector for flatfile

    Hi All, I was trying to create the Generic connector for the flat file reconciliation. But i was throwed into errors. I'm using 11.1.1.3 OIM and as well as SOA also. I have been following the OIM 9 document to create the GENERIC connector. i'm copyin

  • How to use the result of a sql query for a max () function

    Hi I wrote a query on which i wrote "select max(id) from users " how can i use the returned value. if i made the var name ="userid" can it be userid.rows[0] or what. thnx for any help

  • Stock posting during Recurring inspection.

    Hello Folks, We are currently in the process of implementing the Recurring inspection process for Batch managed materials. If a Batch of material is available in multiple Storage Locations (for example two), the Job 'Deadline Monitoring of Batches' t

  • Video refuses to authorize

    All of my itunes music is working but all of my videos purchases tell me that they aren't authorized to be played and to open itunes and authorize with my applei id and password. Then when I click the itunes icon it says that it can't connect to chec

  • Post GI from IW41 consigment stock and batch determination

    Hello gurus Have looked around for a solution here, and have not found anything. Our problem is that when we do GI from consignment stock in IW41 (mvt 261 W) we have to assign the batch. When doing standard GI it suggest the oldest batch. The process