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 ids
Hi,
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
Similar Messages
-
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 -
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 -
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 -
Making atabase clone (but without data=rows) from hot-backup
Hi,
I am newbie in Oracle administration. I am using Oracle 10g database. I would like to clone database i.e. make an exact copy of tablespaces, tables, indexes, triggers, functions etc. but without data.
What is the most efficient way to do it.? I am having the full hot backup of another database. Is it possible to restore a that backup using rman but without data (=rows) on the fresh installed oracle database
Thanks for any advice
GroxyI don't think RMAN has the feature you are looking for.
For this purpose, it could be easier to use:
- either old export with FULL=Y ROWS=N
- or new data pump export with CONTENT=METADATA_ONLY.
However in both cases you would need to recreate the empty database before importing the export file.
Message was edited by:
Pierre Forstmann -
Clone from hot backup failing with ORA-19870, 19505 unable to find backup
Ok, the steps I am taking worked previously, the only thing that I know changed was the underlying file system and I am perplexed but then again I am not the most experienced dba so please forgive if I miss something obvious.
My steps are: create backup using:
backup database tag= tagname format '/archive/stage/DBNAME/%U';
backup archivelog all format '/archive/stage/DBNAME/%U';
backup current controlfile '/archive/stage/DBNAME/%U';
Then on the new server, I copy the files over to the new server and:
connect target username@prod
connect auxillary
set until time
duplicate target database to "PRODSBX"
etc...
The problem is the duplicate is not looking at my '/archive/stage/DBNAME' directory for the backup. It's looking in the normal backup directory on that prod box that it can't connect to... can anyone give me clues as to what I should be looking at to figure out why? I looked at file permissions in case it couldn't access this directory, I looked at id, group etc... and I am not seeing anything. These exact same scripts worked before... the only thing I have edited is the set until time so I just can't figure out why it's not going to the /archive/stage.
Any light shed in my general direction would be greatly appreciated.
Thanks!
Va.I have no way to copy the output of the files as this is on a closed network. If there is any particular information you are looking for I'd be happy to post it.
The restore is looking for the default backup location as specified in my rman configuration but in my backup script, I specify a different location that I do the hot backup to. The first time it took this location and successfully cloned to the new server and now it seems to be ignoring it. I am not sure why, any suggestions in what I should look at, if this is a possible configuration issue on my clone server or on my primary?
Thanks,
Va. -
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 -
Hot Backup for oracle database?
Dear all,
I want to change Cold Backup to Hot Backup. Does anyone how to do Hot Backup and has some simple document I can follow? If the database is running in ARCHIVELOG mode, is the size grow very fast or other effect will overcome?
Please advice,
AmyI want to change Cold Backup to Hot Backup. Does
anyone how to do Hot Backup and has some simple
document I can follow?online/hot backup don’t need to shutdown the database we can put the database in backup mode and then start taking backup even though users database activity read/write data going on. This strategy useful if ours database goes for 24x7.
For online/hot backup the database should be in archive mode.
I hope you know how to turn on archive.Before turning on check the archive on or not.
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 1
Next log sequence to archive 2
Current log sequence 2
SQL> you may also check it by connecting to database as sys
SQL> select log_mode from v$database;
LOG_MODE
ARCHIVELOG
SQL> if yours database is not in archive mode then first enable archive,please before turning on the archive take cold backup.
SQL>shutdown immediate
SQL>startup mount
SQL>alter database archivelog
SQL>alter database open;
SQL> archive log list
Now you are able to take hot/online backup ,its upto you you use user managed backup and recovery or use RMAN oracle own shipped free tool for backup and recovery ,however my recommendation would goes for RMAN.
http://download-uk.oracle.com/docs/cd/A97630_01/server.920/a96572/toc.htm
http://www.oracle.com/technology/deploy/availability/htdocs/rman_overview.htm
ARCHIVELOG mode, is the size grow very fast or other
effect will overcome?However, the growing size pace either fast or slow everyday can be impractical it alls depends on activity of yours database operation.You will have to observe it yourself by turning on archive log its vary database to database activity.
Khurram
Maybe you are looking for
-
Copy voice memos from iPhone to computer
I have fairly large voice memos that I can NOT email, so I am wondering how I can copy the voice memos from my iphone to my computer. I have tried connecting my iphone directly to my iMac but can't figure out how to copy the file over. Thanks. Brad
-
Web Camera doesn't work on Satellite L50D
Satellite L50D-B-136 Trying got get web camera to work, without success. Apparently web camera initialization failed according to Toshiba Web Camera Application.
-
hi all i m using make to order scenario i want the stock of the finished goods n there dependent requirements stock sales order wise as i have defined the startegy make to order for the finished goods n there dependent requirements n i have als
-
CRM Survey: Simple Survey Evaluation
Hi Forum, I created one Survey using CRM_SURVEY_SUITE and I would like to extract result using Simple Survey Evaluation. I set the flags Evaluation without Business Information Warehouse and Save completed Questionnaire. When I press the button Evalu
-
I don't know why the General Histogram PtByPt.vi is so slow. Using an uninitialized shift register and the General Histogram.vi I can implement the same functionality that runs at least 50 times faster processing the same number of points. See my a