Table to check unregistered archive logfiles in standby database.
Hi,
Can you please let me know the table or query to check unregistered logfiles in standby database? (For 9i version)
Regards,
Nagendra Chillale
Nagendra Chillale wrote:
Yes satish, i know. :)
I know we can check alert log to ensure if the archive logfile was registered. Just grep for PHYSICAL or the specific sequence number and see for ALTER DATABASE PHYSCIAL command.
grep PHYSICAL alert_$ORACLE_SID.log
grep <sequence> alert_$ORACLE_SID.log
Regards,
Nagendra ChillaleIf you already knew this view was not available in 9i and that the method for finding out unregistered logs is through alert log, I don't see why you created this thread.
Similar Messages
-
Registering 850 logfiles in standby database
Hi,
There is a gap sequence of 850 logfiles and i need to register these logfiles as i allready shipped these logfiles to standby database from primary,
as i know i need to register one by one is any other alternative.
Appreciated inputs.
Thanks
PrakashNagendra Chillale wrote:
Yes satish, i know. :)
I know we can check alert log to ensure if the archive logfile was registered. Just grep for PHYSICAL or the specific sequence number and see for ALTER DATABASE PHYSCIAL command.
grep PHYSICAL alert_$ORACLE_SID.log
grep <sequence> alert_$ORACLE_SID.log
Regards,
Nagendra ChillaleIf you already knew this view was not available in 9i and that the method for finding out unregistered logs is through alert log, I don't see why you created this thread. -
Changing the archive destination in standby database?
My DB is running on Oracle 9.2.0.6.0. I have data guard for my primary database.
Now i wanted to change the archive destination only standby database. What is the process? Any response or any link is appreicated. ThanksThe standby database wouldn't generate archivelogs until and unless it is opened (eg in a failover). So, although there is a definition for the log archive destination in the standby's init.ora / spfile, it is used only to read archivelogs shipped from the primary.
If you are talking of the destination that the primary's archivelogs are shipped to on the standby, technically once the archivelogs are applied on the standby, they are not required and can be deleted. You would be able to configure this. -
Online Redolog Archiving on Logical Standby Databases!!
Hi,
Can I safely stop archiving on logical standby database? It has been inherited from primary database at the time of creation, but I don't see any reason why to keep it enabled while it's consuming unnecessary disk space on our server!!
Any body can give a valid reason to keep it enabled??
Thankshi
u dont need archiving on standby database as standby database reads archive files that come from primary database.its simply wastage of resource.stand by database was created from primary by taking a full backup.and to apply the archive files in case of failure u need atleast 1 backup of stand by database .and i assume u wont go for taking backup of standby database.
just worry about the archives of primary database.
kanchan
OCP ( 9i,10g) -
Manually apply archived log to standby database.
Hi all,
I am working on oracle 10g EE(10.2.0.4).I am having a very difficult database switchover case in my hand.
1.> There are two database .one primary(prim) and another standby(standby).
2.> Initially both of them was configured as oracle data guard, where prim was primary and standby was standby using rman .(RMAN>duplicate target database for
standby dorecover).
3.>But the rate of generation of archivelog is very high( 20 archivelog per hour with 200mb each).
4.> So automatic shipping of archivelog has been disabled from primary.(log_archive_dest_state_2=defer and nullifying the value of log_archive_dest_2).
5> Now after a period of time archived logs are shipped to dr site manually and applied manually.(alter database recover automatic standby database;)
6.> Now there is a hardware problem occured at primary..it will take 72 hours to come up.
How can i use standby database as primary for that 72 hour.As archive log apply is manually done and parameters are being changed,can i switch over these two?
Is it possible to switchover and switch back these two database with such a configuration?How can i use standby database as primary for that 72 hour.As archive log apply is manually done and parameters are being changed,can i switch over these two?
Is it possible to switchover and switch back these two database with such a configuration?
As of now you can perform failover your standby to primary database. you should have flashaback enabled, so you have to create a restore point.
Then it can be opened in read & write mode, So once you finished again you can go back to that point.
http://docs.oracle.com/cd/B19306_01/server.102/b14239/manage_ps.htm#i1017111
The above case applicable if you ready to loose, But it doesnt make sense. But in your case this doesnt work. Because once you start use of Standby as primary, there would be live/production data, which you need very much.
So there is lot of work to do.
You have to rebuild standby database and then switchover back to same location. So its a little trip work.
Have you enabled Dataguard Broker ?
Edited by: CKPT on Mar 13, 2012 1:43 PM -
Transfering archive logs in standby database
hi,
i am trying to create a standby database for a a test scenario using oracle 10g R2 and windows xp
Primary DB = primary
standby DB=stby
iam able to ping databases from each other using tnsping , but iam not able to transfer archive logs from primary to standby
pfile for primary is
primary.__db_cache_size=67108864
primary.__java_pool_size=4194304
primary.__large_pool_size=4194304
primary.__shared_pool_size=88080384
primary.__streams_pool_size=0
*.audit_file_dest='C:\oracle\product\10.2.0/admin/primary/adump'
*.background_dump_dest='C:\oracle\product\10.2.0/admin/primary/bdump'
*.compatible='10.2.0.1.0'
*.control_files='C:\oracle\product\10.2.0\oradata\primary\control01.ctl','C:\oracle\product\10.2.0\oradata\primary\control02.ctl','C:\oracle\product\10.2.0\oradata\primary\control03.ctl'
*.core_dump_dest='C:\oracle\product\10.2.0/admin/primary/cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='primary'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=primaryXDB)'
*.job_queue_processes=10
*.log_archive_dest_2='SERVICE=stby'
*.log_archive_dest_state_2=ENABLE
*.open_cursors=300
*.pga_aggregate_target=16777216
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=167772160
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='C:\oracle\product\10.2.0/admin/primary/udump'
log_archive_dest_1='LOCATION=C:\oracle\product\10.2.0\db_1\database\archive'
log_archive_dest_state_1=ENABLE
LOG_ARCHIVE_CONFIG='DG_CONFIG=(primary,stby)'
pfile from standby
primary.__db_cache_size=75497472
primary.__java_pool_size=4194304
primary.__large_pool_size=4194304
primary.__shared_pool_size=79691776
primary.__streams_pool_size=0
*.audit_file_dest='C:\oracle\product\10.2.0\admin\adump'
*.background_dump_dest='C:\oracle\product\10.2.0\admin\bdump'
*.compatible='10.2.0.1.0'
*.control_files='C:\oracle\product\10.2.0\oradata\stby.ctl'
*.core_dump_dest='C:\oracle\product\10.2.0\admin\cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='primary'
db_unique_name='stby'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=primaryXDB)'
*.job_queue_processes=10
*.open_cursors=300
*.pga_aggregate_target=16777216
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=167772160
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='C:\oracle\product\10.2.0\admin\udump'
standby_archive_dest='C:\oracle\product\10.2.0\stbyarch'
db_file_name_convert='C:\oracle\product\10.2.0\oradata\primary','C:\oracle\product\10.2.0\oradata'
log_file_name_convert='C:\oracle\product\10.2.0\oradata\primary','C:\oracle\product\10.2.0\oradata'
standby_file_management=AUTOYou do not point to the standby database from your primary, in order to get the archivelogs transfered. You need to set at least the parameter LOG_ARCHIVE_DEST_2 like this:
SQL>alter system set LOG_ARCHIVE_DEST_2='SERVICE=stdby VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=stdby';stdby has to be resolved by the tnsnames.ora on the primary server. Have a look here:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm#i67520
That explains all you need to do to create a physical standby briefly.
Kind regards
Uwe
http://uhesse.wordpress.com -
Member's of v$logfile shows broken in standby database
Friends,
DB: 11.2.0.3 - 64 bit
OS: OEL 6.3 64 bit
just now i set up the physical standby database using rman duplicate.....
while duplicating i received this error...but i ignored...that error...
RMAN-05535: WARNING: All redo log files were not defined properly.after finishing the duplication...i checked the v$logfile in standby database..
SQL> select member from v$logfile;
MEMBER
/u01/app/oracle/product/11.2.0/db_1/dbs/broken2
/u01/app/oracle/product/11.2.0/db_1/dbs/broken1
/u01/app/oracle/product/11.2.0/db_1/dbs/broken0
/u01/app/oracle/product/11.2.0/db_1/dbs/broken3
/u01/app/oracle/product/11.2.0/db_1/dbs/broken4
/u01/app/oracle/product/11.2.0/db_1/dbs/broken5
6 rows selected.how to solve this issue?
thanksHello
Most likely you don't have DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT in the standby INIT file.
Example here :
http://www.visi.com/~mseberg/rman/diff_database_duplicating.html
( see Step 4: Create an Initialization Parameter File for the Auxiliary Instance )
Example
LOG_FILE_NAME_CONVERT=('/u01/app/oracle/flash_recovery_area/RECOVER2', '/u01/app/oracle/flash_recovery_area/RECLONE')You can have more than one location as long as you add them in groups of two. (Before, After)
My duplicate notes are :
http://www.visi.com/~mseberg/duprman2.html
duplicate for standby fails with RMAN-05535 when path the same as primary [ID 783113.1]
Best Regards
mseberg
Edited by: mseberg on Oct 12, 2012 6:03 AM -
Create ONLINE logfile in physical standby database
We have created a physical standby database with rman duplicate command on a remote server
"duplicate target database for standby dorecover nofilenamecheck"
When I see the standby server...Online logfiles are not created however its relevant entries are there in V$LOG and V$LOGFILE views.
I guess it is the default behaviour of duplicate command in RMAN and we can not specify LOGFILE clause when we create standby database.
Now the problem is we could not drop the online logfile on standby database since it's status is "CURRENT", "ACTIVE".
Since the ONLINE LOGFILE are not actually created , "ALTER DATABASE CLEAR LOGFILE GROUP " command returns with error as it could not find the file in the server.
So How we can drop the current/active online logfile and add new ones in standby db?I'm assuming you have physical standby. Here are step I did in the past.
1) create a backup control file
2) bring the database back using the "recreate control file" it the trace file BUT you need to remove or comment out the line that has the corrupt or missing redo log file. And don't forget to add the tempfile after you recreate the controlfile
example:
alter database backup controlfile to trace;
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS FORCE LOGGING ARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 '/oracledata/orcl/redo01.log' SIZE 200M,
GROUP 2 '/oracledata/orcl/redo02.log' SIZE 200M,
GROUP 3 '/oracledata/orcl/redo03.log' SIZE 200M,
# GROUP 3 '/oracledata/orcl/redo03.log' SIZE 200M
-- STANDBY LOGFILE
-- GROUP 10 '/oracledata/orcl/redostdby04.log' SIZE 200M,
-- GROUP 11 '/oracledata/orcl/redostdby05.log' SIZE 200M
DATAFILE
'/oracledata/orcl/system01.dbf',
'/oracledata/orcl/undotbs01.dbf',
'/oracledata/orcl/sysaux01.dbf',
'/oracledata/orcl/users01.dbf'
CHARACTER SET WE8ISO8859P1
If you just want to add the standby redo log then using this command.
alter database add standby logfile
'/<your_path>/redostdby01.log' size 200M reuse, -
Error archiving to standby database
Hi
I get the following error from tyhe primary db when trying to archive to a standby database.
(tnsping is successfull)
*** 2007-02-12 11:24:54.263
RFS network connection lost at host 'test9isb'
Error 3113 attaching RFS server to standby instance at host 'test9isb'
Error 3113 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'test9isb'
Heartbeat failed to connect to standby 'test9isb'. Error is 3113.
*** 2007-02-12 11:24:54.263
kcrrfail: dest:2 err:3113 force:0
ORA-03113: end-of-file on communication channel
Watching the standby listaner log file, it doesnt seem to get that far, so the problem is probably on the primary/outgoing side ....
Can anyone suggest where my problem is ?
Cheers
Ian
Message was edited by:
user553552Hi
I found a problem on the standby hosts listener.ora
But now I cant really see any errors anywhere, but logs aren't being transferred ....
Standby query "SELECT PROCESS, STATUS, THREAD#, SEQUENCE#, BLOCK#, BLOCKS FROM V$MANAGED_STANDBY;" is giving output:
PROCESS STATUS THREAD# SEQUENCE# BLOCK# BLOCKS
ARCH CONNECTED 0 0 0 0
ARCH CONNECTED 0 0 0 0
MRP0 WAIT_FOR_LOG 1 187 0 0
RFS RECEIVING 0 0 0 0
primary trace file says:
Connecting to destination LOG_ARCHIVE_DEST_2 standby host 'test9isb'
Attaching RFS server to standby instance at 'test9isb'
Standby database restarted; old mount ID 0x8c27e216 now 0x8c28adf9
Any advice pls ?!? -
How to apply archivelog with gap on standby database
Hi All,
Oracle Database version : 9.2.0.6
Following is my sequence of commands on standby database.
SQL>alter database mount standby database;
SQL> RECOVER AUTOMATIC STANDBY DATABASE UNTIL CHANGE n;
ORA-00279: change 809120216 generated at 07/24/2006 09:55:03 needed for thread
1
ORA-00289: suggestion : D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC
ORA-00280: change 809120216 for thread 1 is in sequence #19921
ORA-00278: log file 'D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC' no longer
needed for this recovery
ORA-00308: cannot open archived log
'D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
I have check the last sequence# on standby database which is 19921. And I have archivelog starting from sequence# 20672 onwards. When I am trying to apply archive log starting from sequence# 20672 , it is searching for 'D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC' file and cancel the recovery. Please note that I don't have those missing archive on Primary server as well. So How can I apply the remaining archive log which I do have from 20672 onwards.
I hope I am not creating any confusion.
Thx in advance.Hi Aijaz,
Thx for your answer. But my scenario is bit complex. I have checked my standby database status which is not running in recovery mode. I have tried to find archive_gap which is 0 on standby server. I am copying all archived log from primary to standby thru the script every 2 hour and appying them on standby. After applying, the script is removing all applied log files from primary as well as standby. So it is something like I have archivelog from 1,2,3,7,8,9,10. So 4,5 and 6 archivelog are missing which is required when I am trying to recover standby database. Also note that I want to apply 7,8,9,10. I will loose some data from those missing archive but I have cold back any way. I don't have those missing archivelog files(4,5 and 6) anywhere at all. So how can I recover standby database. I am using standby just for the backup purpose.
I hope my question is clear now.
Thx in advance
- Mehul -
Backups on Physical standby database?
I am using dataguard and a physical standby database.How to assign backups on physical standby database to reduce the load on Primary database.
environment: windows
Database version:11.2.0.1.0
What are the pro and cons on assigning RMAN backups jobs to physical standby database?Is it better to assign the RMAN backups on standby?i am using the RMAN catalog.Yes, Already mentioned to reduce contention on primary. You can register even standby.
Do i need to change the setting to backup archive logs from standby database? If i won't backup the archive logs on Primary the FRA will be full and i can't access it ?You can include even archive logs with your database backup.
How to assign the archive logs backups,full backup on standby database?Same script will work, Before that cancel MRP and after backup start MRP. That should be fine.
Recently i tested backup from standby and restore, Please see below log.
=================================================================================================
Backup Scrpts:-
=================================================================================================
RMAN> run
2> 3> ALLOCATE CHANNEL dev11 type disk;
4> backup as compressed backupset
5> format '/home/oracle/backup/DBF_FULLCOLD_BKP_%s'
6> filesperset 30
7> (database);
backup current controlfile format
8> 9> '/home/oracle/backup/CTL_FULLCOLD_BKP_%s';
RELEASE CHANNEL dev1;
RELEASE CHANNEL dev2;
10> 11> 12> }
using target database control file instead of recovery catalog
allocated channel: dev11
channel dev11: SID=1 device type=DISK
Starting backup at 03-FEB-13
Starting implicit crosscheck backup at 03-FEB-13
Finished implicit crosscheck backup at 03-FEB-13
Starting implicit crosscheck copy at 03-FEB-13
Crosschecked 4 objects
Finished implicit crosscheck copy at 03-FEB-13
searching for all files in the recovery area
channel dev11: starting compressed full datafile backup set
channel dev11: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/orcl/sysaux01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/orcl/users01.dbf
channel dev11: starting piece 1 at 03-FEB-13
channel dev11: starting compressed full datafile backup set
channel dev11: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/orcl/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/orcl/sysaux01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/orcl/undotbs01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/orcl/users01.dbf
channel dev11: starting piece 1 at 03-FEB-13
channel dev11: finished piece 1 at 03-FEB-13
piece handle=/home/oracle/backup/DBF_FULLCOLD_BKP_23 tag=TAG20130203T192535 comment=NONE
channel dev11: backup set complete, elapsed time: 00:03:57
channel dev11: starting compressed full datafile backup set
channel dev11: specifying datafile(s) in backup set
including current control file in backup set
channel dev11: starting piece 1 at 03-FEB-13
channel dev11: finished piece 1 at 03-FEB-13
piece handle=/home/oracle/backup/DBF_FULLCOLD_BKP_24 tag=TAG20130203T192535 comment=NONE
channel dev11: backup set complete, elapsed time: 00:00:02
Finished backup at 03-FEB-13
Starting backup at 03-FEB-13
channel dev11: starting full datafile backup set
channel dev11: specifying datafile(s) in backup set
including current control file in backup set
channel dev11: starting piece 1 at 03-FEB-13
channel dev11: finished piece 1 at 03-FEB-13
piece handle=/home/oracle/backup/CTL_FULLCOLD_BKP_25 tag=TAG20130203T192939 comment=NONE
channel dev11: backup set complete, elapsed time: 00:00:03
Finished backup at 03-FEB-13
released channel: dev11
=================================================================================================
Backup Files:-
=================================================================================================
[oracle@oracle-stby backup]$ ls -ltr
total 364572
-rw-r----- 1 oracle oinstall 361684992 Feb 3 19:29 DBF_FULLCOLD_BKP_23
-rw-r----- 1 oracle oinstall 1163264 Feb 3 19:29 DBF_FULLCOLD_BKP_24
-rw-r----- 1 oracle oinstall 10092544 Feb 3 19:29 CTL_FULLCOLD_BKP_25
[oracle@oracle-stby backup]$
=================================================================================================
Restore CONTROL FILE:-
=================================================================================================
RMAN> restore controlfile from '/home/oracle/backup/CTL_FULLCOLD_BKP_25';
Starting restore at 03-FEB-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=19 device type=DISK
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
output file name=/u02/app/oracle/oradata/orcl/control01.ctl
output file name=/u02/app/oracle/flash_recovery_area/orcl/control02.ctl
Finished restore at 03-FEB-13
RMAN> sql 'alter database mount';
sql statement: alter database mount
released channel: ORA_DISK_1
RMAN>
=================================================================================================
Restore Database:-
=================================================================================================
RMAN> restore database;
Starting restore at 03-FEB-13
Starting implicit crosscheck backup at 03-FEB-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=19 device type=DISK
Crosschecked 2 objects
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to /u01/app/oracle/oradata/orcl/system01.dbf
channel ORA_DISK_1: restoring datafile 00002 to /u01/app/oracle/oradata/orcl/sysaux01.dbf
channel ORA_DISK_1: restoring datafile 00003 to /u01/app/oracle/oradata/orcl/undotbs01.dbf
Sun Feb 03 19:37:47 2013
Checker run found 4 new persistent data failures
Sun Feb 03 19:38:40 2013
Full restore complete of datafile 3 /u01/app/oracle/oradata/orcl/undotbs01.dbf. Elapsed time: 0:00:56
checkpoint is 1595132
last deallocation scn is 1519218
channel ORA_DISK_1: piece handle=/home/oracle/backup/DBF_FULLCOLD_BKP_23 tag=TAG20130203T192535
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:02:07
Finished restore at 03-FEB-13
RMAN>
=================================================================================================
Open Database:-
=================================================================================================
SQL> alter database open resetlogs;
Database altered.
SQL> select open_mode,database_role from v$database;
OPEN_MODE DATABASE_ROLE
READ WRITE PRIMARY
SQL>Edited by: CKPT on Feb 21, 2013 11:24 PM -
Hi!!
I have created standby database (testcat) for primary database (test) using Duplicate Command of RMAN on same server (windows XP) on Oracle 11.2 . I know how to create standby database But i don't know how and when standby database works. I checked init.ora file of standby database it contains all parameters prefixed with *. as follow
*.db_create_file_dest='F:\app\Administrator\oradata'
*.db_domain=''
*.db_recovery_file_dest='F:\app\Administrator\flash_recovery_area'
*.db_recovery_file_dest_size=10737418240
*.db_unique_name='testcat'
*.DB_NAME='test'
*.control_files="D:\APP\ORACLE\ORADATA\TESTCAT\CONTROLFILE\CONTROL_STAND1.CTL‘'
While init.ora file of primary database contains entries like
db_create_file_dest=F:\app\Administrator\oradata
db_recovery_file_dest=F:\app\Administrator\flash_recovery_area
db_recovery_file_dest_size=4039114752
control_files="F:\APP\ADMINISTRATOR\ORADATA\TEST\CONTROLFILE\O1_MF_8TXW6QN0_.CTL"
So I want to know is
1. IS there any difference between parameter that start with .* and start without .*
2. Can i set db_create_file_dest parameter in init.ora of standby database to another location.
3. How redo log will be applied to standby database when I run ALTER DATABASE RECOVER ..... command
4. where archived log files of standby database will stored?1. Fetch Archive Log (FAL) Client :- It requests for archived redo log files from the primary site.
That means FAL Client is required (should exist) on standby database server. Am i right here?
FAL Client is Standby database, FAL Client requre archived log from FAL Server (primary, Cascading standby database ) for Gap Resolution.
2. Fetch Archive Log (FAL) Server:- It requests for archive redo logs from FAL Client (Standby database).That means FAL Server is required (should exist) on primary database server.
If yes then, why it is required because FAL Server request for archived redo logs from standby database while on other side standby database can not have redo logs as it runs in READ ONLY Access mode (So no DML and DDL) ?.
Also primary database will be always one step ahead in terms of archive logs than standby database and hence there is no need to request for archived logs from stanby. Am i right here?
Yes you are right. Primary is newer require archived log from standby. You asked and answered.
Regards
Mahir M. Quluzade -
Regrading standby database in standard edition
hi gurus
i m facing problem in configuring standby database in standard edition windows 2008 .
os-windows 2008 standard
oracle 11gr2
i have copied files from primary n copied it to same location on standby...at that time database was in noarchivelog mode
then i made it archive n create standby controlfile...also i have created same service name thru oradim with mentioning pfile and same password as on primary
so it created pfile and password file...
i opened the database in nomount with pfile
then mount with standby controlfile it got mounted n the mode is automatically archivelog mode but as i didn't taken the same pfile of primary it didnt take the destinations as such n made archive in flash recovery area
now i m a bit confused how to apply archive..i copied some archive and placed it in flash rec area
i tried all options managed recovery.recover standby database,recover database until cancel
but all give error
please tell how i proceed..what shud b the right process in standby standard edition
if possible send me a good link for standby database creation in windows 2008 standard with how to ftp files with mget mput..
anyone if kindly provide a good link...wud b of great help
thanks allon your standby database you can use:
set logsource path_to_archives
This will let Oracle know where the archive files are on the standby database.
Then you can apply the archives with:
recover standby database
Another option is to use Dbvisit Standby to automate the whole standby database (including creation) for you when you have Oracle Standard One or Oracle Standard Edition One. -
I am in process of configuring the stand by database and I am getting the following error in standby database
SQL> startup nomount pfile='/disk3/stand/initSTAND.ora';
ORACLE instance started.
Total System Global Area 314572800 bytes
Fixed Size 1978272 bytes
Variable Size 96473184 bytes
Database Buffers 205520896 bytes
Redo Buffers 10600448 bytes
SQL> alter database mount standby database;
Database altered.
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
Database altered.
SQL> SQL> alter database open read only;
alter database open read only
ERROR at line 1:
ORA-16004: backup database requires recovery
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: '/disk6/dbase/DSA/system01.dbf'First step is to check the description of errors..
ORA-16004: backup database requires recovery
Cause: The control file is for a backup database which requires recovery, and cannot be opened for read-only access by this instance.
Action: Perform the necessary recovery and re-open for read-only access.
Check the DBWR trace file and alert_log file. Check the SCN applied on standby database. Find out any archivelog required to be applied...
Read 8.2 section..
Documentation:-
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14239/manage_ps.htm#i1017111 -
HI , I have problem with my standby database, all parameters are good work but in my alert log file have following error;
ORA-16401: archivelog rejected by RFS, pls help me what the problem???
On Primary: spfileORCL.ora
*.control_files='/u01/oracle/oradata/orcl/control01.ctl','/u01/oracle/oradata/orcl/control02.ctl','/u01/oracle/oradata/orcl/control03.ctl'
*.db_recovery_file_dest='/u01/oracle/flash_recovery_area'
*.db_unique_name='BAKI'
*.remote_login_passwordfile='EXCLUSIVE'
*.LOG_ARCHIVE_CONFIG='DG_CONFIG=(BAKI,LONDON)'
*.LOG_ARCHIVE_DEST_1='LOCATION=/u02 VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=BAKI'
*.LOG_ARCHIVE_DEST_2='SERVICE=LONDON LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=LONDON'
*.LOG_ARCHIVE_DEST_STATE_1=enable
*.LOG_ARCHIVE_DEST_STATE_2=enable
*.LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
*.FAL_SERVER=LONDON
*.FAL_CLIENT=BAKI
*.STANDBY_FILE_MANAGEMENT=AUTO
*.SERVICE_NAMES=BAKI
ON my standby database spfileORCL.ora
*.control_files='/u01/oracle/oradata/orcl/stanctl.ctl'
*.db_recovery_file_dest='/u01/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.remote_login_passwordfile='EXCLUSIVE'
*.db_unique_name='LONDON'
*.LOG_ARCHIVE_CONFIG='DG_CONFIG=(BAKI,LONDON)'
*.LOG_ARCHIVE_DEST_1='LOCATION=/u02 VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=BAKI'
*.LOG_ARCHIVE_DEST_2='SERVICE=BAKI LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=BAKI'
*.LOG_ARCHIVE_DEST_STATE_1=enable
*.LOG_ARCHIVE_DEST_STATE_2=enable
*.LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
*.FAL_SERVER=BAKI
*.FAL_CLIENT=LONDON
*.STANDBY_FILE_MANAGEMENT=AUTO
*.SERVICE_NAMES=LONDON
all connections work well:
SQL> conn sys/sys@BAKI as sysdba
Connected.
SQL>
SQL> conn sys/sys@LONDON as sysdba
Connected.
SQL>
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
OS: SUSE 10Primary :
alert_log:
Errors in file /u01/oracle/admin/orcl/bdump/orcl_arc0_8465.trc:
ORA-16401: archivelog rejected by RFS
orcl_arc0_8465.trc:
Error 16401 creating standby archive log file at host 'LONDON'
ORA-16401: archivelog rejected by RFS
kcrrwkx: work to do 0x2 (end)
Error 16401 creating standby archive log file at host 'LONDON'
ORA-16401: archivelog rejected by RFS
kcrrwkx: nothing to do (end)
kcrrwkx: nothing to do (end)
kcrrwkx: nothing to do (end)
*** 2009-09-08 12:32:06.342
tkcrrsarc: (WARN) Failed to find ARCH for message (message:0xa)
tkcrrpa: (WARN) Failed initial attempt to send ARCH message (message:0xa)
tkcrrsarc: (WARN) Failed to find ARCH for message (message:0x2)
tkcrrpa: (WARN) Failed initial attempt to send ARCH message (message:0x2)
kcrrwkx: work to do 0x2 (end)
Error 16401 creating standby archive log file at host 'LONDON'
ORA-16401: archivelog rejected by RFS
kcrrwkx: work to do 0x2 (end)
Error 16401 creating standby archive log file at host 'LONDON'
ORA-16401: archivelog rejected by RFS
kcrrwkx: nothing to do (end)
kcrrwkx: nothing to do (end)
kcrrwkx: nothing to do (end)
Standby:
alert_log
Tue Sep 8 12:19:28 2009
Errors in file /u01/oracle/admin/orcl/udump/orcl_rfs_5463.trc:
ORA-16401: archivelog rejected by RFS
RFS[4]: Archivelog thread 1 sequence 7 cannot be reused
Tue Sep 8 12:19:28 2009
Errors in file /u01/oracle/admin/orcl/udump/orcl_rfs_5463.trc:
ORA-16401: archivelog rejected by RFS
Tue Sep 8 12:19:31 2009
ARC1: Archiving not possible: No primary destinations
ARC1: Failed to archive thread 1 sequence 6 (4)
orcl_rfs_5463.trc:
ORA-16401: archivelog rejected by RFS
*** 2009-09-08 12:20:28.159
KCRRFLAS
KCRRSNPS
*** 2009-09-08 12:20:28.162 60679 kcrr.c
RFS[4]: Archivelog thread 1 sequence 6 cannot be reused
This problem can occur as the result of multiple primary and/or
standby database(s) trying to archive to this standby database.
This is not allowed, since successfully completed archivelogs
would be overwritten.
ORA-16401: archivelog rejected by RFS
*** 2009-09-08 12:20:28.165 60679 kcrr.c
RFS[4]: Archivelog thread 1 sequence 7 cannot be reused
This problem can occur as the result of multiple primary and/or
standby database(s) trying to archive to this standby database.
This is not allowed, since successfully completed archivelogs
would be overwritten.
ORA-16401: archivelog rejected by RFS
Maybe you are looking for
-
Transferência de Mercadoria com unidade de medida em Caixa
Boa tarde prezados, estou com uma dificuldade em um determinado cliente no que se refere a transferência de mercadorias para as filiais. O que ocorre é o seguinte, um determinado item é configurado para comprar em Caixas e cada caixa contém 6 Un
-
Vendor and 0CO_OM_WBS_6
Hi all Can anyone help explain why the Vendor field (0CREDITOR in this case) is not always being populated with 0CO_OM_WBS_6. I need to report using Vendor with Cost Element and Profit Center hierarchies and I am using this extractor in 0COOM_C02 (C
-
ODI 10.1.3.5 with SQL Server 2005
Good afternoon, We recently installed 10.1.3.5, in a Windows environment with SQL Server 2005 and Hyperion Essbase/Planning/HFM 11.1.1. We were following John Goodwin's infamous blog (thanks, John!), but ran into a number of snags. For instance, when
-
How do I edit out background objects in CS 4 Premiere Pro or After Effects?
Hi, I've got the CS4 version of Premiere Pro and After Effects. I'm editing a seminar video and there is a very ugly metal bar right behind the speaker, looking as though it is going right through his head. Is there a way to edit this out? I do n
-
Ringtone on computer to use as ringtone on Iphone4
I have a ringtone on my computer which I would like to use as the ringtone on my Iphone4. I have used ITunes to transfer the file to my phone. But how do I get it to be available for selection as the ringtone?