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
allahmorad
Allahmorad 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
Similar Messages
-
Environment configuration for Hot Backups
Hi all,
1. I am trying to create a hot backup tool based on the read-only Environment strategy ([discussed in a previous thread|http://forums.oracle.com/forums/message.jspa?messageID=3674008#3674008] ).
Now, leaving aside the EnvironmentConfig.setReadOnly(true), I have found quite a few possible other configuration options in the EnvironmentParams class and I'm wondering if there are some that I should be using.
Here are a couple of examples:
- ENV_RECOVERY
- ENV_RUN_INCOMPRESSOR
- ENV_RUN_CHECKPOINTER
- ENV_RUN_CLEANER
Would it make sense to configure any of these?
2. After creating a hot backup I have tried to test its state. Basically, the approach was quite simple:
- open a read-only env on the backup
- try to access the databases in the env
My idea is that if the above 2 ops are succeeding then there is a very good chance that the backup is correct.
Now, while playing with the above configuration options I have noticed that if I'm setting ENV_RECOVERY to false in this test environment, then any attempt to access the databases within results in a DatabaseNotFoundException.
Can someone help me understand what is happening? (basically, I cannot make a connection between recovery and access to the DBs in the environment)
Many thanks in advance,
./alex
PS: I've forgot to mention that I'm running a quite old version: 2.1.30
Edited by: Alex Popescu on Aug 13, 2009 5:50 AMENV_RECOVERY - suppresses running recovery at Environment creation. Internal parameter.
ENV_RUN_INCOMPRESSOR, ENV_RUN_CHECKPOINTER, ENV_RUN_CLEANER - disable the INCompressor, Checkpointer, and Cleaner Daemon threads.
You should not need to adjust any of these parameters for your DbBackup utility. In fact, ENV_RECOVERY is an "internal use only" parameter.
PS: I've forgot to mention that I'm running a quite old version: 2.1.30
I'm sorry to be the bearer of bad news, but as my colleague Mark Hayes stressed in a previous post, you really need to upgrade from 2.1.30 to 3.3.latest. It is highly probable that you will eventually run into bugs with 2.x and we are unlikely to (1) be willing to diagnose them, and (2) fix them. As Mark pointed out, 2.1 is 3.5 years old and the product has had a lot of improvements in that time. We are happy to answer questions on this forum relating to the latest major release, but dealing with old and crusty code is certainly going to be well below our allowable priority level.
Charles Lamb -
Minimum privileges for creating table
I wanted to know of the minimum set of privileges for creating a table in Oracle 11g database. First I created a schema and granted the create table privilege to the schema. When I tried to create a table in the schema, it was giving a message of like privileges required on the tablespace. Granting the resource privilege grants the unlimited quota on all the tablespaces including SYSTEM and SYSAUX tablespace which may not be an ideal scenario. So, my query is that what are the minimum set of privileges for creating a table in Oracle 11g database.
I hope, my question is clear.
Please revert with the reply to my query.
RegardsHi,
If you are going to use the read only :
SQL> create user anar identified by anar;
User created.
SQL> grant create session, select any table, select any dictionary to anar;
Grant succeeded.
SQL> conn anar/anar
Connected.
SQL> create table test(id number);
create table test(id number)
ERROR at line 1:
ORA-01031: insufficient privileges
SQL> desc test.test
Name Null? Type
ID NUMBER
SQL> insert into test.test values (1);
insert into test.test values (1)
ERROR at line 1:
ORA-01031: insufficient privileges
SQL> update test.test set id = 15;
update test.t set id = 15
ERROR at line 1:
ORA-01031: insufficient privileges
Thank you -
Metalink Ids for hot backup clonning
Hi i want to perform hot backup clonning in R12 single node to single node and single node to multi node,
Please tell me the metalink idsHi,
Please see these docs.
Cloning Oracle Application 11i /R12 with Rapid Clone - Database (9i/10g/11g) Using Hot Backup on Open Database [ID 760772.1
Cloning E-Business Suite Using Hot Backup for Minimal Downtime of Source Environment. [ID 362473.1]
Rapid Clone Documentation Resources, Release 11i and 12 [ID 799735.1]
RMAN Guides
http://www.oracle.com/pls/db112/homepage
Thanks,
Hussein -
Hi guys,
I can't seem to search this scenario.
Can Azure be used as a Hot Backup? An on-prem server is backed up on the the Azure Cloud. When some disaster befalls the on prem server, can we switch to the cloud server?
Most document just discusses the backup and restore capabilities of Azure but not as hot backup capabilities.
Thanks,
JojoHi Jojo,
You can backup your op-promise server on Azure Cloud. Please refer to this page about how to configure it:
http://blogs.technet.com/b/systemcenter/archive/2014/05/08/using-and-monitoring-azure-backup-for-windows-server.aspx
But for Azure Backup how to work, I suggest you can post this issue on Azure back up forum for more details.
https://social.msdn.microsoft.com/forums/azure/en-US/home?forum=windowsazureonlinebackup
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Shell scripting for hot backup
Hi,
can you please give me shell scripting and it's explanation for taking hot backup. and which shell scripts are frequently use in real time.
thank a lot in advance.HAve you ever heard about RMAN ? Much better than reinvent the wheel.
http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmquick.htm
Nicolas. -
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 script for hot backup (looking for code critic) code attached.
Hello Guru's,
I have been having soem trouble running a successful hot full rman backup nightly.
We max our CPU load whenever our RMAN takes too long and conflicts with a Legato tape backup. I have a development server that I attempted to get a consistent backup time duration that is rock solid as to not conflict with the Legato backup time.
I just found out about duration with RMAN scripts here is my code:
#!/bin/bash
#rman backup script for daily hot whole database backup
at -f /hd1/rman_scripts/rman_backup 0600 tomorrow
rman target/
run {
allocate channel d1 device type disk format '/path/%U';
backup duration 1:00 partial minimize load database filesperset 1;
backup as BACKUPSET tag '%TAG' database;
backup as BACKUPSET tag '%TAG' archivelog all delete all input;
delete noprompt obsolete;
release channel d1;
exit
It completes the backup, but does not use the 1 hour allocated- it only uses 15 minutes on average and creates many files instead of normally three backup files.
Here is the results from querying the v$rman_status table for operation,status,start_time:
RMAN,FAILED, 17-OCT-06 0600
BACKUP,FAILED,17-OCT-06 0600
RMAN,FAILED,17-OCT-06 0606
BACKUP,COMPLETED,17-OCT-06 0606
BACKUP,COMPLETED,17-OCT-06 0606
BACKUP,FAILED,17-OCT-06 0615
RMAN,COMPLETED,17-OCT-06 1513
REPORT,COMPLETED,17-OCT-06 1513
DELETE,COMPLETED,17-OCT-06 1513
However, the timestamps of the backupset files it creates is:
06:15 and not 1513?????????????
RMAN appears to have only taken 15 minutes to create the files, why do I have a completed timestamp from v$rman_status of 1513???
Please advise and comment, I am just learning RMAN.Try to remove the DURATION option in your script.
Here more details about that part.
http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta009.htm#i1010261
Bye, Aron -
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. -
How to Restore datas in Oracle 10g using hot backup?
I did Hot backup things (On-line backup) in Oracle 10g (Windows environment)
Now backup files are stored in physical location..
How to restore the datas to original location..
Can any one give the url or command for recovery in ora 10g for hot backup
ThanksPlease do not dump all of your work in this forum, and expect volunteers to do it for free!!!
Dear Great Senior DBA Sybrand Bakker
What are Oracle Discussion Forums?
Oracle Discussion Forums is an interactive community for sharing information, questions, and comments about Oracle products and related technologies. Most forums are moderated by product managers, and all of them are frequently visited by knowledgeable users from the community
oracle forums is not your place for showing “bossing” it is a place where junior to seniors share there knowledge and advices, it means helping and sharing….. Knowledge is for giving ….giving only it will increase… don’t discourage any one like this ……
There are my Great Seniors (not like u) mainly respected Mr. Jonathan Lewis, Mr. Don Burleson and a lot of oracle nominated ACE members are all giving patiently replay to jr. to sr.
Obeasley oracle doubts are mostly related to practical issue only……
Pls try to learn the word meaning of “volunteers” -
Tablespace and datafile hot backup
Hi,
I wanted to if there is a command to copy a datafile using sqlplus command. I making a script that will backup the database while its online.I made a script for the alter tablespace begin backup but I wanted to know how to copy the datafiles without using the OS command,instead I wanted to use a sql commands. Is there any script or procedure to do this one.
thanks
Best Regards,
AntokRMAN is the best utility to do the backup and recover activities. It take care copy and paste itself. Bellow given script is also usefull for hot backup
spool hotbackup_PROD3.sql;
set feedback off;
set verify off;
set pagesize 2500
set linesize 132
set serveroutput on size 50000;
declare
cursor tablespace is select tablespace_name from dba_tablespaces where tablespace_name
in('RBS1',
'STORAGE',
'SYSADM_IDX2',
'SYSADM_IDX3',
'SYSADM_IDX4',
'SYSTEM');
cursor datafile(tsname varchar2 ) is select file_name from dba_data_files
where tablespace_name = tsname;
begin
dbms_output.put_line('spool hotbackup_PRODc.log;');
dbms_output.put_line('alter system switch logfile;');
dbms_output.put_line('select ''log''||sequence#,sysdate from v$log where status = ''CURRENT'';
for tsname in tablespace
loop
dbms_output.put_line('alter tablespace '||tsname.tablespace_name||' begin backup;');
dbms_output.put_line('prompt Starting Backup for '||tsname.tablespace_name||' Tablespace')
for dname in datafile(tsname.tablespace_name)
loop
dbms_output.put_line('prompt Copying File '||dname.file_name||'.....');
dbms_output.put_line('!cp '||dname.file_name||' /backup2/hotbak'||dname.file_name);
end loop;
dbms_output.put_line('alter tablespace '||tsname.tablespace_name||' end backup;');
dbms_output.put_line('prompt Finished backing up '||tsname.tablespace_name||' Tablespace')
dbms_output.put_line('alter system switch logfile;');
end loop;
dbms_output.put_line('spool off;');
dbms_output.put_line('!mailx -s "KL_PROD521_HOTBACKUP1" [email protected] < /prod1/HOTBKUP/hotbackup_PRODc.log');
dbms_output.put_line('exit');
end;
spool off;
@hotbackup_PROD3.sql
exit; -
Hello,
1) I want to activate archiving on R12.1.2.how can i do this on single or multinode.please tell how can i restore backup after archiving.what is precautions after activating archive or RMAN.
2) If i have taken completed cold backup of apps and db.after some day i want to take backup.there is necessary to take backup both(apps,db,inst) if i take only db backup..is this possible to restore the backup next time.
Regards,Hi;
For hot backup u should use rman utulity,check backup
7 RMAN Backup Concepts
http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmcncpt.htm
For other question check below
Backup and recovery startegy for EBS
Re: Backup System
backup polincy-ebs
Backup Policy for EBS can
Regard
Helios -
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 AMHi;
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 -
Hi All,
I am currently trying to backup my iTunes library onto an external hard drive so that I can copy it onto my new Macbook Pro. I have been following the steps posted on the Apple website however each time I get a dialogue box stating:
'The operation cannot be completed because you do not have sufficient privileges for some of the items'.
Is this because I have items that were bought under another persons iTunes account? If so, is there a solution to this problem? Or am I doing something completely wrong?
Thanks in advance,
Sbrooks19Go through the below forum with similar issue and follow the process mentioned by "Macjack" in the beginning.
https://discussions.apple.com/thread/4499820 -
Which is better for User Managed Hot backup - running in cron or oracle scheduler
We are taking hot backup in our environment by using sql script of just begin backup, host copy and end backup
Can we use this script to be put in cron for weekly two times or to use oracle scheduler .
Which is better option and why?The answer to your question depens on your condition. Do you have more experienced Unix admin or DBA?
From my point of view cron is better becuase all you need is SQL*Plus utility and shell script:
export ORACLE_SID=...
sqlplus <username>/<password> as sysdba <<EOF
ALTER TABLESPACE .. BEGIN BACKUP;
host copy ..
ALTER TABLESPACE .. END BACKUP;
EXIT
EOF
Maybe you are looking for
-
How do i play my videos in flash file after moving SWF file to website?
Hello all, I am having some problems showing my videos in flash after moving it anywhere besides my computer. I published my flash file once as a exe. file and sent it to another computer, where it all worked but my videos, which didn't show up at al
-
Can't access Aperture 2 now!
I have installed the trial of 3 and ordered the box - why you can't just get an unlock code instead I don't know. That aside, I have a problem. Aperture 3 won't open my Aperture 2 library. Aperture 2 won't open at all - it says that it cannot open th
-
Invalid at the top level of the document in XML file
Hi, I am sending an XML file (Which is generated by SAP) through mail to the receiver. When the receiver opens the file he is getting the below error. Kindly help me to rectify this error. The XML page cannot be displayed Cannot view XML input using
-
Files Corrupted on Timeline and Causing Crash--PE4
Greetings all. PE4 has always been crash-happy on my machine, the specs of which I list: CPU: Intel Core 2 Duo @2.66GHz RAM: 4GB DDR2 OS: Win7 x64 service pack Graphics card: nVidia GeForce GT 520 (2GB) Harddrive: 1TB (Seagate, I think...could be Wes
-
13:51:37, 16 Dec. OUT: BLOCK [65] First packet is Invalid (TCP 192.168.1.65:56213->193.0.160.244:80 on ppp1) 13:51:07, 16 Dec. OUT: BLOCK [9] Packet invalid in connection (TCP 192.168.1.65:56412->178.236.4.85:80 on ppp1) 13:50:07, 16 Dec. OUT: BLOCK