Dataguard Setup
Hi Guys,
I am trying to setup an physical standby across 2 locations in different cities. used RMAN duplicate command to setup an standby database on DR location.
Now once RMAN completed, we executed alter database recover managed standby database using current logfile command..
On standby database it shows:
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 0
Next log sequence to archive 0
Current log sequence 0
and on primary current sequence is 3395
Also on standby
select PROCESS,STATUS,THREAD#,SEQUENCE#,BLOCK#,DELAY_MINS from v$managed_standby where process like 'MRP%';
PROCESS STATUS THREAD# SEQUENCE# BLOCK# DELAY_MINS
MRP0 WAIT_FOR_LOG 1 3788 0 0
Not sure what is the issue, please suggest..
Thanks and Regards!
Thanks for the reply guys..
On Primary database:
SQL> SELECT name, display_value FROM v$parameter WHERE name IN ('db_name','db_unique_name','log_archive_config','log_archive_dest_2','log_archive_dest_state_2','fal_client','fal_server','standby_file_management','standby_archive_dest','db_file_name_convert','log_file_name_convert','remote_login_passwordfile','local_listener','dg_broker_start','dg_broker_config_file1','dg_broker_config_file2','log_archive_max_processes') order by name;
NAME DISPLAY_VALUE
db_file_name_convert
db_name orcl
db_unique_name orcl
dg_broker_config_file1 D:\SOFTWARES\ORACLE11GR2DB\PRO
DUCT\11.2.0\DBHOME_1\DATABASE\
DR1ORCL.DAT
dg_broker_config_file2 D:\SOFTWARES\ORACLE11GR2DB\PRO
DUCT\11.2.0\DBHOME_1\DATABASE\
DR2ORCL.DAT
dg_broker_start FALSE
fal_client
fal_server
local_listener LISTENER_ORCL
log_archive_config dg_config=(orcl,dr)
log_archive_dest_2 service=dr async valid_for=(on
line_logfile,primary_role) db_
unique_name=dr
log_archive_dest_state_2 enable
log_archive_max_processes 4
log_file_name_convert
remote_login_passwordfile EXCLUSIVE
standby_archive_dest %ORACLE_HOME%\RDBMS
standby_file_management MANUAL
SQL> col name for a10
SQL> col DATABASE_ROLE for a10
SQL> SELECT name,db_unique_name,protection_mode,DATABASE_ROLE,OPEN_MODE,switchover_status from v$database;
NAME DB_UNIQUE_NAME PROTECTION_MODE DATABASE_R OPEN_MODE SWITCHOVER_STATUS
ORCL orcl MAXIMUM PERFORMANCE PRIMARY READ WRITE RESOLVABLE GAP
SQL> select thread#,max(sequence#) from v$archived_log group by thread#;
THREAD# MAX(SEQUENCE#)
1 3798
SQL> SELECT ARCH.THREAD# "Thread", ARCH.SEQUENCE# "Last Sequence Received", APPL.SEQUENCE# "Last Sequence Applied", (ARCH.SEQUENCE# - APPL.SEQUENCE#) "Difference"
2 FROM
3 (SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,
4 (SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL
5 WHERE ARCH.THREAD# = APPL.THREAD# ORDER BY 1;
Thread Last Sequence Received Last Sequence Applied Difference
1 3798 3798 0
SQL> col severity for a15
SQL> col message for a70
SQL> col timestamp for a20
SQL> select severity,error_code,to_char(timestamp,'DD-MON-YYYY HH24:MI:SS') "timestamp" , message from v$dataguard_status where dest_id=2;
SEVERITY ERROR_CODE timestamp MESSAGE
Error 16058 16-JUN-2012 21:30:15 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:39:52 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:40:53 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:41:53 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:42:54 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:43:54 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:44:55 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:45:55 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:46:56 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:47:56 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
SEVERITY ERROR_CODE timestamp MESSAGE
Error 16058 16-JUN-2012 22:48:57 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:49:57 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:50:58 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:51:58 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:52:59 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:54:00 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:55:00 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:56:01 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:57:01 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:58:02 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 22:59:02 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:00:03 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:01:03 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:02:04 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:03:05 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:04:05 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
SEVERITY ERROR_CODE timestamp MESSAGE
Error 16058 16-JUN-2012 23:05:06 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:06:06 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:07:07 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:08:07 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:09:08 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:10:08 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:11:09 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:12:12 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:13:13 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:14:13 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:15:14 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:16:14 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:17:15 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:18:16 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:19:16 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:20:16 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
SEVERITY ERROR_CODE timestamp MESSAGE
8.
Error 16058 16-JUN-2012 23:21:17 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:22:18 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:23:18 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:24:19 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:25:19 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:26:20 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:27:20 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:28:21 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:29:21 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:30:22 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:31:22 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:32:23 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:33:23 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:34:24 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:35:24 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
SEVERITY ERROR_CODE timestamp MESSAGE
8.
Error 16058 16-JUN-2012 23:48:31 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:49:32 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:50:32 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:51:33 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
SEVERITY ERROR_CODE timestamp MESSAGE
Error 16058 16-JUN-2012 23:52:33 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:53:34 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:54:35 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:55:35 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:56:36 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:57:36 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:58:37 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 16-JUN-2012 23:59:37 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 00:00:38 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 00:01:39 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 00:02:39 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:10:52 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:11:52 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:12:53 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:13:54 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:14:54 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:15:55 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:16:55 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:17:56 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:18:56 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:19:57 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:20:57 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:21:58 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:22:59 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:23:59 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:25:00 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
SEVERITY ERROR_CODE timestamp MESSAGE
Error 16058 17-JUN-2012 01:26:00 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:27:01 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:28:01 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:29:02 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:30:03 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:31:03 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:32:04 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:33:05 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:34:06 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
Error 16058 17-JUN-2012 01:35:06 PING[ARC1]: Heartbeat failed to connect to standby 'dr'. Error is 1605
8.
SQL> select ds.dest_id id
2 , ad.status
3 , ds.database_mode db_mode
4 , ad.archiver type
5 , ds.recovery_mode
6 , ds.protection_mode
7 , ds.standby_logfile_count "SRLs"
8 , ds.standby_logfile_active active
9 , ds.archived_seq#
10 from v$archive_dest_status ds
11 , v$archive_dest ad
12 where ds.dest_id = ad.dest_id
13 and ad.status != 'INACTIVE'
14 order by
15 ds.dest_id;
ID STATUS DB_MODE TYPE RECOVERY_MODE PROTECTION_MODE SRLs ACTIVE ARCHIVED_SEQ#
1 VALID OPEN ARCH IDLE MAXIMUM PERFORMANCE 0 0 3798
2 ERROR UNKNOWN LGWR IDLE MAXIMUM PERFORMANCE 0 0 0
SQL> column FILE_TYPE format a20
SQL> col name format a60
SQL> select name
2 , floor(space_limit / 1024 / 1024) "Size MB"
3 , ceil(space_used / 1024 / 1024) "Used MB"
4 from v$recovery_file_dest
5 order by name;
NAME Size MB Used MB
D:\Softwares\Oracle11gR2DB\flash_recovery_area 3912 282
SQL> spool off
Similar Messages
-
Hi Guys,
I am planning to have Dataguard setup for my single instance database in HP-UNIX.
Please let me know the pre-requistes for this setup. I currently have Oracle enterprise edition installed. Do i need any specific application, tool or software installed for this, etc ?
Also, help me out with the configuration steps.
Thanks.user9098221 wrote:
Hi,
Thanks. Apart from RMAN, do i need to have anything else installed for the setup ?
Also, if i choose the manual method(using sql's), do I need to install anything ?
I understand these are basics. Please bear with me.
Thanks.Hi,
On standby side need following steps.
1. You must install Oracle Database Enterprise Edition (same version, same patchset) Software only.
2. Add Listener, and add standby service name
3. You must create folders for data files, flash recovery area and diags.
Not need any additional tools.
Regards
Mahir M. Quluzade -
Using DBConsole In Dataguard Setup
Hi,
We have 3 node RAC Primary and a 3 node RAC Standby part of our Production Dataguard setup. We are using DBConsole to monitor the databases in our environment.
The agent and console was up on the Primary site and the Production database was being continuously monitored using the GUI.
Recently as part of maintenance activity the database roles have been switched.
My question is :
Can we just proceed to start the emagent and console on the new primary site (which was not running initially as it was a standby previously) and continue to monitor the environment?What is the risk involved in doing so?
Regards,
SantoshHello;
I know it's not the question you asked but Data Guard broker makes this simple and is a great option.
DGMGRL> show configuration;
If I were going to use EM I would make sure that:
1. I deploy Enterprise Manager agents to the both primary and standby servers.
2. The Standby database(s) are added to to Enterprise Manager.
Best Regards
mseberg -
Please can somebody provide me the source for step by step single instance physical standby dataguard setup for my single instance database.
http://static7.userland.com/oracle/gems/alejandroVargas/DataGuardPhysicalStandbystep.pdf
I got this PDF from the above link, do you have one for 'single instance to single instance dataguard setup' as in the one you sent from Page 17 of 27 it starts telling about RAC which is confusing me. Please send if you have any other pdf or source. -
Dataguard setup for selected schemas
Version:10.2, 11.2
Platform : Solaris 5.10
In our Production DB, we have some schemas which we do not want to be replicated at the standby site. Logical backup is enough for these schemas.
Instead of replicating the entire database, Is there a way we could set up dataguard in which the logs are shipped only for selected schemas?With a Physical Standby Database , you always 'replicate' your whole Primary. With Logical Standby, though, you could exclude certain schemas from the 'replication'.
Another option would be - as already mentioned by others - to do a regular replication with Streams or Golden Gate and only replicate the schemas resp. objects that you deem important.
However, I would recommend that you review the requirement to exclude 'unimportant' schemas from your Standby Database. It makes the whole setup more complicated than necessary.
Just go with Physical Standby and ignore those schemas - why bother?
Kind regards
Uwe Hesse
http://uhesse.wordpress.com -
Dataguard setup using hot backup files
Hello,
I am planning to setup dataguard using Hot backup (Not RMAN) files from the primary instance. I have a few doubt as, How shall I recover the Standby database using the archive files generated while taking hot backup of primary? Shall I directly execute the "alter database recover managed standby database" command? Will this command take care of the archives generated durring hot backup also?
Appreciate any help on the above.
DB Version:10.2.0.4
Regards.Guys by using below procedure you can rebuild your data gurad by using manual hot backup.
1) On the primary database, defer the archival of redo data .
ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=DEFER;
2)
put primary database in backup mode
copy all the datafiles from primary database to Standby database (you can copy to other location in primary server and tar&zip it and send it to stand by and unzip and untar there)
Once you copy the datafiles to another location on primary server,you can use below command for tar and zip
go to the copied datafiles location and issue below command
tar cvf - .|gzip -c > /dump/backup/drdb_backup.tar.gz
put primary database in end backup.
3) create stabdby controlfile by using below command and send it to standby server
alter database create standby controlfile as '/dump/drbackup/2standby.ctl'
4) copy all generated archive logs (from the time of database begin abckup) from primary database server to standby database log_archive_dest location.
5) on standby database once we placed all datafiles and controlfiles in place use below commands
export ORACLE_SID=standbydb
SQL> starup nomount;
SQL> alter database mount standby database;
SQL> recover standby database;
--AUTO
SQL> alter database open read only;
SQL> shut immediate
SQL> startup nomount;
SQL> alter database mount standby database;
SQL> alter database open read only;
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
6) On the primary database, issue the following statement to reenable archiving to the physical standby database:
SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=ENABLE;
Thanks & Regards,
Satish Kumar Sadhu.
Edited by: Satish Kumar Sadhu on Apr 10, 2013 11:05 PM -
Resizing online and standby redo log in dataguard setup.
In 10gr2 dataguard i would like to increase redo logsize from 50M to 100M.
on primary
standby_file_management=manual
added online redo groups with 100M
log switched
drop old one and readded with 100m
deleted log added in step2.
same for standby redo logs.
On standby
was able to resize standby redo logs.
but cannot resize online redologs status is clearing or clearing_current.
please comment. thanks.I assume you just had to wait until the Primary switched out of that online log so it became inactive at the standby as well? We track where the Primary is by marking the online redo log files at the standby as clearing_current so you can tell where the primary was at any given moment.
Make sure you create new standby redo log files at the Primary and Standby to match the new online redo log file size.
Larry -
DataGuard setup between Windows XP Pro and Windows 2003 Server - possible?
Oracle 9.2. The documentation says "The hardware and operating system architecture on the primary and standby locations must be the same". I understand that this is recommended setup and it will be much better if it will be setup on EXACTLY same hardware and OS. My questions is - Is it possible to set it up between XP Pro and 2003 Server? Had anyone done it successfully the past?
Thank youHi,
between XP Pro and 2003 ServerBoth are Win* releases, both are 32bit. So I can't see why it would not work. But I think that certified combination requies that both computers use same O.S. release (XP pro xor 2k3 server).
Regards,
Yoann. -
OCM RAC Physical dataguard setup
Hi
I am preparing for the OCM examination and have gone through the detailed course outline but i am not clear on the following things.
OCM exam topic is very broad and the course outline does not cover topics in detail.
Suppose the examiner asks me to setup a RAC physical standby for RAC primary database this is going to take a lot of time and without my toolkit it is going to take a lot of time.
Currently the strategy i want to use for this kind of exam is have lot of things automated including shell tricks like aliasing example alias startup and the database gets started etc .But i guess these tools would not be allowed in the OCM exam.
I agree peeking into the documentation is allowed but in my humble opinion my college professor used to call these open book exam but many candidates who opened the book felt they never had time to compete the exam so i am kind of skeptical on this.
So do i use Oracle enterprise manage grid control to do things quickly ?
Practice on my home laptop with Enterprise Manger Grid Control (GC) ? to make things faster ?
If i need to install RAC and GC then probably i don't have a choice but if the question is to setup streams then probably GC is faster so confronted with a streams environment do i go ahead and use streams is that legal ?
Is that a good strategy ?
regards
P.S:Is it oaky to ask such a tactical question on this forum ?
Edited by: hrishy on Nov 4, 2009 3:10 AMhrishy wrote:
My curiosity for OCM exam stems from the fact that setting up RAC physical standby with RAC primary would be a time consuming task and may not be feasible within the given time frame if i am ever asked to do so in the exam .You can be pretty confident that the exam will provide adequate time to do everything that is needed - if you are comfortable with the process, and the commands, based on experience.
If you need to read (study) the provided documentation at exam time to find out basic command syntax or to figure out the methods on the fly, then you will certainly run out of time. In other words, you should not ordinarily need to refer to the documentation by the time, other than to verify something that you may have confused due to pressure/stress.
Not sure what you are saying about pre-canned scripts. You can rest assured that you will not be allowed to
I was not going to comment about the specific scenario you mention. However, I do reiterate that they do not expect OCMs to be superhuman - just very competent and experienced. And I do question where you get the "Data Guard on a RAC DB" connection? (Data Guard, yes ... but tied to RAC?) -
Moving the Datafile in Dataguard Setup.
Hi DBAs,
I have setup the data guard single instance to single instance with Oracle 10.2.0.4 on RHEL 5. I am using local storage for datafiles. I have created one datafile which was part of Index TS (Index TS has 7 other datafiles already) at wrong location at /u01 instead of /datafiles/docmrep file system. Is there any way , I move/rename the datafile to right filesystem w/o outage. Also the same issue is with data guard location. I need to move out the data file from data guard as well.
Please suggest/help.
Regards
-Samar-Datafile information is in the controlfile and you just need to update the information in the controlfile when you move a datafile.
So just do the following things on primary and database.
You can do this when database i s in mount stage or open mode .
Better to do it in mount mode.
PERFORM FOLLOWING OPERATIONS ON PRIMARY
SQL> ashut immediatE
SQL> STARTUP MOUNT
MOVE THE FILE AT OS LEVEL FROM LOCATION1 TO LOCATION2
RENAME THE FILEAT DATABASE LEVEL
SQL> ALTER DATABASE RENAME FILE 'LOCATION1' TO 'LOCATION2';
THIS COMPLETES THE ACTIVITY ON PRIMARY.
REPEAT ABOVE OPERATIONS AT STANDBY. NO NEED OF ANY EXTRA RECOVERY
iF YOU DON'T WNAT TO SHUTDOWN THE PRIMARY , THEN YOU CAN DO IT BY TAKING THE TABLESPACE OFFLINE. -
Oracle 9.2 - DataGuard - Physical vs Logical setup
We have database (in-house) with a few large tables (over 8M rows) and quite a few supplemental tables. Updates to this database are usually happen in batches, but single updates are also possible. We got a back-up server at another location (hosting company) and would like to setup DataGuard between those 2 locations. The connection between those 2 servers is not very stable. Disconnects are pretty often, sometimes it can be a day when connection is being reistablished.
So, the question is - what kind of setup would be a preferred in this type of environment - Logical or Physical and why? Any other comments and recommendations are welcome.
Also, the documentations says that OS for DataGuard setup must be the same - just want to make sure what do they mean by that. Do they mean that we can setup DataGuard on same family OS - like Windows XP Pro and Windows Server 2003 - or both machines have to have EXACTLY the same OS (win 2003 ser - win 2003 ser)?
Thank you very muchIf you are going to set up DG for availability purposes, it will be better to configure physical standby database. In that case, it will be equal (on physical level) database(path for datafiles and some parameters might differ).
Logical standby is harder to manage, but you can get advantages as long as you would be able to change structure and run the database in write mode.
Data Guard configuration migh have different modes (auto and manual), also vast list of parameters allows to regulate methods of logs shipment and application.
Regading configuration, I would recommend to use the same OS (possibly, some variation in patches would not influence Data Guard much)
Andrey -
Oracle Active Dataguard 11g - Passwords
Hi all
Environment description: Production database, 11.2.0.3 version, standalone running on Solaris and an Oracle Active Dataguard database in read only mode, same version and operating system.
Question: The users passwords and sys/system passwrod (orapw ) could be different in the ADG environment? I mean, could the orapwd file and user password be changed in the Dataguard database ?
Thanks a lot.user1687821 wrote:
Hi All,
Please suggest a good step by step guide to implement Oracle Active Dataguard on Oracle 11g, OS : RHEL 5.4
Have searched a couple of documents, but ending up with physical or logical dataguard setup guides...
Please suggest end to end steps guide for Active Dataguard Implementation
DB : Oracle 11g Release 2
OS : RHEL 5.4
ThanksHi,
Active dataguard is option after configuring dataguard.
You can put standby database in Open(read only) mode also you can enable Recover(MRP) while open so this can be used for reporting purpose too.
Please refer below links for configuring them.
http://www.oracle-class.com/wp-content/uploads/2011/01/dataguard/11gR2%20Physical%20Data%20Guard%20Setup%20%20project,%20with%20Active%20Data%20Guard%20option.pdf
http://www.databasejournal.com/features/oracle/article.php/3834931/Using-Oracle-11gs-Active-Data-Guard-and-Snapshot-Standby-Features.htm
http://www.oracle-base.com/articles/11g/DataGuardSetup_11gR2.php
http://www.oracle.com/technology/deploy/availability/pdf/maa_wp_11gr1_activedataguard.pdf
HTH. -
Hello Everyone,
I am facing a issue with Dataguard setup. Following is the description:
Purpose:
Setup a Dataguard using Oracle Data Guard Solution between Production & DR(Physical standby) databases.
Problem Statement:
In case the network connectivity interrupted between Primary database and Physical Standby database, the Primary database is unable to respond to application servers. This issue occurred when the log shipment process is on. However, if the log shipment of Oracle Data Guard is stopped then production database/ system is working fine even if the connectivity between Primary database and Physical Standby database is interrupted.
Standby database is configured in high performance mode.
Environment:
Database Software Primary and Standby Server – Oracle10g Enterprise with Partition option, 64 bit, Version – 10.2.0.4
Primary Database server is configured with Two Sun M5000 nodes in OS cluster environment, Active and Passive Mode, Sun Cluster Suite 3.2 and OS Solaris 10
Standby Database Server is configured, Server – V890, OS Solaris 10
Java based multiple application are connected with Primary database using JDBC type 4 driver to processed the request.
Two independent IPMP are configured on Primary database server, one for application network and second for data guard network.
Application network are configured with dedicated switch and data guard network is connected with different switch.
Single listener is configured on Physical IP and Application is connecting to database through virtual IP dynamically assigned through cluster serviceSQL> SELECT PROTECTION_MODE, PROTECTION_LEVEL, DATABASE_ROLE FROM V$DATABASE;
PROTECTION_MODE PROTECTION_LEVEL DATABASE_ROLE
MAXIMUM PERFORMANCE MAXIMUM PERFORMANCE PRIMARY
SQL> SELECT PROTECTION_MODE, PROTECTION_LEVEL, DATABASE_ROLE FROM V$DATABASE;
PROTECTION_MODE PROTECTION_LEVEL DATABASE_ROLE
MAXIMUM PERFORMANCE MAXIMUM PERFORMANCE PHYSICAL STANDBY
And this is the Alert log file snapshot and all other necessary information.
Errors in file /oracle/admin/prtp/udump/prtp_rfs_3634.trc:
ORA-16009: remote archive log destination must be a STANDBY database
Sat Aug 28 00:01:49 2010
Errors in file /oracle/admin/prtp/bdump/prtp_arc0_29429.trc:
ORA-16009: remote archive log destination must be a STANDBY database
Sat Aug 28 00:01:49 2010
FAL[server, ARC0]: Error 16009 creating remote archivelog file 'prtp'
FAL[server, ARC0]: FAL archive failed, see trace file.
Sat Aug 28 00:01:49 2010
Errors in file /oracle/admin/prtp/bdump/prtp_arc0_29429.trc:
ORA-16055: FAL request rejected
ARCH: FAL archive failed. Archiver continuing
Sat Aug 28 00:01:49 2010
ORACLE Instance prtp - Archival Error. Archiver continuing.
Sat Aug 28 00:01:49 2010
Redo Shipping Client Connected as PUBLIC
-- Connected User is Valid
RFS[2]: Assigned to RFS process 3636
RFS[2]: Not using real application clusters
Sat Aug 28 00:01:49 2010
Errors in file /oracle/admin/prtp/udump/prtp_rfs_3636.trc:
ORA-16009: remote archive log destination must be a STANDBY database
Sat Aug 28 01:29:41 2010
Thread 1 advanced to log sequence 24582 (LGWR switch)
Current log# 6 seq# 24582 mem# 0: /oradata1/prtp/redo-log/redo06_1.log
Current log# 6 seq# 24582 mem# 1: /oradata2/prtp/redo-log/redo06_2.log
LGWR: Standby redo logfile selected for thread 1 sequence 24583 for destination LOG_ARCHIVE_DEST_2
Sat Aug 28 01:29:42 2010
Thread 1 advanced to log sequence 24583 (LGWR switch)
Current log# 7 seq# 24583 mem# 0: /oradata1/prtp/redo-log/redo07_1.log
Current log# 7 seq# 24583 mem# 1: /oradata2/prtp/redo-log/redo07_2.log
Sat Aug 28 01:44:38 2010
LGWR: Standby redo logfile selected for thread 1 sequence 24584 for destination LOG_ARCHIVE_DEST_2
Sat Aug 28 01:44:38 2010
Thread 1 advanced to log sequence 24584 (LGWR switch)
Current log# 8 seq# 24584 mem# 0: /oradata1/prtp/redo-log/redo08_1.log
Current log# 8 seq# 24584 mem# 1: /oradata2/prtp/redo-log/redo08_2.log
Sat Aug 28 01:59:39 2010
LGWR: Standby redo logfile selected for thread 1 sequence 24585 for destination LOG_ARCHIVE_DEST_2
Sat Aug 28 01:59:39 2010
Thread 1 advanced to log sequence 24585 (LGWR switch)
Current log# 1 seq# 24585 mem# 0: /oradata1/prtp/redo-log/redo01_1.log
Current log# 1 seq# 24585 mem# 1: /oradata2/prtp/redo-log/redo01_2.log
Sat Aug 28 02:14:38 2010
LGWR: Standby redo logfile selected for thread 1 sequence 24586 for destination LOG_ARCHIVE_DEST_2
Sat Aug 28 02:14:38 2010
Thread 1 advanced to log sequence 24586 (LGWR switch)
Current log# 2 seq# 24586 mem# 0: /oradata1/prtp/redo-log/redo02_1.log
Current log# 2 seq# 24586 mem# 1: /oradata2/prtp/redo-log/redo02_2.log
Sat Aug 28 02:29:39 2010
LGWR: Standby redo logfile selected for thread 1 sequence 24587 for destination LOG_ARCHIVE_DEST_2
Sat Aug 28 02:29:39 2010
Thread 1 advanced to log sequence 24587 (LGWR switch)
Current log# 3 seq# 24587 mem# 0: /oradata1/prtp/redo-log/redo03_1.log
Current log# 3 seq# 24587 mem# 1: /oradata2/prtp/redo-log/redo03_2.log
Sat Aug 28 02:44:38 2010
LGWR: Standby redo logfile selected for thread 1 sequence 24588 for destination LOG_ARCHIVE_DEST_2
Errors in file /oracle/admin/prtp/udump/prtp_rfs_9611.trc:
ORA-16009: remote archive log destination must be a STANDBY database
Sat Aug 28 01:27:56 2010
Errors in file /oracle/admin/prtp/bdump/prtp_arc0_29429.trc:
ORA-16009: remote archive log destination must be a STANDBY database
Sat Aug 28 01:27:56 2010
FAL[server, ARC0]: Error 16009 creating remote archivelog file 'prtp'
FAL[server, ARC0]: FAL archive failed, see trace file.
Sat Aug 28 01:27:56 2010
Errors in file /oracle/admin/prtp/bdump/prtp_arc0_29429.trc:
ORA-16055: FAL request rejected
ARCH: FAL archive failed. Archiver continuing
Sat Aug 28 01:27:56 2010
ORACLE Instance prtp - Archival Error. Archiver continuing.
Sat Aug 28 01:27:56 2010
Redo Shipping Client Connected as PUBLIC
-- Connected User is Valid
RFS[18]: Assigned to RFS process 9613
RFS[18]: Not using real application clusters
Sat Aug 28 01:27:56 2010
Errors in file /oracle/admin/prtp/udump/prtp_rfs_9613.trc:
ORA-16009: remote archive log destination must be a STANDBY database
Sat Aug 28 01:27:56 2010
Errors in file /oracle/admin/prtp/bdump/prtp_arc0_29429.trc:
ORA-16009: remote archive log destination must be a STANDBY database
Sat Aug 28 01:27:56 2010
FAL[server, ARC0]: Error 16009 creating remote archivelog file 'prtp'
FAL[server, ARC0]: FAL archive failed, see trace file.
Sat Aug 28 01:27:56 2010
Errors in file /oracle/admin/prtp/bdump/prtp_arc0_29429.trc:
ORA-16055: FAL request rejected
ARCH: FAL archive failed. Archiver continuing
Sat Aug 28 01:27:56 2010
ORACLE Instance prtp - Archival Error. Archiver continuing.
Sat Aug 28 01:29:39 2010
Thread 1 cannot allocate new log, sequence 24581
Private strand flush not complete
Current log# 4 seq# 24580 mem# 0: /oradata1/prtp/redo-log/redo04_1.log
Current log# 4 seq# 24580 mem# 1: /oradata2/prtp/redo-log/redo04_2.log
NAME TYPE VALUE
O7_DICTIONARY_ACCESSIBILITY boolean FALSE
active_instance_count integer
aq_tm_processes integer 1
archive_lag_target integer 900
asm_diskgroups string
asm_diskstring string
asm_power_limit integer 1
audit_file_dest string /oracle/ora10g/rdbms/audit
audit_sys_operations boolean FALSE
audit_syslog_level string
audit_trail string NONE
background_core_dump string partial
background_dump_dest string /oracle/admin/prtp/bdump
backup_tape_io_slaves boolean FALSE
bitmap_merge_area_size integer 1048576
blank_trimming boolean FALSE
buffer_pool_keep string
buffer_pool_recycle string
circuits integer
cluster_database boolean FALSE
cluster_database_instances integer 1
cluster_interconnects string
commit_point_strength integer 1
commit_write string
compatible string 10.2.0
control_file_record_keep_time integer 7
control_files string /oradata1/prtp/control/control
01.ctl, /oradata2/prtp/control
/control02.ctl, /oradata3/prtp
/control/control03.ctl
core_dump_dest string /oracle/admin/prtp/cdump
cpu_count integer 48
create_bitmap_area_size integer 8388608
create_stored_outlines string
cursor_sharing string FORCE
cursor_space_for_time boolean TRUE
db_16k_cache_size big integer 0
db_2k_cache_size big integer 0
db_32k_cache_size big integer 0
db_4k_cache_size big integer 0
db_8k_cache_size big integer 0
db_block_buffers integer 0
db_block_checking string FALSE
db_block_checksum string TRUE
db_block_size integer 8192
db_cache_advice string ON
db_cache_size big integer 6G
db_create_file_dest string
db_create_online_log_dest_1 string
db_create_online_log_dest_2 string
db_create_online_log_dest_3 string
db_create_online_log_dest_4 string
db_create_online_log_dest_5 string
db_domain string
db_file_multiblock_read_count integer 16
db_file_name_convert string
db_files integer 200
db_flashback_retention_target integer 0
db_keep_cache_size big integer 0
db_name string prtp
db_recovery_file_dest string
db_recovery_file_dest_size big integer 0
db_recycle_cache_size big integer 0
db_unique_name string prtp
db_writer_processes integer 6
dbwr_io_slaves integer 0
ddl_wait_for_locks boolean FALSE
dg_broker_config_file1 string /oracle/ora10g/dbs/dr1prtp.dat
dg_broker_config_file2 string /oracle/ora10g/dbs/dr2prtp.dat
dg_broker_start boolean FALSE
disk_asynch_io boolean TRUE
dispatchers string
distributed_lock_timeout integer 60
dml_locks integer 19380
drs_start boolean FALSE
event string 10511 trace name context forev
er, level 2
fal_client string prtp
fal_server string stndby
fast_start_io_target integer 0
fast_start_mttr_target integer 600
fast_start_parallel_rollback string LOW
file_mapping boolean FALSE
fileio_network_adapters string
filesystemio_options string asynch
fixed_date string
gc_files_to_locks string
gcs_server_processes integer 0
global_context_pool_size string
global_names boolean FALSE
hash_area_size integer 131072
hi_shared_memory_address integer 0
hs_autoregister boolean TRUE
ifile file
instance_groups string
instance_name string prtp
instance_number integer 0
instance_type string RDBMS
java_max_sessionspace_size integer 0
java_pool_size big integer 160M
java_soft_sessionspace_limit integer 0
job_queue_processes integer 10
large_pool_size big integer 560M
ldap_directory_access string NONE
license_max_sessions integer 0
license_max_users integer 0
license_sessions_warning integer 0
local_listener string
lock_name_space string
lock_sga boolean FALSE
log_archive_config string
log_archive_dest string
log_archive_dest_1 string location=/archive/archive-log/
MANDATORY
log_archive_dest_10 string
log_archive_dest_2 string service=stndby LGWR
log_archive_dest_3 string
log_archive_dest_4 string
log_archive_dest_5 string
log_archive_dest_6 string
log_archive_dest_7 string
log_archive_dest_8 string
log_archive_dest_9 string
log_archive_dest_state_1 string enable
log_archive_dest_state_10 string enable
log_archive_dest_state_2 string ENABLE
log_archive_dest_state_3 string enable
log_archive_dest_state_4 string enable
log_archive_dest_state_5 string enable
log_archive_dest_state_6 string enable
log_archive_dest_state_7 string enable
log_archive_dest_state_8 string enable
log_archive_dest_state_9 string enable
log_archive_duplex_dest string
log_archive_format string arc_%t_%s_%r.arc
log_archive_local_first boolean TRUE
log_archive_max_processes integer 2
log_archive_min_succeed_dest integer 1
log_archive_start boolean FALSE
log_archive_trace integer 0
log_buffer integer 20971520
log_checkpoint_interval integer 0
log_checkpoint_timeout integer 1800
log_checkpoints_to_alert boolean FALSE
log_file_name_convert string
logmnr_max_persistent_sessions integer 1
max_commit_propagation_delay integer 0
max_dispatchers integer
max_dump_file_size string UNLIMITED
max_enabled_roles integer 150
max_shared_servers integer
nls_calendar string
nls_comp string
nls_currency string
nls_date_format string
nls_date_language string
nls_dual_currency string
nls_iso_currency string
nls_language string AMERICAN
nls_length_semantics string BYTE
nls_nchar_conv_excp string FALSE
nls_numeric_characters string
nls_sort string
nls_territory string AMERICA
nls_time_format string
nls_time_tz_format string
nls_timestamp_format string
nls_timestamp_tz_format string
object_cache_max_size_percent integer 10
object_cache_optimal_size integer 102400
olap_page_pool_size big integer 0
open_cursors integer 4500
open_links integer 30
open_links_per_instance integer 30
optimizer_dynamic_sampling integer 2
optimizer_features_enable string 10.2.0.4
optimizer_index_caching integer 0
optimizer_index_cost_adj integer 100
optimizer_mode string ALL_ROWS
optimizer_secure_view_merging boolean TRUE
os_authent_prefix string ops$
os_roles boolean FALSE
parallel_adaptive_multi_user boolean TRUE
parallel_automatic_tuning boolean FALSE
parallel_execution_message_size integer 2152
parallel_instance_group string
parallel_max_servers integer 960
parallel_min_percent integer 0
parallel_min_servers integer 0
parallel_server boolean FALSE
parallel_server_instances integer 1
parallel_threads_per_cpu integer 2
pga_aggregate_target big integer 3G
plsql_ccflags string
plsql_code_type string INTERPRETED
plsql_compiler_flags string INTERPRETED, NON_DEBUG
plsql_debug boolean FALSE
NAME TYPE VALUE
plsql_native_library_dir string
plsql_native_library_subdir_count integer 0
plsql_optimize_level integer 2
plsql_v2_compatibility boolean FALSE
plsql_warnings string DISABLE:ALL
pre_11g_enable_capture boolean FALSE
pre_page_sga boolean FALSE
processes integer 4000
query_rewrite_enabled string TRUE
query_rewrite_integrity string enforced
rdbms_server_dn string
read_only_open_delayed boolean FALSE
recovery_parallelism integer 0
recyclebin string OFF
remote_archive_enable string true
remote_dependencies_mode string TIMESTAMP
remote_listener string
remote_login_passwordfile string EXCLUSIVE
remote_os_authent boolean FALSE
remote_os_roles boolean FALSE
replication_dependency_tracking boolean TRUE
resource_limit boolean TRUE
resource_manager_plan string
resumable_timeout integer 0
rollback_segments string
serial_reuse string disable
service_names string prtp
session_cached_cursors integer 0
session_max_open_files integer 10
sessions integer 4405
sga_max_size big integer 20G
sga_target big integer 20G
shadow_core_dump string partial
shared_memory_address integer 0
shared_pool_reserved_size big integer 214748364
shared_pool_size big integer 4G
shared_server_sessions integer
shared_servers integer 0
skip_unusable_indexes boolean TRUE
smtp_out_server string smtp.banglalinkgsm.com
sort_area_retained_size integer 0
sort_area_size integer 65536
spfile string /oradata1/prtp/pfile/spfileprt
p.ora
sql92_security boolean FALSE
sql_trace boolean FALSE
sql_version string NATIVE
sqltune_category string DEFAULT
standby_archive_dest string ?/dbs/arch
standby_file_management string AUTO
star_transformation_enabled string FALSE
statistics_level string TYPICAL
streams_pool_size big integer 0
tape_asynch_io boolean TRUE
thread integer 0
timed_os_statistics integer 0
timed_statistics boolean TRUE
trace_enabled boolean TRUE
tracefile_identifier string
transactions integer 4845
transactions_per_rollback_segment integer 5
undo_management string AUTO
undo_retention integer 15000
undo_tablespace string UNDOTBS
use_indirect_data_buffers boolean FALSE
user_dump_dest string /oracle/admin/prtp/udump
utl_file_dir string
workarea_size_policy string AUTO -
Hello
Has anyone experience changing database name(including datafile locations),sid,data and control file location in operational dataguard setup
My understanding following below steps
1)shutdown primary and standby (stop managed recovery)
2)change db name in init.ora of primary and standby change database name control file location
3)create control file for primary from trace(script) make changes for db name and file locations
4)mount and open primary database
5)create standby control file
6) transfer standby control file to standby
7) mount stand by database and start manage recovery
let me know if these steps can change database name and file locations without any error
ThanksI would think the control file would have to know about the change.
I would consider the DBNEWID Utility to change the database name if I had to.
If you change the database name the DBID will change.
I'm thinking it would require a standby rebuild.
Here's some more info:
http://www.oracle-base.com/articles/9i/DBNEWID.php (Should work in 9 and above) -
RAC Dataguard Switchover timing taking more than expected time
I have Dataguard setup in RAC environment and my dataguard is also configured and it is working fine.
Our goal is to do the switchover using DGMGRL withing the 5 minutes. We have followed the proper setup and MAA tuning document and everything is working fine, Just the switchover timeing is 8 to 10 minutes. which varies depending on some parameters but not meeting our goal of less than 5 minutes.
The only observation that we have seen is as follow
After switchover to <db_name> comman in DGMGRL
1) it will shutdown abort the 2nd instance
2) transfter all the archivelog ( using LGWR in ASYNC mode) of instance 1
3) Now it looks for the archive log of 2nd instance, this steps take time upto 4 minutes
we do not know why it takes that much time and how to tune this??
4) Now converts primary to standby
5) Now starts the old standby as new primary
here All steps are tunined except the step 3, that where our lot of time is going any Idea or explanation
why it takes such a long time to find the exact archive log 2nd instance (Aborted) to transfer to standby site?
Can any one give explanation or solution to tune this???
Regards
BhushanHi Robert,
I am on 10.2.0.4 and we have used "MAA_WP_10gR2_DataGuardNetworkBestPractices.pdf", which is available on oracle site.
Here are by configuration details
GMGRL> connect sys@dv01aix
Password:
Connected.
DGMGRL> show configuration;
Configuration
Name: dv00aix_dg
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
dv00aix - Physical standby database
dv01aix - Primary database
Current status for "dv00aix_dg":
SUCCESS
DGMGRL> show database verbose dv00aix
Database
Name: dv00aix
Role: PHYSICAL STANDBY
Enabled: YES
Intended State: ONLINE
Instance(s):
dv00aix1 (apply instance)
dv00aix2
Properties:
InitialConnectIdentifier = 'dv00aix'
ObserverConnectIdentifier = ''
LogXptMode = 'ASYNC'
Dependency = ''
DelayMins = '0'
Binding = 'OPTIONAL'
MaxFailure = '0'
MaxConnections = '4'
ReopenSecs = '300'
NetTimeout = '60'
LogShipping = 'ON'
PreferredApplyInstance = 'dv00aix1'
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '900'
LogArchiveMaxProcesses = '5'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = ''
LogFileNameConvert = '+SPARE1/dv01aix/,+SPARE/dv00aix/'
FastStartFailoverTarget = ''
StatusReport = '(monitor)'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
HostName(*)
SidName(*)
LocalListenerAddress(*)
StandbyArchiveLocation(*)
AlternateLocation(*)
LogArchiveTrace(*)
LogArchiveFormat(*)
LatestLog(*)
TopWaitEvents(*)
(*) - Please check specific instance for the property value
Current status for "dv00aix":
SUCCESS
DGMGRL> show database verbose dv01aix
Database
Name: dv01aix
Role: PRIMARY
Enabled: YES
Intended State: ONLINE
Instance(s):
dv01aix1
dv01aix2
Properties:
InitialConnectIdentifier = 'dv01aix'
ObserverConnectIdentifier = ''
LogXptMode = 'ASYNC'
Dependency = ''
DelayMins = '0'
Binding = 'OPTIONAL'
MaxFailure = '0'
MaxConnections = '4'
ReopenSecs = '300'
NetTimeout = '60'
LogShipping = 'ON'
PreferredApplyInstance = 'dv01aix1'
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '2'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = '+SPARE/dv00aix/, +SPARE1/dv01aix/'
LogFileNameConvert = '+SPARE/dv00aix/,+SPARE1/dv01aix/'
FastStartFailoverTarget = ''
StatusReport = '(monitor)'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
HostName(*)
SidName(*)
LocalListenerAddress(*)
StandbyArchiveLocation(*)
AlternateLocation(*)
LogArchiveTrace(*)
LogArchiveFormat(*)
LatestLog(*)
TopWaitEvents(*)
(*) - Please check specific instance for the property value
Current status for "dv01aix":
SUCCESS
DGMGRL>
log_archive_dest_2 string service="(DESCRIPTION=(ADDRESS
_LIST=(ADDRESS=(PROTOCOL=TCP)(
HOST=*****-vip0)(PORT=1527))
)(CONNECT_DATA=(SERVICE_NAME=d
v00aix_XPT)(INSTANCE_NAME=dv00
aix1)(SERVER=dedicated)))",
LGWR ASYNC NOAFFIRM delay=0 O
PTIONAL max_failure=0 max_conn
ections=4 reopen=300 db_uniq
ue_name="dv00aix" register net
NAME TYPE VALUE
timeout=60 validfor=(online
logfile,primaryrole)
NAME TYPE VALUE
fal_client string (DESCRIPTION=(ADDRESS_LIST=(AD
DRESS=(PROTOCOL=TCP)(HOST=*****
-vip0)(PORT=1527)))(CONNECT
DATA=(SERVICENAME=dv01aix_XP
T)(INSTANCE_NAME=dv01aix1)(SER
VER=dedicated)))
fal_server string (DESCRIPTION=(ADDRESS_LIST=(AD
DRESS=(PROTOCOL=TCP)(HOST=*****
-vip0)(PORT=1527))(ADDRESS=
(PROTOCOL=TCP)(HOST=*****-vi
p0)(PORT=1527)))(CONNECT_DATA=
(SERVICE_NAME=dv00aix_XPT)(SER
VER=dedicated)))
db_recovery_file_dest string +SPARE1
db_recovery_file_dest_size big integer 100G
recovery_parallelism integer 0
fast_start_parallel_rollback string LOW
parallel_adaptive_multi_user boolean TRUE
parallel_automatic_tuning boolean FALSE
parallel_execution_message_size integer 2152
parallel_instance_group string
parallel_max_servers integer 8
parallel_min_percent integer 0
parallel_min_servers integer 0
parallel_server boolean TRUE
parallel_server_instances integer 2
parallel_threads_per_cpu integer 2
recovery_parallelism integer 0
Maybe you are looking for
-
Multiple Bluetooth Usage issues
I'm finding Stereo Bluetooth very unreliable and at some points rather irritating. My issues are related to playing music using iTunes to my car stereo. Connection: (A) When I stop my car, iTunes does not detect that the Bluetooth link dropped. It ke
-
Gui_upload for uploading binary file
Hello All, I am trying to upload '.jpg' files using gui_upload function. But something goes wrong and it dumps. I am new to ABAP. following is the code i used. DATA: xline TYPE xstring. DATA : t_file LIKE TABLE OF xline WITH HEADER LINE. CALL F
-
Can I add datafile bigger then 2GB
Hi all, Can I add datafile bigger then 2GB (on the raw device) to the tablespace ? I get err: ORA-01119 : error in creating database file '/opt/DISK/data02' ORA-27042 : not enought space on raw partition to fullfill request Aditional information : 1
-
Hi all. Im sending a Soap Request to my Webservice, then the webservice executes a httpclient post and receives an response. This response is basically a XML file lwich i retrive as a string as shown p.println(filePost.getResponseBodyAsString()); and
-
Siri stopped talking out loud. Text only. Anyone know what could have happened?
Siri stopped talking out loud on my iPad Mini. Anyone know why? Only thing I had done not long before I noticed this was use speakers.