Performing database backup using SAPDBA

Guys could u please let me know how to take whole database backup using SAPDBA to another hard disk attached to the system (i.e rather than taking the backupto /oracle/<SID>/sapbackup on the same system i want to take the backup to another harddisk attached to the same system?)
should i change any parameter in init<SID>.DBA?

You dont need to change the init<SID>.dba.
Rather you need to change init<SID>.sap.
make a copy of init<SID>.sap and save it as for e.g. init<SID>1.sap change the value of the following entries as follows.
backup_root_dir=your desired directory
stage_root_dir=your desired directory
Now use this init<SID>1.sap as the profile parameter file in sapdba and your backup will be stored in the"your desired directory".

Similar Messages

  • Error in Database backup using RMAN.

    Hi
    While taking full online backup using RMAN i got the following error.
    ORA-19566: exceeded limit of 0 corrupt blocks for file /oracle/DEV/sapdata2/dev640_6/dev640.data6
    Please help me how to resolve this issue.

    Hi,
    Please perform DBverify Job and Also analyze the alert<SID>.log file for your Database to get more information about such logical or physical corruption.  You may require Block level recovery for the complained DB Files. Please refer this useful document " [Early Detection and Correction of Data Block Corruptions Using RMAN |http://www.ioug.org/client_files/members/select_pdf/04q4/RMAN.pdf]" and share the same with your Oracle DBA.
    You can execute the following commands to get information about corrupted block(s), if its there.
    select * from v$backup_corruption;
    select * from v$database_block_corruption;
    Regads,
    Bhavik G. Shroff

  • Scheduling a script performing database backup

    I wrote a script performing a backup of all databases located on a SQL Server's instance using the Backup-SqlDatabase command. As a script from the Windows Powershell ISE it works fine. I am working on a Windows Server 2012
    The next step is to schedule this from the Windows Task Scheduler. The Action program is PowerShell and the arguments is -command "& 'C:\folder\myscript.ps1'" and it doesn't work, the script appears to fire off but it doesn't
    perform the backup. The error looks strange it looks like it can't connect to the SQL Instance, I tried a whole bunch of options I found googling around but none worked. What am I missing ?

    1) Using -File instead of -Command didn't work, it didn't even fire the script
    2) I have got 'Run with the highest privileges' selected
    3) The error
    4) The script
    # backup_AllDb.ps1
    # Full backup for database for specified SQL instance
    # Change log:
    # July 3, 2012: Thomas LaRock, http://thomaslarock.com
    # Initial Version
    # Get the SQL Server instance name from the command line
    # leaving $dest null will result in default backup path being used
    param(
    [string]$inst=$null,
    [string]$dest=$null
    # Load SMO assembly, and if we're running SQL 2008 DLLs load the SMOExtended and SQLWMIManagement libraries
    $v = [System.Reflection.Assembly]::LoadWithPartialName( 'Microsoft.SqlServer.SMO')
    if ((($v.FullName.Split(','))[1].Split('='))[1].Split('.')[0] -ne '9') {
    [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SMOExtended') | out-null
    [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SQLWMIManagement') | out-null
    # Handle any errors that occur
    Function Error_Handler {
    Write-Host "Error Category: " + $error[0].CategoryInfo.Category
    Write-Host " Error Object: " + $error[0].TargetObject
    Write-Host " Error Message: " + $error[0].Exception.Message
    Write-Host " Error Message: " + $error[0].FullyQualifiedErrorId
    Trap {
    # Handle the error
    Error_Handler;
    # End the script.
    break
    If ($inst -eq "")
    { $inst = "MYSERVERNAME\MYINSTANCE" };
    $srv = new-object ('Microsoft.SqlServer.Management.Smo.Server') $inst
    # If missing set default backup directory.
    If ($dest -eq "")
    { $dest = "C:\SQLBackups" };
    Write-Output ("Started at: " + (Get-Date -format yyyy-MM-dd-HH:mm:ss));
    cd SQLSERVER:\SQL\$inst\Databases
    #start full backups
    foreach($database in (Get-ChildItem -Force)) {
    $dbName = $database.Name
    if ($dbName -ne "tempdb") {
    $timestamp = Get-Date -Format MMddyyHHmm
    $bakFile = $dest + "\" + $dbName + "_full_" + $timestamp + ".bak"
    Backup-SqlDatabase -Database $dbName -Initialize -BackupFile $bakFile
    Write-Output ("Finished at: " + (Get-Date -format yyyy-MM-dd-HH:mm:ss));

  • Performing database operations using EJB 3.0

    I need to create a session bean that will perform operations on backend database. I am new to EJB 3.0 and need a gentle guidance to the solution
    This is what I believe is suppose to be done
    1. Create stateless bean interface marking operations.
    2. Create bean implementation for above
    3. Init stage will require me to connect to the Oracle database. Now am confused how will it get the connection details? Is there a way to extract the url username and password using resource bendle which can be accessed from within bean implementation?
    4. Bean method will perform update, read oprations
    5. Predestroy will close the connection
    6. A client will simply call this ejb with some input parameter(s)
    Please let me know if am doing anything wrong here

    If you use EJB technology for which it is designed, the container (server) will manage the transaction (and also the connections to the database) for you, so no creation or cleanup of connections on your part. I advise you to read into JPA which is designed to be used in conjunction with EJB tech. The books Enterprise Javabeans 3.0 and Pro EJB 3: the Java Persistence API may help you a lot.

  • Database backup using RMAN

    Hello All,
    I am new to RMAN.
    I am trying to make some backups of my database using enterprise manager, so i choose to backup my database based on the Oracle-Suggested Backup schedule.
    I got the below command from EM:
    Daily Script:
    run {
    allocate channel oem_disk_backup device type disk;
    recover copy of database with tag 'ORA_OEM_LEVEL_0';
    backup incremental level 1 cumulative  copies=1 for recover of copy with tag 'ORA_OEM_LEVEL_0' database;
    }i have the below question:
    what does the above script do ? EM will create a job that will run it daily ? how can i check this job ? where is it logged?
    where and how can i check the already configured channels ? for ex: channel oem_disk_backup
    what does this script do ? recover copy of database with tag 'ORA_OEM_LEVEL_0' does it recover the database?
    What are the RMAN scripts (run block), to backup my database once per week (for ex on Sunday)as level 0 backup and every day as incremental level 1 cumulative backup ? Since I think that the above script will run a level 0 backup once on the first execution and then the remaining backups are level 1 Incremental backups
    Thanks and regards,

    NB wrote:
    Hello All,
    I am new to RMAN.
    I am trying to make some backups of my database using enterprise manager, so i choose to backup my database based on the Oracle-Suggested Backup schedule.
    I got the below command from EM:
    Daily Script:
    run {
    allocate channel oem_disk_backup device type disk;
    recover copy of database with tag 'ORA_OEM_LEVEL_0';
    backup incremental level 1 cumulative  copies=1 for recover of copy with tag 'ORA_OEM_LEVEL_0' database;
    }i have the below question:
    what does the above script do ? EM will create a job that will run it daily ? how can i check this job ? where is it logged?You can check the the view V$RMAN_BACKUP_JOB_DETAILS.
    where and how can i check the already configured channels ? for ex: channel oem_disk_backupConnect to RMAN and execute the command show all;
    what does this script do ? recover copy of database with tag 'ORA_OEM_LEVEL_0' does it recover the database?
    What are the RMAN scripts (run block), to backup my database once per week (for ex on Sunday)as level 0 backup and every day as incremental level 1 cumulative backup ? Since I think that the above script will run a level 0 backup once on the first execution and then the remaining backups are level 1 Incremental backupsYour script is doing a daily incremental updated backup. Every day, You are asking Oracle to update your image copy with latest changes of all redo as of yesterday. You are recovering your backup copies; see the following link;
    See http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup004.htm#sthref408

  • Database Backup using batch mode doesn't work

    Hello,
    i try to use the batch mode to backup the HANA DB (1.00.21) but nothing happens.
    my backup.sql
    \connect -n <server name> -i <instance number> -u <user> -p <password>
    BACKUP DATA USING FILE ('Monday')
    excecute the backup
    /usr/sap/<SID>/HDB<instance number>/exe/hdbsql -I backup.sql
    The instructions work for themselves but with this script nothing happens.
    Any ideas?
    Thanks

    Hello,
    The manual advises against your proposal rather, because the password is visible in the process.
    Actually it is not advising against what I suggest and what it in the blog.
    You have three options:
    1.) run everything from command line (this is what SAP suggested that is wrong because you would see the password)
    2.) store password in file - less wrong than option 1.) because everyone having access to file can see the password
    3.) store password in encrypted user store and use just -U <user> (no password needed)
    This is also suggested in guide:
    In addition, the password must be saved in the hdbuserstore, and not in a file.
    The issue is in separator - it is stated that default is '//' but apparently it is not - it is ';'.
    This syntax would work:
    \connect -n <server name> -i <instance number> -u <user> -p <password>;
    BACKUP DATA USING FILE ('Monday');
    Anyway - it is wrong from security perspective. User store is much better because the password is encrypted.
    Tomas

  • Automatic Database Backup using Shell script

    Hi,
    Can anybody share a sample shell script to take automatict backup of database.So, that It help preparing the same in our enviroment.
    Thanks,
    Sami

    Hi,
    Thanks for your inputs. But here are the details
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit
    Platform 86_64 linux.-redhat-release-4ES-7.
    Can you please suggest taking automatic backup as a sample script. so that a demo can be created and tested in development environment.
    --sami                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Need some suggestion doing database backup

    Hi All,
    I am working on the 11gR2 RAC oracle database and below are the details.
    SQL>select * from gv$version;
    INST_ID BANNER
    2 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    2 PL/SQL Release 11.2.0.1.0 - Production
    2 CORE 11.2.0.1.0 Production
    2 TNS for Linux: Version 11.2.0.1.0 - Production
    2 NLSRTL Version 11.2.0.1.0 - Production
    1 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    1 PL/SQL Release 11.2.0.1.0 - Production
    1 CORE 11.2.0.1.0 Production
    1 TNS for Linux: Version 11.2.0.1.0 - Production
    1 NLSRTL Version 11.2.0.1.0 - Production
    3 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    3 PL/SQL Release 11.2.0.1.0 - Production
    3 CORE 11.2.0.1.0 Production
    3 TNS for Linux: Version 11.2.0.1.0 - Production
    3 NLSRTL Version 11.2.0.1.0 - Production
    ps -ef|grep pmonoracle 11077 11067 0 10:37 pts/0 00:00:00 grep pmon
    oracle 12383 1 0 2011 ? 00:16:18 ora_pmon_cc2crt2
    oracle 12432 1 0 2011 ? 00:07:43 ora_pmon_cc3crt2
    oracle 12437 1 0 2011 ? 00:07:11 ora_pmon_cc4crt2
    oracle 12814 1 0 2011 ? 00:06:01 ora_pmon_ccoreqal2
    oracle 12816 1 0 2011 ? 00:05:50 ora_pmon_ccorecrt2
    I have 5 databases in these three severs and having around 20 GB of size except one database. The size of the this database (ccoreqal2) is 7.5 TB. I have took the full database backup using expdp for all DB's except the BIG size DB. i am not able to use the expdp because of the size. Which way is best to do the backup for this big size DB.
    The purpose of taking the backup is, we are upgrading our oracle to 11.2.0.3 and We don't have any regular backups (RMAN or EXPORT) on these databases. these are QA databases.
    Please let me know, how i need to prepare for this DB backup.
    Thanks in advance for your help.

    >
    i am not able to use the expdp because of the size
    >
    Why not? You can have expdp create multiple files on export so that each file is no larger than the size you specify. This makes it easier to manage large exports.
    Using multiple files and a parallel export will handle this for you.
    See the DUMPFILE section of the database utilities doc - http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_export.htm
    It has this example of file splitting using PARALLEL
    >
    Example
    The following is an example of using the DUMPFILE parameter:
    expdp hr/hr SCHEMAS=hr DIRECTORY=dpump_dir1 DUMPFILE=dpump_dir2:exp1.dmp,exp2%U.dmp PARALLEL=3
    The dump file, exp1.dmp, will be written to the path associated with the directory object dpump_dir2 because dpump_dir2 was specified as part of the dump file name, and therefore overrides the directory object specified with the DIRECTORY parameter. Because all three parallel processes will be given work to perform during this job, the exp201.dmp and exp202.dmp dump files will be created and they will be written to the path associated with the directory object, dpump_dir1, that was specified with the DIRECTORY parameter.

  • Why database backup information is not in rc_rman_status

    Hi,
    I used rman to backup dozen of databases. Only 3 database backup info is in rc_rman_status. I can see all databases fromrc_database. From EM console, every database target page shows the daily backup information. What happened?
    I need to create a report for daily backups of all databases. I want to pull information directly from rc_rman_status. Any suggestions?
    Thanks
    Laura

    Hello,
    It is possible that your recovery catalog is 10g but you have performed a backup using a lower RMAN client such as 9i. I believe RC_RMAN_STATUS is a 10g addition and hence the 9i RMAN client will not populate these tables. Obviously I can't guarantee this is your problem, but if you have a mixed Oracle environment, this is a high possibility.
    Hope that helps
    Andy

  • Cold backup using RMAN

    Dear All,
    db_version :10.2.0.4
    os_version:Window 2003 server
    Environment:Test
    I wish to perform cold backup using RMAN for the same i want to know following :
    1. What is the script / command ?
    2. How to restore cold backup completely ( ex:- if i lost all my data,redo and archives )
    3. Is it mandatory to open the database in RESETLOG mode after recovery ( since i have a cold backup ) ?
    Thanks in advance

    A "Cold" Backup is called a "Consistent" Backup.
    See http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup003.htm#sthref297
    Backup :
    From the RMAN command line :
    SHUTDOWN IMMEDIATE
    STARTUP MOUNT
    BACKUP DATABASE
    BACKUP CURRENT CONTROLFILE  -- to get the controlfile in a separate backupsetRestore :
    STARTUP MOUNT
    RESTORE DATABASE
    ALTER DATABASE OPENIf you use an SPFILE, you can have an SPFILE backup included automatically with the controlfile backupset with CONFIGURE CONTROLFILE AUTOBACKUP ON and CONFIGURE CONTROLFILE AUTOBACKUP FORMAT ...
    Read the documentation.
    Hemant K Chitale

  • Tnsname resolve failed after performing an restore using rman

    I create an full database backup using rman and I want to perform an restore on another server. Steps are as follows.
    1. Install the same release of oracle database and apply the same release of patches in the testing server.
    2. Create an instance with the same name of original database.
    3.Perform the restore using rman.
    4.Create an spfile from pfile.
    5.Add an new tempfile then delete the old one.
    6. Shutdown the instance and restart it.
    7. reconfigure the listner.
    8. reconfigure the tns.
    In this step it fails,saying that "TNS:listener does not currently know of service requested in connect descriptor",but if I change the servername to the original server name,it succeed.

    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MOSS-001)(PORT=1521)))
    Services Summary...
    Service "JDEDB.PharmaTechs.com" has 1 instance(s).
    Instance "jdedb", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:3 refused:0 state:ready
    LOCAL SERVER
    Service "JDEDBXDB.PharmaTechs.com" has 1 instance(s).
    Instance "jdedb", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1002 state:ready
    DISPATCHER <machine: MOSS-001, pid: 7912>
    (ADDRESS=(PROTOCOL=tcp)(HOST=MOSS-001.pharmatechs.com)(PORT=2406))
    Service "JDEDB_XPT.PharmaTechs.com" has 1 instance(s).
    Instance "jdedb", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:3 refused:0 state:ready
    LOCAL SERVER
    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
    The command completed successfully

  • SAP SQL 2008 Database Backup

    Hi,
    One of our client is taking the SAP SQL database backup using BRTOOL, backup happen on Standalone LTO 5.
    They are taking backup of 1.4 TB in 1hr 30 Min.
    I would like to know is it possible to achieve same as max write speed of LTO 5 in 140 MBPS, if we consider the are getting max throughput rate then too it should take around 3 hr 40 Min.
    If it is possible then it would be grateful if someone can explain how.
    Thanks & Regards
    Mitt Gori

    Hi Mitt,
    You may refer the details shared under thread Full Database Backup in DB13 for MS SQL Server ... | SCN on configuration of backups using db13 for MSSQL.
    What it comes to my mind is ..
    1) Can you check whether you have SSDs configured for the database
    2) What is the Tape write speed.
    Note: SSD disks can drastically improve the backup times as it has excellent read/write performance over SAS disk.
    Hope this helps.
    Regards,
    Deepak Kori

  • Incremental Backup using "imsbackup"

    Dear every body,
    I have a trouble and need the help from you, please help me in this case if you can, thanks.
    I want to backup incrementally my mailboxes with "imsbackup" command. I have tested following below example but not succeeded:
    1. I send/receive email between 2 users in my domain at 08:00AM.
    2. I performed FULL backup the whole message store using imsbackup
    3. At 09:00AM I send/receive another email between 2 users in my domain
    4. I performed INCREMENTAL backup the whole message store using "imsbackup -d 20091217:083000....." but my backup file including the messages that I sent before 08:30AM
    I have done this several times and get the same result.
    Please kindly help me in this case, how can I use imsbackup to incrementally backup my mailboxes.
    Any help and advices from you is appreciated.
    Thanks all of you so much.
    huynq

    Hi Shane,
    Thanks so much for your response.
    The version of Messaging Server I am using is:
    {color:#ff0000}bash-3.00# ./imsimta version
    Sun Java(tm) System Messaging Server 7.0-3.01 64bit (built Dec 9 2008){color}
    For your question:
    Does this problem occur if you incrementally back up a single mailbox e.g.
    ./imsbackup -d 20091217:083000 ... user/<uid>/
    My Answer is:
    I have not performed above step yet because I want to backup mailboxes of all users.
    For your question:
    Is the time/timezone set correctly on the server?
    My answer is:
    Yes, of courses. I already set time/timezone correctly. I also checked the time stamp of newly created email in message store in server, their date are correct.
    For your question:
    Are you in daylight savings time i.e. you shift the imsbackup incremental time back-forward an hour and get the correct result?
    My answer is:
    I already tried many times but got the same result. For example, At{color:#ff0000} 9AM Dec 16th 2009{color} I sent an email. At{color:#ff0000} 9AM one day later (Dec 17th 2009){color} I sent another email. I performed incremental backup using{color:#ff0000} "./imsbackup -d 20091216:120000 -f- / > /email_backup/incremental.120000".{color}
    The backup file I got contained the email I sent at 9AM Dec 16th.
    Any advice on this ?
    Anyway, thanks so much for your help. I am awaiting your response.
    huynq.

  • After formatting and creating two partitions on my external HD, why is Time Machine taking 25x longer to perform a backup?

    Hi.
    I bought a macbookpro 13"retina, new two weeks ago and a G-tech 1TB external drive from the apple store. It's my first mac.
    I performed a backup, using Time Machine, which copied 18 GB onto he 1TB external HD in around 20 minutes.
    After a little more reading, I realised I should use Disk utility to partition the 1TB external G-tech drive into a 250gb partition, and a 750gb partition.
    [My MBP has a 250gb flash HD. I'll use the other 750gb for storage of my other files, like photos, music etc.]
    So, using disk utility I formatted the 1TB exernal drive, then created two partitions.
    However, I've started backing up my data using time machine again, onto the 250gb partition, on the external drive, and its now taking 5 hours to copy the 19.81GB
    So why is it taking 25x longer than the first time I did it? [First time it took 20 minutes]
    Thanks

    Since performing the fist backup, a couple of days ago, which took twenty minutes, and the second backup, which is taking 5 hours, I installed MS office for Mac 2011 and Silverlight.
    Dont know if thats responsible?

  • Full db backup using expdp

    Hi All,
    My database version is 10.2.0.2 & I want to take full database backup using expdp.
    This is the parfile I use.
    userid=system/manager
    full=y
    directory=exp_dmp
    parallel=4
    The database size is 45 gb & the expdp dumpfile size comes to around 31gb. What can be done to compress the expdp dumpfile?
    or is there some other parameters which i need to use?
    thanks

    I agree expdp is logical backup.
    In 10g compression=metadata_only is the only option that can be used, so that does not help to compress the backup.
    due to size restrictions, i want the dumpfile to be compressed as and when the backup is running, how to achieve this?

Maybe you are looking for

  • Need 'Edit' on 11g report to link to Criteria Tab instead of Results Tab

    In Answers 10g, a user had the option to 'Modify Criteria' when editing a saved Answers Report. Now, in Answers 11g, when a user clicks 'Edit', it first runs the report (sending off the logical sql to the bi server immediately) and then you have to s

  • Execute Method Before Detail VO is Refreshed

    Hi all, JDeveloper 11.1.2 I have two entity based view objects with master-detail relationship defined by a view link. The detail view object is based on an advanced Oracle database view, which needs a database procedure to be executed before it can

  • CFPDFForm populate existing PDF Chinese font

    I am using livecycle pdf template to populate the section dynamically using XML data file. I am using CFPDF (#ColdFusion) tag with populate action, when CF generates the PDF I can see the static data in Chinese but dynamic data is not visible, I am u

  • How do I manage where the tab-bar is displayed in Firefox 29?

    The config setting (browser.tabs.onTop set to false in about:config) is not working in Firefox 29 -- Please have the Developer Team fix this. By not correcting this, the "new" Firefox has eliminated useful features, notably, the ability to place the

  • Incrementing sequence structures

    I am sure there is an easy way to do this, but I can't quite get it to work properly. Any help would be appreciated: I have a while loop that runs for 40 seconds. When those 40 seconds are up, it triggers a dialog box to pop up. That dialog box is in