Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

hOT backup with rman

Posted on 2008-09-29
6
Medium Priority
?
502 Views
Last Modified: 2013-12-19
I need to do hotback up with rman can i get easy to follow steps. the db is in noarchive log mode

oracle 9i  on hp Unix
0
Comment
Question by:taaz
  • 3
  • 3
6 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22599529
>the db is in noarchive log mode
then, you cannot do a hotbackup. full stop.
you have to get the database into archivelog mode first.


once you have that, here is a sample backup script:
rman target sys/*** nocatalog
run {
allocate channel t1 type disk;
backup
format '/app/oracle/db_backup/%d_t%t_s%s_p%p'
( database );
release channel t1;
}

Open in new window

0
 

Author Comment

by:taaz
ID: 22599861
How to put the database in archive log mode
i know  alter database archivelog;
do i need to change any thing in the pfile or init.ora to make it permanent? and if so how do I ahve to go about that.

Thanks
0
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 total points
ID: 22599958
your pfile/init.ora needs this one to know where to write the archivelogs:
log_archive_dest_1='location=/u02/oradata/cuddle/archive'

your "alter database archivelog" is to enable the archivelog mode indeed; it will not start the logging itself, though.

to start (stop) the logging process would be:
alter system archive log start;
alter system archive log stop;

your pfile/init.ora will need this setting, unless you want to actually start the logging manually each time you start the db:
log_archive_start=TRUE

0
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 

Author Comment

by:taaz
ID: 22600063
You almost complete the answer. if possibel please tell me how to get to open the pfile.
I guess  $ORACLE_HOME/dbs   and do vi and add the entry
log_archive_start=TRUE is this write or you have better solution to this.

Thanks
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22600147
if you have a spfile, you don't open it actually.
you use:
ALTER SYSTEM log_archive_start=TRUE SCOPE SPFILE;

if it's a init.ora (pfile), then you just open it with a text editor (vi for example).
0
 

Author Closing Comment

by:taaz
ID: 31407083
Always quick and great
Thanks Angellll
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that useā€¦
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows how to recover a database from a user managed backup
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question