Minimum privilege is required to take hot backup
Hi,
Dears,
which privilege is required to take hot backup i want create user to take hotbackup with minimum privilege .now i take hotbackup with SYS user but this is danger because another department should be take hotbackup.
best regards
allahmorad
Edited by: Allahmorad on Sep 22, 2011 12:08 AM
Hi;
Please see below for your issue:
Privileges required for RMAN backup
http://www.orafaq.com/wiki/Oracle_database_Backup_and_Recovery_FAQ
http://serverfault.com/questions/58831/create-oracle-user-to-do-backup-job
http://admindba.com/forum.php?gcm=2&grid=115560
Regard
Helios
Similar Messages
-
Why we cannot take hot backup if database is in noarchive log mode
Hi,
I am aware that if database is in noarchive log mode, we cannot take hot backups and only cold backup is possible.
I would like to know the technical reason behind this restriction?
Thank You
SarayuHot backups are fuzzy backups, inconsistent, in other words, since something is always happening in the database. When you recover, you restore data files and then apply redo to make the transactions consistent. You can do a complete recovery or recover to a point in time. So where does the redo come from? That's what we call archiving redo logs. When the online redo gets full, it gets archived.
In the case of an instance crash, the redo is there in the online redo logs, so Oracle can recover automatically. Anything beyond that, having to do with storage media, is a media recovery, and requires those archived logs. So unless you have some other way to get your data back, always run in archivelog mode.
It is really important to understand the concepts. Please read the docs.
http://docs.oracle.com/cd/E11882_01/server.112/e25789/cncptdba.htm#CNCPT031
http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmintro.htm#i1005488
It may be worth your while to get a third party backup and recovery book too. -
Required to take periodic backup status report from SQL server
Dear All,
I need to take periodic database backup status of all sql server instance in different domain. But, i am doing it by logging into all sql server manually.
We can do it through option called ' Managed server' in sql server by connecting required server.
But, I want to know the script and any other option in sql server to connect all sql instance in different domain group to take backup status report in single run.
I need your help here and share the experience if you implemented ever in your environment.see
http://www.mssqltips.com/sqlservertip/1601/script-to-retrieve-sql-server-database-backup-history-and-no-backups/
You can use above scripts to capture the information
For automated execution wrap it in a procedure with INSERT statement to dump the results onto a table and call the procedure from sql agent job to execute it based on a predefined schedule.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Minimum privilege for hot backup
Hi,
Dears,
which privilege is required to take hot backup i want create user to take hotbackup with minimum privilege .now i take hotbackup with SYS user but this is danger because another department should be take hotbackup.
best regards
allahmoradAllahmorad wrote:
Hi,
Dears,
which privilege is required to take hot backup i want create user to take hotbackup with minimum privilege .now i take hotbackup with SYS user but this is danger because another department should be take hotbackup.
best regards
allahmoradalter database,alter system, create session is enough privileges to make vast changes in your database.So there is not such priveleges.(as fortmann suggested).
I will suggest you to use the rman for hot backup.
Hope this help :)
--neeraj -
Archive logs are missing in hot backup
Hi All,
We are using the following commands to take hot backup of our database. Hot backup is fired by "backup" user on Linux system.
=======================
rman target / nocatalog <<EOF
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '$backup_dir/$date/%F';
run {
allocate channel oem_backup_disk1 type disk format '$backup_dir/$date/%U';
#--Switch archive logs for all threads
sql 'alter system archive log current';
backup as COMPRESSED BACKUPSET database include current controlfile;
#--Switch archive logs for all threads
sql 'alter system archive log current';
#--Backup Archive logs and delete what we've backedup
backup as COMPRESSED BACKUPSET archivelog all not backed up delete all input;
release channel oem_backup_disk1;
allocate channel for maintenance type disk;
delete noprompt obsolete device type disk;
release channel;
exit
EOF
=======================
Due to which after command (used 2 times) "sql 'alter system archive log current';" I see the following lines in alert log 2 times. Because of this all the online logs are not getting archived (Missing 2 logs per day), the backup taken is unusable when restoring. I am worried about this. I there any to avoid this situation.
=======================
Errors in file /u01/oracle/admin/rac/udump/rac1_ora_3546.trc:
ORA-19504: failed to create file "+DATA/rac/1_32309_632680691.dbf"
ORA-17502: ksfdcre:4 Failed to create file +DATA/rac/1_32309_632680691.dbf
ORA-15055: unable to connect to ASM instance
ORA-01031: insufficient privileges
=======================
Regards,
Kunal.All thanks you for help, pleas find additional information. I goth the following error as log sequence was missing. Everyday during hotbackup, there are 2 missing archive logs, which makes our backup inconsistent and useless.
archive log filename=/mnt/xtra-backup/ora_archivelogs/1_32531_632680691.dbf thread=1 sequence=32531
archive log filename=/mnt/xtra-backup/ora_archivelogs/2_28768_632680691.dbf thread=2 sequence=28768
archive log filename=/mnt/xtra-backup/ora_archivelogs/2_28769_632680691.dbf thread=2 sequence=28769
archive log filename=/mnt/xtra-backup/ora_archivelogs/2_28770_632680691.dbf thread=2 sequence=28770
archive log filename=/mnt/xtra-backup/ora_archivelogs/1_32532_632680691.dbf thread=1 sequence=32532
archive log filename=/mnt/xtra-backup/ora_archivelogs/2_28771_632680691.dbf thread=2 sequence=28771
archive log filename=/mnt/xtra-backup/ora_archivelogs/2_28772_632680691.dbf thread=2 sequence=28772
archive log filename=/mnt/xtra-backup/ora_archivelogs/2_28772_632680691.dbf thread=2 sequence=28773
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 12/13/2012 04:22:56
RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '/mnt/xtra-backup/ora_archivelogs/2_28772_632680691.dbf'
ORA-00310: archived log contains sequence 28772; sequence 28773 required
ORA-00334: archived log: '/mnt/xtra-backup/ora_archivelogs/2_28772_632680691.dbf'
Let me try the susggestions provided above. -
RMAN & Hot backup cloning taking long time
Dear DBAs,
We are doing both RMAN & Hot backup cloning foe that taking more time to restore data files to TEST instance. scp taking too much time to copy to target server because of its volume of data (1.5 TB) & Mounting the RMAN backups drive on test server and restoring from that drive taking more than 8 hours.
I heard that some companies are using some device to move heavy volume Hot backup copy from source to dest faster for clone the instance easily with in minutes. What is that device name to take hot backup copies from source and restore it in target server.
Test server Specs
Processor 8 cores with 32GB Memory.
Thanks
DBAHot backup is not recommanded for the database size more than 1T.
RMAN backup and restore is the only opiton available for a DBA.
Other option is to use EMC Symmentrix/BCV's/Snapshots. EMC uses pair of disks to achive synch the produciton data with test server. read more about EMC symmentrix or ask your storage team. -
How much time would oracle take if I take Hot Backup (using Imp/Exp statement) of a 60 GB database? Are there some other ways also of taking Hot BackUp ? How much would it effect oracle's performance while backup is taking place as the database is 24 x 7 and is taking uploads every few seconds?
Do not use IMP/EXP as a backup strategy. These utilities are intended for moving data about. Backup means taking a copy of the OS files - data files, redo logs, etc. To find out more please read the docs.
Cheers, APC -
hi,
please help me to take hot backup.
i want step by step procedure or send me some links
with regards,
SenthilkumarpI think you'd be better asking about backups in the correct forum...
Try...
General Database Discussions
or
Recovery Manager (RMAN) -
Why archivelog mode is mandatory for hot backups.
Hi,
Why the database should be put in archivelog mode when we take hot backups. What happens actually. Why can't we put in noarchivelog mode and take hot backups?Suppose you are not using RMAN then you must put your tablespaces in backup mode. Otherwise the backup you can take will be unrecoverable.
In order to recover from a Hot Backup you have to do followings
- Restore your Hot Backup
- Recover the database - here, the archive log files are important
How does Oracle know what has to be recovered from archivelogs?It looks at the SCN.
If you never put your tablespaces in backup mode then SCN would not be frozen and Oracle wouldn't know what has to be recovered.
Talip Hakan Ozturk
http://taliphakanozturken.wordpress.com/ -
RMAN hot backup requires archivelog all the time?
Hi all,
consider the case: a dml operation is running in oracle 11g database. after sometime it got completed and issued a commit statement. Now i took a full database hot backup using rman. but dint take archivelog backup(its must i know, but i want to know whether we can do incomplete recovery using only the full database backup and open database using RESETLOGS option?
Kindly let me know whether we can do incomplete recovery using only full database backup or we must need archivelog to open the database?
Regards,Say your BACKUP DATABASE begins at 01:00am and finishes at 01:50am. At the minimum, you need to backup the Archivelogs from 01:00am to the first archivelolg after 01:50am. Technically you don't need the archivelogs of before 01:00am. However, if you want the ability to do a point in time recovery (which is a MUST for any production database), you would also backup the "earlier" archivelogs which can be used with the previous database backup.
Your commit does NOT guarantee that the database files are immediately updated -- DBWR "lazily" defers writing to the database files. Your commit is preserved in the online redo log. This has to be archived as an Archivelog and backed up.
Hemant K Chitale -
Required to take backup with out TSM in PROD server.
Dear all,
I required to take backup with out using TSM .
we have got error in TSM . so that i am getting error .
Prod server backup is working automated through TSM .
now i need to take Online backup with out using TSM like DEV and QA (Manual backup) .
For DEV and QA server backup is manual . i am simply moved the tape to tape library and fired the online backup as well same QA also .
Now my query is reqiured to take backup with out the help of TSM in PROD server . Is it possible ?
2 profiles are configured for Online backup and offline backup .
pls check the below profiles .
initSIDdaily.sap -
> Online backup .
initSIDweekly.sap -
> Offline backup
is there any parameter i need to change ?
Kindly adviseDear all ,
I have initialised the Tape IRPB01 , after i have try to tkae backup , i got below error .
BR0051I BRBACKUP 7.00 (48)
BR0055I Start of database backup: bedqreyq.ant 2010-07-12 13.19.44
BR0484I BRBACKUP log file: /oracle/IRP/sapbackup/bedqreyq.ant
BR0477I Oracle pfile /oracle/IRP/102_64/dbs/initIRP.ora created from spfile /ora
cle/IRP/102_64/dbs/spfileIRP.ora
BR0280I BRBACKUP time stamp: 2010-07-12 13.19.45
BR0319I Control file copy created: /oracle/IRP/sapbackup/cntrlIRP.dbf 15122432
BR0280I BRBACKUP time stamp: 2010-07-12 13.19.46
BR0057I Backup of database: IRP
BR0058I BRBACKUP action ID: bedqreyq
BR0059I BRBACKUP function ID: ant
BR0110I Backup mode: ALL
BR0077I Database file for backup: /oracle/IRP/sapbackup/cntrlIRP.dbf
BR0061I 42 files found for backup, total size 158434.742 MB
BR0143I Backup type: online
BR0112I Files will not be compressed
BR0130I Backup device type: tape
BR0102I Following backup device will be used: /dev/rmt0.1
BR0103I Following backup volume will be used: IRPB01
BR0280I BRBACKUP time stamp: 2010-07-12 13.19.46
BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRBACKUP:
c
BR0280I BRBACKUP time stamp: 2010-07-12 13.19.52
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
BR0208I Volume with name IRPB01 required in device /dev/rmt0.1
BR0210I Please mount BRBACKUP volume, if you have not already done so
BR0280I BRBACKUP time stamp: 2010-07-12 13.19.52
BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRBACKUP:
c
BR0280I BRBACKUP time stamp: 2010-07-12 13.19.55
BR0257I Your reply: 'c'
BR0259I Program execution will be continued...
BR0280I BRBACKUP time stamp: 2010-07-12 13.19.55
BR0226I Rewinding tape volume in device /dev/rmt0 ...
BR0351I Restoring /oracle/IRP/sapbackup/.tape.hdr0
BR0355I from /dev/rmt0.1 ...
BR0241I Checking label on volume in device /dev/rmt0.1
BR0280I BRBACKUP time stamp: 2010-07-12 13.19.55
BR0226I Rewinding tape volume in device /dev/rmt0 ...
BR0202I Saving /oracle/IRP/sapbackup/.tape.hdr0
BR0203I to /dev/rmt0.1 ...
BR0209I Volume in device /dev/rmt0.1 has name IRPB01
BR0202I Saving init_ora
BR0203I to /dev/rmt0.1 ...
BR0202I Saving /oracle/IRP/102_64/dbs/initIRPdaily.sap
BR0203I to /dev/rmt0.1 ...
BR0280I BRBACKUP time stamp: 2010-07-12 13.19.59
BR0198I Profiles saved successfully
BR0280I BRBACKUP time stamp: 2010-07-12 13.20.00
BR0315I 'Alter tablespace PSAPSR3 begin backup' successful
BR0202I Saving /oracle/IRP/sapdata1/sr3_1/sr3.data1
BR0203I to /dev/rmt0.1 ...
BR0278E Command output of 'LANG=C dd obs=64k bs=64k if=/oracle/IRP/sapdata1/sr3_
1/sr3.data1 of=/dev/rmt0.1':
dd: /oracle/IRP/sapdata1/sr3_1/sr3.data1: Invalid argument
BR0280I BRBACKUP time stamp: 2010-07-12 13.20.00
BR0279E Return code from 'LANG=C dd obs=64k bs=64k if=/oracle/IRP/sapdata1/sr3_1
/sr3.data1 of=/dev/rmt0.1': 2
BR0222E Copying /oracle/IRP/sapdata1/sr3_1/sr3.data1 to/from /dev/rmt0.1 failed
due to previous errors
BR0280I BRBACKUP time stamp: 2010-07-12 13.20.02
BR0317I 'Alter tablespace PSAPSR3 end backup' successful
BR0056I End of database backup: bedqreyq.ant 2010-07-12 13.20.00
BR0280I BRBACKUP time stamp: 2010-07-12 13.20.02
BR0054I BRBACKUP terminated with errors
BR0292I Execution of BRBACKUP finished with return code 5
BR0668I Warnings or errors occurred - you can continue to ignore them or go back
to repeat the last action
BR0280I BRTOOLS time stamp: 2010-07-12 13.20.02
BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:
Kindly Advise -
How to take a Hot backup of Oracle database
1: put the db in archive log mode
2: set the db_sid to correct one
3: login to sqlplus
4: verify the name of the db that you are connected to
select name from v$database;
5: check if the db is in archive log made
select log_mode from v$database;
if not in archive log mode
another command to check
archive log list;
6: find where on disk oracle writes archive log when it is in archive log mode
sql> show parameter log_archive_dest_1;
if the value is found to be 0, that means no values will be recorded, so we need to change it
sql> alter system set log_archive_dest_1='LOCATION=c:\database\oradata\finance\archived_logs\'
scope=spfile;
7: shutdown immediate; < this is done just to prepare the db for hot backups >
8: startup the db in mount mode
startup mount;
( 3 startup types : nomount - just starts the instance, mount - locates the control files and open up according to the values, open - finds the datafiles from the control files and opens up the db )
9: put the db in archive log mode
alter database archivelog;
10: open the database
alter database open;
11: check the status of the db
select log_mode from v$database;
SQL> archive log list;
12: create a directory for archived log
check if its empty, if empty we need to switch
sql> alter system archive log current;
run it 5 times < need to put / and enter > , then check the archive log dir , we will find files
13: make a table in the database and insert data in it
create table employees (fname varchar(2));
check the table
desc employees;
insert values
insert into employees values ('Mica');
14: tablespace must be in hot backup mode
check the status
select * from v$backup;
if found not active, then we need to change
we cannot put the db in hot backup mode, unless it is archive log mode
change to hot backup mode
alter database begin backup;
check the status
select * from v$backup;
15: now we can only COPY DBF FILES
copy *dbf <distination location>
16: need to take the db out to hot backup mode
alter database end backup;
17: need to make another archive log switch
alter system archive log current;
18: need to copy control files now, need to do a binary bckup
alter database backup controlfile to '<location>\controlbackup';
19: insert more values to the table
insert into employess values ('NASH')
COMMIT;
make another archive log switch : alter system archive log current;
do the same process for more values
20 : backup all the archive logs to a new location
21: shutdown the db and simulate a hw error, delete all the files from the database folder
22: try to start the sqlplus and db ::: error
23: copy all the backups to the db dir
need to copy the control files, rename the binary backup of the control file and make the copies as needed
24: try to mount the db, error < must use reset logs or noreset logs >
25: need to do a recovering of the database
shutdown
restore the archive logs
startup mount;
recover database until cancel using backup controlfile;
it will ask for a log file :
yes for recovery
cancel for cancelling recovery
26: check status: open the database in readonly
alter database open read only;
check the tables to see the data
shutdown immediate
shartup mount;
recover again : recover database until cancel using backup controlfile;
if oracle is asking for a log that do nto exist , all we have to do is type cancel
27: open the database
alter database open;
need to do reset logs
alter database open resetlogs;
28: check the db that you are connected, check the tables
thanks and regards
VKN
site admin
http://www.nitrofuture.comA very long list ... let me make it shorter.
SQL> archive log list;If I see this:
Database log mode No Archive ModeI put the database into archivelog mode and leave it there forever.
If it is in archivelog mode:
RMAN> TARGET SYS/<password>@<service_name> NOCATALOG
RMAN> BACKUP DATABASE PLUS ARCHIVELOG;Though there are a lot of things one could do better such as incrementals with block change tracking, creating an RMAN catalog, etc. -
RMAN Hot Backup Errors.
Hello Everyone
I would appreciate if someone can assist me in resolving a problem. Starting from December of last year, we were able to take daily hot backups of our ORACLE 10g database server successfully with no issues. Presently we have been experiencing a number of errors in the logs, even though the script has not been changed. The main errors are as follows:
RMAN-03009: failure of backup command on t1 channel at 05/08/2007 00:01:19
ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
In investigating the errors, it seemed to be associated to the tablespace not being put offline or backup mode cleanly, I assumed this was due to persons working later, so I scheduled the backup for a later time but I still got the same error in the log the following day. Can you assist me in resolving this problem please?Is the db running in ARCH mode?
Error: ORA 19602
Text: cannot backup or copy active file in NOARCHIVELOG mode
Cause: You tried to copy or backup a file that was not closed cleanly, and
the database was in NOARCHIVELOG mode. This is not allowed because when
restored, the file will require redo application before it is usable,
and redo is not currently being saved beyond the contents of the online
redo logs.
Action: Take the tablespace offline clean or close the database and retry the
copy or backup. Take the tablespace offline clean or close the database
and retry -
Hi all,
i have a question related to hot backup
If we take a hot backup ie. alter tablespace tbs begin backup....then it freezed the datafile and all the entries happen to the redo log files.....if we a two log groups and and hot backup happens to continue from BOD(beginning of day) to EOD,then there might be a situation in which log switch happen it means it will archive the same,so how the datafile will recover the same...
here it freezed the whole datafile or only datafile header.....user00726 wrote:
Hi all,
i have a question related to hot backup
If we take a hot backup ie. alter tablespace tbs begin backup....then it freezed the datafile and all the entries happen to the redo log files.....if we a two log groups and and hot backup happens to continue from BOD(beginning of day) to EOD,then there might be a situation in which log switch happen it means it will archive the same,so how the datafile will recover the same...
here it freezed the whole datafile or only datafile header.....The crux of the hot backup done via manual cp command is that datafile is completely operational. So all the objects which can undergo changes like tables and all , they keep on working as like they used to do without the back up is on. As all the changed vectors are logged in the redo log files , so the same is true in this case also when the datafile goes into the backup mode. Oracle just freezes the header of teh datafile and freezes the SCN at that point for it to know where to start the recovery from in the order of a crash. When the file is put into the backup mode, the header is freezed and the checkpoint is done before putting the file into the backup mode. Makes sense as with the checkpointing , the related buffers for that file are put into the file , ensuring that the file now is a self consistent file.
There is no checkpoint that happens with the end backup though. The file is made in sync with the rest of the database files when the next full, system level checkopint will happen. All the changes required to make the file get in sync with the rest of the database is already logged in teh redo and archived files. So in the case of a crash, oracle just applies those to the respective file and the recovery is complete. So there won't be any impact on the recovery. Just there is one issue that there would be extra redo generation due to the first time logging of the whole data block in the redo stream to avoid the fractured block issue.
HTH
Aman.... -
Backup/recovery - hot backups
My backup strategy is hot backups
To test it out I copied the hot backups to a test machine (which had a previous copy of the instance)
When I tried to recover, the instance mounted but would not open
But on trying to open - it keeps insisting on recover using backup control file and never allows me to open .
Any help?
startup;
ORACLE instance started.
Total System Global Area 75292048 bytes
Fixed 64912 bytes
Variable Size 7938048 bytes
Database Buffers 67108864 bytes
Redo Buffers 180224 bytes
Database mounted.
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
Regards
Andy
nullWhile you are taking a hot backup of the database. Backup of controlfile is required. If you use tool like legato networker it takes controlfile backup automatically. If you do hot backup manually you have to take backup controlfile to trace. This type of backup controlfile doesn't contain the stop scn for each datafile its set to infinite so it asks for the archive log. You should apply the archivelog and open the database with the resetlogs option. You should apply to the current online redolog file to have upto date database from the other database by just making a switch logfile and copy the archived log to the test machine.
Hope you got what i am saying. I have made hot backups using legato networker which makes backup controlfile to trace.
Thanks and regards,
hari
Maybe you are looking for
-
IOS4 update = lost contacts, apps crash and cannot sync my music need help
I like many had no problems with updating in the past. I even enjoyed the days off an update just to get to grips with new features. This experience has been abolished with the IOS4. I've had my 3G for just over a year (just). I came to update to the
-
Nano 6th gen, can I sync with iphone & how many times can I download music
Hi, I'm new to this, so I'm sorry if I make a mistake... I'm getting an nano 6th generation and I wondered if I can use the itunes I've bought for my iphone and music downloaded or if I have to start from scratch? Also, if I use the music can I use
-
I am using Aperture 3 and I have just exported the edited picture to my desktop but the image which is now on my desktop appears to be unedited. Does anyone know why??
-
[10.9] How to fix corrupted system frameworks
Now, I am a particularly experienced mac user, but this problem is completely out of my depth. I use a Mac Mini 5,2, and keep its software as up to date as possible. I have configured the system for maximum performance, using utilities like SMCFanCo
-
Hello Support , Could you please help with the issues below ? We have large number of the computers which have been affected by SideBySide event id 80 (Application log) while trying to load Adobe Dreamweaver CC. SideBySide event id 80 Activation cont