Datagauard - log_archive_dest_2
Hi all
9i
RHEL5
SQL > show parameter log_archive_dest_2
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
SERVICE string log_archive_dest_2 = STBY LGWR ASYNC NOAFFI RM
This parameter allows an automatic transport of archive logs?
Can I change its value in order to a primary database to make the newspapers archived recovery files automatically sent to the standby server?
> alter set log_archive_dest_2 = system ' test optional service reopen 30'; '.
Because my first does not seem to send updates Eve db
How to find the error of the transport of the archive logs?
Thank you very much
JC
in standby mode, you check archivelog with:
Select name, sequence #, archived, applied to the order of v$ archived_log by sequence #.
but do not try to open in readonly your standby instance, first solve your gap.
in the backup site:
-instance of Eve 1 stop...
SQL > the judgment;
-2 startup nomount;
SQL > startup nomount;
-3 change instance standby database mounting;
SQL > alter the instance watch the editing of database;
-4 put in recovery mode:
SQL > recover managed standby database disconnect from the session.
Here, you can connect as sysdba and check archivelog apply.
Select name, sequence #, archived, applied to the order of v$ archived_log by sequence #.
Kind regards.
Tags: Database
Similar Questions
-
Log_archive_dest_2 DataGuard
Hi all
9i
RHEL5
In the dataguard configuration init.ora parameter, which is the best between the two? In terms of performance?
LOG_ARCHIVE_DEST_2 = "SERVICE = STBY LGWR ASYNC NOAFFIRM'"
or
LOG_ARCHIVE_DEST_2 = "SERVICE = STBY LGWR SYNC STATE '"
Thank you very much
JC
Hello, if your storage pending system is not the best of all or your /bandwidth of network latency is not very good, then choose ASYNC (and 9i, you can choose ARCH ASYNC... for a primary performance).
my personal experience:
300 km of primary education in the various networks... before I used ASYNC.
Primary and standby on the same data center with a low cost for standby disk storage: I used ASYNC.
Primary and standby on the same network (with good latency and bandwidth) and the upper disc AND VERY CRITICAL of DATABASE storage!, so I use SYNC.
With SYNCHRONIZATION option, all of the problems in writing to the backup site are in the PRIMARY.
Kind regards.
-
Hello
I'm trying to define DG on Linux for Oracle
VM DATAGUARD1 - TEST (PRIM)
VM DATAFUARD2 - TESTDG (STBY)
I try startup nomount stby db using the setup initialization file, but I get the error below. Please notify.
SQL > startup nomount pfile='/u01/app/oracle/product/11.2.0/dbhome_1/dbs/initTESTDG.ora';
ORA-16025: parameter LOG_ARCHIVE_DEST_2 contains repeated or conflicting attributes
SQL >
initTESTDG.ora-
TESTDG.__db_cache_size = 486539264
TESTDG.__java_pool_size = 16777216
TESTDG.__large_pool_size = 33554432
TESTDG.__oracle_base='/U01/app/oracle'#ORACLE_BASE the value of the environment
TESTDG.__pga_aggregate_target = 788529152
TESTDG.__sga_target = 872415232
TESTDG.__shared_io_pool_size = 0
TESTDG.__shared_pool_size = 285212672
TESTDG.__streams_pool_size = 33554432
*.audit_file_dest='/U01/app/Oracle/admin/TESTDG/adump '
* .audit_trail = "db".
* full = '11.2.0.4.0'
*.control_files='/U01/oradata/TESTDG/control01.ctl','/u02/oradata/TESTDG/control02.ctl','/u03/oradata/TESTDG/control03.CTL '
* .db_block_size = 16384
*. db_domain ='GEOPLACE.CO. UK'
*.db_file_name_convert='/U02/oradata/test/','/U02/oradata/TESTDG /'
*.log_file_name_convert='/U01/oradata/test/','/U01/oradata/TESTDG/','/U02/oradata/test/','/U02/oradata/TESTDG','/U03/oradata/test/','/U03/oradata/TESTDG /'
* .db_name = 'TEST '.
* .db_unique_name = "TESTDG.
*.diagnostic_dest='/U01/app/Oracle '
*. Dispatchers ='(Protocol=TCP) (SERVICE = TESTDGXDB)"
* .fal_client = "TESTDG.
* .fal_server = 'TEST '.
* .log_archive_config = 'DG_CONFIG = (TEST, TESTDG)'
*. Log_archive_dest_1 ='LOCATION = / mnt/nfstest/DATAGUARD1 / VALID_FOR =(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME = TESTDG'
* .log_archive_dest_2 = "SERVICE = ASYNC LGRW VALID_FOR =(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME TEST = TEST'"
* .log_archive_dest_state_2 = 'REPORTER '.
* .log_archive_dest_state_1 = enable
*.log_archive_format='%t_%s_%r.arc'
* .log_archive_max_processes = 30
* .memory_target = 1656750080
* .nls_language = "ENGLISH".
* .nls_territory = "UK".
* .open_cursors = 300
* runoff = 150
* .remote_login_passwordfile = "EXCLUSIVE."
* .standby_file_management = "AUTO".
* .undo_tablespace ='UNDOTBS1
* .log_archive_dest_2 = "SERVICE = ASYNC LGRW VALID_FOR =(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME TEST = TEST'"
There are typo to redo transport "LGRW", it should be "LGWR", remaining quite seems perfect.
-
LOG_ARCHIVE_DEST_2 parameter error and cannot start the primary database
Hello
I was getting errors in my RMAN backup script. I took a glance on the database settings. Looks like I made a mistake when I was in the LOG_ARCHIVE_DEST_2 setting in the standby database. Instead of putting on the eve I put it in the name of the primary instance. I also noticed that the LOG_ARCHIVE_DEST_2 setting has been changed in the primary database where I put it first. I guess he's changed when I changed the sleep setting. I have two questions:
(1) can the parameter LOG_ARCHIVE_DEST_2 be changes for the correct setting now that I set it wrong. The reason why I ask is because when I tried to change by using the following ALTER SYSTEM command I got an error saying something about conflicting attributes. I guess it's because the name of the primary instance has been upgraded with the DB_UNIQUE_NAME instead of the name of the standby instance. If I could change the LOG_ARCHIVE_DEST_2 setting to sleep first then maybe I can change the primary to the correct setting? Please provide markets.
ALTER SYSTEM SET LOG_ARCHIVE_DEST_2 ='SERVICE = < DB PRIMARY > ASYNC VALID_FOR =(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME = < PRIMARY_INSTANCE > '
(2) the second question is you can start a database using a spfile? (I use ASM and Data Guard) I ask because while I was connected to the primary database I executed the following command:
ALTER SYSTEM SET LOG_ARCHIVE_DEST_2 = 'SERVICE = < PRIMARY_INSTANCE > ASYNC VALID_FOR =(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME = < PRIMARY_INSTANCE >' scope = spfile;
I then stop the database and try to start but it won't start because it says to conflicting attributes. I don't create a pfile from spfile file before you shut down the database. (I'm bad). How can I change the setting for the primary database to start over. (The PFILE file is different in ASM. There are sub + DATA but has only a single line indicating where is the location of the SPFILE) I need to run the following RMAN RESTORE CONTROLFILE FROM backup AUTOMATIC;
Please help as it is a production environment that was supposed to be delivered only yesterday.
Any help will be greatly appreciated!
Thanks in advance.
JI always use it. So my answer is Yes.
Please consider several of the responses of CKPT marking "useful".
He works very hard in the forum and didn't work great!
I call it "SuperStar."
Best regards
mseberg
-
DataGuard problems, bad to the log_archive_dest_2 port configuration
Hello! Thank you all in advance for your help and sorry for my English, I will try to explain as best as possible.
We have a dataguard.
It has two headphones, the ports are 1534 and 1544, but... someone changed their 1535 once there is and now I had to re-set up everything again.
The thing is log_archive_dest_2 at the elementary level is wrong, because it points to instead of 1534-1535. I tried to edit init.ora and restart the instance but it always points to 1535 again.
I don't know if this setting depends on the other, or there is a hidden configuration, I don't see
**********
Primary
**********
-----------------------------------------------------------------------------------------------------------------------------------------
tnsnames.ora
LICITARP =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP (PORT = 1544))(HOST = server01g))
(ADDRESS = (PROTOCOL = TCP (PORT = 1534))(HOST = server01))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = LICITARP)
)
)
LICITARR =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = server02g. XXXXXX.es) (PORT = 1544))
(ADDRESS = (PROTOCOL = TCP) (HOST = server02. XXXXXX.es) (PORT = 1534))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = LICITARR. XXXXXX.es)
)
)
LICITARP. XXXXXX.es =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = server01. XXXXXX.es) (PORT = 1534))
)
(CONNECT_DATA =
(SID = LICITARP)
(SERVER = DEDICATED)
)
)
LICITARPG. XXXXXX.es =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = server01g. XXXXXX.es) (PORT = 1544))
)
(CONNECT_DATA =
(SID = LICITARP)
(SERVER = DEDICATED)
)
)
LICITARR. XXXXXX.es =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = server02. XXXXXX.es) (PORT = 1534))
)
(CONNECT_DATA =
(SID = LICITARR)
(SERVER = DEDICATED)
)
)
L_LICITARPG =
(ADDRESS = (PROTOCOL = TCP) (HOST = server01g. XXXXXX.es) (PORT = 1544))
L_LICITARP =
(ADDRESS = (PROTOCOL = TCP) (HOST = server01. XXXXXX.es) (PORT = 1534))
-----------------------------------------------------------------------------------------------------------------------------------------
Listener.ora
SID_LIST_L_LICITARPG =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = LICITARP. XXXXXX.es)
(ORACLE_HOME = / opt/oracle/product/db111)
(SID_NAME = LICITARP)
)
)
L_LICITARP =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = server01. XXXXXX.es) (PORT = 1534))
)
)
L_LICITARPG =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = server01g. XXXXXX.es) (PORT = 1544))
)
)
SID_LIST_L_LICITARP =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = LICITARP_dgmgrl. XXXXXX.es)
(ORACLE_HOME = / opt/oracle/product/db111)
(SERVICE_NAME = LICITARP. XXXXXX.es)
(SID_NAME = LICITARP)
)
(SID_DESC =
(GLOBAL_DBNAME = LICITARP. XXXXXX.es)
(ORACLE_HOME = / opt/oracle/product/db111)
(SID_NAME = LICITARP)
)
(SID_DESC =
(GLOBAL_DBNAME = LICITARR. XXXXXX.es)
(ORACLE_HOME = / opt/oracle/product/db111)
(SID_NAME = LICITARR)
)
)
-----------------------------------------------------------------------------------------------------------------------------------------
parameters
My ora init settings:
LICITARP.log_archive_dest_1 ='location = "USE_DB_RECOVERY_FILE_DEST" ',' valid_for = (ALL_LOGFILES, ALL_ROLES)'"
LICITARP.log_archive_dest_2 ='service = "LICITARR.xxxxxx.es ', delay LGWR SYNC AFFIRM = OPTIONAL compression 0 = DISABLE max_failure = 0 max_connections = 1 reopen = 300 db_unique_name ="LICITARR"net_timeout = 30 valid_for = (online_logfile, primary_role)'" "
I start the database and when I show the parameters, log_dest_2 points to 1535, a bad port.
SQL > show settings dest
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
audit_file_dest string/opt/oracle/admin/LICITARP/adu
MP
/ opt/oracle/diag/rdbms/licitar string background_dump_dest
p/LICITARP/trace
core_dump_dest string/opt/oracle/diag/rdbms/licitar
p/LICITARP/cdump
db_create_file_dest chain
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
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
db_create_online_log_dest_5 string
db_recovery_file_dest string/opt/oracle/oradata/flash_reco
very_area
whole large db_recovery_file_dest_size 100G
diagnostic_dest string/opt/oracle
Log_archive_dest chain
location of string Log_archive_dest_1 = 'USE_DB_RECOVERY_FILE. '
Dest", valid_for is (ALL_LOGFIL
ES, ALL_ROLES)
LOG_ARCHIVE_DEST_10 string
service of string LOG_ARCHIVE_DEST_2 = "(DESCRIPTION = (ADDRESS
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
_LIST = (ADDRESS = (PROTOCOL = tcp
() (HOST = server02)(¡¡¡PORT=1535!!!)))
(CONNECT_DATA = (SERVICE_NAME = LI
CITARR. XXXXXX.es)(SERVER=DE)
DIQUE))) ', LGWR SYNC DISPLAY.
Delay of RM = 0 OPTIONAL compressio
n = DISABLE max_failure = 0 max_co
nnections = 1 reopen = 300 db_un
ique_name = "LICITARR" net_timeo
UT = 30 valid_for = (online_logfi
the, primary_role)
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
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
allow the chain of log_archive_dest_state_10
LOG_ARCHIVE_DEST_STATE_2 string ENABLE
log_archive_dest_state_3 string ENABLE
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
allow the chain of log_archive_dest_state_4
allow the chain of log_archive_dest_state_5
allow the chain of log_archive_dest_state_6
allow the chain of log_archive_dest_state_7
allow the chain of log_archive_dest_state_8
allow the chain of log_archive_dest_state_9
log_archive_duplex_dest string
log_archive_min_succeed_dest integer 1
standby_archive_dest channel? / dbs/arch
user_dump_dest string/opt/oracle/diag/rdbms/licitar
p/LICITARP/trace
SQL > show fal settings
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
string fal_client (DESCRIPTION = (ADDRESS_LIST =)
Address = (Protocol = TCP) (Host = FL
o5ora01) (port = 1534))) (CONNECT_
DATA = (SERVICE_NAME = LICITARP. XX
XXXXXX.es) SERVER = DEDICATED))
string fal_server (DESCRIPTION = (ADDRESS_LIST =)
Address = (Protocol = TCP) (Host = f
lo5ora02) (port = 1534))) (CONNECT
DATA = (SERVICENAME = LICITARR.) X
XXXXX.es) (SERVER = DEDICATED)
)
**********
Standby
**********
-----------------------------------------------------------------------------------------------------------------------------------------
tnsnames.ora
LICITARR =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP (PORT = 1534))(HOST = server02.intranet.XXXXXX.es))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = LICITARR)
)
)
LICITARR
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP (PORT = 1534))(HOST = server02.intranet.XXXXXX.es))
)
(CONNECT_DATA =
(SID = LICITARR)
(SERVER = DEDICATED)
)
)
L_LICITARR =
(ADDRESS = (PROTOCOL = TCP (PORT = 1534))(HOST = server02.intranet.XXXXXX.es))
LICITARR. XXXXXX.ES =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP (PORT = 1534))(HOST = server02.intranet.XXXXXX.es))
)
(CONNECT_DATA =
(SID = LICITARR)
(SERVER = DEDICATED)
)
)
-----------------------------------------------------------------------------------------------------------------------------------------
Listener.ora
SID_LIST_L_LICITARRG =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = LICITARP_dgmgrl. XXXXXX.es)
(ORACLE_HOME = / opt/oracle/product/db111)
(SERVICE_NAME = LICITARPG. XXXXXX.es)
(SID_NAME = LICITARP)
)
(SID_DESC =
(GLOBAL_DBNAME = LICITARR_dgmgrl. XXXXXX.es)
(ORACLE_HOME = / opt/oracle/product/db111)
(SERVICE_NAME = LICITARRG. XXXXXX.es)
(SID_NAME = LICITARR)
)
(SID_DESC =
(GLOBAL_DBNAME = LICITARPG_dgb. XXXXXX.es)
(ORACLE_HOME = / opt/oracle/product/db111)
(SERVICE_NAME = LICITARPG_DGB. XXXXXX.es)
(SID_NAME = LICITARP)
)
(SID_DESC =
(GLOBAL_DBNAME = LICITARRG_dgb. XXXXXX.es)
(ORACLE_HOME = / opt/oracle/product/db111)
(SERVICE_NAME = LICITARRG_DGB. XXXXXX.es)
(SID_NAME = LICITARR)
)
(SID_DESC =
(GLOBAL_DBNAME = LICITARP. XXXXXX.es)
(ORACLE_HOME = / opt/oracle/product/db111)
(SID_NAME = LICITARP)
)
(SID_DESC =
(GLOBAL_DBNAME = LICITARR. XXXXXX.es)
(ORACLE_HOME = / opt/oracle/product/db111)
(SID_NAME = LICITARR)
)
)
SID_LIST_L_LICITARR =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = LICITARP_dgmgrl. XXXXXX.es)
(ORACLE_HOME = / opt/oracle/product/db111)
(SERVICE_NAME = LICITARPG. XXXXXX.es)
(SID_NAME = LICITARP)
)
(SID_DESC =
(GLOBAL_DBNAME = LICITARR_dgmgrl. XXXXXX.es)
(ORACLE_HOME = / opt/oracle/product/db111)
(SERVICE_NAME = LICITARRG. XXXXXX.es)
(SID_NAME = LICITARR)
)
(SID_DESC =
(GLOBAL_DBNAME = LICITARP_dgb. XXXXXX.es)
(ORACLE_HOME = / opt/oracle/product/db111)
(SERVICE_NAME = LICITARP_DGB. XXXXXX.es)
(SID_NAME = LICITARP)
)
(SID_DESC =
(GLOBAL_DBNAME = LICITARR_dgb. XXXXXX.es)
(ORACLE_HOME = / opt/oracle/product/db111)
(SERVICE_NAME = LICITARR_DGB. XXXXXX.es)
(SID_NAME = LICITARR)
)
(SID_DESC =
(GLOBAL_DBNAME = LICITARP. XXXXXX.es)
(ORACLE_HOME = / opt/oracle/product/db111)
(SID_NAME = LICITARP)
)
(SID_DESC =
(GLOBAL_DBNAME = LICITARR. XXXXXX.es)
(ORACLE_HOME = / opt/oracle/product/db111)
(SID_NAME = LICITARR)
)
)
L_LICITARR =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP (PORT = 1534))(HOST = server02.intranet.XXXXXX.es))
)
)
L_LICITARRG =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP (PORT = 1544))(HOST = server02g.intranet.XXXXXX.es))
)
)
LISTENER_LICITARR =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP (PORT = 1534))(HOST = server02.intranet.XXXXXX.es))
)
SID_LIST_LISTENER_LICITARR =
(SID_LIST =
(SID_DESC =
(ORACLE_HOME = / opt/oracle/product/db111)
(SID_NAME = LICITARR)
)
)
-----------------------------------------------------------------------------------------------------------------------------------------
parameters
SQL > show settings dest
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
audit_file_dest string/opt/oracle/admin/LICITARR/adu
MP.
/ opt/oracle/diag/rdbms/licitar string background_dump_dest
r/LICITARR/trace
core_dump_dest string/opt/oracle/diag/rdbms/licitar
r/LICITARR/cdump
db_create_file_dest chain
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
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
db_create_online_log_dest_5 string
db_recovery_file_dest string/opt/oracle/oradata/flash_reco
very_area
whole large db_recovery_file_dest_size 100G
diagnostic_dest string/opt/oracle
Log_archive_dest chain
Log_archive_dest_1 string LOCATION = USE_DB_RECOVERY_FILE_
DEST OPTION REOPEN = 300
LOG_ARCHIVE_DEST_10 string
service of string LOG_ARCHIVE_DEST_2 = "(DESCRIPTION = (ADDRESS
_LIST = (ADDRESS = (PROTOCOL = tcp
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
() (HOST = server02)(PORT=1534)))
(CONNECT_DATA = (SERVICE_NAME = LI
CITARR. XXXXXX.es)(SERVER=DE)
DIQUE))) ', LGWR SYNC DISPLAY.
Delay of RM = 0 OPTIONAL compressio
n = DISABLE max_failure = 0 max_co
nnections = 1 reopen = 300 db_un
ique_name = "LICITARR" net_timeo
UT = 30 valid_for = (online_logfi
the, primary_role)
log_archive_dest_3 string
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
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
allow the chain of log_archive_dest_state_1
allow the chain of log_archive_dest_state_10
LOG_ARCHIVE_DEST_STATE_2 string ENABLE
log_archive_dest_state_3 string ENABLE
allow the chain of log_archive_dest_state_4
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
allow the chain of log_archive_dest_state_5
allow the chain of log_archive_dest_state_6
allow the chain of log_archive_dest_state_7
allow the chain of log_archive_dest_state_8
allow the chain of log_archive_dest_state_9
log_archive_duplex_dest string
log_archive_min_succeed_dest integer 1
standby_archive_dest channel? / dbs/arch
user_dump_dest string/opt/oracle/diag/rdbms/licitar
r/LICITARR/trace
------------------------------------------------------------------------------------------------
If I tried that I managed to enter sqlplus in both nodes
[oracle@server01 admin] $ sqlplus "sys/YYYYYYY @(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = server02)(PORT=1534)) (CONNECT_DATA = (SERVICE_NAME = LICITARR.» "((XXXXX.es)(SERVER=DEDICATED) (CID = (PROGRAM = oracle) (HOST = server02)(USER=oracle))) as sysdba.
SQL > select status from v$ instance;
STATUS
------------
MOUNTED
[oracle@server01 admin] $ sqlplus "sys/YYYYYYY @(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = server01)(PORT=1534)) (CONNECT_DATA = (SERVICE_NAME = LICITARP.» "((XXXXX.es)(SERVER=DEDICATED) (CID = (PROGRAM = oracle) (HOST = server01)(USER=oracle))) as sysdba.
SQL > select status from v$ instance;
STATUS
------------
OPEN
I always get this message, where PORT = 1535 is incorrect, and the correct port is 1534:
Message
--------------------------------------------------------------------------------
R.XXXXX.es) (SERVER = DEDICATED)))'
LGWR: Impossible to archive log 2 thread 1 sequence 162530 (12514)
ARCH: Starting to check in thread 1 sequence 162529 (13127536-13127548)
ARCH: Completed check-in thread 1 sequence 162529 (13127536-13127548)
Logging of 12514 errors received on the eve
"LGWR: 12514 error creating file archivelog ' (DESCRIPTION = (ADDRESS_LIST = (ADDRESS
(S = (Protocol = TCP)(Host=Server02) (port = 1535))) (CONNECT_DATA = (SERVICE_NAME = LICITAR
R.XXXXX.es) (SERVER = DEDICATED)))'
LGWR: Impossible to archive log 3 thread 1 sequence 162531 (12514)
Message
--------------------------------------------------------------------------------
ARCH: Starting to check in thread 1 sequence 162530 (13127548-13127555)
ARCH: Completed check-in thread 1 sequence 162530 (13127548-13127555)
Logging of 12514 errors received on the eve
"LGWR: 12514 error creating file archivelog ' (DESCRIPTION = (ADDRESS_LIST = (ADDRESS
(S = (Protocol = TCP)(Host=Server02) (port = 1535))) (CONNECT_DATA = (SERVICE_NAME = LICITAR
R.XXXXX.es) (SERVER = DEDICATED)))'
LGWR: Failure to archive journal 1-wire 1 sequence 162532 (12514)
ARCH: Starting to check in thread 1 sequence 162531 (13127555-13127565)
ARCH: Completed check-in thread 1 sequence 162531 (13127555-13127565)
Logging of 12514 errors received on the eve
Message
--------------------------------------------------------------------------------
"LGWR: 12514 error creating file archivelog ' (DESCRIPTION = (ADDRESS_LIST = (ADDRESS
(S = (Protocol = TCP)(Host=Server02) (port = 1535))) (CONNECT_DATA = (SERVICE_NAME = LICITAR
R.XXXXX.es) (SERVER = DEDICATED)))'
LGWR: Impossible to archive log 2 thread 1 sequence 162533 (12514)
ARCH: Starting to check in thread 1 sequence 162532 (13127565-13127570)
ARCH: Completed check-in thread 1 sequence 162532 (13127565-13127570)
Logging of 12514 errors received on the eve
"LGWR: 12514 error creating file archivelog ' (DESCRIPTION = (ADDRESS_LIST = (ADDRESS
(S = (Protocol = TCP)(Host=Server02) (port = 1535))) (CONNECT_DATA = (SERVICE_NAME = LICITAR
R.XXXXX.es) (SERVER = DEDICATED)))'
Message
--------------------------------------------------------------------------------
LGWR: Impossible to archive log 3 thread 1 sequence 162534 (12514)
ARCH: Starting to check in thread 1 sequence 162533 (13127570-13127575)
ARCH: Completed check-in thread 1 sequence 162533 (13127570-13127575)
Logging of 12514 errors received on the eve
"LGWR: 12514 error creating file archivelog ' (DESCRIPTION = (ADDRESS_LIST = (ADDRESS
(S = (Protocol = TCP)(Host=Server02) (port = 1535))) (CONNECT_DATA = (SERVICE_NAME = LICITAR
R.XXXXX.es) (SERVER = DEDICATED)))'
LGWR: Failure to archive journal 1-wire 1 sequence 162535 (12514)
ARCH: Starting to check in thread 1 sequence 162534 (13127575-13127582)
Message
--------------------------------------------------------------------------------
ARCH: Completed check-in thread 1 sequence 162534 (13127575-13127582)
Logging of 12514 errors received on the eve
256 selected lines.
Those for alert and new PORT = 1535 when he is wrong, since the correct port is 1534:
***********************************************************************
Fatal OR connect 12514 error, connect to:
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=server02) (PORT = 1535)) (CONNECT_DATA = (SERVICE_NAME = LICITARR_DGB. XXXXX.es)(INSTANCE_NAME=LICITARR) (SERVER = DEDICATED) (CID = (PROGRAM = oracle) (HOST = server01)(USER=oracle)))
VERSION INFORMATION:
AMT for Linux: Version 11.1.0.7.0 - Production
Protocol TCP/IP NT to Linux adapter: 11.1.0.7.0 - Production Version
Time: November 10, 2011 18:56:42
Tracing not lit.
AMT error struct:
NS main err in code: 12564
AMT-12564: TNS:connection refused
NS secondary err code: 0
NT main err in code: 0
NT secondary err code: 0
NT OS err code: 0
***********************************************************************
Fatal OR connect 12514 error, connect to:
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=server02) (PORT = 1535)) (CONNECT_DATA = (SERVICE_NAME = LICITARR_DGB. XXXXX.es)(INSTANCE_NAME=LICITARR) (SERVER = DEDICATED) (CID = (PROGRAM = oracle) (HOST = server01)(USER=oracle)))
VERSION INFORMATION:
AMT for Linux: Version 11.1.0.7.0 - Production
Protocol TCP/IP NT to Linux adapter: 11.1.0.7.0 - Production Version
Time: November 10, 2011 18:56:42
Tracing not lit.
AMT error struct:
NS main err in code: 12564
AMT-12564: TNS:connection refused
NS secondary err code: 0
NT main err in code: 0
NT secondary err code: 0
NT OS err code: 0
I have recreated the password file in the primary and copy it to the secondary, after that I restarted both cases, but nothingNo sense to me. Do you have a rebuild on my system and was not able to reproduce.
At this point, I would like to grep for the problem (change of wider path if necessary)
grep 1535 -R /opt/oracle/*
I hate when it makes no sense. There must be somewhere.
Best regards
mseberg
Subsequently
I was thinking about it more. If you have a data broker, they can change the database settings. Any change of this?
I see this in your settings file that supports this theory
*.dg_broker_start=TRUE
Any set of values in Data Guard Broker wins the spfile parameter. So no matter what you the SPFILE and PFILE broker file overwrites.
How to remove safely a Data Guard Broker Configuration [261336.1 ID]
Or modify the 'StaticConnectIdentifier' proposal the data broker. See doc Oracle E17023-04
"6 scenarios using the DGMGRL command-line Interface"
Example of
DGMGRL> edit instance dg112i2 on database dg112i_prm set PROPERTY StaticConnectIdentifier = '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.11.225)(PORT=1555))(CONNECT_DATA=(SERVICE_NAME=DG112I_PRM_DGMGRL.au.oracle.com)(INSTANCE_NAME=dg112i1)(SERVER=DEDICATED)))';
Published by: mseberg on November 11, 2011 13:53
See data physical custody shall 11.2 primary RAC RAC standby using a second network [1349977.1 ID]
-
ARCHIVELOG destination off LOG_ARCHIVE_DEST_2 waiting for database
Hi all
I'm working on a custodian of physical data with Oracle 11.gR2 under linux.
I have a fast recovery zone and archivelogs are sent there.
When I set up the day before, it does not work.
primary init:
==============================
ORCL.__db_cache_size = 16777216
ORCL.__java_pool_size = 4194304
ORCL.__large_pool_size = 4194304
ORCL.__oracle_base='/U01/app/oracle'#ORACLE_BASE the value of the environment
ORCL.__pga_aggregate_target = 272629760
ORCL.__sga_target = 406847488
ORCL.__shared_io_pool_size = 0
ORCL.__shared_pool_size = 142606336
ORCL.__streams_pool_size = 4194304
*.audit_file_dest='/U01/app/Oracle/admin/ORCL/adump '
* .audit_trail = "db".
* full = '11.2.0.0.0'
*.control_files='/u01/app/oracle/oradata/orcl/control01.ctl','/u01/app/oracle/fast_recovery_area/orcl/control02.ctl'
* .cursor_sharing = 'FORCE '.
* .db_block_size = 8192
* .db_cache_size = 33554432
* .db_domain = "
* .db_keep_cache_size = 0
* .db_name = "orcl".
* .db_unique_name = "orcl".
*.db_recovery_file_dest='/U01/app/Oracle/fast_recovery_area '
* .db_recovery_file_dest_size = 4227858432
*.diagnostic_dest='/U01/app/Oracle '
*. Dispatchers ='(Protocol=TCP) (SERVICE = orclXDB)"
* .java_pool_size = 12582912
* .large_pool_size = 4194304
* .memory_max_target = 0
* .memory_target = 0
* .open_cursors = 300
* .optimizer_features_enable = '11.2.0.1'
* .optimizer_use_sql_plan_baselines = FALSE
* .pga_aggregate_target = 195035136
* runoff = 300
* .remote_login_passwordfile = "EXCLUSIVE."
* .resource_manager_plan ='FORCE:'
* .session_cached_cursors = 50
* .sga_max_size = 0
* .sga_target = 0
* .shared_pool_size = 125829120
* .undo_tablespace = "UNDOTBS1.
*. LOG_ARCHIVE_MAX_PROCESSES = 4
*. FAL_CLIENT = "orcl".
*. FAL_SERVER = "orclsb."
*. LOG_FILE_NAME_CONVERT = "orcl", "orcl".
* .standby_file_management = "AUTO".
**. LOG_ARCHIVE_DEST_10 = "LOCATION = USE_DB_RECOVERY_FILE_DEST =(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME = orcl VALID_FOR'*"
**. LOG_ARCHIVE_DEST_2 = "SERVICE = orclsb LGWR ASYNC VALID_FOR =(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME = orclsb'*"
*. LOG_ARCHIVE_DEST_STATE_2 = ENABLE
*. LOG_ARCHIVE_DEST_STATE_10 = ENABLE
*. LOG_ARCHIVE_CONFIG = 'NORECEIVE, DG_CONFIG = (ORCL, orclsb)'
==============================
Ensure init:
================================
*.audit_file_dest='/U01/app/Oracle/admin/ORCL/adump '
* .audit_trail = "db".
* full = '11.2.0.0.0'
*.control_files='/u01/app/oracle/oradata/orcl/control01.ctl'
* .cursor_sharing = 'FORCE '.
* .db_block_size = 8192
* .db_cache_size = 33554432
* .db_domain = "
* .db_keep_cache_size = 0
* .db_name = "orcl".
* .db_unique_name = "orclsb".
*.db_recovery_file_dest='/U01/app/Oracle/fast_recovery_area '
* .db_recovery_file_dest_size = 4227858432
*.diagnostic_dest='/U01/app/Oracle '
*. Dispatchers ='(Protocol=TCP) (SERVICE = orclXDB)"
* .java_pool_size = 12582912
* .large_pool_size = 4194304
* .memory_max_target = 0
* .memory_target = 0
* .open_cursors = 300
* .optimizer_features_enable = '11.2.0.1'
* .optimizer_use_sql_plan_baselines = FALSE
* .pga_aggregate_target = 195035136
* runoff = 300
* .remote_login_passwordfile = "EXCLUSIVE."
* .resource_manager_plan ='FORCE:'
* .session_cached_cursors = 50
* .sga_max_size = 0
* .sga_target = 0
* .shared_pool_size = 125829120
* .undo_tablespace = "UNDOTBS1.
*. LOG_ARCHIVE_MAX_PROCESSES = 4
*. FAL_CLIENT = "orclsb."
*. FAL_SERVER = "orcl".
*. LOG_FILE_NAME_CONVERT = "orcl", "orcl".
* .standby_file_management = "AUTO".
**. LOG_ARCHIVE_DEST_10 = "LOCATION = DB_UNIQUE_NAME =(ALL_LOGFILES,ALL_ROLES) USE_DB_RECOVERY_FILE_DEST = orclsb VALID_FOR *"
**. LOG_ARCHIVE_DEST_2 = "SERVICE = orcl LGWR ASYNC VALID_FOR =(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME = orcl'*"
*. LOG_ARCHIVE_DEST_STATE_2 = ENABLE
*. LOG_ARCHIVE_DEST_STATE_10 = ENABLE
*. LOG_ARCHIVE_CONFIG = 'NORECEIVE, DG_CONFIG = (ORCL, orclsb)'
================================
According to the documentation, if I'm not mistaken when you use USE_DB_RECOVERY_FILE_DEST, LOG_ARCHIVE_DEST_10 should be used.
In primary education alert, I see:
FAL [server, ARC2]: error 16065 creation archivelog remote file "orclsb".
FAL [server, ARC2]: archive FAL failed, see the trace file.
ARCH: Archive FAL failed. Continuous archiver
ORACLE Instance orcl - archive error. Continuous archiver.
In the trace, I see:
16065 error attaching to standby host of destination LOG_ARCHIVE_DEST_2 "orclsb".
2011-07-12 16:00:34.264 2864 krsi.c
krsi_dst_fail: err dest:2: 16065 explosion of strength: 0:1
kcrrwkx: unknown error: 16065
Any help would be very useful.
I think the problem is that I use USE_DB_RECOVERY_FILE_DEST for the location of the archivelogs, instead of a file system location.
Thanls in advance.Diego;
Thanks for the reply. At this point, I think that we are the retailer to death.
His time probably on the occasion of this question as answered.If you had a "previous incarnation' this will return false results for awhile:
select max(sequence#) from v$log;
Use this:
Check to ensure that the physical database is not running correctly
On the standby database, query the V$ARCHIVED_LOG view to identify existing files in the archived redo log. SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME, APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#; On the Primary force a log switch ALTER SYSTEM SWITCH LOGFILE; On the standby run the query again : SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME, APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
If you find this or anything else useful please mark as well.
Best regards
mseberg
-
How unset log_archive_dest_2 parameter in the RAC database
Hi all
I have backup of database facility and using log_archive_dest_2 parameter to ship logs archiving to standby mode. I want to the database pending closure.
My primary database is 2 node RAC 11 g database.
Please can I know how unset log_archive_dest_2 parameter.
Currently, the parameter is defined as: -.
VALUE OF TYPE NAME
--------------------------------------------------------------------------------
-----------
--------------------------------------------------------------------------------
SERVICE = MDM2 SYNC VALID_FOR string LOG_ARCHIVE_DEST_2 = (O
NLINE_LOGFILES, PRIMARY_ROLE) D
B_UNIQUE_NAME = MDM2
Thank you.Assign the just "(empty string).
----------
Sybrand Bakker
Senior Oracle DBA -
LOG_ARCHIVE_DEST_2: SYNC or ASYNC
All,
I have the following configuration:
Physical standby of a primary, with a deadline set to 23 hours (5 minutes in my test setup).
With a delay, my parameter log_archive_dest_2 must be in SYNC or ASYNC?
In my view, that it must be ASYNCHRONOUS, because I want to avoid my prod being blocked if the network is down.
ALTER system set log_archive_dest_2 = 'SERVICE = STAN LGWR ASYNC VALID_FOR =(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME = reopen STAN delay = 60 = 5' scope = the two sid =' * ';
ConcerningS11 wrote:
If I change maxperformance DG to maxavailibility (while still using a 24 hour delay)
and in standby mode network connection is down, production will not hold until the network is upward?No, it will take place and when standby DB will be online to new DG will send all required redologs and apply them.
He holds in the case of MaxProtection. -
ORA-16025: parameter LOG_ARCHIVE_DEST_2 contains repeated or conflicting
Hello
I get this error.
value of *.log_archive_dest_2 is
* .log_archive_dest_2 = "SERVICE = PRODDG LGWR ASYNC VALID_FOR =(ALL_LOGFILES,PROD_ROLE) DB_UNIQUE_NAME = PRODDG'"
I'm configuration initora file to DB primaryVALID_FOR = (ONLINE_LOGFILES, PRIMARY_ROLE)
See the documentation for the concept of datagaurd and administartion Chapter 3
-
remove the logs of archiving in log_archive_dest_2 with RMAN
Hello
Installation program:
Primary DB: oracle 10g
Standby DB: Oracle 10g
Physical active DataGuard paused.
We nun RMAN on the primary db every night, which also removes the archives connects log_archive_dest_1 located on the primary server. How to activate the same working RMAN delete logs archiving in log_archive_dest_2 located on the backup server.
-ShashiHey Shashi,
You can use similar job on your backup server for the removal of the old archivelogs in about 1 week. Also, please pay attention to the setting of the RMAN ARCHIVELOG DELETION POLICY on the primary database. Maybe it's to set as APPLIES ON STANDBY to prevent the removal of the archivelogs not yet applied to the primary.
Best regards
Alex -
Log_archive_dest_2
Hello
Is it possible the server to shut down the operating system who knows the data to be protected without delay the dest_2 of primary school.
I use the LGWR ASYNC option. If no contact to the standby server, the primary database will be down?
dest_2 is now optional
Published by: Deccan charger on April 20, 2010 04:29
Published by: Deccan charger on April 20, 2010 04:29Taylor wrote:
Hi What is the protection mode you?SELECT PROTECTION_MODE FROM V$ DATABASE;
If you use performance max, you can reboot the host after shuttingdown db.
No need to worry, because "ASYNC" LGWR is already there.
-
PHSICAL standby db, cannot receive the archivelogs elementary school
Hello
Yesterday, I created a new physical standby database, based on
everything seems fine.
Today morning, found the day before the database is initially elementary, then copied manually lack archivelogs and recover the database shall catch up.
unique name of the primary data base: orcl2
unique name of standby db: orcl2_stby
Looks that ensure db cannot receive the primary archivelogs,
standby mode
SQL > SELECT nom_dest, STATUS, DESTINATION
2 FROM V$ ARCHIVE_DEST
3. WHERE THE DESTINATION IS NOT NULL;
DESTINATION STATUS NOM_DEST
------------------------- --------- ------------------------------
LOG_ARCHIVE_DEST_1 BAD PARAM E:\oracle\oradata\orcl2\recovery\ORCL2\ARCHIVELOGLOG_ARCHIVE_DEST_2 VALID ORCL2
STANDBY_ARCHIVE_DEST VALID USE_DB_RECOVERY_FILE_DESTwhy it displays "bad param.
How to fix?
Thank you
CC:
standby mode
SQL > show parameter db_recovery
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string E:\ORACLE\ORADATA\ORCL2\recovery
whole large db_recovery_file_dest_size 150GHey all,.
the problem is resolved,
The problem is caused by the file password. in windows server, the password file is created differently from the Linux server.
Thank you all very much.
-
addition of relief in dataguard broker database fails
When adding of Eve in dataguard broker database, I get the following error
DGMGRL > add database as uat login is uat maintained as physical;
Error: ORA-16698: parameter LOG_ARCHIVE_DEST_n defined for the object to add
Failed.
DGMGRL > output
I deleted the log_archive_dest_2 parameter in the primary database and null value
SQL > sho parameter log_archive_dest_1;
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
Log_archive_dest_1 string LOCATION = USE_DB_RECOVERY_FILE_
DEST = VALID_FOR (ALL_LOGFILES, A).
LL_ROLES) DB_UNIQUE_NAME = prod
SQL > sho parameter log_archive_dest_2;
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
LOG_ARCHIVE_DEST_2 string
log_archive_dest_20 string
Can someone help me please
vmkumar wrote:
When adding of Eve in dataguard broker database, I get the following error
DGMGRL > add database as uat login is uat maintained as physical;
Error: ORA-16698: parameter LOG_ARCHIVE_DEST_n defined for the object to add
Failed.
DGMGRL > output
I deleted the log_archive_dest_2 parameter in the primary database and null value
SQL > sho parameter log_archive_dest_1;
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
Log_archive_dest_1 string LOCATION = USE_DB_RECOVERY_FILE_
DEST = VALID_FOR (ALL_LOGFILES, A).
LL_ROLES) DB_UNIQUE_NAME = prod
SQL > sho parameter log_archive_dest_2;
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
LOG_ARCHIVE_DEST_2 string
log_archive_dest_20 string
Can someone help me please
What you have shown here is the log_archive_dest_2 of the primary database. You must clear the log_archive_dest_2 of the standby database too.
The error is speaking on the parameter log_archive_dest_2 of the database pending. 12 c, then the broker configuration, you must clear the log_archive_dest_2 (destinations archive remote) on the primary and standby databases. DG broker would take care of her.
On autonomy in standby:
SQL > alter system set log_archive_dest_2 = ";
And then try to add the standby database to the broker configuration.
HTH
-Jonathan Rolland
-
Hi Experts,
I am new to Oracle. Ask for your help to fix the performance of a query of insertion problem.
I have an insert query that is go search for records of the partitioned table.
Background: the user indicates that the query was running in 30 minutes to 10 G. The database is upgraded to 12 by one of my colleague. Now the query works continuously for hours, but no result. Check the settings and SGA is 9 GB, Windows - 4 GB. DB block size is 8192, DB Multiblock read file Count is 128. Overall target of PGA is 2457M.
The parameters are given below
VALUE OF TYPE NAME
------------------------------------ ----------- ----------
DBFIPS_140 boolean FALSE
O7_DICTIONARY_ACCESSIBILITY boolean FALSE
whole active_instance_count
aq_tm_processes integer 1
ARCHIVE_LAG_TARGET integer 0
asm_diskgroups chain
asm_diskstring chain
asm_power_limit integer 1
asm_preferred_read_failure_groups string
audit_file_dest string C:\APP\ADM
audit_sys_operations Boolean TRUEAUDIT_TRAIL DB string
awr_snapshot_time_offset integer 0
background_core_dump partial string
background_dump_dest string C:\APP\PRO
\RDBMS\TRA
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 ADAPTIVE channel
cell_offload_decryption Boolean TRUE
cell_offload_parameters string
cell_offload_plan_display string AUTO
cell_offload_processing Boolean TRUE
cell_offloadgroup_name string
whole circuits
whole big client_result_cache_lag 3000
client_result_cache_size big integer 0
clonedb boolean FALSE
cluster_database boolean FALSE
cluster_database_instances integer 1
cluster_interconnects chain
commit_logging string
commit_point_strength integer 1
commit_wait string
string commit_write
common_user_prefix string C#.
compatible string 12.1.0.2.0
connection_brokers string ((TYPE = DED
((TYPE = EM
control_file_record_keep_time integer 7
control_files string G:\ORACLE\TROL01. CTL
FAST_RECOV
NTROL02. CT
control_management_pack_access string diagnostic
core_dump_dest string C:\app\dia
bal12\cdum
cpu_count integer 4
create_bitmap_area_size integer 8388608
create_stored_outlines string
cursor_bind_capture_destination memory of the string + tell
CURSOR_SHARING EXACT stringcursor_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_big_table_cache_percent_target string 0
db_block_buffers integer 0
db_block_checking FALSE string
db_block_checksum string TYPICAL
Whole DB_BLOCK_SIZE 8192db_cache_advice string WE
db_cache_size large integer 0
db_create_file_dest chain
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 chain
db_file_multiblock_read_count integer 128
db_file_name_convert chainDB_FILES integer 200
db_flash_cache_file string
db_flash_cache_size big integer 0
db_flashback_retention_target around 1440
chain of db_index_compression_inheritance NONE
DB_KEEP_CACHE_SIZE big integer 0
chain of db_lost_write_protect NONE
db_name string ORCL
db_performance_profile string
db_recovery_file_dest string G:\Oracle\
y_Area
whole large db_recovery_file_dest_size 12840M
db_recycle_cache_size large integer 0
db_securefile string PREFERRED
channel db_ultra_safe
db_unique_name string ORCL
db_unrecoverable_scn_tracking Boolean TRUE
db_writer_processes integer 1
dbwr_io_slaves integer 0
DDL_LOCK_TIMEOUT integer 0
deferred_segment_creation Boolean TRUE
dg_broker_config_file1 string C:\APP\PRO
\DATABASE\
dg_broker_config_file2 string C:\APP\PRO
\DATABASE\
dg_broker_start boolean FALSE
diagnostic_dest channel directory
disk_asynch_io Boolean TRUE
dispatchers (PROTOCOL = string
12XDB)
distributed_lock_timeout integer 60
dml_locks whole 2076
whole dnfs_batch_size 4096dst_upgrade_insert_conv Boolean TRUE
enable_ddl_logging boolean FALSE
enable_goldengate_replication boolean FALSE
enable_pluggable_database boolean FALSE
event string
exclude_seed_cdb_view Boolean TRUE
fal_client chain
fal_server chain
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 chain
fixed_date chain
gcs_server_processes integer 0
global_context_pool_size string
global_names boolean FALSE
global_txn_processes integer 1
hash_area_size integer 131072
channel heat_map
hi_shared_memory_address integer 0hs_autoregister Boolean TRUE
iFile file
inmemory_clause_default string
inmemory_force string by DEFAULT
inmemory_max_populate_servers integer 0
inmemory_query string ENABLE
inmemory_size big integer 0
inmemory_trickle_repopulate_servers_ integer 1
percent
instance_groups string
instance_name string ORCL
instance_number integer 0
instance_type string RDBMS
instant_restore boolean FALSE
java_jit_enabled Boolean TRUE
java_max_sessionspace_size integer 0
JAVA_POOL_SIZE large integer 0
java_restrict string no
java_soft_sessionspace_limit integer 0
JOB_QUEUE_PROCESSES around 1000
LARGE_POOL_SIZE large 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
listener_networks string
LOCAL_LISTENER (ADDRESS = string
= i184borac
(NET) (PORT =
lock_name_space string
lock_sga boolean FALSE
log_archive_config string
Log_archive_dest chain
Log_archive_dest_1 chain
LOG_ARCHIVE_DEST_10 string
log_archive_dest_11 string
log_archive_dest_12 string
log_archive_dest_13 string
log_archive_dest_14 string
log_archive_dest_15 string
log_archive_dest_16 string
log_archive_dest_17 string
log_archive_dest_18 string
log_archive_dest_19 string
LOG_ARCHIVE_DEST_2 string
log_archive_dest_20 string
log_archive_dest_21 string
log_archive_dest_22 string
log_archive_dest_23 string
log_archive_dest_24 string
log_archive_dest_25 string
log_archive_dest_26 string
log_archive_dest_27 string
log_archive_dest_28 string
log_archive_dest_29 string
log_archive_dest_3 string
log_archive_dest_30 string
log_archive_dest_31 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
allow the chain of log_archive_dest_state_1
allow the chain of log_archive_dest_state_10
allow the chain of log_archive_dest_state_11
allow the chain of log_archive_dest_state_12
allow the chain of log_archive_dest_state_13
allow the chain of log_archive_dest_state_14
allow the chain of log_archive_dest_state_15
allow the chain of log_archive_dest_state_16
allow the chain of log_archive_dest_state_17
allow the chain of log_archive_dest_state_18
allow the chain of log_archive_dest_state_19
allow the chain of LOG_ARCHIVE_DEST_STATE_2allow the chain of log_archive_dest_state_20
allow the chain of log_archive_dest_state_21
allow the chain of log_archive_dest_state_22
allow the chain of log_archive_dest_state_23
allow the chain of log_archive_dest_state_24
allow the chain of log_archive_dest_state_25
allow the chain of log_archive_dest_state_26
allow the chain of log_archive_dest_state_27
allow the chain of log_archive_dest_state_28
allow the chain of log_archive_dest_state_29
allow the chain of log_archive_dest_state_3allow the chain of log_archive_dest_state_30
allow the chain of log_archive_dest_state_31
allow the chain of log_archive_dest_state_4
allow the chain of log_archive_dest_state_5
allow the chain of log_archive_dest_state_6
allow the chain of log_archive_dest_state_7
allow the chain of log_archive_dest_state_8
allow the chain of log_archive_dest_state_9
log_archive_duplex_dest string
log_archive_format string ARC%S_%R.%
log_archive_max_processes integer 4log_archive_min_succeed_dest integer 1
log_archive_start Boolean TRUE
log_archive_trace integer 0
whole very large log_buffer 28784K
log_checkpoint_interval integer 0
log_checkpoint_timeout around 1800
log_checkpoints_to_alert boolean FALSE
log_file_name_convert chain
whole MAX_DISPATCHERS
max_dump_file_size unlimited string
max_enabled_roles integer 150
whole max_shared_servers
max_string_size string STANDARD
memory_max_target big integer 0
memory_target large integer 0
NLS_CALENDAR string GREGORIAN
nls_comp BINARY string
nls_currency channel u
string of NLS_DATE_FORMAT DD-MON-RR
nls_date_language channel ENGLISH
string nls_dual_currency C
nls_iso_currency string UNITED KINnls_language channel ENGLISH
nls_length_semantics string OCTET
string nls_nchar_conv_excp FALSE
nls_numeric_characters chain.,.
nls_sort BINARY string
nls_territory string UNITED KIN
nls_time_format HH24.MI string. SS
nls_time_tz_format HH24.MI string. SS
chain of NLS_TIMESTAMP_FORMAT DD-MON-RR
NLS_TIMESTAMP_TZ_FORMAT string DD-MON-RR
noncdb_compatible boolean FALSE
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_adaptive_features Boolean TRUE
optimizer_adaptive_reporting_only boolean FALSE
OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES boolean FALSE
optimizer_dynamic_sampling integer 2
optimizer_features_enable string 12.1.0.2optimizer_index_caching integer 0
OPTIMIZER_INDEX_COST_ADJ integer 100
optimizer_inmemory_aware Boolean TRUE
the string ALL_ROWS optimizer_mode
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
OPS os_authent_prefix string $
OS_ROLES boolean FALSE
parallel_adaptive_multi_user Boolean TRUE
parallel_automatic_tuning boolean FALSE
parallel_degree_level integer 100
parallel_degree_limit string CPU
parallel_degree_policy chain MANUAL
parallel_execution_message_size integer 16384
parallel_force_local boolean FALSE
parallel_instance_group string
parallel_io_cap_enabled boolean FALSE
PARALLEL_MAX_SERVERS integer 160
parallel_min_percent integer 0
parallel_min_servers integer 16parallel_min_time_threshold string AUTO
parallel_server boolean FALSE
parallel_server_instances integer 1
parallel_servers_target integer 64
parallel_threads_per_cpu integer 2
pdb_file_name_convert string
pdb_lockdown string
pdb_os_credential string
permit_92_wrap_format Boolean TRUE
pga_aggregate_limit great whole 4914M
whole large pga_aggregate_target 2457M-
Plscope_settings string IDENTIFIER
plsql_ccflags string
plsql_code_type chain INTERPRETER
plsql_debug boolean FALSE
plsql_optimize_level integer 2
plsql_v2_compatibility boolean FALSE
plsql_warnings DISABLE channel: AL
PRE_PAGE_SGA Boolean TRUE
whole process 300
processor_group_name string
query_rewrite_enabled string TRUE
applied query_rewrite_integrity chain
rdbms_server_dn chain
read_only_open_delayed boolean FALSE
recovery_parallelism integer 0
Recyclebin string on
redo_transport_user string
remote_dependencies_mode string TIMESTAMP
remote_listener chain
Remote_login_passwordfile string EXCLUSIVE
REMOTE_OS_AUTHENT boolean FALSE
remote_os_roles boolean FALSEreplication_dependency_tracking Boolean TRUE
resource_limit Boolean TRUE
resource_manager_cpu_allocation integer 4
resource_manager_plan chain
result_cache_max_result integer 5
whole big result_cache_max_size K 46208
result_cache_mode chain MANUAL
result_cache_remote_expiration integer 0
resumable_timeout integer 0
rollback_segments chain
SEC_CASE_SENSITIVE_LOGON Boolean TRUEsec_max_failed_login_attempts integer 3
string sec_protocol_error_further_action (DROP, 3)
sec_protocol_error_trace_action string PATH
sec_return_server_release_banner boolean FALSE
disable the serial_reuse chain
service name string ORCL
session_cached_cursors integer 50
session_max_open_files integer 10
entire sessions 472
Whole large SGA_MAX_SIZE M 9024
Whole large SGA_TARGET M 9024
shadow_core_dump string no
shared_memory_address integer 0
SHARED_POOL_RESERVED_SIZE large integer 70464307
shared_pool_size large integer 0
whole shared_server_sessions
SHARED_SERVERS integer 1
skip_unusable_indexes Boolean TRUE
smtp_out_server chain
sort_area_retained_size integer 0
sort_area_size integer 65536
spatial_vector_acceleration boolean FALSE
SPFile string C:\APP\PRO
\DATABASE\
sql92_security boolean FALSE
SQL_Trace boolean FALSE
sqltune_category string by DEFAULT
standby_archive_dest channel % ORACLE_HO
standby_file_management string MANUAL
star_transformation_enabled string TRUE
statistics_level string TYPICAL
STREAMS_POOL_SIZE big integer 0
tape_asynch_io Boolean TRUEtemp_undo_enabled boolean FALSE
entire thread 0
threaded_execution boolean FALSE
timed_os_statistics integer 0
TIMED_STATISTICS Boolean TRUE
trace_enabled Boolean TRUE
tracefile_identifier chain
whole of transactions 519
transactions_per_rollback_segment integer 5
UNDO_MANAGEMENT string AUTO
UNDO_RETENTION integer 900undo_tablespace string UNDOTBS1
unified_audit_sga_queue_size integer 1048576
use_dedicated_broker boolean FALSE
use_indirect_data_buffers boolean FALSE
use_large_pages string TRUE
user_dump_dest string C:\APP\PRO
\RDBMS\TRA
UTL_FILE_DIR chain
workarea_size_policy string AUTO
xml_db_events string enableThanks in advance
Firstly, thank you for posting the 10g implementation plan, which was one of the key things that we were missing.
Second, you realize that you have completely different execution plans, so you can expect different behavior on each system.
Your package of 10g has a total cost of 23 959 while your plan of 12 c has a cost of 95 373 which is almost 4 times more. All things being equal, cost is supposed to relate directly to the time spent, so I expect the 12 c plan to take much more time to run.
From what I can see the 10g plan begins with a scan of full table on DEALERS, and then a full scan on SCARF_VEHICLE_EXCLUSIONS table, and then a full scan on CBX_tlemsani_2000tje table, and then a full scan on CLAIM_FACTS table. The first three of these analyses tables have a very low cost (2 each), while the last has a huge cost of 172K. Yet once again, the first three scans produce very few lines in 10g, less than 1,000 lines each, while the last product table scan 454 K lines.
It also looks that something has gone wrong in the 10g optimizer plan - maybe a bug, which I consider that Jonathan Lewis commented. Despite the full table scan with a cost of 172 K, NESTED LOOPS it is part of the only has a cost of 23 949 or 24 K. If the math is not in terms of 10g. In other words, maybe it's not really optimal plan because 10g optimizer may have got its sums wrong and 12 c might make his right to the money. But luckily this 'imperfect' 10g plan happens to run fairly fast for one reason or another.
The plan of 12 starts with similar table scans but in a different order. The main difference is that instead of a full table on CLAIM_FACTS scan, it did an analysis of index on CLAIM_FACTS_AK9 beach at the price of 95 366. It is the only main component of the final total cost of 95 373.
Suggestions for what to do? It is difficult, because there is clearly an anomaly in the system of 10g to have produced the particular execution plan that he uses. And there is other information that you have not provided - see later.
You can try and force a scan of full table on CLAIM_FACTS by adding a suitable example suspicion "select / * + full (CF) * / cf.vehicle_chass_no...". "However, the tips are very difficult to use and does not, guarantee that you will get the desired end result. So be careful. For the essay on 12 c, it may be worth trying just to see what happens and what produces the execution plan looks like. But I would not use such a simple, unique tip in a production system for a variety of reasons. For testing only it might help to see if you can force the full table on CLAIM_FACTS scan as in 10g, and if the performance that results is the same.
The two plans are parallel ones, which means that the query is broken down into separate, independent steps and several steps that are executed at the same time, i.e. several CPUS will be used, and there will be several readings of the disc at the same time. (It is a mischaracterization of the works of parallel query how). If 10g and 12 c systems do not have the SAME hardware configuration, then you would naturally expect different time elapsed to run the same parallel queries. See the end of this answer for the additional information that you may provide.
But I would be very suspicious of the hardware configuration of the two systems. Maybe 10 g system has 16-core processors or more and 100's of discs in a matrix of big drives and maybe the 12 c system has only 4 cores of the processor and 4 disks. That would explain a lot about why the 12 c takes hours to run when the 10 g takes only 30 minutes.
Remember what I said in my last reply:
"Without any contrary information I guess the filter conditions are very low, the optimizer believes he needs of most of the data in the table and that a table scan or even a limited index scan complete is the"best"way to run this SQL. In other words, your query takes just time because your tables are big and your application has most of the data in these tables. "
When dealing with very large tables and to do a full table parallel analysis on them, the most important factor is the amount of raw hardware, you throw the ball to her. A system with twice the number of CPUS and twice the number of disks will run the same parallel query in half of the time, at least. It could be that the main reason for the 12 c system is much slower than the system of 10g, rather than on the implementation plan itself.
You may also provide us with the following information which would allow a better analysis:
- Row counts in each tables referenced in the query, and if one of them are partitioned.
- Hardware configurations for both systems - the 10g and the 12 a. Number of processors, the model number and speed, physical memory, CPU of discs.
- The discs are very important - 10g and 12 c have similar disk subsystems? You use simple old records, or you have a San, or some sort of disk array? Are the bays of identical drives in both systems? How are they connected? Fast Fibre Channel, or something else? Maybe even network storage?
- What is the size of the SGA in both systems? of values for MEMORY_TARGET and SGA_TARGET.
- The fact of the CLAIM_FACTS_AK9 index exist on the system of 10g. I guess he does, but I would like that it confirmed to be safe.
John Brady
-
How do I know if there's bottleneck in the redo logs?
Hi all
EBS R12.2
11 GR 2
OL 6.5
We have two groups of log of size 1 GB.
and oyour archiving logs generates 13 newspapers every hour.
-rw - r-. 1 oraprod s/n 956896768 Jan 25 14:00 1_3372_898613761.dbf
-rw - r-. 1 oraprod s/n 1004083200 Jan 25 14:03 1_3373_898613761.dbf
-rw - r-. 1 oraprod s/n 928530432 Jan 25 14:10 1_3374_898613761.dbf
-rw - r-. 1 oraprod s/n 928728576 Jan 25 14:12 1_3375_898613761.dbf
-rw - r-. 1 oraprod s/n 967805952 Jan 25 14:20 1_3376_898613761.dbf
-rw - r-. 1 oraprod s/n 916065792 Jan 25 14:22 1_3377_898613761.dbf
-rw - r-. 1 oraprod s/n 951790592 Jan 25 14:30 1_3378_898613761.dbf
-rw - r-. 1 oraprod s/n 978358272 Jan 25 14:32 1_3379_898613761.dbf
-rw - r-. 1 oraprod s/n 974519808 Jan 25 14:40 1_3380_898613761.dbf
-rw - r-. 1 oraprod s/n 960421376 Jan 25 14:42 1_3381_898613761.dbf
-rw - r-. 1 oraprod s/n 917438976 Jan 25 14:49 1_3382_898613761.dbf
-rw - r-. 1 oraprod s/n 920794624 Jan 25 14:51 1_3383_898613761.dbf
-rw - r-. 1 oraprod s/n 920704000 Jan 25 14:59 1_3384_898613761.dbf
I got this alert saves messages:
Mon Jan 25 15:08:37 2016
Filled checkpoint up to RBA [0xd3b.2.10], RCS: 5978324588151
Mon Jan 25 15:10:57 2016
Thread 1 cannot allot of new newspapers, sequence 3388
Private stream flush is not complete
Currently journal # 1, seq # 3387 mem # 0: /home/oraprod/PROD/data/log01a.dbf
Currently journal # 1, seq # 3387 mem # 1: /home/oraprod/PROD/data/log01b.dbf
Beginning log switch checkpoint up to RBA [0xd3c.2.10], RCS: 5978324634623
Thread 1 Advanced for you connect to sequence 3388 (switch LGWR)
Currently Journal # 2 seq # 3388 mem # 0: /home/oraprod/PROD/data/log02a.dbf
Currently Journal # 2 seq # 3388 mem # 1: /home/oraprod/PROD/data/log02b.dbf
Mon Jan 25 15:11:01 2016
LNS: Standby redo log file selected for thread 1 sequence 3388 for destination LOG_ARCHIVE_DEST_2
Mon Jan 25 15:11:04 2016
Archived journal 6791 extra for each sequence 1 3387 ID thread entry 0 x 12809081 dest 1:
Mon Jan 25 15:11:17 2016
Filled checkpoint up to RBA [0xd3c.2.10], RCS: 5978324634623
Mon Jan 25 15:13 2016
Additional checkpoint up to RBA to RBA [0xd3c.1a8e82.0] [0xd3c.18d210.0], current journal line
Mon Jan 25 15:13:04 2016
Thread 1 cannot allot of new newspapers, sequence 3389
Private stream flush is not complete
Currently Journal # 2 seq # 3388 mem # 0: /home/oraprod/PROD/data/log02a.dbf
Currently Journal # 2 seq # 3388 mem # 1: /home/oraprod/PROD/data/log02b.dbf
Beginning log switch checkpoint up to RBA [0xd3d.2.10], RCS: 5978324673444
Thread 1 Advanced for you connect to 3389 (switch LGWR) sequence
Currently journal # 1, seq # 3389 mem # 0: /home/oraprod/PROD/data/log01a.dbf
Currently journal # 1, seq # 3389 mem # 1: /home/oraprod/PROD/data/log01b.dbf
Mon Jan 25 15:13:07 2016
LNS: Standby redo log file selected for thread 1 sequence 3389 for destination LOG_ARCHIVE_DEST_2
Mon Jan 25 15:13:09 2016
Archived journal 6793 extra for each sequence 1 3388 ID thread entry 0 x 12809081 dest 1:
Mon Jan 25 15:13:11 2016
Filled checkpoint up to RBA [0xd3d.2.10], RCS: 5978324673444
Is it a sign of botteneck? Users complained that each 15:00 they encounter performance degradation.
Kind regards
JC
Jenna_C wrote:
We have two groups of size 1 GB log and our archiving logs generates 13 newspapers every hour.
Is it a sign of botteneck? Users complained that each 15:00 they encounter performance degradation.
If your users are complaining about slow at 15:00 then look at what is happening on the system at this point in time. Use the Active Session history, providing that you have the license, at 3 pm to see if there is a problem. Or take snapshots of the AWR manually around 15:00 in an attempt to capture any anomaly. Or capture instant V$ SESSION yourself manually around 15:00 and see so many sessions is pending or not.
I have seen problems like this on shared physical infrastructure systems where the activity on a system can interfere with each other. Attention to this kind of thing, because if it is caused by another system then you will never find the cause of the problem inside the Oracle. Examples include backups are made at a specific time, causing large amounts of sequential disk i/o and slows down access to the drive for everything else. Such a scenario could cause some writing redo log time to increase significantly. Or the backup could be another system completely who shares the same disks in the same drive bay or the SAN and Bay drives or SAN is inundated by applications e/s backup. But as it's another system, that you will not see what is happening on your Oracle database system.
Or a virtualized with environment sharing CPU and memory where another virtual machine running a CPU intensive job and steals the Oracle system CPU capacity. I saw the same thing with memory so - Vmware has a strange way to virtualize memory, which means it can use all of the memory on the physical hardware and run out, and then he had to intervene to release somehow little memory. What ends up slowing things down.
It could be a network problem - is something that the network of the floods at 15:00? Still, backups can be a common cause of this, during the transfer of data over the network to another system. Is there a work extracted regularly data which runs at 15:00 for example extract given OLTP to feed into a data warehouse, which is copied on the network?
It could be many different things, causing the slowdown. I would definitely recommend watching any expected sessions know and see if this gets worse around 15:00, or if it remains the same, in which case the problem is elsewhere. You must also eliminate everything else - the disks, network, etc.
Good luck
John Brady
Maybe you are looking for
-
XP - cannot install KB946648 & KB936929
I get the below error: Setup error. The system cannot find the specified file. 1. already installed sp2,2. full version of vipre antivirus.3. not only installed vipre antivirus4. not all just installed vipre antivirus with the full version. is licens
-
X 220 wake at the opening of the lid
I know this is pretty trivial, but my X 220 suddenly stopped waking up when I open it. Anyone know how to re-enable the which? I have been in the power settings and others and have not been able to find. Thank you
-
My scanner works, but only one page at a time. Is there a way I can scan multiple pages in the same file. Currently, it is the digitalization as a separate page, I like to keep a whole page in some cases.
-
my lap top says off protected mode
I GOT A MESSAGE SAYING THAT THERE ARE THREATS THAT WEIGH ON MY LAPTOP... WHEN I LOOKED AT THE BOTTOM OF THE SCREEN IT SAYS DISABLED PROTECTED MODE? IF THIS SHOULD NOT BE ON... IF SO HOW DO I DO THAT. OR IS IT SOMETHING ELSE?
-
BlackBerry Curve 8520 smartphones does not connect to wifi
I've recently updated the software on my phone and now I can't connect to wifi hotspots at work or at home. the wifi icon remains just Gray, but at the top of the phone, it shows that I am connected to the network. IM at a loss! Help, please! where