Dataguard Protectin Mode
Hi,
I just would like to understand as how Dataguard protection mode works. I have changed from the "ARCH" attribute to "LGWR" attribute of the LOG_ARCHIVE_DEST_n initialization parameter as below. But I have not changed the protection mode. I do not know whether there is any impact in the behavior of the database, if we do not change the mode from "MAXIMUM PERFORMANCE" to "MAXIMUM AVAILABILITY".
Your clarification will be appreciated.
log_archive_dest_2 =
SERVICE=O01CAS3DR VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=O01CAS3DR LGWR SYNC NOAFFIRM
sql> select PROTECTION_MODE,PROTECTION_LEVEL from v$database;
PROTECTION_MODE PROTECTION_LEVEL
MAXIMUM PERFORMANCE MAXIMUM PERFORMANCE
Set Appropriate Database Protection Mode:
You can choose between three protection modes, with different logging options. Each mode for your environment has a different impact on availability, costs, data loss, performance, and scalability. Choose one of the following depending on your service level agreements:
· Maximum Protection mode with LGWR SYNC AFFIRM option for an environment that requires no data loss and no divergence. Performance overhead is incurred.
· Maximum Availability mode with LGWR SYNC AFFIRM option for an environment that needs no data loss but tolerates divergence when sites are temporarily inaccessible.
· Maximum Performance mode with LGWR ASYNC (AFFIRM or NOAFFIRM) option for an environment that tolerates minimal data loss and divergence when sites are temporarily inaccessible. Performance overhead is minimized.
Hi..
Do you know at what time do you want to open the read only database.I thinks the steps will be
1. alter database recover managed standby cancel;
2. alter database open read only;
This will open the database
After the batch report is done, then a script must be run where
1. shu immediate;
2. startup nomount
3. alter database mount standby database;
4. alter database recover managed standby database disconnect from session;
Now, you need to put all these steps in the script.
Anand
Similar Messages
-
Dataguard Readonly Mode Script
Is there any script available that shutdown the physical standby database, roll forward accumulated archivelogs , and then bring the database back up in a read only mode. I am trying to setup this for 10g dataguard and call from Enterprise manager or cronjob.
Hi..
Do you know at what time do you want to open the read only database.I thinks the steps will be
1. alter database recover managed standby cancel;
2. alter database open read only;
This will open the database
After the batch report is done, then a script must be run where
1. shu immediate;
2. startup nomount
3. alter database mount standby database;
4. alter database recover managed standby database disconnect from session;
Now, you need to put all these steps in the script.
Anand -
At mount state i changed my database mode to maximum protection mode,after that i am opening my database open using the command alter database open, but it
throws error database is not open.
error: ora-16086,ora-16072.
please let me know for this solution.879003 wrote:
At mount state i changed my database mode to maximum protection mode,after that i am opening my database open using the command alter database open, but it
throws error database is not open.
error: ora-16086,ora-16072.
please let me know for this solution.
bcm@bcm-laptop:~$ oerr ora 16068
16068, 00000, "redo log file activation identifier mismatch"
// *Cause: The activation identifier of the indicated redo log file
// does not match the activation identifier of the database.
// *Action:
bcm@bcm-laptop:~$ oerr ora 16072
16072, 00000, "a minimum of one standby database destination is required"
// *Cause: No standby database archive log destinations were specified.
// *Action: Specify a standby archive log destination in the initialization
// parameter file.what ever your changed, Oracle does not like it -
Dataguard concept question (data loss?)
Hi!
On the primary side I have:
- mirrored redo log files
- archiver creates a archiving file every 30 minutes for example
- archive file gets transfered to to standby system
On the standby side (physical or logical) gets updated when it receives an archive file.
Lets descuss following szenario:
What happens if my primary systems fails and the current redo file isn't archived yet? Do I have now a data loss or can I somehow recover my standby system with the mirrored redo log file of my primary system?
Thanks
MarkusIf you are using one of the less protective DataGuard protection modes, yes, it is possible to have data loss. Since DataGuard is protecting you from disasters, the assumption is that if you lose the primary database server, you've lost all the online redo logs. So in your setup, you'd have 30 minutes of data at risk. If that is unacceptable, you can certainly use a different protection mode. In the maximum protection mode, redo is applied synchronously on the standby.
Justin
Edited by: Justin Cave on Jun 18, 2009 5:20 AM
Or more succinctly: What Hament said -
How to avoid data lost in Dataguard failover ?
Hi gurus,
We are implementing Dataguard with manual failover (Not with Fast Start feature)
How to avoid/minimize lost of data if the primary server goes down before the last log is sent ?
Thank you for your help,
xtantoMost important the dataguard protection mode, you have 3 choices: Maximum Performance,Maximum Availability,Maximum Protection . If you are interested in no data loss choose Maximum Protection, that's the definition:
Maximum Protection
This protection mode ensures that zero data loss occurs if a primary database fails. To
provide this level of protection, the redo data needed to recover a transaction must be
written to both the online redo log and to at least one synchronized standby database
before the transaction commits. To ensure that data loss cannot occur, the primary
database will shut down, rather than continue processing transactions, if it cannot
write its redo stream to at least one synchronized standby database.
Because this data protection mode prioritizes data protection over primary database
availability, Oracle recommends that a minimum of two standby databases be used to
protect a primary database that runs in maximum protection mode to prevent a single
standby database failure from causing the primary database to shut down.
For details see the documentation for your unknown database version.
Werner -
Best practices to generate archivelog
Hi,
What are the best practices to generate archivelog?
Regards,
RJiv.Are you using DataGuard to create & manage the physical standby? If so, what DataGuard protection mode are you using?
Realistically, there is no ideal frequency at which to generate new archived logs. The faster you generate them, the greater the performance implications, but the less data is potentially at risk. You need to weight the performance costs and recoverability benefits for your particular application to determine what sort of a target to set. That probably requires doing some benchmarking to quantify the performance costs for your particular application.
If the goal is minimal data loss, however, running DataGuard in a mode that transfers redo in real time rather than copying archived log files would be preferable and render the discussion on how frequently to generate archived log files moot.
Justin -
Configuring maximum protection mode in dataguard with oracle 10g
Dear All,
I am facing a big problem in my configuration for oracle dataguard in maximum protection mode. as per oracle documentation i have done the following.
on the primary database i configured the floowing parameter.
LOG_ARCHIVE_DEST_2='SERVICE=CDER LGWR SYNC AFFIRM
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
DB_UNIQUE_NAME=CDER'
on the standby i configured the following parameters.
LOG_ARCHIVE_DEST_2='SERVICE=REDC LGWR SYNC AFFIRM
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
DB_UNIQUE_NAME=REDC'
i created standby redo logs on the standby database as per documentation.
I shut down the primary database and started it in mount stage and i executed the following commands.
SQL> ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PROTECTION
after database was sucessfully alterd, i execute it the following command to open the database.
SQL > ALTER DATABASE OPEN;
what is happening is that i am recieving the Error end of communication channel and also after i look at the log file the following error is in place
Thu Jul 22 23:33:37 2010
Errors in file c:\oracle\product\10.2.0\admin\redc\bdump\redc_psp0_1088.trc:
ORA-16072: a minimum of one standby database destination is required
though when i reset the dataguard to maximize performance it work really successful and the database open;
please guys guide me through thisyou got it
redc.__db_cache_size=1056964608
redc.__java_pool_size=16777216
redc.__large_pool_size=16777216
redc.__shared_pool_size=318767104
redc.__streams_pool_size=0
*.audit_file_dest='C:\oracle\product\10.2.0\admin\REDC\adump'
*.background_dump_dest='C:\oracle\product\10.2.0\admin\REDC\bdump'
*.compatible='10.2.0.3.0'
*.control_files='C:\oracle\product\10.2.0\oradata\REDC\control01.ctl','C:\oracle\product\10.2.0\oradata\REDC\control02.ctl','C:\oracle\product\10.2.0\oradata\REDC\control03.ctl'
*.core_dump_dest='C:\oracle\product\10.2.0\admin\REDC\cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=8
*.DB_FILE_NAME_CONVERT='C:\oracle\product\10.2.0\oradata\CDER','C:\oracle\product\10.2.0\oradata\REDC','D:\oracle\oradata\CDER','D:\oracle\oradata\REDC'
*.db_name='REDC'
*.DB_UNIQUE_NAME='REDC'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=REDCXDB)'
*.FAL_CLIENT='REDC'
*.FAL_SERVER='CDER'
*.job_queue_processes=10
*.LOG_ARCHIVE_CONFIG='DG_CONFIG=(REDC,CDER)'
*.LOG_ARCHIVE_DEST_1='LOCATION=D:\oracle\Archives
VALID_FOR=(ALL_LOGFILES,ALL_ROLES)
DB_UNIQUE_NAME=REDC'
*.LOG_ARCHIVE_DEST_2='SERVICE=CDER LGWR SYNC AFFIRM
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
DB_UNIQUE_NAME=CDER'
*.LOG_ARCHIVE_DEST_STATE_1='ENABLE'
*.log_archive_dest_state_2='ENABLE'
*.LOG_ARCHIVE_FORMAT='%t_%s_%r.arc'
*.LOG_ARCHIVE_MAX_PROCESSES=5
*.LOG_FILE_NAME_CONVERT='D:\oracle\Archives','D:\oracle\Archives'
*.open_cursors=300
*.pga_aggregate_target=471859200
*.processes=150
*.REMOTE_LOGIN_PASSWORDFILE='EXCLUSIVE'
*.sga_target=1417674752
*.STANDBY_FILE_MANAGEMENT='AUTO'
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='C:\oracle\product\10.2.0\admin\REDC\udump' -
Dataguard 'max protection' mode failed
Testing Dataguard in MAX PROTECTION mode on Oracle 10.2.0.4 on Solaris x86_64.
Test 1: Primary remained up allowing transactions to continue inspite of the fact that the server running the standby database was not reachable. Waited for over 10 minutes and then cancelled the test. All that happened was the protection_level changed to resynchronization. I could not believe my eyes. Is this possible?
Test 2: The primary shutdown automatically but after about 6 minutes of the standby database was shut abort. So what about all those transactions that took place during those 6 minutes? Those would be lost - isnt it?
I just cant believe this. Where am I going wrong? I confirmed that LAD_2 was set to lgwr sync affirm. And that protection mode was set to 'maximum protection'.
Somebody, pls enlighten me?
Thanks
Edited by: user12022918 on 27-May-2013 08:42If you have several physical standby database for the same primary database then this could be expected behaviour otherwise this looks like a bug that you should report to Oracle Support who will very likely ask you to upgrade at least to 10.2.0.5 patchset or 11.2.0.3.
-
Choosing protection mode for Active dataguard
Hi Gurus,
I'm confused with Active dataguard configuration-What mode do i need to configure physical standby to make use of actice dataguard.I know i can even use maximum performance with standby redolog for real time query.But what is the minimum protection mode to run active dataguard.
How can i setup a delay of 1 hour for active dataguard in 11gr2?
ThanksYou said:
>
By default Dataguard is in Maximum performance mode..we can set delay of 1 hour by setting the
log_archive_dest_2="service=to_standby lgwr async affirm reopen=60"
or
log_archive_dest_2="service=to_standby lgwr async delay=60"
>
I am sorry, but your first log_archive_dest_2 value is not correct:
The combination of ASYNC & AFFIRM is not supported and not sensible; REOPEN=60 will not delay the Redo Apply
See here for a proper explanation of log_archive_dest_n:
http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/initparams121.htm
Kind regards
Uwe Hesse
http://uhesse.wordpress.com -
Doubt on dataguard maximum perfomance mode
HI Gurus ,
We have a dataguard environment configured in 12.1.0.2.0 on OEL 5.6. Dataguard is configured in maximum performance using following congiguration ,
18:26:26 SQL> show parameter log_archive_dest_2
NAME TYPE VALUE
log_archive_dest_2 string service=TGOID NOAFFIRM LGWR ASYNC COMPRESSION=ENABLE VALID_FOR=(ALL_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=TGOID
Here I used LGWR ASYNC and enabled real time apply at my standby using ,
SQl> alter database recover managed standby database using current logfile disconnect;
Here are my doubts ,
1. If we enable real time apply ,the changes will reflect at standby when a commit happens at primary. is it correct ?
But here I can't see that behavior , the changes are getting applied to standby only when I make a log switch.(as in the case of ARCH transport mode )
2. So if I wish to get the changes done at standby when a commit happens at primary, is I need to set the following ?
First ,
alter system set log_archive_dest_2=service=TGOID AFFIRM LGWR SYNC COMPRESSION=ENABLE VALID_FOR=(ALL_LOGFILES,PRIMARY_ROLE)DB_UNIQUE_NAME=TGOID scope=both;
Secondly,
ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PROTECTION/MAXIMIZE AVAILABILITY .
is it correct ?
3. If its correct what is the advantage of using lgwr async in maximum performance ? then what is meant by real time apply in maximum performance ?
Thanks and regards,
Mahihttp://docs.oracle.com/cd/B19306_01/server.102/b14239/create_ps.htm#i1225703
Step 2 Determine the appropriate number of standby redo log file groups
(maximum number of logfiles for each thread + 1) * maximum number of threads -
9i Dataguard Problem in MAXIMUM PROTECTION mode
Dear All
Hi
I have 9i Rel 2 (9.2.07) dataguard environment on Linux Redhat Advanced Server 3
The Pretenction mode is Maximum Protection
One day I noticed that my dataguard Database is about 100 log files before than the Primary:
On priamry the current log sequence# was 7804
But in standby the last log that was transfered and applied was 7716
In primary I executed the following select:
SQL> Select protection_mode , protection_level from v$database;
the result was:
protection_mode=MAXIMUM PROTECTION
protection_level=SYNCHRONIZING
What I want to know is:
Why the primary database did not become shutdown when it is in MAXIMUM PROTECTION mode and why it has continued working when the log files could not transfer to standby database ????
Thank you in advance for your replyAnybody any idea ??????
-
Enabling Oracle Dataguard modes?
There are 3 modes in which Oracle dataguard works-Maximum Protection, Max availability and Max performance. How do I set any one of these? whats the process?
I have implemented a dataguard standby using manual steps,now I would like to see the GUI tool-Dataguard Broker to manage it..but I did not see it listed in my windows programs under Oracle?How do I start this Broker?
Thanks,
SandeepYou didn't indicate the version of your database. Assuming it to be oracle10g and if it is so and want to mange the dataguard configuration using GUI, you would be needing Grid Control and agents on primary and standby servers and of course DG broker. This would be accessible over your internet browser and is not associated with any programs/menu items under windows.
HTH
Thanks
Chandra Pabba -
Problem in protection mode dataguard
Hi,
i want to store standby redo log archived file in separate folder, so that i specified
log_archive_dest_1='LOCATION=D:\oracle\product\10. 2.0\flash_recovery_area\stby VALID_FOR=ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=stby
standby_archive_dest=D:\oracle\product\10. 2.0\flash_recovery_area\stby\arcst
If both parameters are specified, the STANDBY_ARCHIVE_DEST initialization
parameter overrides the directory location specified with the LOG_ARCHIVE_DEST_n
parameter.
but in my system it store all archive files in LOG_ARCHIVE_DEST_1..
normally if you change primary database protection mode into maximize availability ,then it should automatically change standby database into that mode ...
primary database(live).
should i change this mode in both primary and standby database????
SQL> select protection_mode,protection_level from v$database;
PROTECTION_MODE PROTECTION_LEVEL
MAXIMUM AVAILABILITY RESYNCHRONIZATION
SQL> alter database open;
Database altered.
SQL> alter system switch logfile;
System altered.
SQL>
standby database(stby)
alert file
Primary database is in MAXIMUM PERFORMANCE mode
RFS[2]: Successfully opened standby log 4: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\STBY\REDO04.LOG'
Thu Aug 06 08:48:15 2009
Media Recovery Log D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\STBY\ARC00093_0693601814.001
Media Recovery Waiting for thread 1 sequence 94 (in transit)
Thu Aug 06 08:48:18 2009
Recovery of Online Redo Log: Thread 1 Group 4 Seq 94 Reading mem 0
Mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\STBY\REDO04.LOG
SQL> select protection_mode,protection_level from v$database;
PROTECTION_MODE PROTECTION_LEVEL
MAXIMUM PERFORMANCE MAXIMUM PERFORMANCE
Oracle 10gselva,
log_archive_dest_1='LOCATION=D:\oracle\product\10. 2.0\flash_recovery_area\stby VALID_FOR=ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=stby
standby_archive_dest=D:\oracle\product\10. 2.0\flash_recovery_area\stby\arcst is correct and will not override your primary entry... the log_archive_dest_1 is where your primary logs are generated and standby_archive_dest is where your logs will come when current server acts as secondary.
your actual question is regarding protection modes....? is that correct
after you chnage the protection mode did you stop managed recovery and bounce the database on stby,,,
try this and let me know
hth -
Dataguard: RESYNCHRONIZATION state for MAXIMUM PROTECTION mode
Dear All
Hi
When you have Data guard in 10g Rel 2 and your primary database protection mode is configured as MAXIMUM PROTECTION , when the standby database goes down , the PROTECTION_LEVEL in primary database changes to RESYNCHRONIZATION before the primary database shuts down .
SQL> select protection_level from v$database;
PROTECTION_LEVEL
RESYNCHRONIZATION
I need to know for how long primary database can stay in RESYNCHRONIZATION level before it goes down ? and how we can change this time ???
Thanks
Edited by: kamranbs on Jul 19, 2011 2:13 PM
Edited by: kamranbs on Jul 19, 2011 3:09 PMSomething not quite right, unless you have extremely slow disks or the OS is slacking (using VM?) . As soon a the net_timeout expires, primary initiates shutdown abort which should be instant.
-
Hi everybody!
I have a problem. Some weeks ago I opened a post related to this issue. We have two dataguards with dataguard broker. One of them is resync (thanks to mseberg and this forum) and now I have problems with the other.
Once I have learned how to configure and start/stop dataguard broker, I have a more basic problem, which is to resync it. I follow a process, where I backup the primary with RMAN, I copy the rman files to the other server with the controlfile, at once, I recover with rman again.
The problem is that it is too big, 2 hours for backing it up more or less, and when I restore it, no archivelog list appears being syncronized.
I have followed the same process than the other one and I can't resync it. I think there is something at my params or something new at 11g version...
SQL> show parameters
NAME TYPE VALUE
O7_DICTIONARY_ACCESSIBILITY boolean FALSE
active_instance_count integer
aq_tm_processes integer 0
archive_lag_target integer 0
asm_diskgroups string
asm_diskstring string
asm_power_limit integer 1
asm_preferred_read_failure_groups string
audit_file_dest string /opt/oracle/admin/MN122010P/ad
ump
audit_sys_operations boolean FALSE
audit_syslog_level string
audit_trail string DB
background_core_dump string partial
background_dump_dest string /opt/oracle/diag/rdbms/mn12201
0p/MN122010P/trace
backup_tape_io_slaves boolean FALSE
bitmap_merge_area_size integer 1048576
blank_trimming boolean FALSE
buffer_pool_keep string
buffer_pool_recycle string
cell_offload_compaction string ADAPTIVE
cell_offload_parameters string
cell_offload_plan_display string AUTO
cell_offload_processing boolean TRUE
cell_partition_large_extents string DEFAULT
circuits integer
client_result_cache_lag big integer 3000
client_result_cache_size big integer 0
cluster_database boolean FALSE
cluster_database_instances integer 1
cluster_interconnects string
commit_logging string
commit_point_strength integer 1
commit_wait string
commit_write string
compatible string 11.1.0.0.0
control_file_record_keep_time integer 7
control_files string /opt/oracle/oradata/MN122010P/
controlfile/control01.ctl, /op
t/oracle/oradata1/MN122010P/co
ntrolfile/control02.ctl
control_management_pack_access string DIAGNOSTIC+TUNING
core_dump_dest string /opt/oracle/diag/rdbms/mn12201
0p/MN122010P/cdump
cpu_count integer 4
create_bitmap_area_size integer 8388608
create_stored_outlines string
cursor_sharing string EXACT
cursor_space_for_time boolean FALSE
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 TYPICAL
db_block_size integer 8192
db_cache_advice string ON
db_cache_size big integer 0
db_create_file_dest string /opt/oracle/oradata
db_create_online_log_dest_1 string /opt/oracle/oradata
db_create_online_log_dest_2 string /opt/oracle/oradata1
db_create_online_log_dest_3 string
db_create_online_log_dest_4 string
db_create_online_log_dest_5 string
db_domain string domain.es
db_file_multiblock_read_count integer 69
db_file_name_convert string
db_files integer 200
db_flashback_retention_target integer 1440
db_keep_cache_size big integer 0
db_lost_write_protect string NONE
db_name string MN122010
db_recovery_file_dest string /opt/oracle/oradata/flash_reco
very_area
db_recovery_file_dest_size big integer 100G
db_recycle_cache_size big integer 0
db_securefile string PERMITTED
db_ultra_safe string OFF
db_unique_name string MN122010P
db_writer_processes integer 1
dbwr_io_slaves integer 0
ddl_lock_timeout integer 0
dg_broker_config_file1 string /opt/oracle/product/db111/dbs/
dr1MN122010P.dat
dg_broker_config_file2 string /opt/oracle/product/db111/dbs/
dr2MN122010P.dat
dg_broker_start boolean FALSE
diagnostic_dest string /opt/oracle
disk_asynch_io boolean TRUE
dispatchers string (PROTOCOL=TCP) (SERVICE=MN1220
10PXDB)
distributed_lock_timeout integer 60
dml_locks integer 844
drs_start boolean FALSE
enable_ddl_logging boolean FALSE
event string
fal_client string
fal_server string
fast_start_io_target integer 0
fast_start_mttr_target integer 0
fast_start_parallel_rollback string LOW
file_mapping boolean FALSE
fileio_network_adapters string
filesystemio_options string none
fixed_date string
gc_files_to_locks string
gcs_server_processes integer 0
global_context_pool_size string
global_names boolean FALSE
global_txn_processes integer 1
hash_area_size integer 131072
hi_shared_memory_address integer 0
hs_autoregister boolean TRUE
ifile file
instance_groups string
instance_name string MN122010P
instance_number integer 0
instance_type string RDBMS
java_jit_enabled boolean TRUE
java_max_sessionspace_size integer 0
java_pool_size big integer 0
java_soft_sessionspace_limit integer 0
job_queue_processes integer 1000
large_pool_size big integer 0
ldap_directory_access string NONE
ldap_directory_sysauth string no
license_max_sessions integer 0
license_max_users integer 0
license_sessions_warning integer 0
local_listener string LISTENER_MN122010P
lock_name_space string
lock_sga boolean FALSE
log_archive_config string dg_config=(MN122010P,MN122010R
,MN12201R)
log_archive_dest string
log_archive_dest_1 string location="USE_DB_RECOVERY_FILE
_DEST", valid_for=(ALL_LOGFIL
ES,ALL_ROLES)
log_archive_dest_10 string
log_archive_dest_2 string service=MN12201R, LGWR SYNC AF
FIRM delay=0 OPTIONAL compress
ion=DISABLE max_failure=0 max_
connections=1 reopen=300 db_
unique_name=MN12201R net_timeo
ut=30 valid_for=(online_logfi
le,primary_role)
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 %t_%s_%r.dbf
log_archive_local_first boolean TRUE
log_archive_max_processes integer 4
log_archive_min_succeed_dest integer 1
log_archive_start boolean FALSE
log_archive_trace integer 0
log_buffer integer 7668736
log_checkpoint_interval integer 0
log_checkpoint_timeout integer 1800
log_checkpoints_to_alert boolean FALSE
log_file_name_convert string
max_commit_propagation_delay integer 0
max_dispatchers integer
max_dump_file_size string unlimited
max_enabled_roles integer 150
max_shared_servers integer
memory_max_target big integer 512M
memory_target big integer 512M
nls_calendar string
nls_comp string BINARY
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 300
open_links integer 4
open_links_per_instance integer 4
optimizer_capture_sql_plan_baselines boolean FALSE
optimizer_dynamic_sampling integer 2
optimizer_features_enable string 11.1.0.7
optimizer_index_caching integer 0
optimizer_index_cost_adj integer 100
optimizer_mode string ALL_ROWS
optimizer_secure_view_merging boolean TRUE
optimizer_use_invisible_indexes boolean FALSE
optimizer_use_pending_statistics boolean FALSE
optimizer_use_sql_plan_baselines 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_io_cap_enabled boolean FALSE
parallel_max_servers integer 40
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 0
plscope_settings string IDENTIFIERS:NONE
plsql_ccflags string
plsql_code_type string INTERPRETED
plsql_debug boolean FALSE
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_page_sga boolean FALSE
processes integer 170
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 on
redo_transport_user string
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 FALSE
resource_manager_cpu_allocation integer 4
resource_manager_plan string
result_cache_max_result integer 5
result_cache_max_size big integer 1312K
result_cache_mode string MANUAL
result_cache_remote_expiration integer 0
resumable_timeout integer 0
rollback_segments string
sec_case_sensitive_logon boolean TRUE
sec_max_failed_login_attempts integer 10
sec_protocol_error_further_action string CONTINUE
sec_protocol_error_trace_action string TRACE
sec_return_server_release_banner boolean FALSE
serial_reuse string disable
service_names string MN122010P.domain.es
session_cached_cursors integer 50
session_max_open_files integer 10
sessions integer 192
sga_max_size big integer 512M
sga_target big integer 0
shadow_core_dump string partial
shared_memory_address integer 0
shared_pool_reserved_size big integer 10066329
shared_pool_size big integer 0
shared_server_sessions integer
shared_servers integer 1
skip_unusable_indexes boolean TRUE
smtp_out_server string
sort_area_retained_size integer 0
sort_area_size integer 65536
spfile string /opt/oracle/product/db111/dbs/
spfileMN122010P.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 211
transactions_per_rollback_segment integer 5
undo_management string AUTO
undo_retention integer 900
undo_tablespace string UNDOTBS1
use_indirect_data_buffers boolean FALSE
user_dump_dest string /opt/oracle/diag/rdbms/mn12201
0p/MN122010P/trace
utl_file_dir string
workarea_size_policy string AUTO
xml_db_events string enable
I have tested the connectivity between them and it's ok, I recreated the password file
[oracle@servername01 MN122010P]$ sqlplus "sys/[email protected] as sysdba"
SQL> select * from v$instance;
INSTANCE_NUMBER INSTANCE_NAME
HOST_NAME
VERSION STARTUP_T STATUS PAR THREAD# ARCHIVE LOG_SWITCH_WAIT
LOGINS SHU DATABASE_STATUS INSTANCE_ROLE ACTIVE_ST BLO
1 MN122010P
servername01
11.1.0.7.0 09-OCT-11 OPEN NO 1 STARTED
ALLOWED NO ACTIVE PRIMARY_INSTANCE NORMAL NO
[oracle@servername01 MN122010P]$ sqlplus "sys/[email protected] as sysdba"
SQL> select * from v$instance;
INSTANCE_NUMBER INSTANCE_NAME
HOST_NAME
VERSION STARTUP_T STATUS PAR THREAD# ARCHIVE LOG_SWITCH_WAIT
LOGINS SHU DATABASE_STATUS INSTANCE_ROLE ACTIVE_ST BLO
1 MN12201R
servername02
11.1.0.7.0 28-NOV-11 MOUNTED NO 1 STARTED
ALLOWED NO ACTIVE PRIMARY_INSTANCE NORMAL NO
Recovery Manager: Release 11.1.0.7.0 - Production on Thu Dec 1 10:16:23 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
RMAN> connect target /
connected to target database: MN122010 (DBID=2440111267)
RMAN> run{
ALLOCATE CHANNEL d1 DEVICE TYPE DISK FORMAT '/opt/oracle/oradata/BACKUPS_01/MN122010P/backup_%d_t%t_s%s_p%p';
BACKUP DATABASE PLUS ARCHIVELOG;
2> 3> 4>
using target database control file instead of recovery catalog
allocated channel: d1
channel d1: SID=140 device type=DISK
Starting backup at 01-DEC-11
current log archived
channel d1: starting archived log backup set
channel d1: specifying archived log(s) in backup set
input archived log thread=1 sequence=4117 RECID=7260 STAMP=766935608
input archived log thread=1 sequence=4118 RECID=7261 STAMP=766935619
input archived log thread=1 sequence=4119 RECID=7262 STAMP=766935630
input archived log thread=1 sequence=4120 RECID=7263 STAMP=766935635
....List of archives....
Starting backup at 01-DEC-11
channel d1: starting full datafile backup set
channel d1: specifying datafile(s) in backup set
input datafile file number=00010 name=/opt/oracle/oradata/MN122010P/TBCESPANDM_01.DBF
input datafile file number=00009 name=/opt/oracle/oradata/MN122010P/CESPAROUTING_01.DBF
input datafile file number=00007 name=/opt/oracle/oradata/MN122010P/TBCESPACALLEJERO_01.DBF
input datafile file number=00008 name=/opt/oracle/oradata/MN122010P/CESPAGEOCODER_01.DBF
input datafile file number=00001 name=/opt/oracle/oradata/MN122010P/system01.dbf
input datafile file number=00002 name=/opt/oracle/oradata/MN122010P/sysaux01.dbf
input datafile file number=00003 name=/opt/oracle/oradata/MN122010P/undotbs01.dbf
input datafile file number=00006 name=/opt/oracle/oradata/MN122010P/TBCESPAFONDO_01.DBF
input datafile file number=00005 name=/opt/oracle/oradata/MN122010P/TBCESPAPOIS_01.DBF
input datafile file number=00004 name=/opt/oracle/oradata/MN122010P/users01.dbf
channel d1: starting piece 1 at 01-DEC-11
channel d1: finished piece 1 at 01-DEC-11
piece handle=/opt/oracle/oradata/BACKUPS_01/MN122010P/backup_MN122010_t768739341_s768_p1 tag=TAG20111201T104221 comment=NONE
channel d1: backup set complete, elapsed time: 00:39:26
Finished backup at 01-DEC-11
Starting backup at 01-DEC-11
current log archived
channel d1: starting archived log backup set
channel d1: specifying archived log(s) in backup set
input archived log thread=1 sequence=4256 RECID=7399 STAMP=768741707
channel d1: starting piece 1 at 01-DEC-11
channel d1: finished piece 1 at 01-DEC-11
piece handle=/opt/oracle/oradata/BACKUPS_01/MN122010P/backup_MN122010_t768741708_s769_p1 tag=TAG20111201T112148 comment=NONE
channel d1: backup set complete, elapsed time: 00:00:01
Finished backup at 01-DEC-11
Starting Control File and SPFILE Autobackup at 01-DEC-11
piece handle=/opt/oracle/product/db111/dbs/c-2440111267-20111201-00 comment=NONE
Finished Control File and SPFILE Autobackup at 01-DEC-11
released channel: d1
I made a alter database create standby controlfile as at Primary and at Standby:
SQL> shutdown immediate;
ORA-01109: base de datos sin abrir
Base de datos desmontada.
Instancia ORACLE cerrada.
SQL> startup nomount;
Instancia ORACLE iniciada.
Total System Global Area 2937555928 bytes
Fixed Size 744408 bytes
Variable Size 1862270976 bytes
Database Buffers 1073741824 bytes
Redo Buffers 798720 bytes
copy the controlfile to standby controlfile locations
startup standby
ALTER DATABASE MOUNT STANDBY DATABASE;
And restoring with rman
Restoring
List of Archived Logs in backup set 616
Thrd Seq Low SCN Low Time Next SCN Next Time
1 4256 27049296 01-DEC-11 27052551 01-DEC-11
RMAN> run{
2> allocate channel c1 type disk format '/opt/oracle/oradata/BACKUPS_01/MN122010P/backup_%d_t%t_s%s_p%p';
3> restore database;
4> recover database until sequence 4256 thread 1;
5> sql 'alter database recover managed standby database disconnect from session';
6> release channel c1;
7> }
allocated channel: c1
channel c1: SID=164 device type=DISK
Starting restore at 01-DEC-11
Starting implicit crosscheck backup at 01-DEC-11
Crosschecked 115 objects
Finished implicit crosscheck backup at 01-DEC-11
Starting implicit crosscheck copy at 01-DEC-11
Crosschecked 24 objects
Finished implicit crosscheck copy at 01-DEC-11
searching for all files in the recovery area
cataloging files...
no files cataloged
channel c1: starting datafile backup set restore
channel c1: specifying datafile(s) to restore from backup set
channel c1: restoring datafile 00001 to /opt/oracle/oradata/MN122010P/system01.dbf
channel c1: restoring datafile 00002 to /opt/oracle/oradata/MN122010P/sysaux01.dbf
channel c1: restoring datafile 00003 to /opt/oracle/oradata/MN122010P/undotbs01.dbf
channel c1: restoring datafile 00004 to /opt/oracle/oradata/MN122010P/users01.dbf
channel c1: restoring datafile 00005 to /opt/oracle/oradata/MN122010P/TBCESPAPOIS_01.DBF
channel c1: restoring datafile 00006 to /opt/oracle/oradata/MN122010P/TBCESPAFONDO_01.DBF
channel c1: restoring datafile 00007 to /opt/oracle/oradata/MN122010P/TBCESPACALLEJERO_01.DBF
channel c1: restoring datafile 00008 to /opt/oracle/oradata/MN122010P/CESPAGEOCODER_01.DBF
channel c1: restoring datafile 00009 to /opt/oracle/oradata/MN122010P/CESPAROUTING_01.DBF
channel c1: restoring datafile 00010 to /opt/oracle/oradata/MN122010P/TBCESPANDM_01.DBF
channel c1: reading from backup piece /opt/oracle/oradata/BACKUPS_01/MN122010P/backup_MN122010_t768739341_s768_p1
After the restoring I found at standby that no archives have been applied:
SQL> SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME,APPLIED
FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#
/ 2 3
no rows selected
SQL> select * from v$Instance;
INSTANCE_NUMBER INSTANCE_NAME
HOST_NAME
VERSION STARTUP_T STATUS PAR THREAD# ARCHIVE LOG_SWITCH_WAIT
LOGINS SHU DATABASE_STATUS INSTANCE_ROLE ACTIVE_ST BLO
1 MN12201R
server02
11.1.0.7.0 01-DEC-11 MOUNTED NO 1 STARTED
ALLOWED NO ACTIVE PRIMARY_INSTANCE NORMAL NO
SQL> select message from v$dataguard_status;
MESSAGE
ARC0: Archival started
ARC1: Archival started
ARC2: Archival started
ARC3: Archival started
ARC0: Becoming the 'no FAL' ARCH
ARC0: Becoming the 'no SRL' ARCH
ARC1: Becoming the heartbeat ARCH
7 rows selected.
On primary
MESSAGE
ARC3: Beginning to archive thread 1 sequence 4258 (27056314-27064244)
ARC3: Completed archiving thread 1 sequence 4258 (27056314-27064244)
ARC0: Beginning to archive thread 1 sequence 4259 (27064244-27064251)
ARC0: Completed archiving thread 1 sequence 4259 (27064244-27064251)
ARC2: Beginning to archive thread 1 sequence 4260 (27064251-27064328)
ARC2: Completed archiving thread 1 sequence 4260 (27064251-27064328)
ARC3: Beginning to archive thread 1 sequence 4261 (27064328-27064654)
ARC3: Completed archiving thread 1 sequence 4261 (27064328-27064654)
Edited by: user8898355 on 01-dic-2011 7:02I'm seeing those errors at primary
LNSb started with pid=20, OS id=30141
LGWR: Attempting destination LOG_ARCHIVE_DEST_2 network reconnect (16086)
LGWR: Destination LOG_ARCHIVE_DEST_2 network reconnect abandoned
trace file:
*** 2011-12-02 09:52:17.164
*** SESSION ID:(183.1) 2011-12-02 09:52:17.164
*** CLIENT ID:() 2011-12-02 09:52:17.164
*** SERVICE NAME:(SYS$BACKGROUND) 2011-12-02 09:52:17.164
*** MODULE NAME:() 2011-12-02 09:52:17.164
*** ACTION NAME:() 2011-12-02 09:52:17.164
*** TRACE FILE RECREATED AFTER BEING REMOVED ***
*** 2011-12-02 09:52:17.164 6465 krsu.c
Initializing NetServer[LNSb] for dest=MN12201R.domain.es mode SYNC
LNSb is not running anymore.
New SYNC LNSb needs to be started
Waiting for subscriber count on LGWR-LNSb channel to go to zero
Subscriber count went to zero - time now is <12/02/2011 09:52:17>
Starting LNSb ...
Waiting for LNSb [pid 30141] to initialize itself
*** TRACE FILE RECREATED AFTER BEING REMOVED ***
*** 2011-12-02 09:52:17.164 6465 krsu.c
Initializing NetServer[LNSb] for dest=MN12201R.domain.es mode SYNC
LNSb is not running anymore.
New SYNC LNSb needs to be started
Waiting for subscriber count on LGWR-LNSb channel to go to zero
Subscriber count went to zero - time now is <12/02/2011 09:52:17>
Starting LNSb ...
Waiting for LNSb [pid 30141] to initialize itself
*** 2011-12-02 09:52:20.185
*** 2011-12-02 09:52:20.185 6828 krsu.c
Netserver LNSb [pid 30141] for mode SYNC has been initialized
Performing a channel reset to ignore previous responses
Successfully started LNSb [pid 30141] for dest MN12201R.domain.es mode SYNC ocis=0x2ba2cb1fece8
*** 2011-12-02 09:52:20.185 2880 krsu.c
Making upiahm request to LNSb [pid 30141]: Begin Time is <12/02/2011 09:52:17>. NET_TIMEOUT = <30> seconds
Waiting for LNSb to respond to upiahm
*** 2011-12-02 09:52:20.262 3044 krsu.c
upiahm connect done status is 0
Receiving message from LNSb
Receiving message from LNSb
LGWR: Failed
rfsp: 0x2ba2ca55c328
rfsmod: 2
rfsver: 3
rfsflag: 0x24882
Maybe you are looking for
-
Photos sent to file on desktop when importing from memory card
The photos sent to a file when importing from a memory card appear in the file as Adobe documents and cannot be opened. If I try to open a message appears 'Adobe Reader cannot open this document as it is not a supported file/ What has gone wrong?
-
I recently shot a video on my i phone four....the quality appeared awesome on the phone itself....when I went to upload it to my mobile me account it ask me what size I wanted to use and I think I selected the middle as I was uploading via 3g and I f
-
i cant sync my ipod touch, but i need to because i forgot my security passcode and cant get on to my ipod
-
Adding numbers with a length of 50 digits.
Hi folks, Could any one please tell me how to add two numbers with 50 digits each. What should be the datatype for each column, in a table, to hold the above said precision. However, I know that NUMBER couldn't hold this b'coz its precision is upto 3
-
I need information on where to get the drivers for: 'MySQL and Oracle 9i and how to install them and use them with Jdeveloper. newbie