Configure backup device in SAP(DB13)
I have installed the ECC 6.0 with SQLServer 2005 ,now I want to
configure the backup device in it. I am using external hdd for backup.
Please suggest me how to configure backup device in SAP(DB13) and
database level.
where I have to set the parameters for backup device.
Thanks
Hi..
You need to configure initSID.sap inside Kernel.
Choose backup device type to disk
backup_dev_type = disk
and change backup root directory
backup_root_dir = < Your_External_HDD_adress>
e.g. G:/backup/
Hope it should work....
Regards,
Abhimanyu
Edited by: Abhimanyu Pandey on May 21, 2009 9:02 AM
Similar Messages
-
How to configure backup device
Hii,
I have fresh install 4.7 with sql 2000 database . I want to take backup of my database in other drive . how i will configure this drive .
thanks & regards
jagdishhi,
you want to take backup using DB13 or from SQL server enterprise manager,
if you want to take backup on network drive the drive must be map and accessible through windows.
configure backup devices on MS SQL Server management Studio,
logon to SQL server management Studio,
under object explorer navigate through server object -> backup devices
create new backup device -- destination file type. give path for your network drive backup folder.
regards,
kaushal -
New to sap - need help in configure backup strategy for SAP XI server.
hi gurus
being a netweaver guy, recently i have been given the responsibility of few basis activities.like database backup.
can any one tell me clear procedure to take both daily online and weekend full offline backup of oracle in to disk first and then to tape. i have seen in the internet material few discussing about brbackup and few about sap DB13. i am totally confused which one to use, and which is good. please help
akhilHi,
welcome on board as SAP Netweaver guy,
don't be confused both DB13 and BRtools are the same both of them will call brbackup.
to configure the brtools you have to change in your brtools profiles located at %ORACLE_HOME%/dbs
please before changing any thing take backup from that folder.
- to take the backup to disk then to tape you will need extra backup software, because using the SAP slandered tools you have to select either Disk or Tape.
Thanks
Sherif -
How to configure backup parallel in SAP with oracle database?
Dear SAP,
We need your suggestion on oracle database backup parallel using brbackup, our SAP system run on:
OS: UNIX - SUN Solaris SPARC 10
SAP: ECC 6.0 SR3
Database: Oracle 10.2.0.4
Our production database are growing rapidly, estimate growing is 2GB/days. Right now we backup our Production using one tape that estimated time to online backup is 4-5hours.
In there future, if we stayed this configuration. It will take long time to backup and restore it's not applicable. That's why we are planning to add more tapes during backup (4 tape parallel).
I read from help.sap, that we can configure this on $ORACLE_HOME/dbs/init<SID>.sap. in parameter:
compress = harware
backup_dev_type = tape
tape_address = (tape1, tape2, tape3, tape4)
tape_address_rew = (tape1, tape2, tape3, tape4)
http://help.sap.com/saphelp_nw04/helpdata/en/88/a2a041a5d4af4db168992639d65d3b/frameset.htm
My question,
If we want to backup parallel using 4 tapes, is this configuration that we need to do (init<SID>.sap) from sap side (DB13)?
Thanks and Best Regards,
WidiDear Mark,
Thanks for your help. actually I have one more question:
How do I restore my backup form this 4 tapes, if I'm using parallel backup?
Will the command same like I restore form 1 tape:
example:
brrestore u2013b beczqlnk.ant u2013m full
brrestore u2013a 5371-5372=/oracle/<SID>/oraarch/
Below are the paramter that I will configure:
- tape_address = /dev/rmt/0cbn
- compress = hardware
- backup_dev_type = tape
- exec_parallel = 4
- tape_size = 1600000
- tape_address = (dev/rmt/0mn, /dev/rmt/1mn, ..)
- tape_address_rew = (dev/rmt/0m, /dev/rmt/1m, ..)
Appreciate you help and suggestion on this.
Dear Venkat,
thanks for your suggestion -
Dear Team,
I am using SAP 4.7 with oracle 8.1 on Windows 2000 Server
I want to take backup in different drive i.e F Drive
Please let me know how to do Online and Offline backups?
thnaks
KumarHi Alpesh,
I have read the post , and its quiet useful..What i need to know more about it is I need to give the Path for my External Tape Drive.
I have defined the type as Tape.
backup device type
[tape | tape_auto | tape_box | pipe | pipe_auto | pipe_box | disk
| disk_copy | disk_standby | stage | stage_copy | stage_standby
| util_file | util_file_online | rman_util | rman_disk | rman_stage
| rman_prep]
default: tape
backup_dev_type = tape
I have to define the Path how can i tell the system to backup to Extrenal tape drive.
backup root directory [<path_name> | (<path_name_list>)]
default: $SAPDATA_HOME/sapbackup
backup_root_dir = $SAPDATA_HOME/sapbackup
Thanks
Adnan -
Error while defining USB dribe as backup device in MSSQL
Hi all, i am facing this error when i am creating a new backup device in MSSQL and while watching media contents.
System.Data.SqlClient.SqlError: Cannot open backup device 'SAPMSQLDB(E:\SAPBackup\SAPMSQLDB.bak)'. Operating system error 2(The system cannot find the file specified.). (Microsoft.SqlServer.Smo)
and i am getting this error in DB13
"Cannot open backup device 'SAPMSQLDB(E:\SAPBackup\SAPMSQLDB.bak)'. Oper"
when you are creating a new device what should be the file name ???? i specified a file name but its not in the folder i think this might be the cause but i dont know what is the name of file or do i need to prepare the folder i mean to create some temporary files?
appreiate any reply.
thanks
ManiWell i executed Full database backup
i have few question
1. The output is only one file or more files as i have only one file called filename.bak aftre backup from SAP?
2. below is the detail of DB12 output, DB13 and error log
in DB12 it shows its successfully executed with code ok.
in DB13 PREVIEW tab here is the log it shows
I am not sure it executed succesfully, it created backup in one file called DBNOV.bak
exec msdb..sp_add_job @originating_server = '(local)',@job_name = "SAP CCMS Full DB Backup of
SID [20081112160619-3-173000]",@enabled = 1,@description = "SAP CCMS JOB",@start_step_id = 1,
@category_name = NULL,@category_id = NULL
exec msdb..sp_add_jobstep @job_id = null,@job_name = 'SAP CCMS Full DB Backup of SID
[20081112160619-3-173000]',@step_id = 1,@step_name = 'CCMS-step 1',@subsystem =
'TSQL',@command = 'declare @exeStmt nvarchar(2000) exec sid.sap_backup_databases
@dbList="SID",@r3Db="SID",@bDev="USBDB",@expDays= 27,@bkupChecksum="N",@jobName= "SAP CCMS
Full DB Backup of SID [20081112160619-3-173000]",@bkupType="F",@nativeBkup="N",@exeDate =
"20081112173000",@bkupSim = "Y",@format = 0,@init = 0,@bkupDb = "SID",@unload = 0,@exeStmt =
@exeStmt OUTPUT',@database_name = 'SID',@on_success_action = 3
BACKUP DATABASE SID TO USBDB WITH
DESCRIPTION = 'SAP CCMS Full DB Backup of SID [20081112160619-3-173000]',RETAINDAYS=27,
NOINIT,
NAME = 'Sap backup on 20081112 21:27:40',NOUNLOAD
exec msdb..sp_add_jobstep @job_id = null,@job_name = 'SAP CCMS Full DB Backup of SID
[20081112160619-3-173000]',@step_id = 2,@step_name = 'CCMS-step 2',@subsystem =
'TSQL',@command = 'declare @exeStmt nvarchar(2000) exec sid.sap_verify_backups @nativeBkup =
"N",@bkupSim = "Y",@bDev = "USBDB",@bkupChecksum = "N",@exeDate = "20081112173000",@unload =
0,@dbCnt =1,@exeStmt = @exeStmt OUTPUT',@database_name = 'SID'
RESTORE VERIFYONLY FROM USBDB WITH FILE = X ,NOUNLOAD
exec msdb..sp_add_jobschedule @job_id = null,@job_name = 'SAP CCMS Full DB Backup of SID
[20081112160619-3-173000]',@name = 'CCMS-sche1',@enabled = 1,@freq_type =1,@freq_interval =
1,@freq_subday_type = 0,@freq_subday_interval = 0,@active_start_date =
20081112,@active_start_time = 173000,@freq_recurrence_factor = 0
here is the log file snapshot
2008-11-12 17:30:01.42 spid83 DBCC TRACEON 3605, server process ID (SPID) 83. This is an informational message only; no user action is required.
2008-11-12 18:21:59.35 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:21:59.35 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:21:59.62 spid85 Error: 18204, Severity: 16, State: 1.
2008-11-12 18:21:59.62 spid85 BackupDiskFile::OpenMedia: Backup device 'E:\SAPMSQLbackup\DBNOV.bak' failed to open. Operating system error 32(The process cannot access the file because it is being used by another process.).
2008-11-12 18:22:09.73 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:22:09.73 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:22:09.85 spid85 Error: 18204, Severity: 16, State: 1.
2008-11-12 18:22:09.85 spid85 BackupDiskFile::OpenMedia: Backup device 'E:\SAPMSQLbackup\DBNOV.bak' failed to open. Operating system error 32(The process cannot access the file because it is being used by another process.).
2008-11-12 18:24:05.09 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:24:05.09 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:24:05.18 spid85 Error: 18204, Severity: 16, State: 1.
2008-11-12 18:24:05.18 spid85 BackupDiskFile::OpenMedia: Backup device 'E:\SAPMSQLbackup\DBNOV.bak' failed to open. Operating system error 32(The process cannot access the file because it is being used by another process.).
2008-11-12 18:24:07.40 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:24:07.40 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:24:07.56 spid85 Error: 18204, Severity: 16, State: 1.
2008-11-12 18:24:07.56 spid85 BackupDiskFile::OpenMedia: Backup device 'E:\SAPMSQLbackup\DBNOV.bak' failed to open. Operating system error 32(The process cannot access the file because it is being used by another process.).
2008-11-12 18:24:09.03 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:24:09.03 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:24:09.15 spid85 Error: 18204, Severity: 16, State: 1.
2008-11-12 18:24:09.15 spid85 BackupDiskFile::OpenMedia: Backup device 'E:\SAPMSQLbackup\DBNOV.bak' failed to open. Operating system error 32(The process cannot access the file because it is being used by another process.).
2008-11-12 18:24:11.51 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:24:11.51 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:24:11.65 spid85 Error: 18204, Severity: 16, State: 1.
2008-11-12 18:24:11.65 spid85 BackupDiskFile::OpenMedia: Backup device 'E:\SAPMSQLbackup\DBNOV.bak' failed to open. Operating system error 32(The process cannot access the file because it is being used by another process.).
2008-11-12 18:25:08.59 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:25:08.61 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:25:20.51 spid89 DBCC TRACEON 3605, server process ID (SPID) 89. This is an informational message only; no user action is required.
2008-11-12 18:25:27.00 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:25:27.00 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:32:26.91 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:32:26.91 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:32:27.05 spid85 Error: 18204, Severity: 16, State: 1.
2008-11-12 18:32:27.05 spid85 BackupDiskFile::OpenMedia: Backup device 'E:\SAPMSQLbackup\DBNOV.bak' failed to open. Operating system error 32(The process cannot access the file because it is being used by another process.).
2008-11-12 18:36:51.51 spid91 DBCC TRACEON 3605, server process ID (SPID) 91. This is an informational message only; no user action is required.
2008-11-12 18:36:51.51 spid91 DBCC TRACEON 3605, server process ID (SPID) 91. This is an informational message only; no user action is required.
2008-11-12 18:36:51.65 spid91 Error: 18204, Severity: 16, State: 1.
2008-11-12 18:36:51.65 spid91 BackupDiskFile::OpenMedia: Backup device 'E:\SAPMSQLbackup\DBNOV.bak' failed to open. Operating system error 32(The process cannot access the file because it is being used by another process.).
2008-11-12 18:37:12.04 spid91 DBCC TRACEON 3605, server process ID (SPID) 91. This is an informational message only; no user action is required.
2008-11-12 18:37:12.04 spid91 DBCC TRACEON 3605, server process ID (SPID) 91. This is an informational message only; no user action is required.
2008-11-12 18:37:12.16 spid91 Error: 18204, Severity: 16, State: 1.
2008-11-12 18:37:12.16 spid91 BackupDiskFile::OpenMedia: Backup device 'E:\SAPMSQLbackup\DBNOV.bak' failed to open. Operating system error 32(The process cannot access the file because it is being used by another process.).
2008-11-12 18:37:21.02 spid91 DBCC TRACEON 3605, server process ID (SPID) 91. This is an informational message only; no user action is required.
2008-11-12 18:37:21.04 spid91 DBCC TRACEON 3605, server process ID (SPID) 91. This is an informational message only; no user action is required.
2008-11-12 18:37:21.18 spid91 Error: 18204, Severity: 16, State: 1.
2008-11-12 18:37:21.18 spid91 BackupDiskFile::OpenMedia: Backup device 'E:\SAPMSQLbackup\DBNOV.bak' failed to open. Operating system error 32(The process cannot access the file because it is being used by another process.).
2008-11-12 18:44:44.23 spid92 DBCC TRACEON 3605, server process ID (SPID) 92. This is an informational message only; no user action is required.
2008-11-12 18:45:24.42 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:45:24.42 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:45:24.42 spid85 Error: 18204, Severity: 16, State: 1.
2008-11-12 18:45:24.42 spid85 BackupDiskFile::OpenMedia: Backup device 'E:\SAPMSQLbackup\test.bak' failed to open. Operating system error 2(The system cannot find the file specified.).
2008-11-12 18:45:32.78 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:45:32.78 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:45:32.78 spid85 Error: 18204, Severity: 16, State: 1.
2008-11-12 18:45:32.78 spid85 BackupDiskFile::OpenMedia: Backup device 'E:\SAPMSQLbackup\test.bak' failed to open. Operating system error 2(The system cannot find the file specified.).
2008-11-12 18:45:39.70 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:45:39.70 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 18:45:39.84 spid85 Error: 18204, Severity: 16, State: 1.
2008-11-12 18:45:39.84 spid85 BackupDiskFile::OpenMedia: Backup device 'E:\SAPMSQLbackup\DBNOV.bak' failed to open. Operating system error 32(The process cannot access the file because it is being used by another process.).
2008-11-12 19:50:27.41 Backup Database backed up. Database: SID, creation date(time): 2008/05/07(18:32:21), pages dumped: 26905751, first LSN: 9854:10543:202, last LSN: 9854:18731:1, number of dump devices: 1, device information: (FILE=1, TYPE=DISK: {'USBDB'}). This is an informational message only. No user action is required.
2008-11-12 19:50:27.55 spid83 DBCC TRACEON 3605, server process ID (SPID) 83. This is an informational message only; no user action is required.
2008-11-12 21:25:21.51 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 21:25:21.60 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 21:27:40.86 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
2008-11-12 21:27:40.86 spid85 DBCC TRACEON 3605, server process ID (SPID) 85. This is an informational message only; no user action is required.
exec msdb..sp_add_jobserver @job_name = 'SAP CCMS Full DB Backup of SID
[20081112160619-3-173000]',@server_name = '(local)'
thanks a lot for your time
Mani -
Error in Backup job scheduling in DB13
Hi All
Backup job scheduled in DB13 kicks error ,I am using Oracle as database and ERP6.0
database and application are on diffrent servers.Before it was working fine,I didn't changed any password
I can run backupjob sucessfully directly from BRtools on database server.Please provide any hint
Job started
Step 001 started (program RSDBAJOB, variant &0000000000060, user )
No application server found on database host - rsh/gateway will be used
Execute logical command BRBACKUP On host DLcSapOraG08
Parameters:-u / -jid INLOG20090120204230 -c force -t online -m incr -p initerd.sap -w use_dbv -a -c force -p in
iterd.sap -cds -w use_rmv
BR0051I BRBACKUP 7.00 (31)
BR0128I Option 'use_dbv' ignored for 'incr'
BR0055I Start of database backup: bdztcorv.ind 2009-01-20 20.42.31
BR0484I BRBACKUP log file: D:\oracle\ERD\sapbackup\bdztcorv.ind
BR0280I BRBACKUP time stamp: 2009-01-20 20.42.32
BR0301E SQL error -1017 at location BrDbConnect-2, SQL statement:
'CONNECT /'
ORA-01017: invalid username/password; logon denied
BR0310E Connect to database instance ERD failed
BR0280I BRBACKUP time stamp: 2009-01-20 20.42.32
BR0301E SQL error -1017 at location BrDbConnect-2, SQL statement:
'CONNECT /'
ORA-01017: invalid username/password; logon denied
BR0310E Connect to database instance ERD failed
BR0056I End of database backup: bdztcorv.ind 2009-01-20 20.42.32
BR0280I BRBACKUP time stamp: 2009-01-20 20.42.32
BR0054I BRBACKUP terminated with errors
BR0280I BRBACKUP time stamp: 2009-01-20 20.42.32
BR0291I BRARCHIVE will be started with options '-U -jid INLOG20090120204230 -d disk -c force -p initerd.sap -cds -w use_rmv'
BR0002I BRARCHIVE 7.00 (31)
BR0181E Option '-cds' not supported for 'disk'
BR0280I BRARCHIVE time stamp: 2009-01-20 20.42.33
BR0301W SQL error -1017 at location BrDbConnect-2, SQL statement:
'CONNECT /'
ORA-01017: invalid username/password; logon denied
BR0310W Connect to database instance ERD failed
BR0007I End of offline redo log processing: adztcorw.log 2009-01-20 20.42.32
BR0280I BRARCHIVE time stamp: 2009-01-20 20.42.33
BR0005I BRARCHIVE terminated with errors
BR0280I BRBACKUP time stamp: 2009-01-20 20.42.33
BR0292I Execution of BRARCHIVE finished with return code 3
External program terminated with exit code 3
BRBACKUP returned error status E
Job finishedHi,
not sure if the recommendations given will address this issue.
You are getting this error:
BR0301E SQL error -1017 at location BrDbConnect-2, SQL statement:
'CONNECT /'
ORA-01017: invalid username/password; logon denied
the log file indicates:
> No application server found on database host - rsh/gateway will be used
This indicated that the user that is connecting from the AS to the DB server is not properly configured to perform the DB tasks on it.
So, first question would be to know if you have configured a gateway on the DB server and how, or if you are using remote shell.
Second question, you can do backups on the DB server.
> I can run backupjob sucessfully directly from BRtools on database server
How did you run exactly the backup job (what is the exact command line, what is the exact OS user that executed it)?
What is the OS of the DB server?
I have reread your post, your OS is windows therefore you fall in the "typical" error in Windows.
You have executed your backup as <sid>ADM and it works. Unfortunatelly, in windows, SAP is exectuted by SAPSERVICE<sid>, and this is the user who should be connecting to your DB server, and this is the user who cannot execute the backup.
The fact that you can run the backup with <sid>ADM in Windows does not means that you have SAPService<sid> properly configured.
For the error (see before) I think your ops$ user for this user is not properly configured in the DB server. take a look at the note mentioned by KT and pay attention to the SAPSERVICE<sid> configuration
Edited by: Fidel Vales on Jan 24, 2009 12:45 AM -
Cisco Prime Infra 2.2 + Third Party Inventory and configuration backup
Hi All,
I am having a doubt related to Cisco prime solution capability to do a discovery and config backup for non-cisco devices.
Requirement is to use Cisco prime to do a discovery, inventory and take configuration backup for non-cisco devices. Is it something possible out of the box ?
If not possible out of the box, is there any method to do that using any custom API ?
Can we monitor 3rd party( Non-cisco) devices using Cisco Prime 2.2 ?
SkrHi,
Below is supported-device list, check if your device is listed there.
http://www.cisco.com/c/en/us/support/cloud-systems-management/prime-infrastructure/products-device-support-tables-list.html
- Ashok
Please rate the post or mark as correct answer as it will help others looking for similar information -
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE BACKUP OPTIMIZATION ON;
above cmd only working on "sbt" type device or it is working also "disk".
plz. let me know. sir.
thanx in advance.From the docs:
Requirements for Backup Optimization
Backup optimization is used when the following conditions are true:
The CONFIGURE BACKUP OPTIMIZATION ON command has been run to enable backup optimization.
You run BACKUP DATABASE, BACKUP ARCHIVELOG with ALL or LIKE options, or BACKUP BACKUPSET ALL.
Only one type of channel is allocated, that is, you do not mix channels of type DISK and sbt in the same backup command.
http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmconc1008.htm#i1008304 -
CONFIGURE CHANNEL DEVICE TYPE DISK doesn't function
Dear all,
I have a problem with a backup.
Facts:
OS: SunOS hod 5.10 Generic_142901-03 i86pc i386 i86pc
Oracle 11.2.0.1 with RAC
So, Although i put in rman parameters section the CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/rman/backups/%U'; the backup was done but in FRA that is located in
BS Key Type LV Size Device Type Elapsed Time Completion Time
36 Incr 0 210.82G DISK 10:32:57 24-JAN-13
BP Key: 36 Status: AVAILABLE Compressed: YES Tag: TAG20130123T210005
*Piece Name: +DATA/db_name/backupset/2013_01_23/nnndn0_tag20130123t210005_0.442.805496407*
List of Datafiles in backup set 36...
ANd my question is:
How, although i configure that the backups would be in /rman/backups/%U this was located in +DATA (fRA) ??
what im doing wrong ??
Thanks for your help.thanks for your answer: here is my rman script. We invoked the script like this: rman_db_script.sh SID 0
#!/bin/ksh
function email_dba
if [ -s $email_file ]
then
subj="$prog: FAILED on $sid@$box at `date`"
while read dba_id
do
mailx -s "$subj" $dba_id < $email_file
echo "mailx -s "$subj" $dba_id "
done < /oracle/app/oracle/dba/util/motifylist.txt
fi
# set and check
function set_and_check
ps -ef | grep ora_pmon_$sid | grep -v grep > /dev/null
rc=$?
if [ $rc != 0 ]
then
echo "$prog: database $ORACLE_SID is not online" >> $log_file
echo "$prog: database $ORACLE_SID is not online" >> $email_file
# email_dba
exit 1
fi
rtime=`date '+%Y%m%d_%H%M'`
ORACLE_BASE=/opt/app/oracle
ORACLE_HOME=/opt/app/oracle/product/11.2.0/dbhome_1
export ORACLE_HOME
PATH=$ORACLE_HOME/bin:$PATH
export PATH
logdir=/opt/oracle/logs
log_file=$logdir/$prog.$sid.level${bk_level}.log.$rtime
email_file="$logdir/$prog.email.$sid"
cat /dev/null > $email_file
box=`hostname`
orauser=oracle
bk_dir=/rman/backups/$sid
echo "===== `date '+%Y%m%d %H:%M:%S'` $prog: Started =====" > $log_file
backup_type="INCREMENTAL LEVEL $bk_level"
# find $logdir -name $prog.*.log.* -type f -mtime +10 -exec /bin/rm -f {} \;
# find $bk_dir -name ctl.* -type f -mtime +10 -exec /bin/rm -f {} \;
echo "ORACLE_SID=$ORACLE_SID" >> $log_file
echo "ORACLE_USER=$orauser" >> $log_file
echo "ORACLE_HOME=$ORACLE_HOME" >> $log_file
echo "BACKUP TYPE=$backup_type" >> $log_file
return
# backup database and archive logs to disk
function backup_dbs_to_disk
echo "===== Backup $sid to FRA Started At `date` =====" >> $log_file
$ORACLE_HOME/bin/rman nocatalog << rman_cmd >> $log_file 2>&1
connect target
# se haran en el directorio sgte no en el FRA
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/rman/backups/%U';
#CONFIGURE CONTROLFILE AUTOBACKUP ON;
run
ALLOCATE CHANNEL ch1 TYPE disk ;
BACKUP $backup_type
filesperset 10
DATABASE;
sql 'alter system archive log current';
BACKUP filesperset 10 ARCHIVELOG ALL DELETE ALL INPUT;
sql "alter database backup controlfile to trace as ''$bk_dir/ctl.trc.$rtime''";
sql "alter database backup controlfile to ''$bk_dir/ctl.$rtime'' reuse";
RELEASE CHANNEL ch1;
#CONFIGURE CONTROLFILE AUTOBACKUP OFF;
rman_cmd
rc=$?
if [ $rc != 0 ]
then
echo "Backup $sid to Disk Failed At `date`" >> $log_file
echo "Backup $sid to Disk Failed At `date`" >> $email_file
email_dba
exit 1
else
echo "===== Backup $sid to Disk Completed At `date` =====" >> $log_file
fi
return
# delete obsolete backups
function del_obsolete_bk
echo "===== Delete Obsolete Backups Started At `date` =====" >> $log_file
$ORACLE_HOME/bin/rman nocatalog << rman_cmd >> $log_file 2>&1
connect target
ALLOCATE CHANNEL FOR MAINTENANCE DEVICE TYPE DISK;
Report obsolete;
delete force noprompt obsolete;
rman_cmd
rc=$?
if [ $rc != 0 ]
then
echo "Delete Obsolete Backups Failed At `date`" >> $log_file
echo "Delete Obsolete Backups Failed At `date`" >> $email_file
email_dba
exit 1
else
echo "===== Delete Obsolete Backups Completed At `date` =====" >> $log_file
fi
return
# main program
if [ $# -ne 2 ]
then
clear
echo "\nIncorrect argument, ORACLE_SID Backup_Level needed\n"
echo "\nUsage: $0 ORACLE_SID BACKUP_LEVEL(0/1)\n"
return 1
fi
sid=$1
bk_level=$2
diff_cum=$3
# prog=`basename $0`
prog=rman_backup_dbs.sh
export debug='N'
if [[ $debug = 'Y' ]];then set -x;fi
unset ORACLE_SID
unset ORACLE_HOME
unset SQLPATH
ORACLE_SID=$sid
export ORACLE_SID
set_and_check
backup_dbs_to_disk
del_obsolete_bk
echo "===== `date '+%Y%m%d %H:%M:%S'` $prog: Completed =====" >> $log_file
subj="$sid@$box backup completed successfully at `date`"
# while read dba_id
# do
# mailx -s "$subj" $dba_id < $log_file
# done < /oracle/app/oracle/dba/util/backup/scripts/email_dba.list
return 0
# end program
############################################################################# -
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT =SHOW DATE
Hello everyone.
The version I am using oracle 11g
2 questions:
1 .- CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/ ora_backup / backupset /% F'; I get error
I want the backup to show the date format, as it can get.
2 .- CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/ ora_backup / backupset /% F_.bak';
rename the extension back to. Bak, one can view the SQL SERVER.
Thanks,Bye.%F is only vaild for controlfile autobackups, there are other elements to store the date:
http://download.oracle.com/docs/cd/B28359_01/backup.111/b28273/rcmsubcl010.htm#i82206
Werner -
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT
Hello everyone.
The version I am using oracle 11g
2 questions:
1 .- CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/ ora_backup / backupset /% F'; I get error
I want the backup to show the date format, as it can get.
2 .- CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/ ora_backup / backupset /% F_.bak';
rename the extension back to. Bak, one can view the SQL SERVER.
Thanks,Bye.
Edited by: rafelbunyol on 04-feb-2009 5:17
Edited by: rafelbunyol on 04-feb-2009 5:19Hi,
Probably you were not connected.
Try:
connect target /;
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/ora_backup/backupset/%F';
My output on the last command:
new RMAN configuration parameters:
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/ora_backup/backupset/%F';
new RMAN configuration parameters are successfully stored
Regards,
Tycho -
Cisco prime configuration backup
Hi There,
In Cisco prime infrastructure there are two places that I can do backup of the WLCs.
1. Operate -> Configuration Archive & run schedule archive
2. Administration -> background Task -> Controller Configuration Backup
Can someone tell me what's the different between these two? What would be the issue if I have enable only option 1 not 2? If I want to get the running configuration of the controller to my PC How I would be able to do that?
Thx
SaraAn Intelligent Network Management Application doesn't have to depend on most basic tasks for user input.
It should be smart enough to start managing devices for configurations, inventory and Fault Management out of the box, as soon as the devices are added.
Under Mega-Menu like --> Design, Deploy and Operate their are many tasks which are user deployed and as per the network preferences and requirement.
Under Background Tasks we have System Defined Tasks to start many such device management activities by default.
Also, under Background task, you can configure an external TFTP/FTP server to archive the backup of the controllers configuration.
-Thanks
Vinod -
Cisco Prime Configuration Backup -Failure
My Customer use Cisco Prime Ver 1.4 U2
it Background Task in Configuration backup is show failure all Device
but I can Audit or syn config from WLC is success but config backup not success
i need workaround prove issue ?
ThankAre they reachable? do the controller have proper READ_WRITE community string? can you issue debug transfer tftp enable on controller and see the output
-
User privilege level for configuration backup with PI 1.2
We have more than 50 devices handling by PI 1.2 (testing) I like to know how to do configuration archiving with user who doesn't have write privilege.
I tried like this.
username john privilege 6 password cisco
privilege exec level 6 show running-config
(result) show run --> blank
I tried this user with one of switch in PI 1.2. It did not do configuration backup
username inout password inout
username inout privilege 15 autocommand show running-config
(result) once logged in, it automatically showed running-config. However when I tried with PI 1.2 with this user (inout). I couldn't do configuration back.
reference
http://www.cisco.com/en/US/tech/tk59/technologies_tech_note09186a00800949d5.shtml
so, my question is this. what is the solution for me to create certain user with read-only privilege while PI 1.2 is able to do configuration archiving ?
thanks in advance7.4 MSE code will in fact require an update of Prime 1.2 to 1.3.0.20-
It's pretty easy though and your licenses will still work from the Prime Infra side.
Here's a link to upgrade PI to 1.3
http://www.cisco.com/en/US/partner/docs/net_mgmt/prime/infrastructure/1.3/release/notes/cpi_rn_13.html#wp73605
I personally would go ahead with the upgrade of both:::
Maybe you are looking for
-
my ipod keeps on saying ipod is dissabled connect to itunes and whin i connect it to itunes it says i have to inter a passcode on the ipod to connect to itunes what do i do??
-
Problem opening itunes on macbook
I am trying to open itunes on my macbook but everytime I click on itunes store it just goes blank- I dont even get an alert. I have followed all steps to make sure everything is up to date regarding my operating system and itunes version- its all up
-
Missing Letters throughout document
I have been working on compiling a number of smaller PDFs into one larger PDF for a manual I am working on. I had everything compiled a few days ago and a co-worker added a new pto the PDF yesterday that needed to be included. As I was proofing I ha
-
Can you file your iTunes movies on an external hard drive and still access them from itunes?
Can you move your Itunes movies from the hard drive on hte computer (C drive) to an external hard drive in order to free up space on your main hard drive (C drive)?
-
IWeb 06 icon is a question mark now
I just installed iLife on a custom basis. i only installed iDVD, iPhoto and Garage Band. Now my iWeb icon in my dock is a question mark and my domains are generic page icons. neither will launch iWeb either. And i cant find the application on my driv