SQL online backup.
Hi all,
How can i initiate the online backup for SQL database.
and please provide me the sql commands for sql backup.
Thanks in advance.
vinnu.
You can schedule the backup via the SQL Server gui.
right click the DB name and select backup from the resulting list.
run though and tick the boxes, set the timings and days. Save.
Then to see the SQL goto the SQL agent, job, and open the job you saved above.
Look in/at the steps.
This will give you the code.
However sample code is below
--This Transact-SQL script creates a backup job and calls sp_start_job to run the job.
-- Create job.
-- You may specify an e-mail address, commented below, and/or pager, etc.
-- For more details about this option or others, see SQL Server Books Online.
USE msdb
EXEC sp_add_job @job_name = 'myTestBackupJob',
@enabled = 1,
@description = 'myTestBackupJob',
@owner_login_name = 'sa',
@notify_level_eventlog = 2,
@notify_level_email = 2,
@notify_level_netsend =2,
@notify_level_page = 2
-- @notify_email_operator_name = 'email name'
go
-- Add job step (backup data).
USE msdb
EXEC sp_add_jobstep @job_name = 'myTestBackupJob',
@step_name = 'Backup msdb Data',
@subsystem = 'TSQL',
@command = 'BACKUP DATABASE msdb TO DISK = ''c:\msdb.dat_bak''',
@on_success_action = 3,
@retry_attempts = 5,
@retry_interval = 5
go
-- Add job step (backup log).
USE msdb
EXEC sp_add_jobstep @job_name = 'myTestBackupJob',
@step_name = 'Backup msdb Log',
@subsystem = 'TSQL',
@command = 'BACKUP LOG msdb TO DISK = ''c:\msdb.log_bak''',
@on_success_action = 1,
@retry_attempts = 5,
@retry_interval = 5
go
-- Add the target servers.
USE msdb
EXEC sp_add_jobserver @job_name = 'myTestBackupJob', @server_name = N'(local)'
-- Run job. Starts the job immediately.
USE msdb
EXEC sp_start_job @job_name = 'myTestBackupJob'
Similar Messages
-
Database open fails after online backup recovery
Hi Friends
We are trying to set up an additional server using the online backup of our DEV server. We have been following SAP Note 549828 for the same. Having restored the online backup, the open database failed.
To resolve the same, in accordance to SAP Note 549828, we created a backup control file with success using the command
create controlfile reuse set database DEV resetlogs noarchivelog
However on issuance of the command
RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL
we run into an error as to
ORA-00279: change 794638222 generated at 10/25/2007 12:43:20 needed for thread 1
ORA-00289: suggestion : /oracle/DEV/oraarch/DEVarch1_9766.dbf
ORA-00280: change 794638222 for thread 1 is in sequence #9766
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
ORA-00308: cannot open archived log '/oracle/DEV/oraarch/DEVarch1_9766.dbf'
ORA-27037: unable to obtain file status
SVR4 Error: 2: No such file or directory
Additional information: 3
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/oracle/DEV/sapdata1/system_1/system.data1'
We even manually copied the file system.data1 from the source to the target server but to no avail.
Also the SQL command
SELECT FILE#, CHANGE# FROM V$RECOVER_FILE
displays a different change# for system.data1 while it is showing same number for all other datafiles.
Please advice at the earliest as we are struck. Points awaiting their master.
Regards
Lokesh GuptaSome inputs addition to Erics comments
The problem is you dont have archives ie Offline redo logfiles in correct location.
/oracle/DEV/oraarch/DEVarch1_9766.dbf Here DEVarch1_9766 is archive file which is misssing from location /oracle/DEV/oraarch. To recover DB you need Archives generated during hot backup.
Generally these steps willl give you desired result.
select * from v$logfile;
We normally switch the log files to the number of log groups that exist
alter system switch logfile;
create a Backup directory to hold our hot back datafiles and Archives
When the backup is complete check the backup location to see if all the files are available. We could now either FTP the same to the other system or copy over these files to another location in case of cloning on the same system.
Copy over all the files to their respective filesystems and directories and then edit the file that was created using the backup controlfile to trace. Copy that file to the remote system and edit it accordingly.
check that all the files are in the right location and edit that information in the control file
Once the controlfile is run successfully and you get the statement processed, we can start applying the archive logs that we have moved to the archive log destination directory as per the init<sid>.ora file.
do a recover of the database to its consistent state
recover database using backup controlfile until cancel;
The create control file command only changes the structure of the database and the SID name, the header of the datafiles still hold all the required information. The above command would ask you to input the archive log file names one by one to do recovery or you could choose the AUTO option. Once the recovery process is complete, open the database with the resetlogs option
Regards
Vinod -
Problem in new database creation with the help of online backup
Dear dba's
i am using oracle 11gR2 database in windows server 2003. database is running in ARCHIVE LOG mode.
i have taken an online backup of all datafile,controlfile and spfile.Then i crated folders in all the locations as required for new database.
then i registerd the service of new database named as 'newdb' by
oradim -NEW -SID newdb
then i created a password file manually in 'oracle_home\database' location.
i created a new contolfile named as controlfile_01.ctl. the content of controlfile as follows
STARTUP NOMOUNT
CREATE CONTROLFILE SET DATABASE "NEWDB" NORESETLOGS ARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 (
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\ONLINELOG\O1_MF_1_7FK0XG7B_.LOG',
'D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\NEWDB\ONLINELOG\O1_MF_1_7FK0XHWB_.LOG'
) SIZE 50M,
GROUP 2 (
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\ONLINELOG\O1_MF_2_7FK0XKB8_.LOG',
'D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\NEWDB\ONLINELOG\O1_MF_2_7FK0XM0Z_.LOG'
) SIZE 50M,
GROUP 3 (
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\ONLINELOG\O1_MF_3_7FK0XNOZ_.LOG',
'D:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\NEWDB\ONLINELOG\O1_MF_3_7FK0XOWB_.LOG'
) SIZE 50M
DATAFILE
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_SYSTEM_7FK0SKN0_.DBF',
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_SYSAUX_7FK0SKPG_.DBF',
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_UNDOTBS1_7FK0SKTC_.DBF',
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_USERS_7FK0SKWB_.DBF',
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\DATAFILE\O1_MF_EXAMPLE_7FK0Z5LK_.DBF',
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\MARSH.DBF',
'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\JOMARSH.DBF'
CHARACTER SET AL32UTF8
the control file path was registered in pfile also.
then i brought the database to nomount stage.
the problem is when i try to mount database it shows following error. anyone can help me to over come from this issue????????
SQL> startup pfile='D:\app\Administrator\product\11.1.0\db_1\database\INITnewdb.ora' nomount;
ORACLE instance started.
Total System Global Area 535662592 bytes
Fixed Size 1334380 bytes
Variable Size 301990804 bytes
Database Buffers 226492416 bytes
Redo Buffers 5844992 bytes
SQL> ALTER DATABASE MOUNT;
ALTER DATABASE MOUNT
ERROR at line 1:
ORA-00205: error in identifying control file, check alert log for more info
the alert massage is:
ORA-00210: cannot open the specified control file
ORA-00202: control file: 'D:\APP\ADMINISTRATOR\ORADATA\NEWDB\CONTROLFILE\CONTROLFILE_01.CTL'
ORA-27048: skgfifi: file header information is invalid
OSD-04001: invalid logical block size (OS 1413563730)
Fri Dec 09 13:11:59 2011
Checker run found 1 new persistent data failures
ORA-205 signalled during: ALTER DATABASE MOUNT...
Thanks & Regards,
John Marshal.AHi;
Error: ORA 205
Text: error in identifying control file <name>
Cause: The system could not find a control file of the specified name and
size.
Action: Either
Check that the proper control filename is referenced in the
CONTROL_FILES initialization parameter in the initialization parameter
file and try again.
When using mirrored control files, that is, more than one control file
is referenced in the initialization parameter file, remove the control
filename listed in the message from the initialization parameter file
and restart the instance.
If the message does not recur, remove the problem control file from
the initialization parameter file and create another copy of the
control file with a new filename in the initialization parameter file.
Regard
Helios -
Online Backup Failed from DB13, brbackup runs on application server
Hi Everone,
I am getting problem when i am scheduling Online Backup from DB13 t-code.
Backup gets failed because logical command BRBACKUP execute on our Application server host rather than DBCI server host.
I have pest the lob logs below:
Job started
Step 001 started (program RSDBAJOB, variant &0000000000389, user ID BASIS)
Execute logical command BRBACKUP On host xyzapp - (Application server)
Parameters:-u / -jid ALLOG20110824210000 -c force -t online -m all -p initSEP.sap -a -c force -p initSEP.sap -s
d
BR0051I BRBACKUP 7.00 (40)
BR0252E Function fopen() failed for '/oracle/client/10x_64/instantclient/dbs/initSEP.sap' at location BrInitSapRead-1
BR0253E errno 2: No such file or directory
BR0159E Error reading BR*Tools profile /oracle/client/10x_64/instantclient/dbs/initSEP.sap
BR0280I BRBACKUP time stamp: 2011-09-02 21.01.09
BR0301E SQL error -12545 at location BrDbConnect-2, SQL statement:
'CONNECT /'
ORA-12545: Connect failed because target host or object does not exist
BR0310E Connect to database instance SEP failed
BR0056I End of database backup: begroqyn.log 2011-09-02 21.01.09
BR0280I BRBACKUP time stamp: 2011-09-02 21.01.09
BR0054I BRBACKUP terminated with errors
External program terminated with exit code 3
BRBACKUP returned error status E
Job finished
Please help.
Thanks,
OceanHello
The previous contributor is correct, the profile is usually read from ORACLE_HOME. I have never seen this error linking to the Oracle client directory, please double check the following
Ensure that your envirionment variables are correctly set ORACLE_HOME, DIR_LIBRARY
Brtools are always installed on the DB server and can be called from any application server. if you are scheduling from DB13 on the application server, what is the connection setup? RSH, RFC, standalone gateway?
If using a standalone gateway, it must be installed on the DB server, please refer to oss notes #446172, #1025707
Best Regards
Rachel -
Database online backup issue after ERP 6.0 EHP4 update
Dear Folks!...
I have an issue with ERP 6.0 system with database oracle.
After performing EHP4 update unable to trigger online backup.
Shows bellow error message:
BR0280I BRBACKUP time stamp: 2009-07-10 14.53.10
BR0301E SQL error -1031 at location BrSapTspList-8, SQL statement:
'PREPARE stmt_1 STATEMENT FROM'
'SELECT TABSPACE FROM "SAPSR3".TSORA UNION SELECT INDSPACE FROM "SAPSR3".TSORA ORDER BY 1'
ORA-01031: insufficient privileges
BR0280I BRBACKUP time stamp: 2009-07-10 14.53.10
BR0307I Shutting down database instance RES ...
BR0280I BRBACKUP time stamp: 2009-07-10 14.53.17
BR0308I Shutdown of database instance RES successful
BR0056I End of database backup: beazhkrz.afd 2009-07-10 14.53.10
BR0280I BRBACKUP time stamp: 2009-07-10 14.53.17
BR0054I BRBACKUP terminated with errors
At SAP level check with table TSORA shows current existing tablespaces.And from DB13 able to perform DB actions except backup related.
Could any one suggest to help me to fix the issue.
Thanks in Advance.
Regards,
Venkata.Dear presu
It has been installed on Windows OS 64 bit AMD processor.And related to permissions of the folder was given completely.
Complete log Message:
BR0051I BRBACKUP 7.00 (39) BR0055I Start of database backup: beazhkrz.afd 2009-07-10 14.52.43
BR0484I BRBACKUP log file: G:\oracle\RES\sapbackup\beazhkrz.afd
BR0477I Oracle pfile G:\oracle\RES\102\database\initRES.ora created from spfile G:\oracle\RES\102\database\spfileRES.ora
BR0613I Database instance RES is shut down BR0329I Database instance RES will be opened now BR0280I BRBACKUP time stamp: 2009-07-10 14.52.45 BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRBACKUP: BR0280I BRBACKUP time stamp: 2009-07-10 14.52.49 BR0257I Your reply: 'c' BR0259I Program execution will be continued...
BR0280I BRBACKUP time stamp: 2009-07-10 14.52.49 BR0304I Starting and opening database instance RES ...
BR0280I BRBACKUP time stamp: 2009-07-10 14.53.01 BR0305I Start and open of database instance RES successful
BR0101I Parameters
Name Value
oracle_sid RES
oracle_home G:\oracle\RES\102
oracle_profile G:\oracle\RES\102\database\initRES.ora
sapdata_home G:\oracle\RES
sap_profile G:\oracle\RES\102\database\initRES.sap
backup_mode ALL
backup_type offline
backup_dev_type disk
backup_root_dir Y:\Backup
compress no
disk_copy_cmd copy
cpio_disk_flags -pdcu
exec_parallel 0
system_info resadm RCIHWRES13V Windows 5.2 Build 3790 Service Pack 2 AMD64
oracle_info RES 10.2.0.4.0 8192 8188 87296881 RCIHWRES13V UTF8 UTF8
sap_info 701 SAPSR3 RES TEMPLICENSE R3_ORA INITIAL
make_info NTAMD64 OCI_10201_SHARE Dec 7 2008
command_line G:\usr\sap\RES\DVEBMGS13\exe\brbackup.exe -p initRES.sap -d disk -t offline -m all -k no -e 0 -l E -U
BR0116I ARCHIVE LOG LIST before backup for database instance RES
Parameter Value
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination M:\oracle\RES\oraarch\RESarch
Archive format ARC%S_%R.%T
Oldest online log sequence 8185
Next log sequence to archive 8188
Current log sequence 8188 SCN: 87296881
Database block size 8192 Thread: 1
Current system change number 87304439 ResetId: 689356796
BR0118I Tablespaces and data files
Tablespace TS-Status F-Status File Size Id. Device Link Type MaxSize IncrSize BlkSize
PSAPSR3 ONLINE* ONLINE+ H:\ORACLE\RES\SAPDATA1\SR3_1\SR3.DATA1 2222989312 4 7 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE H:\ORACLE\RES\SAPDATA1\SR3_21\SR3.DATA21 2097160192 48 7 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE H:\ORACLE\RES\SAPDATA1\SR3_22\SR3.DATA22 2097160192 49 7 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE H:\ORACLE\RES\SAPDATA1\SR3_23\SR3.DATA23 2097160192 50 7 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE H:\ORACLE\RES\SAPDATA1\SR3_24\SR3.DATA24 2097160192 58 7 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE H:\ORACLE\RES\SAPDATA1\SR3_25\SR3.DATA25 2097160192 59 7 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE H:\ORACLE\RES\SAPDATA1\SR3_26\SR3.DATA26 2097160192 60 7 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE H:\ORACLE\RES\SAPDATA1\SR3_27\SR3.DATA27 2097160192 61 7 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE H:\ORACLE\RES\SAPDATA1\SR3_28\SR3.DATA28 2097160192 62 7 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE H:\ORACLE\RES\SAPDATA1\SR3_29\SR3.DATA29 2097160192 63 7 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE+ H:\ORACLE\RES\SAPDATA1\SR3_2\SR3.DATA2 2243960832 5 7 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE H:\ORACLE\RES\SAPDATA1\SR3_30\SR3.DATA30 2097160192 64 7 NOLINK FILE 0 0 8192
PSAPSR3 ONLINE* ONLINE+ I:\ORACLE\RES\SAPDATA2\SR3_8\SR3.DATA8 2139103232 11 8 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ I:\ORACLE\RES\SAPDATA2\SR3_9\SR3.DATA9 2432704512 12 8 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ J:\ORACLE\RES\SAPDATA3\SR3_11\SR3.DATA11 2264932352 14 9 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ K:\ORACLE\RES\SAPDATA4\SR3_18\SR3.DATA18 2181046272 21 10 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ K:\ORACLE\RES\SAPDATA4\SR3_19\SR3.DATA19 2181046272 22 10 NOLINK FILE 10485760000 20971520 8192
PSAPSR3 ONLINE* ONLINE+ K:\ORACLE\RES\SAPDATA4\SR3_20\SR3.DATA20 2202017792 23 10 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE+ ONLINE+ H:\ORACLE\RES\SAPDATA1\SR3700_1\SR3700.DATA1 2705334272 24 7 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE+ ONLINE+ H:\ORACLE\RES\SAPDATA1\SR3700_2\SR3700.DATA2 2705334272 25 7 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE+ ONLINE+ H:\ORACLE\RES\SAPDATA1\SR3700_3\SR3700.DATA3 2747277312 26 7 NOLINK FILE 10485760000 20971520 8192
PSAPSR3700 ONLINE+ ONLINE I:\ORACLE\RES\SAPDATA2\SR3700_20\SR3700.DATA20 2147491840 54 8 NOLINK FILE 0 0 8192
PSAPSR3700 ONLINE+ ONLINE J:\ORACLE\RES\SAPDATA3\SR3700_21\SR3700.DATA21 2147491840 55 9 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE H:\ORACLE\RES\SAPDATA1\SR3701_11\SR3701.DATA11 2097160192 72 7 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE H:\ORACLE\RES\SAPDATA1\SR3701_12\SR3701.DATA12 2097160192 73 7 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE I:\ORACLE\RES\SAPDATA2\SR3701_10\SR3701.DATA10 2097160192 71 8 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE I:\ORACLE\RES\SAPDATA2\SR3701_5\SR3701.DATA5 2097160192 66 8 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE I:\ORACLE\RES\SAPDATA2\SR3701_6\SR3701.DATA6 2097160192 67 8 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE I:\ORACLE\RES\SAPDATA2\SR3701_7\SR3701.DATA7 2097160192 68 8 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE I:\ORACLE\RES\SAPDATA2\SR3701_8\SR3701.DATA8 2097160192 69 8 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE I:\ORACLE\RES\SAPDATA2\SR3701_9\SR3701.DATA9 2097160192 70 8 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE K:\ORACLE\RES\SAPDATA4\SR3701_1\SR3701.DATA1 20971528192 44 10 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE L:\ORACLE\RES\SAPDATA5\SR3701_2\SR3701.DATA2 20971528192 45 11 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE L:\ORACLE\RES\SAPDATA5\SR3701_3\SR3701.DATA3 20971528192 46 11 NOLINK FILE 0 0 8192
PSAPSR3701 ONLINE* ONLINE L:\ORACLE\RES\SAPDATA5\SR3701_4\SR3701.DATA4 10485768192 47 11 NOLINK FILE 0 0 8192
PSAPSR3DB ONLINE* ONLINE+ K:\ORACLE\RES\SAPDATA4\SR3DB_1\SR3DB.DATA1 2097160192 41 10 NOLINK FILE 10485760000 20971520 8192
PSAPSR3DB ONLINE* ONLINE+ K:\ORACLE\RES\SAPDATA4\SR3DB_2\SR3DB.DATA2 2097160192 42 10 NOLINK FILE 10485760000 20971520 8192
PSAPSR3DB ONLINE* ONLINE+ K:\ORACLE\RES\SAPDATA4\SR3DB_3\SR3DB.DATA3 1048584192 43 10 NOLINK FILE 10485760000 20971520 8192
PSAPSR3USR ONLINE* ONLINE+ H:\ORACLE\RES\SAPDATA1\SR3USR_1\SR3USR.DATA1 20979712 40 7 NOLINK FILE 10485760000 20971520 8192
PSAPTEMP ONLINE# ONLINE+ I:\ORACLE\RES\SAPDATA2\TEMP_1\TEMP.DATA1 2097160192 -1 8 NOLINK FILE 10485760000 20971520 8192
PSAPUNDO ONLINE- ONLINE+ J:\ORACLE\RES\SAPDATA3\UNDO_1\UNDO.DATA1 8766103552 2 9 NOLINK FILE 10485760000 20971520 8192
SYSAUX ONLINE* ONLINE+ H:\ORACLE\RES\SAPDATA1\SYSAUX_1\SYSAUX.DATA1 251666432 3 7 NOLINK FILE 10485760000 20971520 8192
SYSTEM ONLINE* SYSTEM+ H:\ORACLE\RES\SAPDATA1\SYSTEM_1\SYSTEM.DATA1 1073750016 1 7 NOLINK FILE 10485760000 20971520 8192
BR0119I Redo log files
File Size Group Device Status Link Type
F:\ORACLE\RES\MIRRLOGA\LOG_G11M2.DBF 52429312 1 5 INUSE NOLINK FILE
E:\ORACLE\RES\ORIGLOGA\LOG_G11M1.DBF 52429312 1 4 INUSE NOLINK FILE
F:\ORACLE\RES\MIRRLOGB\LOG_G12M2.DBF 52429312 2 5 INUSE NOLINK FILE
E:\ORACLE\RES\ORIGLOGB\LOG_G12M1.DBF 52429312 2 4 INUSE NOLINK FILE
F:\ORACLE\RES\MIRRLOGA\LOG_G13M2.DBF 52429312 3 5 INUSE NOLINK FILE
E:\ORACLE\RES\ORIGLOGA\LOG_G13M1.DBF 52429312 3 4 INUSE NOLINK FILE
F:\ORACLE\RES\MIRRLOGB\LOG_G14M2.DBF 52429312 4 5 INUSE NOLINK FILE
E:\ORACLE\RES\ORIGLOGB\LOG_G14M1.DBF 52429312 4 4 INUSE NOLINK FILE
BR0120I Control files
File Size Id. Device Link Type
E:\oracle\RES\origlogA\cntrl\cntrlRES.dbf 14106624 0 4 NOLINK FILE
E:\oracle\RES\origlogB\cntrl\cntrlRES.dbf 14106624 0 4 NOLINK FILE
G:\oracle\RES\sapdata1\cntrl\cntrlRES.dbf 14106624 0 6 NOLINK FILE
BR0280I BRBACKUP time stamp: 2009-07-10 14.53.10
BR0301E SQL error -1031 at location BrSapTspList-8, SQL statement:
'PREPARE stmt_1 STATEMENT FROM' 'SELECT TABSPACE FROM "SAPSR3".TSORA UNION SELECT INDSPACE FROM "SAPSR3".TSORA ORDER BY 1'
ORA-01031: insufficient privileges
BR0280I BRBACKUP time stamp: 2009-07-10 14.53.10 BR0307I Shutting down database instance RES ...
BR0280I BRBACKUP time stamp: 2009-07-10 14.53.17 BR0308I Shutdown of database instance RES successful
BR0056I End of database backup: beazhkrz.afd 2009-07-10 14.53.10 BR0280I BRBACKUP time stamp: 2009-07-10 14.53.17
BR0054I BRBACKUP terminated with errors
Regards,
Venkata. -
Actions to be performed after a online backup restore
Hello Guru's,
I have an online backup of a system.
(AIX - ORACLE)
If I restore the backup using Tivoli Storage Manager I still have to perform some actions to recover the database.
I have read through the SAP documentation and it seems I can restore the logs using brtools (brrecover).
My questions actually is, which option do I have to take if I want to apply the offline archive logs as far as possible ?
"Complete database recovery" of "database point in time recovery" ?
I want to make sure that only the archivelogs are being applied and that the database restore is not peformed again.
Thank you all !
bye
BUDHello Hans,
> and it seems I can restore the logs using brtools (brrecover).
If you only want to restore your archivelogs, then use brrestore.
brrecover is for recovering the database, not for restoring.
Take a look at here:
http://help.sap.com/saphelp_nw04/helpdata/en/88/cadaca94734ae5b8ea3491f615741b/content.htm
and here:
http://help.sap.com/saphelp_nw04/helpdata/en/0d/d3077b4a0c11d182b80000e829fbfe/content.htm
> My questions actually is, which option do I have to take if I want to apply the offline archive logs as far as possible ?
> "Complete database recovery" of "database point in time recovery" ?
In this case you have to do an incomplete database recovery or in other words called "point in time recovery". For the difference between these two restore types take a look at the oracle documentation:
http://download-uk.oracle.com/docs/cd/B19306_01/backup.102/b14192/intro004.htm#i1016863
After you have restored your archive logs you can perform the recovery manually:
> SQL> recover database using backup controlfile until cancel;
> SQL> cancel;
> SQL> alter database open resetlogs;
Btw.as you are using TDP for SAP you can use backfm to restore only some several files.
Regards
Stefan -
Hi gurus!!!
I got into a problem with some datafiles.
We have MySAP in a BD oracle 9.2.0.6
I used Oracle Entreprise Manager Console to generate two datafiles in the tablespace PSAPPRDUSR,
but I generated them in another tablesapce (PSAPPRD) with a name of file,
size and location very different from those that there uses the tablespace PSAPPRD.
<b>So... I put them offline later to erase them later!!!</b>
<b>The datafiles contains no data.</b>
<b>Later, in the night backup:</b>
BR0334W Status of database file /oracle/PRD/sapdata4/prdusr_2/prdusr.data2 is RECOVER
BR0334W Status of database file /oracle/PRD/sapdata4/prdusr_2/prdusr.data2a is RECOVER
BR0301E SQL error -1128 at location BrTspAlter-3
ORA-01128: cannot start online backup - file 31 is offline
ORA-01110: data file 31: '/oracle/PRD/sapdata4/prdusr_2/prdusr.data2'
BR0280I BRBACKUP time stamp: 2007-04-20 03.01.21
BR0316E 'Alter tablespace PSAPPRD begin backup' failed
BR0056I End of database backup: bdvbtndh.ant 2007-04-20 03.01.21
<b>
And now... I neither can erase them nor can put online again.</b>
<b>To erase them I used:</b>
SQL> ALTER DATABASE DATAFILE '/oracle/PRD/sapdata4/prdusr_2/prdusr.data2' OFFLINE DROP;
Database altered.
SQL> commit;
But they continue there, do not resign.
<b>To put them online:</b>
SQL> alter database recover datafile '/oracle/PRD/sapdata4/prdusr_2/prdusr.data2';
alter database recover datafile '/oracle/PRD/sapdata4/prdusr_2/prdusr.data2'
ERROR at line 1:
ORA-00279: change 31203204 generated at 04/19/2007 19:30:11 needed for thread 1
ORA-00289: suggestion : /oracle/PRD/oraarch/PRDarch1_2574.dbf
ORA-00280: change 31203204 for thread 1 is in sequence #2574
SQL>
<b>But we have continued working and I don't want to lose any data.</b>
HEEEELP!!!!
What I can do to recover the datafiles and to continue with my daily Online backups?
The BD is in production and I do not have long time to fix it, only a few hours on Saturdays night.Hi,
alter database datafile offline drop;
This command is not meant to drop a datafile. It is meant to offline the datafile with the intention of dropping the tablespace.
For a tablespace comprising multiple datafiles you can only drop a datafile by dropping the entire tablespace, this will work even you have one datafile.
If you have 10gr2, it's finally possible to drop a datafile as long as
it's not the only datafile within the tablespace, and
the tablespace is only and in read-write status.
So since you are on 9i your situation in summary:
If you have more than one datafile in the tablespace and you wish to keep the objects that reside in the other datafile(s) which are part of this tablespace, then you must export all the objects inside the tablespace.
1. Gather information on the current datafiles within the tablespace by running some query to remember the t/s, segment, and datafile info.
2. Export all the objects that you wish to keep.
3. Once the export is done, issue the DROP TABLESPACE <tablespace name> INCLUDING CONTENTS.
4. Delete the datafiles belonging to this tablespace using the operating system.
5. Recreate the tablespace with the datafile(s) desired, then import the objects into that tablespace.
Hope this helps and good luck,
George -
Status of online redo log file INVALID warning appears during online backup
Hi All,
I have a peculiar problem in one of the SAP ECC 6.0 systems. The daily online backup is getting completed with warnings.
Please find below the warnings in DB12 logs:
BR0335W Status of online redo log file /oracle/AS0/mirrlogB/log_g18m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogB/log_g18m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogA/log_g50_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogA/log_g50_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogB/log_g51_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogB/log_g51_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogA/log_g52_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogA/log_g52_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogA/log_g53_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogA/log_g53_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogA/log_g54_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogA/log_g54_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogA/log_g55_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogA/log_g55_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogA/log_g56_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogA/log_g56_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogB/log_g57_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogB/log_g57_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogA/log_g58_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogA/log_g58_m2.dbf' not found
BR0335W Status of online redo log file /oracle/AS0/mirrlogB/log_g59_m2.dbf is INVALID
BR0274W File '/oracle/AS0/mirrlogB/log_g59_m2.dbf' not found
For the above mentioned alerts I followed the recommendations of SAP Note 491160. I dropped and recreated the mirrorlog files. But the next day again when I checked the backup it finished with warnings. At the database level there is no problem
SQL> select * from v$logfile;
GROUP# STATUS TYPE
MEMBER
IS_
59 ONLINE
/oracle/AS0/origlogB/log_g59_m1.dbf
NO
59 ONLINE
/oracle/AS0/mirrlogB/log_g59_m2.dbf
NO
GROUP# STATUS TYPE
MEMBER
IS_
58 ONLINE
/oracle/AS0/origlogA/log_g58_m1.dbf
NO
58 ONLINE
/oracle/AS0/mirrlogA/log_g58_m2.dbf
GROUP# STATUS TYPE
MEMBER
IS_
NO
57 ONLINE
/oracle/AS0/origlogB/log_g57_m1.dbf
NO
57 ONLINE
GROUP# STATUS TYPE
MEMBER
IS_
/oracle/AS0/mirrlogB/log_g57_m2.dbf
NO
56 ONLINE
/oracle/AS0/origlogA/log_g56_m1.dbf
NO
GROUP# STATUS TYPE
MEMBER
IS_
56 ONLINE
/oracle/AS0/mirrlogA/log_g56_m2.dbf
NO
55 ONLINE
/oracle/AS0/origlogA/log_g55_m1.dbf
NO
54 ONLINE
/oracle/AS0/origlogA/log_g54_m1.dbf
GROUP# STATUS TYPE
MEMBER
IS_
NO
54 ONLINE
/oracle/AS0/mirrlogA/log_g54_m2.dbf
NO
53 ONLINE
GROUP# STATUS TYPE
MEMBER
IS_
/oracle/AS0/origlogA/log_g53_m1.dbf
NO
53 ONLINE
/oracle/AS0/mirrlogA/log_g53_m2.dbf
NO
GROUP# STATUS TYPE
MEMBER
IS_
52 ONLINE
/oracle/AS0/origlogA/log_g52_m1.dbf
NO
52 ONLINE
/oracle/AS0/mirrlogA/log_g52_m2.dbf
NO
GROUP# STATUS TYPE
MEMBER
IS_
51 ONLINE
/oracle/AS0/origlogB/log_g51_m1.dbf
NO
51 ONLINE
/oracle/AS0/mirrlogB/log_g51_m2.dbf
GROUP# STATUS TYPE
MEMBER
IS_
NO
50 ONLINE
/oracle/AS0/origlogA/log_g50_m1.dbf
NO
50 ONLINE
GROUP# STATUS TYPE
MEMBER
IS_
/oracle/AS0/mirrlogA/log_g50_m2.dbf
NO
8 ONLINE
/oracle/AS0/origlogB/log_g18m1.dbf
As you can see from the above output at the database level everything is fine. So why during backup it is giving me warnings in DB12. Any help with this regard will be appreciated.
Regards
Mitesh NairHi Joe,
My OS is HP-UX. I dont think its a permission problem. Please find below the contents of origlogA and mirrlogA
predbci2:/oracle/AS0/origlogA#ls -rtl
total 1433712
drwxrwxrwx 2 oraas0 dba 96 Oct 15 03:27 cntrl
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 01:50 log_g52_m1.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 03:51 log_g50_m1.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 05:51 log_g54_m1.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 07:52 log_g53_m1.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 09:50 log_g55_m1.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 10:50 log_g56_m1.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 12:41 log_g58_m1.dbf
predbci2:/oracle/AS0/mirrlogA#ls -rtl
total 1433728
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 01:50 log_g52_m2.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 03:51 log_g50_m2.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 05:51 log_g54_m2.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 07:52 log_g53_m2.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 09:50 log_g55_m2.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 10:50 log_g56_m2.dbf
-rw-rw---- 1 oraas0 dba 104858624 Dec 4 12:41 log_g58_m2.dbf
Regards
Mitesh -
Online backup given error while using brtools
Hello mates,
I am working on EP60,IBM-AIX, Oracle platform and tried to take online backup using brtools(triggering first time) but giving the below error:
BR0051I BRBACKUP 7.00 (24)
BR0055I Start of database backup: bdzqsemh.and 2009-01-08 16.35.35
BR0484I BRBACKUP log file: /oracle/EPP/sapbackup/bdzqsemh.and
BR0477I Oracle pfile /oracle/EPP/102_64/dbs/initEPP.ora created from spfile /oracle/EPP/102_64/dbs/spfileEPP.ora
BR0280I BRBACKUP time stamp: 2009-01-08 16.35.39
BR0301W SQL error -1031 at location BrbDbLogOpen-5, SQL statement:
'INSERT INTO SAP_SDBAH (BEG, FUNCT, SYSID, OBJ, RC, ENDE, ACTID, LINE) VALUES ('20090108163535', 'and', 'EPP', ' ', '9999'
, ' ', 'bdzqsemh', '# 0 0 0 0 0 0 0 ALL online
disk ---k-c 7.00 (24)')'
ORA-01031: insufficient privileges
BR0324W Insertion of database log header failed
BR0280I BRBACKUP time stamp: 2009-01-08 16.35.40
BR0319I Control file copy created: /oracle/EPP/sapbackup/cntrlEPP.dbf 7397376
BR0280I BRBACKUP time stamp: 2009-01-08 16.35.41
BR0301W SQL error -1031 at location BrDbfInfoGet-32, SQL statement:
'DELETE FROM SAP_SDBAH WHERE BEG > '10000000000000' AND BEG < '20071205000000''
ORA-01031: insufficient privileges
BR0280I BRBACKUP time stamp: 2009-01-08 16.35.41
BR0301W SQL error -1031 at location BrDbfInfoGet-33, SQL statement:
'DELETE FROM SAP_SDBAD WHERE BEG > '10000000000000' AND BEG < '20071205000000''
ORA-01031: insufficient privileges
BR0280I BRBACKUP time stamp: 2009-01-08 16.35.41
BR0301E SQL error -1031 at location BrComprDurGet-1, SQL statement:
'OPEN curs_6 CURSOR FOR'
'SELECT FUNCT, POS, LINE FROM SAP_SDBAD WHERE BEG = '00000000000001' AND (FUNCT = 'CMP' OR FUNCT = 'CMP' OR FUNCT = 'DCS'
OR FUNCT = 'DCM') ORDER BY FUNCT'
ORA-01031: insufficient privileges
BR0314E Collection of information on database files failed
BR0280I BRBACKUP time stamp: 2009-01-08 16.35.41
BR0301W SQL error -1031 at location BrbDbLogOpen-5, SQL statement:
'INSERT INTO SAP_SDBAH (BEG, FUNCT, SYSID, OBJ, RC, ENDE, ACTID, LINE) VALUES ('20090108163535', 'and', 'EPP', ' ', '9999'
, ' ', 'bdzqsemh', '7.00 (24)')'
ORA-01031: insufficient privileges
BR0324W Insertion of database log header failed
BR0056I End of database backup: bdzqsemh.and 2009-01-08 16.35.41
BR0280I BRBACKUP time stamp: 2009-01-08 16.35.41
BR0054I BRBACKUP terminated with errors
Please suggest to correcdt it.
Regards,
AMS TeamI checked the initSID.sap file and changed the backuptype to online and from tape to disk but still same error:
BR0280I BRTOOLS time stamp: 2009-01-09 15.21.44
BR0657I Input menu 15 - please check/enter input values
BRBACKUP main options for backup and database copy
1 - BRBACKUP profile (profile) ....... [initEPP.sap]
2 - Backup device type (device) ...... [tape]
3 ~ Tape volumes for backup (volume) . []
4 # BACKINT/Mount profile (parfile) .. []
5 - Database user/password (user) .... [/]
6 - Backup type (type) ............... [offline]
7 - Disk backup for backup (backup) .. [no]
8 # Delete disk backup (delete) ...... [no]
9 ~ Files for backup (mode) .......... [all]
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
BR0662I Enter your choice:
2
BR0280I BRTOOLS time stamp: 2009-01-09 15.21.47
BR0663I Your choice: '2'
BR0280I BRTOOLS time stamp: 2009-01-09 15.21.47
BR0681I Enter string value for "device" (tape|tape_auto|tape_box|pipe|pipe_auto|pipe_box|disk|stage|util_file|util_file_on
line|rman_util|rman_disk|rman_stage) [tape]:
disk
BR0280I BRTOOLS time stamp: 2009-01-09 15.21.49
BR0683I New value for "device": 'disk'
BR0280I BRTOOLS time stamp: 2009-01-09 15.21.49
BR0657I Input menu 15 - please check/enter input values
BRBACKUP main options for backup and database copy
1 - BRBACKUP profile (profile) ....... [initEPP.sap]
2 - Backup device type (device) ...... [disk]
3 # Tape volumes for backup (volume) . []
4 # BACKINT/Mount profile (parfile) .. []
5 - Database user/password (user) .... [/]
6 - Backup type (type) ............... [offline]
7 # Disk backup for backup (backup) .. [no]
8 # Delete disk backup (delete) ...... [no]
9 ~ Files for backup (mode) .......... [all]
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
BR0662I Enter your choice:
6
BR0280I BRTOOLS time stamp: 2009-01-09 15.21.52
BR0663I Your choice: '6'
BR0280I BRTOOLS time stamp: 2009-01-09 15.21.52
BR0681I Enter string value for "type" (offline|offline_force|offline_standby|offline_split|offline_mirror|offline_stop|onl
ine|online_cons|online_split|online_mirror|online_standby|offstby_split|offstby_mirror) [offline]:
online
BR0280I BRTOOLS time stamp: 2009-01-09 15.21.55
BR0683I New value for "type": 'online'
BR0280I BRTOOLS time stamp: 2009-01-09 15.21.55
BR0657I Input menu 15 - please check/enter input values
BRBACKUP main options for backup and database copy
1 - BRBACKUP profile (profile) ....... [initEPP.sap]
2 - Backup device type (device) ...... [disk]
3 # Tape volumes for backup (volume) . []
4 # BACKINT/Mount profile (parfile) .. []
5 - Database user/password (user) .... [/]
6 - Backup type (type) ............... [online]
7 # Disk backup for backup (backup) .. [no]
8 # Delete disk backup (delete) ...... [no]
9 ~ Files for backup (mode) .......... [all]
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
BR0662I Enter your choice:
c
BR0280I BRTOOLS time stamp: 2009-01-09 15.21.57
BR0663I Your choice: 'c'
BR0259I Program execution will be continued...
BR0280I BRTOOLS time stamp: 2009-01-09 15.21.57
BR0657I Input menu 16 - please check/enter input values
Additional BRBACKUP options for backup and database copy
1 - Confirmation mode (confirm) ....... [yes]
2 - Query mode (query) ................ [no]
3 - Compression mode (compress) ....... [no]
4 - Verification mode (verify) ........ [no]
5 - Fill-up previous backups (fillup) . [no]
6 - Parallel execution (execute) ...... [0]
7 - Additional output (output) ........ [no]
8 - Message language (language) ....... [E]
9 - BRBACKUP command line (command) ... [-p initEPP.sap -d disk -t online -m all -k no -e 0 -l E]
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
BR0662I Enter your choice:
3
BR0280I BRTOOLS time stamp: 2009-01-09 15.21.59
BR0663I Your choice: '3'
BR0280I BRTOOLS time stamp: 2009-01-09 15.21.59
BR0681I Enter string value for "compress" (no|yes|hardware) [no]:
yes
BR0280I BRTOOLS time stamp: 2009-01-09 15.22.01
BR0683I New value for "compress": 'yes'
BR0280I BRTOOLS time stamp: 2009-01-09 15.22.01
BR0657I Input menu 16 - please check/enter input values
Additional BRBACKUP options for backup and database copy
1 - Confirmation mode (confirm) ....... [yes]
2 - Query mode (query) ................ [no]
3 - Compression mode (compress) ....... [yes]
4 - Verification mode (verify) ........ [no]
5 - Fill-up previous backups (fillup) . [no]
6 - Parallel execution (execute) ...... [0]
7 - Additional output (output) ........ [no]
8 - Message language (language) ....... [E]
9 - BRBACKUP command line (command) ... [-p initEPP.sap -d disk -t online -m all -k yes -e 0 -l E]
Standard keys: c - cont, b - back, s - stop, r - refr, h - help
BR0662I Enter your choice:
c
BR0280I BRTOOLS time stamp: 2009-01-09 15.22.40
BR0663I Your choice: 'c'
BR0259I Program execution will be continued...
BR0291I BRBACKUP will be started with options '-p initEPP.sap -d disk -t online -m all -k yes -e 0 -l E'
BR0280I BRTOOLS time stamp: 2009-01-09 15.22.40
BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:
c
BR0280I BRTOOLS time stamp: 2009-01-09 15.23.55
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
BR0051I BRBACKUP 7.00 (24)
BR0055I Start of database backup: bdzqwvxz.and 2009-01-09 15.23.55
BR0484I BRBACKUP log file: /oracle/EPP/sapbackup/bdzqwvxz.and
BR0477I Oracle pfile /oracle/EPP/102_64/dbs/initEPP.ora created from spfile /oracle/EPP/102_64/dbs/spfileEPP.ora
BR0280I BRBACKUP time stamp: 2009-01-09 15.23.55
BR0301W SQL error -1031 at location BrbDbLogOpen-5, SQL statement:
'INSERT INTO SAP_SDBAH (BEG, FUNCT, SYSID, OBJ, RC, ENDE, ACTID, LINE) VALUES ('20090109152355', 'and', 'EPP', ' ', '9999'
, ' ', 'bdzqwvxz', '# 0 0 0 0 0 0 0 ALL online
disk ---k-c 7.00 (24)')'
ORA-01031: insufficient privileges
BR0324W Insertion of database log header failed
BR0280I BRBACKUP time stamp: 2009-01-09 15.23.55
BR0319I Control file copy created: /oracle/EPP/sapbackup/cntrlEPP.dbf 7397376
BR0280I BRBACKUP time stamp: 2009-01-09 15.23.55
BR0301W SQL error -1031 at location BrDbfInfoGet-32, SQL statement:
'DELETE FROM SAP_SDBAH WHERE BEG > '10000000000000' AND BEG < '20071206000000''
ORA-01031: insufficient privileges
BR0280I BRBACKUP time stamp: 2009-01-09 15.23.55
BR0301W SQL error -1031 at location BrDbfInfoGet-33, SQL statement:
'DELETE FROM SAP_SDBAD WHERE BEG > '10000000000000' AND BEG < '20071206000000''
ORA-01031: insufficient privileges
BR0280I BRBACKUP time stamp: 2009-01-09 15.23.55
BR0301E SQL error -1031 at location BrComprDurGet-1, SQL statement:
'OPEN curs_6 CURSOR FOR'
'SELECT FUNCT, POS, LINE FROM SAP_SDBAD WHERE BEG = '00000000000001' AND (FUNCT = 'CMP' OR FUNCT = 'CMP' OR FUNCT = 'DCS'
OR FUNCT = 'DCM') ORDER BY FUNCT'
ORA-01031: insufficient privileges
BR0314E Collection of information on database files failed
BR0280I BRBACKUP time stamp: 2009-01-09 15.23.55
BR0301W SQL error -1031 at location BrbDbLogOpen-5, SQL statement:
'INSERT INTO SAP_SDBAH (BEG, FUNCT, SYSID, OBJ, RC, ENDE, ACTID, LINE) VALUES ('20090109152355', 'and', 'EPP', ' ', '9999'
, ' ', 'bdzqwvxz', '7.00 (24)')'
ORA-01031: insufficient privileges
BR0324W Insertion of database log header failed
BR0056I End of database backup: bdzqwvxz.and 2009-01-09 15.23.55
BR0280I BRBACKUP time stamp: 2009-01-09 15.23.55
BR0054I BRBACKUP terminated with errors
BR0292I Execution of BRBACKUP finished with return code 3
BR0668I Warnings or errors occurred - you can continue to ignore them or go back to repeat the last action
BR0280I BRTOOLS time stamp: 2009-01-09 15.23.55
BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort: -
Online Backup Recovery Error-1033
Hi,
1.I took a successful Online Backup for Net Weaver Sytem through DB13 Functionality.
2.Database is Oracle .
3.When I try to Restore the Backup through BRTOOLS on the Server ,It gives SQL Error 1033.
Pl. find the enclosed Error Details:
Starting user session: OCISessionBegin(con=0, usr='SAPSR3', svc=152820D0, srv=152822D0, usr=15291560)
C OCISessionBegin(OCI_DEFAULT) failed with SQL error 1033:
C ORA-01033: ORACLE initialization or shutdown in progress
C Server handle (con=0,svchp=152820D0,srvhp=152822D0) detached
C *** ERROR => CONNECT failed with sql error '1033'
B ***LOG BV3=> severe db error 1033 ; work process is stopped
B ***LOG BY2=> sql error 1033 performing CON
B ***LOG BY0=> ORA-01033: ORACLE initialization or shutdown in progress
M ***LOG R19=> ThInit, db_connect ( DB-Connect 000256)
M in_ThErrHandle: 1
M *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1)
Ive already Consulted the Notes 655240 & 556232 for Solution. But, the problem still persist.
Please provide some Input for the same .
Regards,
Nimish BhatnagarHi Nimish,
Check out OSS note 35278, 445038 and 400241.
Can you please check
R3trans -d and get the log of trans.log
remove any old trans.log if you have any at that location.
if that doen't help try R3trans -x and get the log. Both write the log in file trans.log
Try the command "recover database".
Regards,
Deepanshu Sharma -
Online backup without PSAPTEMP
Hello,
one question, i have recover a database 10.2.0.2 from a online backup.
before i have delete all files in the sapdata's.
the database and the sap-system runs well.
now i became this error:
orasms> brbackup -q
BR0051I BRBACKUP 7.00 (18)
BR0055I Start of database backup: bdvwpovw.qub 2007-08-08 16.29.28
BR0477I Oracle pfile /oracle/SMS/102_64/dbs/initSMS.ora created from spfile /oracle/SMS/102_64/dbs/spfileSMS.ora
BR0280I BRBACKUP time stamp: 2007-08-08 16.29.29
BR0301E SQL error -1187 at location BrDbfInfoGet-1, SQL statement:
'OPEN curs_3 CURSOR FOR'
'SELECT TS.TABLESPACE_NAME, TS.STATUS, TS.BLOCK_SIZE, TS.CONTENTS, TS.EXTENT_MANAGEMENT, DF.FILE_NAME, DF.FILE_ID, NVL(DF.STATUS, ' '), NVL(DF.BYTES, 0), NVL(DF.AUTOEXTENSIBLE, 'NO'), NVL(DF.MAXBYTES, 0), NVL(DF.INCREMENT_BY, 0) FROM DBA_TABLESPACES TS, DBA_DATA_FILES DF WHERE TS.TABLESPACE_NAME = DF.TABLESPACE_NAME UNION ALL SELECT TS.TABLESPACE_NAME, TS.STATUS, TS.BLOCK_SIZE, TS.CONTENTS, TS.EXTENT_MANAGEMENT, TF.FILE_NAME, TF.FILE_ID * -1, NVL(TF.STATUS, ' '), NVL(TF.BYTES, 0), NVL(TF.AUTOEXTENSIBLE, 'NO'), NVL(TF.MAXBYTES, 0), NVL(TF.INCREMENT_BY, 0) FROM DBA_TABLESPACES TS, DBA_TEMP_FILES TF WHERE TS.TABLESPACE_NAME = TF.TABLESPACE_NAME ORDER BY 1, 6'
ORA-01187: cannot read from file 255 because it failed verification tests
ORA-01110: data file 255: '/oracle/SMS/sapdata1/temp_1/temp.data1'
BR0314E Collection of information on database files failed
BR0056I End of database backup: bdvwpovw.qub 2007-08-08 16.29.29
BR0280I BRBACKUP time stamp: 2007-08-08 16.29.29
BR0054I BRBACKUP terminated with errors
orasms>
the file oracle/SMS/sapdata1/temp_1/temp.data1 come not with the online-backup.
in my other systems with oracle 9.2. i find the psaptemp in the protocol from online-backup. is this new with oracle 10... ?? how can i create the tablespace psaptemp ?
Thanks !most probably PSAPTEMP is now temporary locally managed. If this is the case, it is not backed up with brbackup and you must create it's datafile. Check in the backup controlfile to know how to create them:
sqlplus / as sysdba
ALTER DATABASE BACKUP CONTROLFILE TO TRACE AS '/oracle/SMS/CONTROLFILE_TRACE.txt' reuse;
exit
then, add the temp datafile such as :
ALTER TABLESPACE PSAPTEMP ADD TEMPFILE '/oracle/SMS/sapdata1/TEMP_1/TEMP.DATA1' SIZE 20704M REUSE AUTOEXTEND ON NEXT 67108864 MAXSIZE 24000M;
good luck -
Online backup by DB13 ended with error not by BRTOOLS
Dear Friends,
I am trying to take online backup by DB13 of my CRM Dev system but it is ended with error , but when i check in SM37 it show finished.
By using BRTOOLS it work proparly but not by DB13.
Other Details :-
OS :- Win 2003 server
DB :- Oracle 10g
error message is :-
Detail log: bdxbnwwr.ant
BR0051I BRBACKUP 7.00 (26)
BR0055I Start of database backup: bdxbnwwr.ant 2008-01-19 10.48.21
BR0484I BRBACKUP log file: F:\oracle\CD1\sapbackup\bdxbnwwr.ant
BR0252W Function remove() failed for 'f:\oracle\cd1\102\database\sap.ora' at location BrInitOraCreate-1
BR0253W errno 13: Permission denied
BR0252W Function remove() failed for 'f:\oracle\cd1\102\database\sap.ora' at location BrInitOraCopy-7
BR0253W errno 13: Permission denied
BR0166I Parameter 'control_files' not found in file f:\oracle\cd1\102\database\initCD1.ora - default assumed
BR0252E Function CreateFile() failed for 'G:\ORACLE\CD1\SAPDATA3\TEMP_1\TEMP.DATA1' at location BrFileStatGet-2
BR0253E errno 5: Access is denied.
BR0273E Determination of file status for G:\ORACLE\CD1\SAPDATA3\TEMP_1\TEMP.DATA1 failed
BR0314E Collection of information on database files failed
BR0056I End of database backup: bdxbnwwr.ant 2008-01-19 10.48.45
BR0280I BRBACKUP time stamp: 2008-01-19 10.48.45
BR0054I BRBACKUP terminated with errors
So please help on this issue and reply ASAP.
Thanks,
Regards,
Sachin Jadhav
BASISHello Friends,
I m facing one problem while taking backup form db13. can sombuddy help me to solve this problem following is the log file details
Job started
Step 001 started (program RSDBAJOB, variant &0000000000011, user ID BASIS)
Execute logical command BRBACKUP On host eccqa
Parameters:-u / -jid FLLOG20081015143102 -c force -t online -m full -p initIEQ.sap.wed -a -c force -p initIEQ.s
ap.wed -s
BR0051I BRBACKUP 7.00 (32)
BR0055I Start of database backup: bdzapxni.fnd 2008-10-15 14.31.02
BR0484I BRBACKUP log file: /oracle/IEQ/sapbackup/bdzapxni.fnd
BR0280I BRBACKUP time stamp: 2008-10-15 14.31.02
BR0301E SQL error -27140 at location BrDbConnect-2, SQL statement:
'CONNECT /'
ORA-27140: attach to post/wait facility failed
BR0310E Connect to database instance IEQ failed
BR0280I BRBACKUP time stamp: 2008-10-15 14.31.02
BR0301E SQL error -27140 at location BrDbConnect-2, SQL statement:
'CONNECT /'
ORA-27140: attach to post/wait facility failed
BR0310E Connect to database instance IEQ failed
BR0056I End of database backup: bdzapxni.fnd 2008-10-15 14.31.02
BR0280I BRBACKUP time stamp: 2008-10-15 14.31.02
BR0054I BRBACKUP terminated with errors
BR0280I BRBACKUP time stamp: 2008-10-15 14.31.02
BR0291I BRARCHIVE will be started with options '-U -jid FLLOG20081015143102 -d disk -c force -p initIEQ.sap.wed -s'
BR0002I BRARCHIVE 7.00 (32)
BR0006I Start of offline redo log processing: adzapxni.sve 2008-10-15 14.31.02
BR0484I BRARCHIVE log file: /oracle/IEQ/saparch/adzapxni.sve
BR0280I BRARCHIVE time stamp: 2008-10-15 14.31.02
BR0301W SQL error -27140 at location BrDbConnect-2, SQL statement:
'CONNECT /'
ORA-27140: attach to post/wait facility failed
BR0310W Connect to database instance IEQ failed
BR0280I BRARCHIVE time stamp: 2008-10-15 14.31.02
BR0301W SQL error -27140 at location BrDbConnect-2, SQL statement:
'CONNECT /'
ORA-27140: attach to post/wait facility failed
BR0310W Connect to database instance IEQ failed
BR0278W Command output of '/oracle/IEQ/102_64/bin/sqlplus /nolog < /oracle/IEQ/saparch/.adzapxni.spi':
SQL*Plus: Release 10.2.0.2.0 - Production on Wed Oct 15 14:31:02 2008
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
SQL> Connected to an idle instance.
SQL>
SQL> ORA-01034: ORACLE not available
SQL> Disconnected
BR0280I BRARCHIVE time stamp: 2008-10-15 14.31.02
BR0279W Return code from '/oracle/IEQ/102_64/bin/sqlplus /nolog < /oracle/IEQ/saparch/.adzapxni.spi': 0
BR0302W SQLPLUS call for database instance IEQ failed
BR0323W 'Archive log list' for database instance IEQ failed
BR0252E Function fopen() failed for '/oracle/IEQ/saparch/archIEQ.log' at location arch_last_get-1
BR0253E errno 13: Permission denied
BR0016I 0 offline redo log files processed, totalsize 0.000 MB
BR0280I BRARCHIVE time stamp: 2008-10-15 14.31.02
BR0301W SQL error -27140 at location BrDbConnect-2, SQL statement:
'CONNECT /'
ORA-27140: attach to post/wait facility failed
BR0310W Connect to database instance IEQ failed
BR0252W Function fopen() failed for '/oracle/IEQ/saparch/archIEQ.log' at location BrCleanup-8
BR0253W errno 13: Permission denied
BR0121W Processing of log file /oracle/IEQ/saparch/archIEQ.log failed
BR0007I End of offline redo log processing: adzapxni.sve 2008-10-15 14.31.02
BR0280I BRARCHIVE time stamp: 2008-10-15 14.31.02
BR0005I BRARCHIVE terminated with errors
BR0280I BRBACKUP time stamp: 2008-10-15 14.31.02
BR0292I Execution of BRARCHIVE finished with return code 3
External program terminated with exit code 3
BRBACKUP returned error status E
Job finished
it showing me above messege every time ..
Thanks
Vijay -
DB Check and Online Backup failed
Hi!
I would like to execute DB check, DB online backup and other db relevant actions.
Unfortunately when I schedule and execute DB check from tcode DB13 I get the following error:
BR0801I BRCONNECT 7.00 (38)
BR0805I Start of BRCONNECT processing: ceafbnrz.chk 2009-03-25 10.53.35
BR0484I BRCONNECT log file: F:oracleSC3sapcheckceafbnrz.chk
BR0280I BRCONNECT time stamp: 2009-03-25 10.53.36
BR0301E SQL error -1012 at location db_connect-5, SQL statement:
'SELECT NAME FROM V$DATABASE WHERE ROWNUM = 1'
ORA-01012: not logged on
BR0310E Connect to database instance SC3 failed
BR0280I BRCONNECT time stamp: 2009-03-25 10.53.36
BR0301E SQL error -1012 at location db_connect-5, SQL statement:
'SELECT NAME FROM V$DATABASE WHERE ROWNUM = 1'
ORA-01012: not logged on
BR0310E Connect to database instance SC3 failed
BR0806I End of BRCONNECT processing: ceafbnrz.chk 2009-03-25 10.53.36
BR0280I BRCONNECT time stamp: 2009-03-25 10.53.36
BR0804I BRCONNECT terminated with errors
When I try to execute online backup with BRARCHIVE I get the following error:
BR0051I BRBACKUP 7.00 (38)
BR0055I Start of database backup: beafcicl.and 2009-03-25 14.43.27
BR0484I BRBACKUP log file: F:oracleSC3sapbackup eafcicl.and
BR0071E BRBACKUP currently running or was killed
BR0072I Please delete file F:oracleSC3sapbackup.lock.brb if BRBACKUP was killed
BR0073E Setting of BRBACKUP lock failed
BR0056I End of database backup: beafcicl.and 2009-03-25 14.43.27
BR0280I BRBACKUP time stamp: 2009-03-25 14.43.28
BR0054I BRBACKUP terminated with errors
Can some one tell me how to solve this problem?
Thank you very much!
regards
Jürgen> The content of the file alert<sid>.log
> Wed Mar 25 17:13:46 2009
> Errors in file f:\oracle\sc3\saptrace\usertrace\sc3_ora_1488.trc:
> ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [_opiosq076] [PC:0x10565AC] [ADDR:0x46] [UNABLE_TO_READ] []+
This doesn't look good
Are you running the latest patchset and interim patch? Some ORA-07445 were fixed with the patches.
Markus -
Problems with Pcd Content after restore EP Portal with online Backup
Dear Colleagues,
We have problems to show Pcd Content (Browse and Search) of the Content Administration tab of the EP Portal after restore with a online Backup during Disaster Recovery Test.
Restore has become on a mirror system of Production environment. Ours EP Portal is a cluster system with the following configuration:
Production landscape:
Node 1
Disk K:\ SAP SCS directory. (Clustered)
Disk E:\ SAP Central Instance directory (Local)
Node 2
Disk E:\ SAP Dialogue Instance directory (Local)
Disk M:\ SQL Datafiles. (Clustered)
Disk L:\ SQL Logfiles. (Clustered)
Disaster Recovery landscape:
Only a Node
Disk K:\ SAP SCS directory. (Clustered)
Disk E:\ SAP Central Instance directory (Local)
Disk M:\ SQL Datafiles
Disk L:\ SQL Logfiles
Portal Version
J2EE Engine = 6.40 PatchLevel 105424.313
Portal = 6.0.18.0.0
After restore, the data base as the SAP application starts
correctly but when logon in the Portal, the Pcd Content of Content Administration tab
and to other tabs with similar information is not shown.
After restore it can be necessary to reactivate some type of configuration, links, etc?, for this type of restore is better to make a backup offline instead of online one?
We are thankful for any information on the matter.
Thanks,
Regards.
Rafa R.R.The issue was solved with a offline backup.
-
Dear All,
The following error is appearing when Im trying to schedule the online backup
29.07.2010 04:22:14 Job started
29.07.2010 04:22:14 Step 001 started (program RSDBAJOB, variant &0000000000132, user ID BASIS)
29.07.2010 04:22:14 Execute logical command BRBACKUP On host pspddbsmn
29.07.2010 04:22:14 Parameters:-u / -jid ALL__20100729042214 -c force -t online -m all -p initSMN.sap -v 280710
29.07.2010 04:22:15 BR0051I BRBACKUP 7.00 (40)
29.07.2010 04:22:15 BR0055I Start of database backup: bedtuyap.and 2010-07-29 04.22.15
29.07.2010 04:22:15 BR0484I BRBACKUP log file: /oracle/SMN/sapbackup/bedtuyap.and
29.07.2010 04:22:15 BR0280I BRBACKUP time stamp: 2010-07-29 04.22.15
29.07.2010 04:22:15 BR0301E SQL error -27140 at location BrDbConnect-2, SQL statement:
29.07.2010 04:22:15 'CONNECT /'
29.07.2010 04:22:15 ORA-27140: attach to post/wait facility failed
29.07.2010 04:22:15 BR0310E Connect to database instance SMN failed
29.07.2010 04:22:15 BR0280I BRBACKUP time stamp: 2010-07-29 04.22.15
29.07.2010 04:22:15 BR0301E SQL error -27140 at location BrDbConnect-2, SQL statement:
29.07.2010 04:22:15 'CONNECT /'
29.07.2010 04:22:15 ORA-27140: attach to post/wait facility failed
29.07.2010 04:22:15 BR0310E Connect to database instance SMN failed
29.07.2010 04:22:15
29.07.2010 04:22:15 BR0056I End of database backup: bedtuyap.and 2010-07-29 04.22.15
29.07.2010 04:22:15 BR0280I BRBACKUP time stamp: 2010-07-29 04.22.15
29.07.2010 04:22:15 BR0054I BRBACKUP terminated with errors
29.07.2010 04:22:15 External program terminated with exit code 3
Pls help me to resolve
Regards,
kiran
Edited by: Anees Qureshy on Jul 29, 2010 6:10 PM
Edited by: Anees Qureshy on Jul 29, 2010 6:11 PMAlso FYI, the following are the oracle services running...Could they be a problem too?
orasmn 561308 1 0 Jul 26 - 0:01 oracleSMN (LOCAL=NO)
orasmn 585746 1 0 21:15:52 - 0:00 oracleSMN (LOCAL=NO)
orasmn 676056 1 0 Jul 26 - 3:25 oracleSMN (LOCAL=NO)
orasmn 696470 1 0 Jul 28 - 0:09 oracleSMN (LOCAL=NO)
orasmn 708784 1 0 20:55:52 - 0:00 oracleSMN (LOCAL=NO)
orasmn 712704 1 0 Jul 26 - 0:10 /oracle/SMN/102_64/bin/tnslsnr LISTENER -inherit
orasmn 729150 1 0 20:30:51 - 0:00 oracleSMN (LOCAL=NO)
orasmn 790706 1 0 17:31:46 - 0:34 oracleSMN (LOCAL=NO)
orasmn 802948 1 9 21:20:52 - 0:01 oracleSMN (LOCAL=NO)
orasmn 860330 1 0 Jul 26 - 0:00 oracleSMN (LOCAL=NO)
orasmn 876702 1 0 Jul 29 - 0:05 oracleSMN (LOCAL=NO)
orasmn 897216 1 0 Jul 26 - 0:00 oracleSMN (LOCAL=NO)
smnadm 942258 446554 3 21:25:39 - 0:00 grep oracle
orasmn 970876 1 0 19:17:10 - 0:04 oracleSMN (LOCAL=NO)
orasmn 975070 1 0 Jul 26 - 0:00 oracleSMN (LOCAL=NO)
orasmn 979168 1 0 Jul 26 - 0:41 oracleSMN (LOCAL=NO)
orasmn 1015982 1 0 20:25:53 - 0:00 oracleSMN (LOCAL=NO)
orasmn 1024250 1 0 21:10:52 - 0:00 oracleSMN (LOCAL=NO)
orasmn 1032442 1 0 Jul 26 - 0:00 oracleSMN (LOCAL=NO)
orasmn 1069068 1 0 Jul 26 - 0:00 oracleSMN (LOCAL=NO)
orasmn 1138734 1 0 Jul 26 - 0:00 oracleSMN (LOCAL=NO)
orasmn 1146930 1 0 Jul 26 - 0:00 oracleSMN (LOCAL=NO)
orasmn 1155164 1 0 Jul 27 - 0:05 oracleSMN (LOCAL=NO)
orasmn 1167424 1 0 Jul 26 - 0:00 oracleSMN (LOCAL=NO)
orasmn 1183788 1 0 Jul 27 - 0:04 oracleSMN (LOCAL=NO)
orasmn 1232988 1 0 Jul 26 - 9:24 oracleSMN (LOCAL=NO)
orasmn 1437926 1 0 Jul 26 - 0:20 oracleSMN (LOCAL=NO)
orasmn 1446084 1 0 Jul 26 - 19:55 oracleSMN (LOCAL=NO)
orasmn 1454090 1 0 Jul 28 - 0:08 oracleSMN (LOCAL=NO)
orasmn 1458392 1 0 01:31:40 - 0:00 oracleSMN (LOCAL=NO)
orasmn 1462476 1 0 Jul 26 - 1:51 oracleSMN (LOCAL=NO)
orasmn 1466470 1 0 Jul 27 - 0:04 oracleSMN (LOCAL=NO)
Maybe you are looking for
-
Alv Report for invoice details
Dear All, I need to develop one alv report for following details. i developed coding for this requirment but i am getting some error.kindley help me to how to move data from different internal table to final internal table. I used LOOP A
-
SOAP Responce cannot be decoded after during a long web service exection
I have an AIR application. I am using the spark web service and i have set up a fualt handler and set the requestTimeout to 0. I call an opertaion that calls a .Net web service. Inside that .Net web service i run a very heafty SQL using ADO and then
-
How to configure address-2-name mappings in Tiger Server ?
Our primary name server is Debian Linux (thank God). On this box we have address-2-name mappings file. We are using Tiger server as secondary(slave) name server. In the Secondary Zones tab, I entered zone names and their primary name server (debian).
-
Ok, I didn't quite follow the deinstall procedure. I went straight to Universal installer without deleting the database first. Now I can't reinstall to save my life. It first told me my password was wrong, now it's telling me that I installed the pre
-
DFS-R between 2008 R2 and 2012
Hello, Could somebody please tell me that it is possible to configure DFS replication between 2012 as a source and 2008R2 as a target?? thanks