Oracle standby/redo log file shipping keeps needing logs re-registering
Hi
We have Log File Shipping enabled and the prod system ships redo logs over to the LFS server. It's kept 24 hours behind. It usually ships the logs (and I believe automatically registers them) without issue.
EXCEPT - it keeps complaining about missing redo log files.
The file is usually there; but just needs registering with:
alter database register or replace logfile '/oracle/S1P/saparch/S1Parch1_636443_654987192.dbf';
(we found if we left out the 'or replace' it takes a very long time or even hangs)
It then plods on and applies the next... can go for another 2 or 3... or 20... but then often gets stuck again, and you need to register the next.
Can spend whole days on this...!!
We did try running a script to register the next 1365 redo logs! It failed on 4, so I ran it again... it worked on those 4, but turned up 3 others it had worked with before! HUH?!? So manually did those 3 ... fine... it carried on rolling forward... but got stuck after 10 minutes again when it hit another it reckoned needed registering (we'd already done it twice!!).
Any ideas?
Ross
Hi
We have Log File Shipping enabled and the prod system ships redo logs over to the LFS server. It's kept 24 hours behind. It usually ships the logs (and I believe automatically registers them) without issue.
EXCEPT - it keeps complaining about missing redo log files.
The file is usually there; but just needs registering with:
alter database register or replace logfile '/oracle/S1P/saparch/S1Parch1_636443_654987192.dbf';
(we found if we left out the 'or replace' it takes a very long time or even hangs)
It then plods on and applies the next... can go for another 2 or 3... or 20... but then often gets stuck again, and you need to register the next.
Can spend whole days on this...!!
We did try running a script to register the next 1365 redo logs! It failed on 4, so I ran it again... it worked on those 4, but turned up 3 others it had worked with before! HUH?!? So manually did those 3 ... fine... it carried on rolling forward... but got stuck after 10 minutes again when it hit another it reckoned needed registering (we'd already done it twice!!).
Any ideas?
Ross
Similar Messages
-
Log file switch (archiving needed)
Hi,
My database is on windows 2003, 10.2.0.4, recently I have been getting the following wait events on a regular basis, LOG FILE SWITCH (ARCHIVING NEEDED)...My redo files are 50MB with 5 groups...I have changed the log_archive_max_process from 2 to 3, but still the problem persists...can anyone help me regarding the same?As to what other changes can be done?and this happens only during the time of BOD and EOD.
Thanks,
AJHi Jonathan,
Thanks for the reply, I am not worried abt the archiving thing for the time being,as my database was working absolutely fine before the new query that was added in the Begin of Day process. So I am trying to tweak the query.
Folllowing is the procedure which gets called during the Begin of Day:
CREATE OR REPLACE procedure Lms_Pr_Bod_Update_Tmp (p_import_type in number)
as
v_update_script varchar2(2000);
v_upper_start_tag varchar2(10); -- san_22-apr-2009
v_upper_end_tag varchar2(10); -- san_22-apr-2009
begin
declare
cursor cur_update_tmp is
select -- this query is for all of lov type of data
a.destination_column_name, a.column_to_update , b.mapped_lov_syscode lov_syscode,
c.destination_table_name,'LOV_DATA_SYSCODE' select_attribute,'LMS_LOV_DATA_MAP' select_table,
'SOURCE_UNIQUE_ID' where_condition,'LOV_SYSCODE' lov_condition,'LOV' att_type
from lms_import_column_info a
inner join lms_attribute_master b
on a.attribute_syscode = b.attribute_syscode
and (a.column_to_update is not null or trim(a.column_to_update) = '')
inner join lms_import_type_master c
on a.import_type_syscode = c.import_type_syscode
where a.import_type_syscode = p_import_type
and b.mapped_lov_syscode is not null
union all
select -- this query is for all of dummy attribute
a.destination_column_name, a.column_to_update , 1 lov_syscode,
d.destination_table_name,c.attribute_name_internal select_attribute,
case
when b.applicable_for = 'INS' then 'LMS_ENTITY_INSTRUMENT'
when b.applicable_for = 'ACC' then 'LMS_ENTITY_ACCOUNT'
end case,
b.attribute_name_internal where_condition,'1' lov_condition,'DUMMY' att_type
from lms_import_column_info a
inner join lms_attribute_master b
on a.attribute_syscode = b.attribute_syscode
and (a.column_to_update is not null and trim(a.column_to_update) <> ' ')
and b.attribute_type = 'DUM' and dummy_column_type = 'FILT'
inner join lms_attribute_master c
on b.dummy_mapped_attribute_pk = c.attribute_syscode
inner join lms_import_type_master d
on a.import_type_syscode = d.import_type_syscode
where a.import_type_syscode = p_import_type;
begin
v_upper_start_tag := 'UPPER('; -- san_22-apr-2009
v_upper_end_tag := ')'; -- san_22-apr-2009
for cr_update_tmp in cur_update_tmp loop
if p_import_type = 4 and cr_update_tmp.column_to_update IN ('INSTRUMENT_SYSCODE','ACCOUNT_SYSCODE')
and Upper(cr_update_tmp.destination_table_name) = 'LMS_ENTITY_TRANSACTION_TMP' then
v_upper_start_tag := ''; -- san_22-apr-2009
v_upper_end_tag := ''; -- san_22-apr-2009
end if;
v_update_script := 'UPDATE ' || cr_update_tmp.destination_table_name || ' A SET ' || ' A.' || cr_update_tmp.column_to_update || ' =
(select ' || CR_UPDATE_TMP.SELECT_ATTRIBUTE || ' from ' || CR_UPDATE_TMP.SELECT_TABLE || '
where ' || V_UPPER_START_TAG || CR_UPDATE_TMP.WHERE_CONDITION || V_UPPER_END_TAG || '=' || V_UPPER_START_TAG || CR_UPDATE_TMP.DESTINATION_COLUMN_NAME || V_UPPER_END_TAG ||
' AND ' || cr_update_tmp.lov_condition || ' = ' || cr_update_tmp.lov_syscode || ')';
v_upper_start_tag := 'UPPER('; v_upper_end_tag := ')';
execute immediate (v_update_script);
end loop;
end;
end;
Following is the flow of the query:
1. A temporary table is created where in the updates can be made.
2. Rows are inserted into ths table from the source table
3. Updates are performed on this table
4. Updates are then copied to the source table
5. This procedure is alled twice, so before getting called for the second time, table is truncated.
Thanks,
AJ -
Can't create log file with java.util.logging
Hi,
I have created a class to create a log file with java.util.logging
This class works correctly as standalone (without jdev/weblogic)
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.*;
public class LogDemo
private static final Logger logger = Logger.getLogger( "Logging" );
public static void main( String[] args ) throws IOException
Date date = new Date();
DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
String dateStr = dateFormat.format(date);
String logFileName = dateStr + "SEC" + ".log";
Handler fh;
try
fh = new FileHandler(logFileName);
//fh.setFormatter(new XMLFormatter());
fh.setFormatter(new SimpleFormatter());
logger.addHandler(fh);
logger.setLevel(Level.ALL);
logger.log(Level.INFO, "Initialization log");
// force a bug
((Object)null).toString();
catch (IOException e)
logger.log( Level.WARNING, e.getMessage(), e );
catch (Exception e)
logger.log( Level.WARNING, "Exception", e);
}But when I use this class...
import java.io.File;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.FileHandler;
import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.XMLFormatter;
public class TraceUtils
public static Logger logger = Logger.getLogger("log");
public static void initLogger(String ApplicationName) {
Date date = new Date();
DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
String dateStr = dateFormat.format(date);
String logFileName = dateStr + ApplicationName + ".log";
Handler fh;
try
fh = new FileHandler(logFileName);
fh.setFormatter(new XMLFormatter());
logger.addHandler(fh);
logger.setLevel(Level.ALL);
logger.log(Level.INFO, "Initialization log");
catch (IOException e)
System.out.println(e.getMessage());
}and I call it in a backingBean, I have the message in console but the log file is not created.
TraceUtils.initLogger("SEC");why?
Thanks for your help.I have uncommented this line in logging.properties and it works.
# To also add the FileHandler, use the following line instead.
handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandlerBut I have another problem:
jdev ignore the parameters of the FileHandler method .
And it creates a general log file with anothers log files created each time I call the method logp.
So I play with these parameters
fh = new FileHandler(logFileName,true);
fh = new FileHandler(logFileName,0,1,true);
fh = new FileHandler(logFileName,10000000,1,true);without succes.
I want only one log file, how to do that? -
How to delete TMS log file and and request log no.
Dear experts,
How to delete TMS log file and and request log no...My TMS log is not deleted since 2007. Please advice
ThnksYou can delete them from OS level. You can delete safely the following files:
/usr/sap/trans/log/SAP*.<SID>
Is this you were looking for?
Regards,
Faisal -
Larger redo log file members or more log groups
Oracle 11gR1 RHEL5 64 bit
Hi,
I was wondering what is better from a perfomance tuning perspective. I have log swiches occuring every 2 minutes in our production database. I know definitely that our log file members are too small (100MB). The redo log sizing tool in OEM told me to make it 40G according to the fast_start_mttr_target setting which is set to 600. Now, my question is what is better to do?
1. Increase the size of my current redo log members? Right now there are 4 groups with 2 members in each.
OR
2. Should I create additonal redo log groups (4 more) and then re-rerun the sizing tool or query the v$instance_recovery view?
Which is better? tradeoffs?
Thanks all.If you want to reduce the number (frequency) of Log Switches, you should increase the size of the Online Redo Logs -- ie create new Log File Groups of a larger size and drop the older ones.
If the issue is "checkpoint not complete" waits, then either
a. Increasing the size of the Log Files
or
b. Increasing the number of Log Files
is doable
Note that if you increase the number but not the size, you still have a checkpoint every N Mbytes -- ie, possibly too frequently !
On the other hand if you increase your size to be very large, at every switch, the Archiver is going to kick in with a large Read + large Write operation -- reading that Redo Log of N GBytes and writing it out to the archive log target location, imposing that additional I/O spike on your system. (Writing to filesystem will go through the FileSystem Buffers so if your database SGA isn't very large and your database performance relies on hitting the FileSystem Buffer Cache to avoid Disk Reads, that performance will be impacted as a large portion of the FileSystem Buffer Cache will be taken over by the Archiver for some time).
Hemant K Chitale
http://hemantoracledba.blogspot.com -
Any ways to roll over to a different log file when the current log file big
How to roll over a log file when it reaches maximum to a different log file?
any ways of doing this??????More info in the new owners....
http://www.oracle.com/technology/pub/articles/hunter_logging.html
And more!!!!! here to build a configuration file with filehandler properly setted to an specified size
http://www.linuxtopia.org/online_books/programming_books/thinking_in_java/TIJ317_021.htm -
How to Specify the Log File address as RootDir/Logs/Error.log in Log4j
I have a web application,
How to configure the log4j Rolling file Appender in that.
I want to logs to be redirected to the RootDir/logs/Error.log.
Currently, I m using following configuration:
# This file must live on the classpath of the jvm
# Set root logger level to DEBUG and log to both stdout and rollingFile appenders
# (see below for their definitions)
# The set of possible levels are: DEBUG, INFO, WARN, ERROR and FATAL
log4j.rootLogger=INFO, stdout, R
####### Console appender ######
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller's file name and line number.
# The pattern: Date Priority (Filename:Line Number) - Message\n
log4j.appender.stdout.layout.ConversionPattern=%d %-5p (%F:%L) - %m%n
#### Second appender writes to a file
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=Error.log
# Control the maximum log file size
log4j.appender.R.MaxFileSize=100KB
# Archive log files (one backup file here)
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d %-5p (%F:%L) - %m%n
Thanks for your replies in advance.Please follow the following steps, will work.
To enable log4j logging to a file on lunar pages do the following:
1) Create a servlet class that will initialize log4j. Here is
the code:
package logging;
import org.apache.log4j.PropertyConfigurator;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class Log4jInit extends HttpServlet {
public
void init() {
String prefix = getServletContext().getRealPath("/");
String file = getInitParameter("log4j-init-file");
// if the log4j-init-file is not set, then no point in trying
if(file != null) {
PropertyConfigurator.configure(prefix+file);
public
void doGet(HttpServletRequest req, HttpServletResponse res) {
2) In your web.xml file add the following entry:
<servlet>
<servlet-name>log4j-init</servlet-name>
<servlet-class>logging.Log4jInit</servlet-class>
<init-param>
<param-name>log4j-init-file</param-name>
<param-value>WEB-INF/classes/log4j.lcf</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
3) Create a log4j.lcf file located in your WEB-INF/classes directory
as with the following entries:
log4j.rootLogger=debug, R
# yourdirectory below is where your site lives.
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=/home/yourdirectory/public_html/logs/out.log
log4j.appender.R.MaxFileSize=500KB
# Keep one backup file
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d %-5p [%c] %m%n
4) Add logging to your class. Here is an example:
import org.apache.log4j.Logger;
public class Example {
static Logger logger = Logger.getLogger(Example.class);
public void doSomething() {
logger.debug("testing logging");
5) make sure you have the log4j-1.2.8.jar file located in your WEB-INF/lib directory.
That should do it! -
Hello experts,
The SiteLog_<appl_name>.log file in the $ORACLE_HOME/j2ee/log directory stopped to be created 2 days ago.
No errors.
Which reason can be for that? How to enable creating this file?
Regards,
RamHi,
Are there any error when login OWA or ECP?
As Ed mentioned, please post specific information about your question for further troubleshooting.
Besides, please check to see if there is a SharedWebConfig.Config file in the following directories:
<install drive>\Program Files\Microsoft\Exchange Server\V15\ClientAccess
<install drive>\Program Files\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy
Also, here’s an thread about miss this file in relevant location. For your reference:
https://social.technet.microsoft.com/Forums/office/en-US/6699ad92-701d-4966-b202-90c9be6bf735/exchange-2013-cu6-event-id-1003?forum=exchangesvrgeneral
Thanks
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
Allen Wang
TechNet Community Support -
Probleme avec le log file path de Data Logging Control de Veristand
Bonjour à tous,
Mon problème est que j'utilise un ordinateur comme passerelle sur le réseau. Cette dernière est connecté au PXI pour acquisitionner en Real Time. J'ai un autre ordinateur connecté à la passerelle pour lire les donnés du PXI. Je n'arrive pas en enregistrer sur mon disque dur local en utilisant le Data logging Control de Veristand sur le deuxième ordinateur. Cependant, il peut m'enregistrer sur le disque dur se trouvant sur le réseau. De plus, je n'ai pas de problème à enregistrer si l'ordinateur est une passerelle.
Cordialement,
Kamal BouamranApologies for Google translate...
Am I correct in assuming that you have a Logging Control connected to a remote gateway running on another computer and you want to access the log file on your local computer?
Excuses pour Google Translate ...
Ai-je raison de supposer que vous avez un Log Control relié à une Gateway distante exécutée sur un autre ordinateur et que vous voulez accéder au fichier journal sur votre ordinateur local ? -
Every time i try to log in i keep getting logged out and so on n a loop ?
Please help after I had a software update I can't log back in unless I use the safe mode . Every time I log in i get the blue screen and then back to the log in screen . Any advise . I do not want to do another install and lose all my stuff .
While logged in with safe mode try repairing permissions and see if that helps.
-
Log Files are not shipping to standby.
Hi,
I am getting the below error. My log files are not getting shipped from primary to standby. Below is the error msg from alert log file. Help needed.
Thu Jan 10 17:27:17 2013
Error 1031 received logging on to the standby
Errors in file d:\app\sesa241915\diag\rdbms\orcl\orcl\trace\orcl_arc2_2944.trc:
ORA-01031: insufficient privileges
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
Thanks in advance.Please find the content of trace file.
*** 2013-01-11 10:16:41.389
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:16:41.404 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:16:41.404 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:16:41.420 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:16:41.420 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:17:41.482
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:17:41.795 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:17:41.795 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:17:41.795 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:17:41.795 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:18:41.857
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:18:42.154 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:18:42.154 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:18:42.154 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:18:42.154 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:19:42.185
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:19:42.467 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:19:42.467 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:19:42.467 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:19:42.467 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:20:42.545
Redo shipping client performing standby login
*** 2013-01-11 10:20:42.639
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:20:42.810 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:20:42.810 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:20:42.810 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:20:42.810 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:21:42.889
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:21:43.217 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:21:43.217 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:21:43.217 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:21:43.217 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:22:43.295
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:22:43.639 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:22:43.639 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:22:43.639 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:22:43.639 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:23:43.701
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:23:44.045 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:23:44.045 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:23:44.045 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:23:44.045 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:24:44.123
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:24:44.451 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:24:44.451 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:24:44.451 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:24:44.451 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:25:44.514
Redo shipping client performing standby login
*** 2013-01-11 10:25:44.639
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:25:44.951 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:25:44.951 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:25:44.951 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:25:44.951 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:26:45.014
Redo shipping client performing standby login
*** 2013-01-11 10:26:45.170
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:26:45.373 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:26:45.373 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:26:45.389 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:26:45.389 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:27:45.435
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
*** 2013-01-11 10:27:45.779
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:27:45.951 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:27:45.951 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:27:45.967 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:27:45.967 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:28:46.029
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
*** 2013-01-11 10:28:46.326
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:28:46.435 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:28:46.435 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:28:46.435 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:28:46.435 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:29:46.482
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:29:46.889 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:29:46.889 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:29:46.904
*** 2013-01-11 10:29:46.904 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:29:46.904 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
Redo shipping client performing standby login
*** 2013-01-11 10:30:47.140
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:30:47.297 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:30:47.297 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:30:47.312 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:30:47.312 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:31:47.378
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:31:47.691 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:31:47.691 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:31:47.691 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:31:47.691 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:32:47.772
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:32:48.069 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:32:48.069 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:32:48.069 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:32:48.069 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
*** 2013-01-11 10:33:48.135
Redo shipping client performing standby login
*** 2013-01-11 10:34:09.261
OCIServerAttach failed -1
.. Detailed OCI error val is 12170 and errmsg is 'ORA-12170: TNS:Connect timeout occurred
*** 2013-01-11 10:34:45.873
OCIServerAttach failed -1
.. Detailed OCI error val is 12170 and errmsg is 'ORA-12170: TNS:Connect timeout occurred
*** 2013-01-11 10:35:06.984
OCIServerAttach failed -1
.. Detailed OCI error val is 12170 and errmsg is 'ORA-12170: TNS:Connect timeout occurred
*** 2013-01-11 10:35:06.984 4132 krsh.c
Error 12170 received logging on to the standby
*** 2013-01-11 10:35:06.984 869 krsu.c
Error 12170 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 12170 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-12170: TNS:Connect timeout occurred
*** 2013-01-11 10:35:06.999 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 12170.
*** 2013-01-11 10:35:06.999 2747 krsi.c
krsi_dst_fail: dest:2 err:12170 force:0 blast:1
*** 2013-01-11 10:36:07.063
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
OCISessionBegin failed -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
*** 2013-01-11 10:36:07.267 4132 krsh.c
Error 1031 received logging on to the standby
*** 2013-01-11 10:36:07.267 869 krsu.c
Error 1031 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
Error 1031 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'orcl'
ORA-01031: insufficient privileges
*** 2013-01-11 10:36:07.267 4132 krsh.c
PING[ARC2]: Heartbeat failed to connect to standby 'orcl'. Error is 1031.
*** 2013-01-11 10:36:07.267 2747 krsi.c
krsi_dst_fail: dest:2 err:1031 force:0 blast:1
2. Please find the query results.
From Primary:
SQL> set lines 200
SQL> set numwidth 15
SQL> column ID format 99
SQL> column "SRLs" format 99
SQL> column active format 99
SQL> col type format a4
SQL> select ds.dest_id id
2 , ad.status
3 , ds.database_mode db_mode
4 , ad.archiver type
5 , ds.recovery_mode
6 , ds.protection_mode
7 , ds.standby_logfile_count "SRLs"
8 , ds.standby_logfile_active active
9 , ds.archived_seq#
10 from v$archive_dest_status ds
11 , v$archive_dest ad
12 where ds.dest_id = ad.dest_id
13 and ad.status != 'INACTIVE'
14 order by
15 ds.dest_id
16 /
ID STATUS DB_MODE TYPE RECOVERY_MODE PROTECTION_MODE SRLs ACTIVE ARCHIVED_SEQ#
1 VALID OPEN ARCH IDLE MAXIMUM PERFORMANCE 0 0 72
2 ERROR UNKNOWN LGWR IDLE MAXIMUM PERFORMANCE 0 0 0
From Standby:
SQL> set lines 200
SQL> set numwidth 15
SQL> column ID format 99
SQL> column "SRLs" format 99
SQL> column active format 99
SQL> col type format a4
SQL> select ds.dest_id id
2 , ad.status
3 , ds.database_mode db_mode
4 , ad.archiver type
5 , ds.recovery_mode
6 , ds.protection_mode
7 , ds.standby_logfile_count "SRLs"
8 , ds.standby_logfile_active active
9 , ds.archived_seq#
10 from v$archive_dest_status ds
11 , v$archive_dest ad
12 where ds.dest_id = ad.dest_id
13 and ad.status != 'INACTIVE'
14 order by
15 ds.dest_id
16 /
ID STATUS DB_MODE TYPE RECOVERY_MODE PROTECTION_MODE SRLs ACTIVE ARCHIVED_SEQ#
1 VALID OPEN ARCH IDLE MAXIMUM PERFORMANCE 0 0 72
2 ERROR UNKNOWN LGWR IDLE MAXIMUM PERFORMANCE 0 0 0
Regards
Srinivasan R -
DB version: 11.2
OS : AIX 6.1
We have a 2 node RAC. We have one Disk group for all datafiles, tempfiles, redo logs,..etc.
Currenly in our primary DB, Redo logs look like
SQL> SELECT a.group#, b.thread#, a.member, b.bytes
FROM v$logfile a, v$log b WHERE a.group# = b.group#
order by a.group# , b.thread# 2 3 ;
GROUP# THREAD# MEMBER BYTES
1 1 +ORCL_DG/orcl/orcl_log01.dbf 104857600
2 1 +ORCL_DG/orcl/orcl_log02.dbf 104857600
3 1 +ORCL_DG/orcl/orcl_log03.dbf 104857600
4 2 +ORCL_DG/orcl/orcl_log04.dbf 104857600
5 2 +ORCL_DG/orcl/orcl_log05.dbf 104857600
6 2 +ORCL_DG/orcl/orcl_log06.dbf 104857600
6 rows selected.
1 member per group
3 group per instanceWe need to create a physical standby DB for the above DB with Real Time apply. For standby Redo logs, I need one extra log file for each Instance.
So, I am going to add
group# 7 for thread 1
and
group# 8 for thread 2
Finally , SRLs will look like
GROUP# THREAD# MEMBER BYTES
1 1 +ORCL_DG/orcl/orcl_log01.dbf 104857600
2 1 +ORCL_DG/orcl/orcl_log02.dbf 104857600
3 1 +ORCL_DG/orcl/orcl_log03.dbf 104857600
7 1 +ORCL_DG/orcl/orcl_log07.dbf 104857600 -------> Additional
4 2 +ORCL_DG/orcl/orcl_log04.dbf 104857600
5 2 +ORCL_DG/orcl/orcl_log05.dbf 104857600
6 2 +ORCL_DG/orcl/orcl_log06.dbf 104857600
8 2 +ORCL_DG/orcl/orcl_log08.dbf 104857600 -------> AdditionalAnything wrong with my proposed SRL creation ?JOE_humble wrote:
DB version: 11.2
OS : AIX 6.1
We have a 2 node RAC. We have one Disk group for all datafiles, tempfiles, redo logs,..etc.
Currenly in our primary DB, Redo logs look like
SQL> SELECT a.group#, b.thread#, a.member, b.bytes
FROM v$logfile a, v$log b WHERE a.group# = b.group#
order by a.group# , b.thread# 2 3 ;
GROUP# THREAD# MEMBER BYTES
1 1 +ORCL_DG/orcl/orcl_log01.dbf 104857600
2 1 +ORCL_DG/orcl/orcl_log02.dbf 104857600
3 1 +ORCL_DG/orcl/orcl_log03.dbf 104857600
4 2 +ORCL_DG/orcl/orcl_log04.dbf 104857600
5 2 +ORCL_DG/orcl/orcl_log05.dbf 104857600
6 2 +ORCL_DG/orcl/orcl_log06.dbf 104857600
6 rows selected.
1 member per group
3 group per instanceWe need to create a physical standby DB for the above DB with Real Time apply. For standby Redo logs, I need one extra log file for each Instance.
So, I am going to add
group# 7 for thread 1
and
group# 8 for thread 2
Finally , SRLs will look like
GROUP# THREAD# MEMBER BYTES
1 1 +ORCL_DG/orcl/orcl_log01.dbf 104857600
2 1 +ORCL_DG/orcl/orcl_log02.dbf 104857600
3 1 +ORCL_DG/orcl/orcl_log03.dbf 104857600
7 1 +ORCL_DG/orcl/orcl_log07.dbf 104857600 -------> Additional
4 2 +ORCL_DG/orcl/orcl_log04.dbf 104857600
5 2 +ORCL_DG/orcl/orcl_log05.dbf 104857600
6 2 +ORCL_DG/orcl/orcl_log06.dbf 104857600
8 2 +ORCL_DG/orcl/orcl_log08.dbf 104857600 -------> AdditionalAnything wrong with my proposed SRL creation ?You have to create equal numbers & equal or greater size of standby redo log files than Online redo log files.
Refer http://www.pythian.com/news/581/oracle-standby-redo-logs/ to configure standby redo log files. -
Redo log files are not applied in DR of primary
Hi All,
I have a DR database of primary on QA Serevr. The Redo log files are not properly applied in the DR database.
The Oracle version is 11.2.0.1 Some of the files get shipped and applied to DR database automatically but not all.
SQL> select status, error from v$archive_dest where dest_id=2; gives following massage
ERROR ORA-16086: Redo data cannot be written to the standby redo log
Please suggest.
Regards,
ShashiHi,
Sorry for delay in response. Here I am attaching the error captured in standby database.
Please advise
alert_abc.log
RFS[1780]: Identified database type as 'physical standby': Client is LGWR SYNC pid 21855
Primary database is in MAXIMUM AVAILABILITY mode
Standby controlfile consistent with primary
Standby controlfile consistent with primary
RFS[1780]: No standby redo logfiles of file size 94371840 AND block size 512 exist
Clearing online log 16 of thread 0 sequence number 0
Errors in file /oracle/diag/rdbms/abc_location11/abc/trace/abc_rfs_27994.trc:
ORA-00367: checksum error in log file header
ORA-00315: log 16 of thread 0, wrong thread # 1 in header
ORA-00312: online log 16 thread 0: '/oracle/abc/origlogB/log_g116m1.dbf'
Mon Nov 14 00:49:16 2011
Clearing online log 9 of thread 0 sequence number 0
Errors in file /oracle/diag/rdbms/abc_location11/abc/trace/abc_arc0_15653.trc:
/oracle/diag/rdbms/abc_location11/abc/trace/abc_rfs_27994.trc
2011-11-14 00:49:19.385
DDE rules only execution for: ORA 312
START Event Driven Actions Dump -
END Event Driven Actions Dump -
START DDE Actions Dump -
Executing SYNC actions
START DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async) -
DDE Action 'DB_STRUCTURE_INTEGRITY_CHECK' was flood controlled
END DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (FLOOD CONTROLLED, 1 csec) -
Executing ASYNC actions
END DDE Actions Dump (total 0 csec) -
ORA-00367: checksum error in log file header
ORA-00315: log 16 of thread 0, wrong thread # 1 in header
ORA-00312: online log 16 thread 0: '/oracle/abc/origlogB/log_g116m1.dbf'
DDE rules only execution for: ORA 312
START Event Driven Actions Dump -
END Event Driven Actions Dump -
START DDE Actions Dump -
Executing SYNC actions
START DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async) -
DDE Action 'DB_STRUCTURE_INTEGRITY_CHECK' was flood controlled
END DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (FLOOD CONTROLLED, -641 csec) -
Executing ASYNC actions
END DDE Actions Dump (total 0 csec) -
ORA-19527: physical standby redo log must be renamed
ORA-00312: online log 16 thread 0: '/oracle/abc/origlogB/log_g116m1.dbf'
Error 19527 clearing SRL 16
/oracle/diag/rdbms/abc_location11/abc/trace/abc_arc0_15653.trc
ORA-19527: physical standby redo log must be renamed
ORA-00312: online log 9 thread 0: '/oracle/abc/origlogA/log_g19m1.dbf'
Error 19527 clearing SRL 9
DDE rules only execution for: ORA 312
START Event Driven Actions Dump -
END Event Driven Actions Dump -
START DDE Actions Dump -
Executing SYNC actions -
Change in Oracle Parameters and Log file size
Hello All,
We have scheduled DB Check job and the log file showed few errors and warnings in the oracle parameter that needs to be corrected. We have also gone through the SAP Note #830576 Oracle Parameter Configuration to change these parameters accordingly. However we need few clarifications on the same.
1.Can we change these parameters directly in init<SID>.ora file or only in SP file. If yes can we edit the same and change it or do we need to change it using BR tools.
2.We have tried to change few parameters using DB26 tcode. But it prompts for maintaining the connection variables in DBCO tcode. We try to make change only in default database but it prompts for connection variables.
Also we get check point error. As per note 309526 can we create the new log file with 100MB size and drop the existing one. Or are there any other considerations that we need to follow for the size of log file and creating new log file. Kindly advise on this. Our Environment is as follows.
OS: Windows 2003 Server
DB: Oracle 10g
regards,
MadhuHi,
Madhu, We can change oracle parameters at both the levels that is init<SID> as well as SPFILE level.
1. If you do the changes at init<SID> level then you have to generate the SPFILE again and then database has to be restarted for the parameters to take effect.
If you make the changes in SPFILE then the parameters will take effect depending on the parameter type whether it is dynamic or static. You also need to generate the PFILE i.e init<SID>.ora
2. If possible do not change the oracle parameters using the tcode. I would say it would be better if you do it via the database and it would be much easier.
3. Well its always good to have a larger redo log size. But only one thing to keep in mind is that once you change the size of the redolog the size of the archive log also changes although the number of files will decrease.
Apart from that there wont be any issues.
Regards,
Suhas -
Data Guard : Standby Redo Log CONFUSION
Trying to set up test Standby db on 10.2.0
I am well confused about below step 3.1.3, how is the normal redo linked with standby redo, should standby not be members of orginal redo groups?
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm#i1225703
Original redo logs:
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIME
1 1 28 52428800 1 YES INACTIVE 375136 22-NOV-07
2 1 29 52428800 1 YES INACTIVE 375138 22-NOV-07
3 1 30 52428800 1 NO CURRENT 375143 22-NOV-07I added below from notes:
ALTER DATABASE ADD STANDBY LOGFILE GROUP 10
('/u01/oracle/oradata/db01/redo01_stb.log') SIZE 50M;
ALTER DATABASE ADD STANDBY LOGFILE GROUP 11
('/u02/oracle/oradata/db01/redo02_stb.log') SIZE 50M;
ALTER DATABASE ADD STANDBY LOGFILE GROUP 12
('/u03/oracle/oradata/db01/redo03_stb.log') SIZE 50M;After few alter system switch logfile; I still have:
GROUP# THREAD# SEQUENCE# ARC STATUS
10 0 0 YES UNASSIGNED
11 0 0 YES UNASSIGNED
12 0 0 YES UNASSIGNEDAll are UNASSIGNED, should one standby group not be ACTIVE like the above link shows.
Many think for any helpFirst things first:
From the Docs.:
"Minimally, the configuration should have one more standby redo log file group than the number of online redo log file groups on the primary database. However, the recommended number of standby redo log file groups is dependent on the number of threads on the primary database. Use the following equation to determine an appropriate number of standby redo log file groups:
(maximum number of logfiles for each thread + 1) * maximum number of threads
Using this equation reduces the likelihood that the primary instance's log writer (LGWR) process will be blocked because a standby redo log file cannot be allocated on the standby database. For example, if the primary database has 2 log files for each thread and 2 threads, then 6 standby redo log file groups are needed on the standby database."
You are 1 short!
Maybe you are looking for
-
La migración de la BBDD de una aplicación desde un encoding ISO-8859-1 a otra con enconding UTF-8 puede presentar problemas durante el proceso de import debido al tratamiento que el encoding UTF-8 realiza de los campos CHAR, VARCHAR y VARCHAR2. El or
-
Great idea for a new feature in genius
Hi All, Personally the main type of music I like is all/any music in the iTunes store top 100. A really cool feature would be if genius makes a playlist for you, and keeps it updated with a certain playlist in the iTunes store. (For example the iTune
-
I need help with my External DVD-RW and my iMac
I hope there is someone out there that can help me out. I was using my PC for burning DVDs and it just died. I've been using my Pioneer DVD burner in there and now I'm trying to use it on my Intel iMac. When I hooked it up using an external firewire
-
4:3 in a 16:9 project?
Just finished laying down 60min show for TV. Problem is I have shot everything 16:9 (true) and the last of the footage to come in (important content) has been shot 4:3. Any way to bring this stuff in without increasing the size and letterboxing which
-
I need to change the Country of my account and it does not allow me to do it. It says it is only valid for Australia and I no longer live there. How can I update it? I need to upload a new Credit Card because the Australian is no longer valid.