from NLS_DATE_FORMAT to rman

Hello

Oracle 10.2.0.4 on Linux

On my Linux box I run rman off shell with the following scripts:

export NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS' 


What Suppose that Works to get all the ' data and present ", but unfortunately get on date; y no time in most of the rman report and list.

But in case where export NLS_DATE_FORMAT = 'DD-MON-YY HH24:MI:SS' at the OS level I can get the time.

Please advice according to the scripts mentioned... 

Which translates

RMAN > list backup;

Backup list

===============

S LV TY Device Type delay #Pieces compressed #Copies Tag key

------- -- -- - ----------- --------------- ------- ------- ---------- ---

177. A DISC 29 OCTOBER 15 1 1 no TAG20151029T110406

178. A DISC 29 OCTOBER 15 1 1 no TAG20151029T110423

180. A DISC 29 OCTOBER 15 1 1 no TAG20151029T110427

181. A DRIVE 30 OCTOBER 15 1 1 no TAG20151030T221559

RMAN > backup from the list of files.

using the control file of the target instead of recovery catalog database

Backup of data file list

========================

Key TY LV S cash YVERT have Time compressed #Copies Tag #Pieces file

---- ------- -  -- - ---------- --------- ------- ------- ---------- ---

1 238 F a 77189943 8 NOVEMBER 15 1 1 no TAG20151108T143403

234 B F a 8 77189355 NOVEMBER 15 1 1 no TAG20151108T141638

230 B F a 8 77185865 NOVEMBER 15 1 1 no TAG20151108T133004

226 B F a 8 77185113 NOVEMBER 15 1 1 no TAG20151108T130505

222 B F a 5 77060848 NOVEMBER 15 1 1 no TAG20151105T160737

218 B F a 5 77060620 NOVEMBER 15 1 1 no TAG20151105T1603

will be mentioned the rman.sh (main script) and run.sh (run the main script)

#rman.sh

=========

#! / bin/sh

a = "START AT RMAN BACKUP:" date'"

Export NLS_DATE_FORMAT = 'DD-mon-YYYY HH24:MI:SS.

#export NLS_DATE_FORMAT

#echo $now

CD/backup/RMANBACKUP /.

#mkdir $now

#cd $now

#rm f/backup/RMANBACKUP / *.

/backup/RMANBACKUP/mkdir $ now

RMAN < < EOF

connect the target

run

{

overlap backupset;

overlap archivelog all;

allocate channel t1 device type disk format ' / backup/RMANBACKUP/$now/y.db_%d_t%t_s%s_p%p';

Configure controlfile autobackup on;

# Delete noprompt disc of obsolete device type;

SQL 'alter system archive log current;

backup database;

backup ARCHIVELOG all delete them input format ' / backup/RMANBACKUP/$now/arch_%d_%u_%s';

current backup controlfile as ' / backup/RMANBACKUP/$now/y.CNTRL_%d_t%t_s%s_p%p';

output channel t1;

SQL 'alter system archive log current;

}

EXPRESSIONS OF FOLKLORE

b = "END of the RMAN BACKUP to:" date'"

ECHO $a

echo $b

============

#run.sh

--------

#! / bin/bash

now = $(date + "% d_ m_ % Y_ %T"))

#now = $('date +%d-%m-%Y\ % H: % m: %S"))

logName = $full_back_ {ORACLE_SID}-$now.log

export now

./RMAN.sh > $logname

Kind regards

Dr.Anty wrote:

But Iam confused little on to your point "If you are not exporting NLS_DATE_FORMAT, you will see the formatted date in whatever the following default value specified NLS_DATE_FORMAT value control.»

(1) - how can I know the 'ext default value specified NLS_DATE_FORMAT control'?

Go back and re-read the article.  From the paragraph titled NLS_DATE_FORMAT.  Here, I explain that nls_date_format defined as a database parameter is substituted by the setting on the client OS, which is overridden by connection making an ALTER SESSION, overridden by use of the TO_CHAR TO_DATE, as appropriate.  Of course, those at last are not available within rman.

(2) - I can understand that the only way to view the backup command list "time" is export NLS_DATE_FORMAT = 'DD-mon-YYYY HH24:MI:SS' at the OS level before the backup of question order list?

Who starts as a statement, but ends with a question.    Yes, the only way to obtain rman to display the component "hour" in the production of reports (such as the backup from the list) is NLS_DATE_FORMAT value during the session of os command before calling rman.

3. I put the NLS_DATE_FORMAT = "DD-mon-YYYY HH24:MI:SS" in .bash_profile to see the times 'backup from the list.

To see the time in your "backup from the list", you must have established NLS_DATE_FORMAT in your session before calling rman. Put in your .bash_profile is a way that accomplish.

Kind regards

Tags: Database

Similar Questions

  • Transition from UNIX to RMAN environment variables fails

    Hi gurus,

    Environment like below

    Oracle Versrion - 11.2.0.2.0

    OS - Linux RHEL 5

    RAC - Yes. node 2.

    My backup script fails when I set up the configuration of RMAN with unix environment variables. Error like below

    ERROR

    ---------

    RMAN-03002: failure of the command configures the 03/09/2014 02:28:33

    ORA-15124: ASM '+ DG_DATA/${ORACLE_SID}/snapcf_${ORACLE_SID}.f' file name contains an invalid alias name


    I created a text file of configuration rman with all the configuration as below. When I call the file rman_config from the Sheel script, it takes all the except statement environment variables to CONFIGURE snapshot. Did I miss something in the syntax or is not possible to pass environment variables in RMAN which includes ASM statements.


    Help, please.


    CONFIGURE the SNAPSHOT CONTROLFILE NAME to "+ DG_DATA/${ORACLE_SID}/snapcf_${ORACLE_SID}.f";

    Configure retention policy to recovery of 7-day window;

    Configure controlfile autobackup on;

    Configure controlfile autobackup peripheral type disc format in ' ${backup_dir}/${ORACLE_SID}/backup_controlfiles/%F';}

    Configure channel 1 device type disk format ' ${backup_dir}/${ORACLE_SID}/%d_t%t_s%s_p%p';}

    SET UP THE DEVICE TYPE DISK PARALLELISM 8 TYPE OF BACKUP BACKUPSET.

    run

    {

    Configure exclude them for the tablespace "SEA_DATA";

    Filesperset to compressed backupset database backup 1.

    Configure exclude them for the tablespace "SEA_DATA" clear;

    Backup to compressed backupset tablespace sea_data SECTION SIZE 240 G;

    backup current controlfile of Eve format='${backup_dir}/${ORACLE_SID}/stdby_controlfiles/%U';

    SQL "backup controlfile alter database path as"${backup_dir}/${ORACLE_SID}/backup_controlfiles/${ORACLE_SID}_ctl.${dt}.${u_no}.sql";"

    SQL 'alter system archive log current;

    ARCHIVELOG backup time 'sysdate-0, 5';

    }

    cross-checking of completed database before backup ' sysdate - 8';

    overlap archivelog all completed before ' sysdate - 8';

    backup before completed controlfile overlap ' sysdate - 10';

    Force delete expired backup is complete before ' sysdate - 8';

    force expired delete archivelog all completed before ' sysdate - 8';

    Force delete expired backup of controlfile completed before ' sysdate - 10';

    Configure controlfile autobackup format of disc type device to "%f"

    Configure the clear device type disk.

    Kind regards

    Lancerique.

    try without {}:

    CONFIGURE the SNAPSHOT CONTROLFILE NAME to "+ DG_DATA/$ORACLE_SID/snapcf_$ORACLE_SID.f";

    It worked for me (independent, no asm):

    . /etc/.bash_profile

    backup_dir = ' / u01/app/oracle/fast_recovery_area.

    Target system/oracle RMAN<>

    CONFIGURE the SNAPSHOT CONTROLFILE NAME to '$backup_dir/$ORACLE_SID/snapcf_$ORACLE_SID.f ';

    Configure retention policy to recovery of 7-day window;

    Configure controlfile autobackup on;

    Configure controlfile autobackup format disk device type to '$backup_dir/$ORACLE_SID/backup_controlfiles/%F ';

    Configure the format of disc type channel 1 device "$backup_dir/$ORACLE_SID/%d_t%t_s%s_p%p";

    SET UP THE DEVICE TYPE DISK PARALLELISM 8 TYPE OF BACKUP BACKUPSET.

    run

    {

    Configure exclude them for the tablespace 'USERS ';

    Filesperset to compressed backupset database backup 1.

    Configure exclude them for the tablespace 'USERS' clear;

    Backup to compressed backupset tablespace USERS SECTION SIZE 240 G;

    backup current controlfile of Eve format='$backup_dir/$ORACLE_SID/stdby_controlfiles/%U';

    SQL "backup controlfile alter database path as"$backup_dir/$ORACLE_SID/backup_controlfiles/$ORACLE_SID_ctl.sql";"

    SQL 'alter system archive log current;

    ARCHIVELOG backup time 'sysdate-0, 5';

    }

    cross-checking of completed database before backup ' sysdate - 8';

    overlap archivelog all completed before ' sysdate - 8';

    backup before completed controlfile overlap ' sysdate - 10';

    Force delete expired backup is complete before ' sysdate - 8';

    force expired delete archivelog all completed before ' sysdate - 8';

    Force delete expired backup of controlfile completed before ' sysdate - 10';

    Configure controlfile autobackup format of disc type device to "%f"

    Configure the clear device type disk.

    EXIT;

    EXPRESSIONS OF FOLKLORE

  • Restore from different database Rman backup RMAN

    Hello world

    I'm practicing Rman, so I request that the way to restore the rman backup in a different database.

    For example:

    1. I have backup Rman of DB1 to level 0 and level 1 cumulative data base more archievelog

    2. I need to import or restore the backup Rman of DB1 to a different database DB2.

    What is the procedure to make the queries above. Please anyone one help out me.

    I use oracle 10g r2 running in windows server 2003.

    Thanks in advance.

    flanged wrote:
    Hello world

    I'm practicing Rman, so I request that the way to restore the rman backup in a different database.

    For example:

    1. I have backup Rman of DB1 to level 0 and level 1 cumulative data base more archievelog

    2. I need to import or restore the backup Rman of DB1 to a different database DB2.

    What is the procedure to make the queries above. Please anyone one help out me.

    I use oracle 10g r2 running in windows server 2003.

    Thanks in advance.

    If you want to restore the database from one node to the node of dfiferent, you can follow below url

    http://mohamedazar.WordPress.com/2011/03/13/disaster-recoveryrestore-database-from-one-server-to-another-server-when-different-location/

    but you couldnot able to restore the database backup entire rman in another database instance struture.

  • Creation of a database of duplicate from a full RMAN bkp

    Version - 10.2.0.4 on AIX 6.1
    RAC (2 knots)
    Size of DB: 2 TB

    Due to a hardware upgrade, we must move our CARS database temporarily. We took a full backup (compressed RMAN) who took nearly 7 hours. As a result of an unforeseen problem, we could not stop the primary DB. Now, she has generated some more archived newspapers.

    Our downtime is only 2 hours. Thus, we believe using the existing FULL backup. Let's close the primary DB and logs arch newly created primary DB by using the backup
    backup archivelog from sequence 125 until sequence 219 thread 1;
    backup archivelog from sequence 453 until sequence 543 thread 2;
    In the comic book in elementary school, to get a clean and consistent game newspapers archived, before we stop, we'll bring down the listener (so that no new connections are made) and then we archive the CURRENT LOG of REPEAT online for both nodes for help
    alter system archive log current
    How can I determine the last sequence # for each thread to which I need to save? (using the above mentioned archivelog backup.. .command)

    I hope
    backup archivelog from sequence .............;
    can be done using RMAN when the primary DB instances are in State of Mount?

    Published by: Tom on January 5, 2011 10:58

    Ravi said that we could look at the log RMAN. The output of the previous RMAN run would have shown that ArchiveLogs have been saved in the last run.

    In RMAN, you can also query by 'LIST BACKUP OF ARCHIVELOG ALL' to show that ArchiveLogs had been saved.

    In RMAN, you can also use the command ' ARCHIVELOG BACKUP all THE NOT BACKUP 1 TIME "backup ArchiveLogs that have not been saved up to - RMAN automatically determines the 'new' archivelogs.". "

    Hemant K Collette

  • Waiting for redo log file missing when restore main database using RMAN backup that was taken on the database physical standby

    Here's my question after tons of research and test without have the right solutions.

    Target:

    (1) I have a 12.1.0.2 database unique main enterprise 'testdb' as database instance running on the server "node1".

    (2) I created physical standby database "stbydb" on the server "node2".

    (3) DataGuard running on the mode of MaxAvailability (SYNC) with roll forward in real time 12 default c apply.

    (4) primary database has 3 groups of one-man redo. (/oraredo/testdb/redo01.log redo02.log redo03.log)

    (5) I've created 4 standby redo logfiles (/oraredo/testdb/stby01.log stby02.log stby03.log stby04.log)

    (6) I do RMAN backup (database and archivelog) on the site of relief only.

    (7) I want to use this backup for full restore of the database on the primary database.

    He is a DR test to simulate the scenario that has lost every primary & Eve total servers.

    Here is how to save, on the database pending:

    (1) performance 'alter database recover managed standby database Cancel' to ensure that compatible data files

    (2) RMAN > backup database;

    (3) RMAN > backup archivelog all;

    I got elements of backup and copied to primary db Server something like:

    /Home/Oracle/backupset/o1_mf_nnndf_TAG20151002T133329_c0xq099p_.BKP (data files)

    /Home/Oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.BKP (spfile & controlfile)

    /Home/Oracle/backupset/o1_mf_annnn_TAG20151002T133357_c0xq15xf_.BKP (archivelogs)

    So here's how to restore, on the main site:

    I clean all the files (data files, controlfiles oder all gone).

    (1) restore spfile from pfile

    RMAN > startup nomount

    RMAN > restore spfile from pfile ' / home/oracle/pfile.txt' to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';

    (2) modify pfile to convert to db primary content. pFile shows below

    *.audit_file_dest='/opt/Oracle/DB/admin/testdb/adump '

    * .audit_trail = "db".

    * full = '12.1.0.2.0'

    *.control_files='/oradata/testdb/control01.ctl','/orafra/testdb/control02.ctl'

    * .db_block_size = 8192

    * .db_domain = "

    *.db_file_name_convert='/testdb/','/testdb /'

    * .db_name = "testdb".

    * .db_recovery_file_dest ='/ orafra'

    * .db_recovery_file_dest_size = 10737418240

    * .db_unique_name = "testdb".

    *.diagnostic_dest='/opt/Oracle/DB '

    * .fal_server = "stbydb".

    * .log_archive_config = 'dg_config = (testdb, stbydb)'

    * .log_archive_dest_2 = "service = stbydb SYNC valid_for = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = stbydb'"

    * .log_archive_dest_state_2 = 'ENABLE '.

    *.log_file_name_convert='/testdb/','/testdb /'

    * .memory_target = 1800 m

    * .open_cursors = 300

    * runoff = 300

    * .remote_login_passwordfile = "EXCLUSIVE."

    * .standby_file_management = "AUTO".

    * .undo_tablespace = "UNDOTBS1.

    (3) restart db with updated file pfile

    SQLPLUS > create spfile from pfile='/home/oracle/pfile.txt'

    SQLPLUS > the judgment

    SQLPLUS > startup nomount

    (4) restore controlfile

    RMAN > restore primary controlfile to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';

    RMAN > change the editing of the database

    (5) all elements of backup catalog

    RMAN > catalog starts by ' / home/oracle/backupset / '.

    (6) restore and recover the database

    RMAN > restore database;

    RMAN > recover database until the SNA XXXXXX; (this YVERT is the maximum in archivelog backups that extends beyond the scn of the backup of the data file)

    (7) open resetlogs

    RMAN > alter database open resetlogs;

    Everything seems perfect, except one of the file log roll forward pending is not generated

    SQL > select * from v$ standby_log;

    ERROR:

    ORA-00308: cannot open archived log ' / oraredo/testdb/stby01.log'

    ORA-27037: unable to get file status

    Linux-x86_64 error: 2: no such file or directory

    Additional information: 3

    no selected line

    I intended to use the same backup to restore primary basic & helps record traffic and the downtime between them in the world of real output.

    So I have exactly the same steps (except STANDBY restore CONTROLFILE and not recover after database restore) to restore the database pending.

    And I got the same missing log file.

    The problem is:

    (1) complete alert.log filled with this error, not the concern here

    (2) now repeat it in real time apply won't work since the Party shall LGWR shows always "WAITING_FOR_LOG."

    (3) I can't delete and re-create this log file

    Then I tried several and found:

    The missing standby logfile was still 'ACTIVE' at present RMAN backup was made.

    For example, on db standby, under Group #4 (stby01.log) would be lost after the restoration.

    SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;

    GROUP # SEQUENCE # USED STATUS

    ---------- ---------- ---------- ----------

    4 19 ACTIVE 133632

    5 0 0 UNASSIGNED

    6 0 0 not ASSIGNED

    7 0 0 UNASSIGNED

    So until I take the backup, I tried on the primary database:

    SQL > alter system set log_archive_dest_state_2 = delay;

    This was the Group of standby_log side Eve #4 was released:

    SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;

    GROUP # SEQUENCE # USED STATUS

    ---------- ---------- ---------- ----------

    4 0 0 UNASSIGNED

    5 0 0 UNASSIGNED

    6 0 0 not ASSIGNED

    7 0 0 UNASSIGNED

    Then, the backup has been restored correctly without missing standby logfile.

    However, to change this primary database means break DataGuard protection when you perform the backup. It's not accept on the production environment.

    Finally, my real questions come:

    (1) what I do may not do on parameter change?

    (2) I know I can re-create the control file to redo before delete and then recreate after. Is there any simple/fast to avoid the standby logfile lost or recreate the lost one?

    I understand that there are a number of ways to circumvent this. Something to keep a copy of the log file waiting restoration progress and copy up one missing, etc, etc...

    And yes I always have done no real-time applies "to the aid of archived logfile" but is also not accept mode of protection of production.

    I just want proof that the design (which is displayed in a few oracle doc Doc ID 602299.1 is one of those) that backs up data backup works effectively and can be used to restore the two site. And it may be without spending more time to resume backups or put the load on the primary database to create the database before.

    Your idea is very much appreciated.

    Thank you!

    Hello

    1--> when I take via RMAN backup, RMAN does not redo log (ORL or SRL) file, so we cannot expect ORLs or SRL would be restored.

    2nd--> when we opened the ORL database should be deleted and created

    3rd--> Expecting, SRL should not be an issue.we should be able to do away with the fall.

    DR sys@cdb01 SQL > select THREAD #, SEQUENCE #, GROUP #, STATUS from v$ standby_log;

    THREAD # SEQUENCE # GROUP # STATUS

    ---------- ---------- ---------- ----------

    1 233 4 ACTIVE

    1 238 5 ACTIVE

    DR sys@cdb01 SQL > select * from v$ logfile;

    GROUP # STATUS TYPE MEMBER IS_ CON_ID

    ---------- ------- ------- ------------------------------ --- ----------

    3 /u03/cdb01/cdb01/redo03.log no. 0 online

    /U03/cdb01/cdb01/redo02.log no. 0 2 online

    1 /u03/cdb01/cdb01/redo01.log no. 0 online

    4 /u03/cdb01/cdb01/stdredo01.log WATCH No. 0

    /U03/cdb01/cdb01/stdredo02.log EVE 5 No. 0

    DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log

    method: cannot access the /u03/cdb01/cdb01/stdredo01.log: no such file or directory

    DR sys@cdb01 SQL >! ls - ltr /u03/cdb01/cdb01/stdredo02.log

    -rw - r-. 1 oracle oinstall 52429312 17 Oct 15:32 /u03/cdb01/cdb01/stdredo02.log

    DR sys@cdb01 SQL > alter database force claire logfile 4;

    change the database group claire logfile 4

    *

    ERROR on line 1:

    ORA-01156: recovery or current flashback may need access to files

    DR sys@cdb01 SQL > alter database recover managed standby database cancel;

    Database altered.

    DR sys@cdb01 SQL > change the database group claire logfile 4;

    Database altered.

    DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log

    -rw - r-. 1 oracle oinstall 52429312 17 Oct 15:33 /u03/cdb01/cdb01/stdredo01.log

    DR sys@cdb01 SQL >

    If you do, you can recreate the controlfile without waiting for redo log entry...

    If you still think it's something is not acceptable, you must have SR with support to analyze why he does not abandon SRL when controlfile_type is "underway".

    Thank you

  • RMAN-06820 / backup RMAN on a database of Eve / wallet using authentication

    Hello

    An attempt to resolution RMAN-06820 by putting together a portfolio for Doc-ID 1616074.1
    RMAN-06820: WARNING: unable to archive the current log on the primary database

    -------------------------------------------------------------

    Doc-ID 1616074.1 means Bug: 17580082

    As for being able to connect standby to primary school, there are few options

    (Option 1) is to connect as SYSDBA, as: 'rman target sys/password@stby.
    (Option 2) is portfolio of configuration using the authentication that can be made (more information can be obtained by the SECURITY team).
    (Option 3) using command CONNECT in the command file supplied to RMAN. For example: RMAN > Connect target sysdba_user/password@stby

    -------------------------------------------------------------

    We are currently using option 1, but to remove the passwords from the scheduled RMAN script.

    RMAN target sys/password@stby nocatalog journal @/ tmp/RMAN_SCRIPT = / tmp/RMAN_LOG

    We look at option 2 implement a portfolio > ' use secure external password store (Doc ID 340559.1) '

    We have successfully Setup a portfolio

    $ mkdir $ORACLE_HOME/portfolio
    $ mkstore - wrl $ORACLE_HOME/portfolio-create
    $ mkstore - wrl $ORACLE_HOME/portfolio - createCredential stby sys password

    SQLNET.ora updated with
    WALLET_LOCATION = (source = (Method = file) (METHOD_DATA =(Directory=$ORACLE_HOME/Wallet)))
    SQLNET. WALLET_OVERRIDE = TRUE

    The scheduled RMAN script is updated:

    RMAN target /@stby nocatalog journal @/ tmp/RMAN_SCRIPT = / tmp/RMAN_LOG

    I always get RMAN-06820 WARNING.

    -Anyone have a solution to resolve the WARNING of RMAN - 06820 for an RMAN backup on a database ensure using a portfolio (Doc ID 1616074.1 Option 2) for authentication?


    Kind regards

    Richie.

    An update for you to know that this isn't a problem.

    I have re-implemented solution (recreated portfolio / updated the rman script to remove password) and his works now.

    I'll go through this myself to see what I missed the first time.

    Therefore, please note that Doc ID 1616074.1 Option 2 (workaround) put in place a portfolio (Ref: Doc ID 340559.1) is 100% successful.

    set up a portfolio:
    $ mkdir $ORACLE_HOME/portfolio
    $ mkstore - wrl $ORACLE_HOME/portfolio-create
    $ mkstore - wrl $ORACLE_HOME/portfolio - createCredential stby sys password

    SQLNET.ora:
    WALLET_LOCATION = (source = (Method = file) (METHOD_DATA =(Directory=$ORACLE_HOME/Wallet)))
    SQLNET. WALLET_OVERRIDE = TRUE

    RMAN backup:
    Journal of @RMAN_SCRIPT /@stby target = RMAN_LOG RMAN nocatalog

  • RAC RAC CLONE OF RMAN cold backup

    Hi all

    I need your help in my Oracle RAC 11.2.0.2 to remote host environment cloning. Here's the disc structure

    DGVOT (disc ASM holding OCR and voting disk group)
    DGDATA (disk group ASM containing data files)
    DGFRA (disk group ASM files for fast recovery)

    Remote host is on a different location so cannot use duplicate RMAN with auxiliary channel.
    Have the luxury of downtime so I wanted to take coherent RMAN (Cold Backup)

    SAME structure of the disc is available on remote hosts.

    11.2.0.2 CLusterware (IG) over the oracle binaries are already installed.

    Can any body tell me the steps to
    (1) how to take cold backup on the disk so that I can tar and copy to the remote host
    (2) clone of the database on the remote host
    (3) how do I add the listener for the database and other resources of this databasee clusterware.

    in fact, it's my first clone CARS, so I'm well aware of the steps in detail.


    I went though a lot of notes metalink but nobody fits my needs. your tips will help me a lot

    Kind regards

    Hello

    (1) how to take cold backup on disk so that I can tar and copy to the remote host.

    Use Rman cold backup

    At the stage of the mountain run
    RMAN > backup database archivelog format '%U /dbp ";
    RMAN > backup controlfile current format "%U /ctl";

    Copy these to the remote host backup sets

    (2) clone of the database on the remote host

    Create groups of similar ASM disk as source
    create pfile/spifile, starting in nomount mode instance
    backup set from catalog

    RMAN > catalogue start with "";

    Restore controlfile

    RMAN > restore controlfile;

    RMAN > restore database;

    RMAN > restore database;

    On the success of the recovery

    RMAN > sql 'alter database open;

    (3) how do I add the listener for the database and other resources of this databasee clusterware.

    Srvctl user to add resources

    Use: srvctl []
    orders: activate | Disable | Start | stop | move | status | Add | Remove | change | getenv | setenv | unsetenv | config | convert | upgrade
    objects: database | instance. service | nodeapps | VIP | network | ASM | diskgroup | listener | srvpool | Server | scan | scan_listener | oc4j. House | filesystem | GNS | CVU
    To get detailed help on each command and each object and its use of options:
    srvctl h or
    srvctl h

    Thank you
    Ajay more

  • Backup RMAN ASM filesystem

    Hi all

    I have an rman backup (datafile and controlfile) who got caught in an instance of the DSO (not a RAC) ORACLE 11.2.0.2 on a server Linux, now I want to restore the backup into a new database under windows/Linux OS with storage system (single instance RDBMS) General files instead of ASM.

    Is this possible?

    I can restrore an rman backup ASM in a mechanisim of storage of file in a new server system?

    Please clarify my question.

    Thanks in advance...

    Nonuday

    Nonuday wrote:
    Hi Levi,

    Thank you for your invaluable script and the blog.

    can you tell me about this query:

    I have an RMAN backup, drawn from the ASM and the backup is the database and controlf backup file that contains the data files and controlfiles.
    Now I need to restore this on my system and here I only use ASM or archive log, I use only one instance in any database log mode archive.

    I restored the backup controfile RMAN control file.
    Before you restore the control file, I checked the pfile orginal of the backup of database with parameters such as
    "db_create_file_dest."
    "db_create_online_log_dest,"
    "db_recovery_file_dest_size."
    "db_recovery_dest,"
    'log_archive_dest '.

    Since I'm not gng to create a database in any mode of newspaper archive, I do not use any of the above parameters and created a database.

    Now my question is:
    If I restore the database and the data file get restored and after rename all the log files, the database will be open.

    I want to know if this is good or bad, and the database will work as he previously worked. Or need to create the db_file_recovery and also other settings for this database.

    All parameter:
    All these settings should reflect your current environment, any reference to the old environment must be changed.

    All file system used:
    No matter what you use the file (datafile/redolog/controlfile/archivelog/backuppiece) file system are created on binary Format that depend only on platform. Thus, the file binary (for example datafile) have same format and content on the device gross, ASM, ext3, ext2 and so on. Thus, for the database, it is just a place where the files are stored, but the file are the same. ASM has a different architecture of the regular file system and must be managed differently (IE with RMAN).

    On the database:
    Given that your database files are the same even different file system using what you need is rename your files from data/redofiles on controlfile during the restoration, the redo files will be recreated.
    So, no matter if your database are noarchivelog or archivelog, in the same way you do a restore on ASM is the same way to restore the regular file system. (just rename the database during restore controlfile)

    On blog post 'How to migrate all files on ASM to no - ASM (Unix/Linux)' is suddenly of system files to another folder. But you can change the script used for restore purposes;

    ## set newname tell to RMAN where file will be restored and keep this files location on memory buffer
    RMAN> set newname for datafile 1 to ;
    
    ### swich get list of files from memory buffer (rman) and rename on controlfile the files already restored.
    RMAN>switch datafile/tempfile all ;
    

    With mounted database, use this script below:

    I just commented on three lines that are not necessary in your case.

    SET serveroutput ON;
    DECLARE
      vcount  NUMBER:=0;
      vfname VARCHAR2(1024);
      CURSOR df
      IS
        SELECT file#,
          rtrim(REPLACE(name,'+DG_DATA/drop/datafile/','/u01/app/oracle/oradata/drop/'),'.0123456789') AS name
        FROM v$datafile;
      CURSOR tp
      IS
        SELECT file#,
          rtrim(REPLACE(name,'+DG_DATA/drop/tempfile/','/u01/app/oracle/oradata/drop/'),'.0123456789') AS name
        FROM v$tempfile;
    BEGIN
    --  dbms_output.put_line('CONFIGURE CONTROLFILE AUTOBACKUP ON;'); ### commented
      FOR dfrec IN df
      LOOP
        IF dfrec.name  != vfname THEN
          vcount      :=1;
          vfname     := dfrec.name;
        ELSE
          vcount := vcount+1;
          vfname:= dfrec.name;
        END IF;
      --  dbms_output.put_line('backup as copy datafile ' || dfrec.file# ||' format  "'||dfrec.name ||vcount||'.dbf";');  ### commented
      END LOOP;
      dbms_output.put_line('run');
      dbms_output.put_line('{');
      FOR dfrec IN df
      LOOP
        IF dfrec.name  != vfname THEN
          vcount      :=1;
          vfname     := dfrec.name;
        ELSE
          vcount := vcount+1;
          vfname:= dfrec.name;
        END IF;
        dbms_output.put_line('set newname for datafile ' || dfrec.file# ||'  to  '''||dfrec.name ||vcount||'.dbf'' ;');
      END LOOP;
      FOR tprec IN tp
      LOOP
        IF tprec.name  !=  vfname THEN
          vcount      :=1;
          vfname     := tprec.name;
        ELSE
          vcount := vcount+1;
          vfname:= tprec.name;
        END IF;
        dbms_output.put_line('set newname for tempfile ' || tprec.file# ||'  to  '''||tprec.name ||vcount||'.dbf'' ;');
        END LOOP;
          dbms_output.put_line('restore database;');
        dbms_output.put_line('switch tempfile all;');
        dbms_output.put_line('switch datafile all;');
        dbms_output.put_line('recover database;');
        dbms_output.put_line('}');
     ---   dbms_output.put_line('alter database open;');  ### comented because you need rename your redologs on controlfile before open database
        dbms_output.put_line('exit');
    END;
    /
    

    After the restoration, you must rename your redologs on controlfile to old location to the new location:

    for example

    ##  use this query to get current location of redolog
    SQL>  select group#,member from v$logfile order by 1;
    
    ## and change from  to 
    
    SQL > ALTER DATABASE
      RENAME FILE '+DG_TSM_DATA/tsm/onlinelog/group_3.263.720532229'
               TO  '/u01/app/oracle/oradata/logs/log3a.rdo'  
    

    When you change all the redolog on question below controlfile command:

    SQL> alter database open resetlogs;
    

    PS: Always follow the database in real time using the alert log database file.

    HTH,
    Levi Pereira

  • Suddenly slow rman backup in oracle 11g

    Hello

    from yestarday suddenly rman backup incremental to take more than 3 hours, what was supposed to be 20 mins

    nothing has changed since the database, so how can I find the cause of the delay

    Thank you

    What is the version?
    You can trace the order and activate 10046 trace as sql regular... And analyze using tkprof.
    You can refer
    RMAN backup is very slow, selecting from V$ RMAN_STATUS [375386.1 ID]. This note cannot be directly related
    to your problem, but there are commands for activating 10046 trace in that.

  • Need to restore only 1 scheme of rman full backup

    Hi all

    Database version: 11.1
    Linux x86_64

    I dropped one of the user of our existing OEM repository database.
    I want to restore it from the backup rman I know you cannot restore only 1 user in the rman.
    I have not any expdp for users.
    can I use rman restore time and recovery point
    Please guide me with step by step restoration.
    also only the user schemas has been deleted and not the tablespace or anything like that.
    No flashback created restore point.

    Thank you

    Hello again;

    The binaries would be the Oracle software. This will not affect that.

    Make a full stop and then the four commands that I listed before replacing your Date / time.

    Also called a "recovery incomplete rman.

    Best regards

    mseberg

  • with RMAN to create ensures only one instance of node 2 rac

    Any advice on the RMAN command to take a rman full catalog not saving a rac two node 11 GR 2 and use it to create the single instance of the day BEFORE.

    The two-node RAC instance is in ASM (Linux)
    The physics of the day before is Normal (Linux) file system

    The command I get from Metalink suggests:
    RMAN target sys/passwd@primary catalog RMAN/RMAN@RMAN auxiliary sys/passwd
    RMAN > run {}
    allocate auxiliary channel C1 device type disk;
    target database duplicate for standby;
    }

    When I took the rman backup I did not catalog. Please suggest how to accomplish the same task without a catalog. Thank you

    ORA-19870: error while restoring the backup +FRA/kemetrac/autobackup/2012_01_15/s_772671393.343.7 piece
    Cannot open file + FRA/kemetrac/autobackup/2012_01_15/s_772671393.343.
    There is no such thing as "FRA".

    This isn't a connectivity problem. This error indicates that there is no such thing as the required backup file.

    First of all, it looks like you do a double normal to RMAN. In order to follow this, you should take backup of the primary database before and later, copy it to the standby server and mention the exact path in the db_file_name_convert and log_file_name_convert database settings waiting.

    You can see MOS * no step-by-step Guide to creating a physical document Eve on Normal file system for ASM primary with RMAN [838828.1 ID] *.

    Second, since you are on 11.2, you can make use of the active database feature of Oracle 11 g 2, which does not require you to initially last backup of the primary database create standby database.

  • RMAN BACKUP/RECOVERY OF DATA

    Hi friendz,.

    I have a legacy of or copied from earlier sources, RMAN backup scripts, which is the ff:

    (on the PROD server)
    rman
    run {
         CONFIGURE CONTROLFILE AUTOBACKUP ON;
         CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u03/rman/%F';
         crosscheck archivelog all;
         backup format '/u03/rman/%d_LVL0_%T_%u_s%s_p%p' database plus archivelog;
         delete obsolete;
         delete expired archivelog all;
         }
    Then, I got the following output in/u03/rman:
    [root@oracleprod rman]# ls -l
    total 75200672
    -rw-rw----  1 oraprod oraprod    16089088 Feb 18 19:40 c-4174489363-20110218-01
    -rw-rw----  1 oraprod oraprod 76882624512 Feb 18 19:39 OAPROD_LVL0_20110218_0gm50de6_s16_p1
    -rw-rw----  1 oraprod oraprod    31554048 Feb 18 19:40 OAPROD_LVL0_20110218_0hm50fks_s17_p1
    I copied the files above to/u03/rman to the TEST server. I have also the same Oracle Home.
    How can I recover these files on our TEST Server?

    I tried:
    rman
    run {
         startup mount;
         restore database;
         recover database;
        alter database open;
    }
    but I got error:
    [oraprod@oel5 ~]$ rman target /
    
    Recovery Manager: Release 9.2.0.6.0 - Production
    
    Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.
    
    connected to target database (not started)
    
    RMAN> startup mount;
    
    Oracle instance started
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 02/21/2011 22:31:09
    ORA-00205: error in identifying controlfile, check alert log for more info
    
    RMAN>
    Help, please...


    Thank you

    You must restore the controlfile first.

    STARTUP NOMOUNT
    RESTORE CONTROLFILE FROM '/u03/rman/c-4174489363-20110218-01' ;
    sql 'alter database mount';
    RESTORE DATABASE;
    RECOVER DATABASE;
    

    Hemant K Collette

  • Backup of the file pfile with RMAN

    Dear all,

    How can we save pfile with RMAN? Please don't tell using this SQL > create spfile from pfile; then RMAN > backup spfile;

    Can we directly files pfile and password backup with RMAN?

    Thank you

    RMAN backup impossible pfile but only spfile. RMAN cannot backup password files. See http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup001.htm#sthref280

    Edited by: P. Forstmann on April 2, 2009 08:53

  • Find the time to restore a data file

    RDBMS version: 11.2.0.4

    Platform: Oracle Linux 6.4

    To test our backup RMAN Tape (Netbackup), we have created a table called BACKUPTEST with a single space data file.

    Then, we have removed the data file. Then was restored and recovered with RMAN's data file and tablespace was again online.

    I wanted to show the evidence to my manager that the data file has been restored. But v$ datafile. CREATION_TIME will show the time when the tablespace is imagined. Is there another way, I could find the time when the data file has been restored other than log RMAN.

    Below is an excerpt after the data file has been restored.

    $ sqlplus / as sysdba

    SQL * more: Production of the version 11.2.0.4.0 Fri dec 19 15:08:03 2013

    Copyright (c) 1982, 2013, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    With partitioning, Real Application Clusters, Automatic Storage Management, OLAP,.

    Options of Data Mining and Real Application Testing

    SQL > select TABLESPACE_NAME, status of dba_tablespaces where nom_tablespace = 'BACKUPTEST ';

    STATUS TABLESPACE_NAME

    ------------------------------ ---------

    BACKUPTEST ONLINE

    SQL > alter session set nls_date_format = "DD-MM-YYYY HH24."

    Modified session.

    SQL > select CREATION_TIME of v$ datafile where FILE # = 78;

    CREATION_TIME

    ----------------

    19/12/2013-12:16

    SQL > select CREATION_TIME, last_time v$ datafile where FILE # = 78;

    CREATION_TIME LAST_TIME

    ---------------- ----------------

    19/12/2013-12:16

    SQL >

    19/12/2013 12:16 is the hour when the tablespace has been created with this data file no time, it has been restored from a backup RMAN.

    Check the alert.log.  There will be messages about the RESTORATION and RECOVERY actions.

    Hemant K Collette

  • Current control file

    Hi all

    9i

    RHEL5

    I have configured for the main database and emergency dataguard.

    I want to create 3 database on another server in restore RMAN backup taken of database primary 2 weeks ago.

    I then want to apply any archivelogs succeeding to make it current.

    My question is, can I get the file of current mode control ensures to restore my db from backup primary RMAN?

    Current control for the primary and standby files the same? Just in case, I'm switching to the db backup?

    Thank you very much

    JC

    Yes, because the control files are interchangeable between the databases and relief.

    http://docs.Oracle.com/CD/B28359_01/server.111/b28294/RMAN.htm#BAJDCCGD

Maybe you are looking for