Archivelog Backup in 2 Node RAC [message #275374] |
Fri, 19 October 2007 12:37 |
youngb912
Messages: 56 Registered: October 2007 Location: New York
|
Member |
|
|
Hello good friends,
I am having a problem backing up my archivelogs. I have research everything posting here but non seems to help. I have try backing up using RMAN & Grid Control but still end up with the same issue. I am able to do a full back but not the archivelog. My archive destinations are:
Node 1 - /u02/oracle/admin/prod/arch/prod1
Node 2 - /u02/oracle/admin/prod/arch/prod2
Terminal window – If I cd into prod2 from node 1 I don’t see archive log listed and vise-versa. Everytime I attempt to backup from a node—I always receive the error message: expected archived log not found at the other node archivelog directory. For example:
RMAN> connected to target database: PROD (DBID=35109652)
using target database controlfile instead of recovery catalog
RMAN> echo set on
RMAN> set command id to 'BACKUP_PROD.WORLD__101907094924';
executing command: SET COMMAND ID
RMAN> backup device type disk tag 'BACKUP_PROD.WORLD__101907094924' archivelog all not backed up;
Starting backup at 19-OCT-07
current log archived
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=1496 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=1413 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 10/19/2007 09:50:21
RMAN-06059: expected archived log not found, lost of archived log compromises recoverability
ORA-19625: error identifying file /u02/oracle/admin/prod/arch/prod2/arch_0002_0000000122_623260315.arc
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 3
RMAN> delete noprompt archivelog until time 'sysdate - 7' backed up 1 times to device type disk;
released channel: ORA_DISK_1
released channel: ORA_DISK_2
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=1496 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=1413 devtype=DISK
RMAN> exit;
I am thinking that the node are not seeing the archivelogs for each other. My specifications are:
AIX 5
2 nodes RAC
Raw device
Let me know if you need any other info to help.
If there is an expert that willing to spend time on the phone with me tonight I will also appreciate that.
Godd bless
|
|
|
|
Re: Archivelog Backup in 2 Node RAC [message #275720 is a reply to message #275387] |
Mon, 22 October 2007 08:59 |
youngb912
Messages: 56 Registered: October 2007 Location: New York
|
Member |
|
|
Hello and thanks for the response. Below is the error I got after allocating channels as you suggested.
oracle:@cernappdbs1:/backup/prod> export ORACLE_SID=prod1
oracle:@cernappdbs1:/backup/prod> rman target / catalog rman/xxxx@rmandb
Recovery Manager: Release 10.1.0.5.0 - 64bit Production
Copyright (c) 1995, 2004, Oracle. All rights reserved.
connected to target database: PROD (DBID=35109652)
connected to recovery catalog database
RMAN> RUN
2> {ALLOCATE CHANNEL c2 DEVICE TYPE DISK FORMAT '/backup/prod/backup_db/%U' MAXPIECESIZE 2G CONNECT 'rman/xxx@prod1';
3> ALLOCATE CHANNEL c1 DEVICE TYPE DISK FORMAT '/backup/prod/backup_db/%U' MAXPIECESIZE 2G CONNECT 'rman/xxx@prod2';
4> backup (archivelog all);
5> }
allocated channel: c2
channel c2: sid=1459 devtype=DISK
released channel: c2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-12001: could not open channel c1
RMAN-10008: could not create channel context
RMAN-10003: unable to connect to target database
ORA-01017: invalid username/password; logon denied
Channel c2 was allocated because I am running the backup from that node. It seems RMAN is unable to allocate channel to node 2. Do you know what the problem is? My back up directory is “/backup/prod/backup_db” and is visible on node 1 only. I don’t think this make a different since the archivelogs are known by both nodes. I will like to add that I have double check and the issue does not have anything to do with wrong password. I changed the password several times--commit and retry but now way.
[Updated on: Mon, 22 October 2007 09:22] Report message to a moderator
|
|
|
|
Re: Archivelog Backup in 2 Node RAC [message #275796 is a reply to message #275793] |
Mon, 22 October 2007 13:35 |
youngb912
Messages: 56 Registered: October 2007 Location: New York
|
Member |
|
|
Good afternoon my friend,
I connected as sys but still had the same problem:
RMAN> RUN
2> {ALLOCATE CHANNEL c2 DEVICE TYPE DISK FORMAT '/backup/prod/backup_db/%U' MAXPIECESIZE 2G CONNECT 'SYS/change_on_install@prod1';
3> ALLOCATE CHANNEL c1 DEVICE TYPE DISK FORMAT '/backup/prod/backup_db/%U' MAXPIECESIZE 2G CONNECT 'SY/change_on_install@prod2';
4> backup (archivelog all);
5> }
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-12001: could not open channel c2
RMAN-10008: could not create channel context
RMAN-10003: unable to connect to target database
ORA-01017: invalid username/password; logon denied
I know the password is correct because I try it several times...lock key is off. Here is my RMAN perm configuration----which should have no effect on channel allocation if I am right:
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u01/oracle/product/10.1.0.5/db/dbs/backup_ctr_spfile/%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL 1 DEVICE TYPE DISK CONNECT 'sys/change_on_install';
CONFIGURE CHANNEL 2 DEVICE TYPE DISK CONNECT 'sys/change_on_install';
CONFIGURE CHANNEL DEVICE TYPE DISK CONNECT '*';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/oracle/product/10.1.0.5/db/dbs/snapshot_ctr_file/scontrolfile.ctl';
Thanks for your help so far...
|
|
|
|
Re: Archivelog Backup in 2 Node RAC [message #275825 is a reply to message #275820] |
Mon, 22 October 2007 20:04 |
youngb912
Messages: 56 Registered: October 2007 Location: New York
|
Member |
|
|
Hi, thanks again for the help. I cleared the various channel configurations, and try the backup but it didn’t work. The channels couldn’t be allocated. I then try another means---with my last attempt the channels were allocated but it claimed not to find the archivelogs. I have done CROSSCHECK several times so I didn’t do it this time. Here are the outputs. It shows that I can connect to SQL*PLUS as sysdba, and also the archive log:
oracle:@ppdbs1:/home/oracle> export ORACLE_SID=prod1
oracle:@ppdbs1:/home/oracle> rman target / catalog rman/rman@rmandb
connected to target database: PROD (DBID=35109652)
connected to recovery catalog database
RMAN> RUN
2> {ALLOCATE CHANNEL c2 DEVICE TYPE DISK FORMAT '/backup/prod/backup_db/%U' MAXPIECESIZE 2G CONNECT 'SYS/change_on_install@prod1';
3> ALLOCATE CHANNEL c1 DEVICE TYPE DISK FORMAT '/backup/prod/backup_db/%U' MAXPIECESIZE 2G CONNECT 'SY/change_on_install@prod2';
4> backup (archivelog all);
5> }
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-12001: could not open channel c2
RMAN-10008: could not create channel context
RMAN-10003: unable to connect to target database
ORA-01017: invalid username/password; logon denied
The try below is different but show some advancement – maybe this can lead to somthing
RMAN> RUN
2> {ALLOCATE CHANNEL C1 DEVICE TYPE DISK;
3> ALLOCATE CHANNEL C2 DEVICE TYPE DISK;
4> BACKUP ARCHIVELOG ALL;
5> }
allocated channel: C1
channel C1: sid=1460 devtype=DISK
allocated channel: C2
channel C2: sid=1367 devtype=DISK
Starting backup at 22-OCT-07
current log archived
released channel: C1
released channel: C2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 10/22/2007 20:45:13
RMAN-06059: expected archived log not found, lost of archived log compromises recoverability
ORA-19625: error identifying file /u02/oracle/admin/prod/arch/prod2/arch_0002_0000000186_623260315.arc
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 3
RMAN> exit
Recovery Manager complete.
oracle:@ppdbs1:/home/oracle> export ORACLE_SID=prod1
oracle:@ppdbs1:/home/oracle> sqlplus /nolog
SQL*Plus: Release 10.1.0.5.0 - Production on Mon Oct 22 20:51:34 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect sys/ as sysdba
Connected.
SQL>
Here is the archivelog directory. I’m login from prod1/node1. I am able to see the archive logs for prod1 but not prod2. When I login to prod2/node2 I can see its archive logs but not that for node1. It seems they are not visible to each other. How can I resolve this? Your help will be highly appreciated.
oracle:@cernappdbs1:/u02/oracle/admin/prod/arch> ls
prod1 prod2
oracle:@cernappdbs1:/u02/oracle/admin/prod/arch> cd prod1
oracle:@cernappdbs1:/u02/oracle/admin/prod/arch/prod1> ls
arch_0001_0000000699_623260315.arc arch_0001_0000000721_623260315.arc
arch_0001_0000000700_623260315.arc arch_0001_0000000722_623260315.arc
and many more for node1
oracle:@cernappdbs1:/u02/oracle/admin/prod/arch/prod1> cd ..
oracle:@cernappdbs1:/u02/oracle/admin/prod/arch> ls
prod1 prod2
oracle:@cernappdbs1:/u02/oracle/admin/prod/arch> cd prod2
oracle:@cernappdbs1:/u02/oracle/admin/prod/arch/prod2> ls
oracle:@cernappdbs1:/u02/oracle/admin/prod/arch/prod2>
As you can see there is none visible on prod2 while login through node1. If I where login to node2 it will be visible but not that for node1. Pls let me know if I'm posting too much info.
|
|
|
Re: Archivelog Backup in 2 Node RAC [message #275826 is a reply to message #275825] |
Mon, 22 October 2007 20:16 |
|
ebrian
Messages: 2794 Registered: April 2006
|
Senior Member |
|
|
youngb912 wrote on Mon, 22 October 2007 21:04 | ... It shows that I can connect to SQL*PLUS as sysdba...
oracle:@ppdbs1:/home/oracle> export ORACLE_SID=prod1
oracle:@ppdbs1:/home/oracle> sqlplus /nolog
SQL*Plus: Release 10.1.0.5.0 - Production on Mon Oct 22 20:51:34 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect sys/ as sysdba
Connected.
SQL>
|
Your test connection as SYS was only to the local database (prod1). You need to perform the SQL*Plus connection as SYS from prod1 node as follows:
sqlplus sys/password@prod2 as sysdba
After I had a closer at your code, also try a local connection to your database as:
sqlplus sys/password@prod1 as sysdba
In addition, check to ensure that your REMOTE_LOGIN_PASSWORDFILE = EXCLUSIVE for each instance. Your password file may not be available or incorrect.
[Updated on: Mon, 22 October 2007 20:36] Report message to a moderator
|
|
|
Re: Archivelog Backup in 2 Node RAC [message #276008 is a reply to message #275826] |
Tue, 23 October 2007 11:28 |
youngb912
Messages: 56 Registered: October 2007 Location: New York
|
Member |
|
|
Hi, thanks for your help again. You were right!!! The REMOTE_LOGIN_PASSWORDFILE was changed but sys password was not changed. I made the changes. Initially I couldn't connect from node 1 --sqlplus sys/password@prod2 as sysdba. That is now resolved. I ran the below command from NODE1, (which has the backup directory -/backup) and the archivelog backup proceeded without the numerous error I was having.
RMAN> RUN
2> {ALLOCATE CHANNEL c1 DEVICE TYPE DISK FORMAT '/backup/prod/backup_db/%U' MAXPIECESIZE 2G CONNECT 'sys/oracle@prod1';
3> ALLOCATE CHANNEL c2 DEVICE TYPE DISK FORMAT '/backup/prod/backup_db/%U' MAXPIECESIZE 2G CONNECT 'sys/oracle@prod2';
4> backup (archivelog all);
5> }
allocated channel: c1
channel c1: sid=1446 devtype=DISK
allocated channel: c2
channel c2: sid=1584 devtype=DISK
Starting backup at 23-OCT-07
current log archived
channel c1: starting archive log backupset
channel c1: specifying archive log(s) in backup set
input archive log thread=1 sequence=699 recid=843 stamp=636292388
And soon on until....
channel c1: starting piece 1 at 23-OCT-07
channel c1: finished piece 1 at 23-OCT-07
piece handle=/backup/prod/backup_db/3oiv78ms_1_1 comment=NONE
channel c1: starting piece 2 at 23-OCT-07
channel c1: finished piece 2 at 23-OCT-07
piece handle=/backup/prod/backup_db/3oiv78ms_2_1 comment=NONE
channel c1: backup set complete, elapsed time: 00:02:21
released channel: c1
released channel: c2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on c2 channel at 10/23/2007 11:42:39
ORA-19504: failed to create file "/backup/prod/backup_db/3niv78ea_1_1"
ORA-27040: file create error, unable to create file
IBM AIX RISC System/6000 Error: 2: No such file or directory
The "/backup/prod/backup_db” directory is located on node1. Does this mean node2 is unable to write to that directory? I guess I have to make it visible from node2. I will await your reply before I proceed with such a thing.
Thanks for helping and being patience.
|
|
|
|
Re: Archivelog Backup in 2 Node RAC [message #276027 is a reply to message #276024] |
Tue, 23 October 2007 12:40 |
youngb912
Messages: 56 Registered: October 2007 Location: New York
|
Member |
|
|
The directory exist on node1. Does it have to be on node2 or need to be visible? I am backing up to the backup directory on node1. What permission you referring to? Here is the direcory as it exist on node1:
drwxr-xr-x 12 oracle dba 4096 Oct 16 14:01 backup
|
|
|
|
Re: Archivelog Backup in 2 Node RAC [message #276032 is a reply to message #276028] |
Tue, 23 October 2007 12:59 |
youngb912
Messages: 56 Registered: October 2007 Location: New York
|
Member |
|
|
It is on a shared storage - SAN. here are more detail:
backupvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
loglv06 jfs2log 1 1 1 open/syncd N/A
feelv00 jfs2 4264 4264 10 open/syncd /backup
I am wondering how to make this visible to node2...
|
|
|
|
Re: Archivelog Backup in 2 Node RAC [message #276037 is a reply to message #276036] |
Tue, 23 October 2007 13:17 |
youngb912
Messages: 56 Registered: October 2007 Location: New York
|
Member |
|
|
I said local because the directory is not listed when you cd / in node 2. Unlike node1 (cd /---will show it to you). Ebrian has been very helpful so far. I beleive my current problem might be more of a UNIX, but since I don't have a UNIX admin I will have to work on getting it resolve.
-
Attachment: note.doc
(Size: 24.50KB, Downloaded 1802 times)
[Updated on: Tue, 23 October 2007 14:54] Report message to a moderator
|
|
|
|
|
Re: Archivelog Backup in 2 Node RAC [message #277354 is a reply to message #275374] |
Mon, 29 October 2007 13:45 |
youngb912
Messages: 56 Registered: October 2007 Location: New York
|
Member |
|
|
Good afternoono,
I got a successful archive log backup today. As, Ebrain recommended I made the /backup directory "share" and mounted it on node2. Both nodes can now see the backup "to" location.
Thanks a million to"Senior member", Ebrain for the help. I couldn't have gone pass this stage without your help. I can now relax knowing that I am backing up the archivelog.
Again, thanx.
[Updated on: Mon, 29 October 2007 13:46] Report message to a moderator
|
|
|
|