Rename alert log
Hi there, I have an interesting and frustrating problem. I need to rename my alert log as it has got to a very large size but windows has decided that is not allowed. I have had to shutdown all processes and reboot the server for it to allow me to rename the file.
The same thing has happened again this morning when I have tried to rename it.
Is there some way of releasing these hooks???
OK this is for the benefit of my friend in Spain :0P
I have Windows 2003 server with 10.2 Application server installed. The problem I have is I cannot do anything with the alert.log. I cannot delete,move or rename the file as windows says it in use by another process.
The only way I have been able to do anything is to shutdown ALL oracle processes and setting them to manual. Then rebooting the server. This has allowed me to remove the 4.5gb file that was causing space issues.
Now the problem has arisen again the following day. I would dearly love to be able to keep a weekly alert log but this cannot happen until the problem is resolved.
Similar Messages
-
Hello,
I am very new to shell scripting. Our DB is 10g on AIX. And i wanted to setup something that will monitor my alertlog and send me e-mail out. And i found this online. But have very little knowledge on cronjob. I can set one up. But this script dont tell what goes here. Here is the script that i found online. So if anyone could give me what goes where i would be thankfull. it does says put the check_alert.awk someplace. But is that where the cron comes in place. i mean do i schedule check_alert.awk in my cronjob ??? Just wanted to know what parts goes where and how to set this up the right way so i get e-mail alert for my alert log. a step - step process would be good. Thanks
UNIX shell script to monitor and email errors found in the alert log. Is ran as the oracle OS owner. Make sure you change the "emailaddresshere" entries to the email you want and put the check_alert.awk someplace. I have chosen $HOME for this example, in real life I put it on as mounted directory on the NAS.
if test $# -lt 1
then
echo You must pass a SID
exit
fi
# ensure environment variables set
#set your environment here
export ORACLE_SID=$1
export ORACLE_HOME=/home/oracle/orahome
export MACHINE=`hostname`
export PATH=$ORACLE_HOME/bin:$PATH
# check if the database is running, if not exit
ckdb ${ORACLE_SID} -s
if [ "$?" -ne 0 ]
then
echo " $ORACLE_SID is not running!!!"
echo "${ORACLE_SID is not running!" | mailx -m -s "Oracle sid ${ORACLE_SID} is not running!" "
|emailaddresshere|"
exit 1
fi;
#Search the alert log, and email all of the errors
#move the alert_log to a backup copy
#cat the existing alert_log onto the backup copy
#oracle 8 or higher DB's only.
sqlplus '/ as sysdba' << EOF > /tmp/${ORACLE_SID}_monitor_temp.txt
column xxxx format a10
column value format a80
set lines 132
SELECT 'xxxx' ,value FROM v\$parameter WHERE name = 'background_dump_dest'
exit
EOF
cat /tmp/${ORACLE_SID}_monitor_temp.txt | awk '$1 ~ /xxxx/ {print $2}' > /tmp/${ORACLE_SID}_monitor_location.txt
read ALERT_DIR < /tmp/${ORACLE_SID}_monitor_location.txt
ORIG_ALERT_LOG=${ALERT_DIR}/alert_${ORACLE_SID}.log
NEW_ALERT_LOG=${ORIG_ALERT_LOG}.monitored
TEMP_ALERT_LOG=${ORIG_ALERT_LOG}.temp
cat ${ORIG_ALERT_LOG} | awk -f $HOME/check_alert.awk > /tmp/${ORACLE_SID}_check_monitor_log.log
rm /tmp/${ORACLE_SID}_monitor_temp.txt 2>/dev/null
if [ -s /tmp/${ORACLE_SID}_check_monitor_log.log ]
then
echo "Found errors in sid ${ORACLE_SID}, mailed errors"
echo "The following errors were found in the alert log for ${ORACLE_SID}" > /tmp/${ORACLE_SID}_check_monitor_log.mail
echo "Alert log was copied into ${NEW_ALERT_LOG}" >> /tmp/${ORACLE_SID}_check_monitor_log.mail
echo " "
date >> /tmp/${ORACLE_SID}_check_monitor_log.mail
echo "--------------------------------------------------------------">>/tmp/${ORACLE_SID}_check_monitor_log.mail
echo " "
echo " " >> /tmp/${ORACLE_SID}_check_monitor_log.mail
echo " " >> /tmp/${ORACLE_SID}_check_monitor_log.mail
cat /tmp/${ORACLE_SID}_check_monitor_log.log >> /tmp/${ORACLE_SID}_check_monitor_log.mail
cat /tmp/${ORACLE_SID}_check_monitor_log.mail | mailx -m -s "on ${MACHINE}, MONITOR of Alert Log for ${ORACLE_SID} found errors" "
|emailaddresshere|"
mv ${ORIG_ALERT_LOG} ${TEMP_ALERT_LOG}
cat ${TEMP_ALERT_LOG} >> ${NEW_ALERT_LOG}
touch ${ORIG_ALERT_LOG}
rm /tmp/${ORACLE_SID}_monitor_temp.txt 2> /dev/null
rm /tmp/${ORACLE_SID}_check_monitor_log.log
rm /tmp/${ORACLE_SID}_check_monitor_log.mail
exit
fi;
rm /tmp/${ORACLE_SID}_check_monitor_log.log > /dev/null
rm /tmp/${ORACLE_SID}_monitor_location.txt > /dev/null
The referenced awk script (check_alert.awk). You can modify it as needed to add or remove things you wish to look for. The ERROR_AUDIT is a custom entry that a trigger on DB error writes in our environment.
$0 ~ /Errors in file/ {print $0}
$0 ~ /PMON: terminating instance due to error 600/ {print $0}
$0 ~ /Started recovery/{print $0}
$0 ~ /Archival required/{print $0}
$0 ~ /Instance terminated/ {print $0}
$0 ~ /Checkpoint not complete/ {print $0}
$1 ~ /ORA-/ { print $0; flag=1 }
$0 !~ /ORA-/ {if (flag==1){print $0; flag=0;print " "} }
$0 ~ /ERROR_AUDIT/ {print $0}
I simply put this script into cron to run every 5 minutes passing the SID of the DB I want to monitor.I have a PERL script that I wrote that does exactly what you want and I'll be glad to share that with you along with the CRON entries.
The script runs opens the current alert_log and searches for key phrases and send e-mail if it finds anything. It then sleeps for 60 sec, wakes up and reads from were it left off to the bottom of the file, searching again and then sleeping. The only down side is it keeps a file handle open on the alert_log, so you have to kill this processes if you want to rename or delete the alert_log.
My email in my profile is not hidden.
Tom -
Removing alert logs and trace files
Hi everyone!
I noticed that in all the oracle databases, the trace files are piling and alert log is growing like anything ....
Thought of making a copy of the trace files somewhere and remove them from the hard disk excluding the most recent ones.
For alert log, thought of making a copy and renaming the current file so that Oracle can create a new one.
Any advice if there are better approaches in handling this?
Thanks in advance.user645399 wrote:
Hi everyone!
I noticed that in all the oracle databases, the trace files are piling and alert log is growing like anything ....
Thought of making a copy of the trace files somewhere and remove them from the hard disk excluding the most recent ones.
For alert log, thought of making a copy and renaming the current file so that Oracle can create a new one.
Any advice if there are better approaches in handling this?
Thanks in advance.I would include the alert log file in my backup strategy as it includes many important information; database parameter values,when and how the database was shut down, the important database errors and when they occur , etc ... I usually backup the alert log file once a month and keep 1 year of alert log file copies.. -
Oracle 9i (SE) Solaris 9 (Alert.log file)
Hi Guys,
How do I clean up my alert.log file. Do I have to delete it completely or only delete the content of the file.
Thank you.Laura Gaigala wrote:
Why You want to clean up it? Too large or some other reasons?
If You have some planned db restart, then during restart rename archive.log and upon startup it will be created automaticaly again.
If no restart is planned, then delete it's content, but before that make a copy of alert.log. Just in order You will need to find something.Actually, I've found that it is quite safe to rename the alert.log right out from under a running database. It will simply start a new one with the next message to be written. However, I agree it is much nicer to do this housekeeping while the db is down, so that the first entry in an alert log is the startup.
This renameing of the log against a running process does not work for the listener log. I've found that if I rename listener.log to listener.log.1, the listener will continue to log to the original file (now listener.log.1) until such time as it is restarted. THEN it will start a new listener.log.
This was all on unix. Windows may behave differently. -
Alert log file of the database is too big
Dear Experts?
Let me update you that we are in process of doing an R12.1 upgrade ? And Our Current Instance is running on the 11.5.10 with 9.2.0.6 ?
We have the below challenges before going for an database upgrade ?
We have observed that the customer database alert_SID.log (9.2.0.6) size is 2.5GB ? how to purge this file ? Please advise
Please also note that our Instance is running on the Oracle Enterprise Linux 4 update 8
Regards
Mohammed.user977334 wrote:
Dear Experts?
Let me update you that we are in process of doing an R12.1 upgrade ? And Our Current Instance is running on the 11.5.10 with 9.2.0.6 ?
We have the below challenges before going for an database upgrade ?
We have observed that the customer database alert_SID.log (9.2.0.6) size is 2.5GB ? how to purge this file ? Please advise
Please also note that our Instance is running on the Oracle Enterprise Linux 4 update 8
Regards
Mohammed.Rename the alert logfile. once you rename the logfile another alert log file will create and being populated with time, and later you can delete it old alert log file . it doesnot harm your database.
--neeraj -
Separate alert log for every day
Hi,
Apart from regular alert_SID_.log file, can i configure alert log something like :
alert_SID_StartDateAndTime_EndDateAndTime.log
I mean can i configure separate aler log for 12.00 AM to 11.59 PM everyday, because :
1.It will easy to have separate alert log; so that if i have to send it i can send.
2.It will record all message in separate file, so that we may know that on which date, what db actions have been performed etc.
Thanks,Satish Kandi wrote:
You could achieve this with a simple cron job, as indicated by CKPT, to rename the existing alert.log to required format.If you please show an exmple, it will help me to understand it
>
On a side note,
1.It will easy to have separate alert log; so that if i have to send it i can send.Where do you need to send the alert log on daily basis?Sometime if client ask it.
How will you send the alert log for last one month, if required? Wouldn't that be simpler with just one file?
Ofcourse, sending one file is easy than many, but many have separate info as well.
2.It will record all message in separate file, so that we may know that on which date, what db actions have been performed etc.Alert log already has a timestamp included, so I don't see how this will benefit you.
Still, if there is dbms_separate_alert_log (assumed new feature for Oracle 12g), i think it may be helpful to us.
Its a general practice to review the alert log on daily basis and keep only the "required" (definition changes per individual) information in the file. Personally, I prefer to have a complete backup of the alert log contents in a separate file and stripped out version of alert log as current one.Currently i am using 10.2.0.1 on windows xp.
Thanks, -
Hi All
My database is on Windows machine OS version MS Windows 2003 SP2 64 bit with genuine intel processor from EM 64T family. The alert log is expected to capture all error messages and for a DBA it points one of the most important trouble shooting areas if any problem with the database is referred to .. also does it grow continuously as the database ages in time ..
Earlier on UNIX machines I used to backup the alert log file for future referance and then would trim the file size so that it wont grow beyond manageable limits.. I was using vi editor, cp command and other unix filters like head etc..
but on windows we do not have the filters .. neither could I open the alert log file trim the top few lines and save it so that its size is still manageable by the os.. I am at the moment clueless as to how could I do this activity.. I was doing some google offlate and learnt that for listener log, we have some options like
lsnrctl set file_name <NEW LOG FILE_NAME>
to refresh the listener log to a new file and thus avoid it growing huge in size. Do we have any such fascility for managing alert log as well? It would not always be possible to shut down the database just to trim the alert log file.. and on windows I am not sure about other options..
Thank you ..
Sarat.Here is from a previous post:
I've been managing Oracle database mostly on Linux for years. Now I'm in an all windows shop and need a script to check my alert logs. Batch programming is junk, can't be trusted, errorlevel is worthless, so I wrote this little program.
This is the begining of alert_log_checker.vbs
' Check the alert log for errors, then send email and rename file
' takes the alert log location as the 1st parameter
Set oArgs = WScript.Arguments
' Set this to the log you want to check for or pass it in. currently its passed in
v_alert_log = oArgs(0)
' Set this to the text pattern you want to grep for
v_pattern = "ORA-"
v_mail_to = "[email protected]"
Set objNet = CreateObject("WScript.NetWork")
v_computername = objNet.ComputerName
v_mail_from = v_computername & "@someplace.com"
' Check if the file exists
if FileExists(v_alert_log) = FALSE then
'wscript.echo "No log file" & v_alert_log
Wscript.quit(0)
end if
' Grep the log
v_grepResults = GrepFile(v_alert_log,v_pattern)
if v_grepResults = "" then
'wscript.echo "Log is empty"
wscript.quit(0)
else
' send email concerning alert
Set WshShell = WScript.CreateObject("WScript.Shell")
Return = WshShell.Run("sendmail.vbs -t "& chr(34) & v_mail_to & chr(34) &" -f "& chr(34) & v_computername & "@crocentral.com "& chr(34) &" -s "& chr(34) & "Oracle Alerts in Log on "& v_computername & chr(34) & " -a "& v_alert_log & " -b "& chr(34) & v_grepresults & chr(34), 1, true)
Set WshShell = Nothing
' rename file prepending date time YYYYMMDD_HHMM
renameLogFile(v_alert_log)
wscript.quit(0)
end if
'*********************** FileExists
Function FileExists(filespec)
Dim fe, msg
Set fe = CreateObject("Scripting.FileSystemObject")
If (fe.FileExists(filespec)) Then
msg = TRUE
Else
msg = FALSE
End If
FileExists = msg
End Function
'*********************** GrepFile
Function GrepFile(p_txtFile, p_pattern)
Dim v_txtTemp, objFS, objFL, v_lineTemp
Set objFS = CreateObject("Scripting.FileSystemObject")
Set objFL = objFS.OpenTextFile(p_txtFile)
Do While Not objFL.AtEndOfStream
v_lineTemp=objFL.ReadLine
if instr(1,v_lineTemp,p_pattern,1) > 0 then
v_txtTemp = v_txtTemp & v_lineTemp & vbCrLf
end if
Loop
objFL.Close
Set objFS = Nothing
GrepFile = v_txtTemp
End Function
'*********************** renameLogFile
sub renameLogFile(p_file)
dim v_file, v_path, v_filename, v_newname, v_yyyymmdd
v_dtNow = Now()
v_YYYYMMDD24hhMM = Right("0" & Year(v_dtNow), 4) & Right("0" & Month(v_dtNow), 2) & Right("0" & Day(v_dtNow), 2) & "_" & replace(FormatDateTime(v_dtnow,4),":","")
Set fso = CreateObject("Scripting.FileSystemObject")
set v_file=fso.GetFile(p_file)
v_path=v_file.ParentFolder
v_filename = v_file.name
v_newname = v_path & "\" & v_YYYYMMDD24hhMM & "_" & v_filename
'wscript.echo v_newname
v_file.Move v_newname
end sub
*** this is the end of alert_log_checker.vbs
alert_log_checker.vbs calls sendmail.vbs is is below, which I didn't write (just hacked) and am including for the whole package.
*** begin sendmail.vbs
' Sends email from the remote SMTP service using CDO objects
' Usage:
' sendmail -t <to> -f <from> -s "<subject>" -b "<message>"
' sendmail [-help|-?]
'Option Explicit
'On Error Resume Next
Dim objSendMail, oArgs, ArgNum
Dim strTo, strFrom, strSubject, strBody, strAttachFile, strBodyFile
strBodyFile=FALSE
Set oArgs = WScript.Arguments
ArgNum = 0
While ArgNum < oArgs.Count
Select Case LCase(oArgs(ArgNum))
Case "-to","-t":
ArgNum = ArgNum + 1
strTo = oArgs(ArgNum)
Case "-from","-f":
ArgNum = ArgNum + 1
strFrom = oArgs(ArgNum)
Case "-subject","-s":
ArgNum = ArgNum + 1
strSubject = oArgs(ArgNum)
Case "-body","-b":
ArgNum = ArgNum + 1
strBody = oArgs(ArgNum)
Case "-bf":
ArgNum = ArgNum + 1
strBodyFile=TRUE
strBody = oArgs(ArgNum)
Case "-attachfile","-a":
ArgNum = ArgNum + 1
strAttachFile = oArgs(ArgNum)
Case "-help","-?":
Call DisplayUsage
Case Else:
Call DisplayUsage
End Select
ArgNum = ArgNum + 1
Wend
'WScript.Echo strto & strFrom & strsubject & strbody
If oArgs.Count=0 Or strTo="" Or strFrom="" Or strSubject="" Then
Call DisplayUsage
Else
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = strsubject
objMessage.From = strFrom
objMessage.To = strto
if strBodyFile = TRUE then
objMessage.TextBody = ReadFile(strbody)
else
objMessage.TextBody = strbody
end if
if strAttachFile <> "" then
'wscript.echo "attaching file"
objMessage.AddAttachment(strAttachFile)
end if
end if
'==This section provides the configuration information for the remote SMTP server.
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "jupiter"
'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objMessage.Configuration.Fields.Update
'==End remote SMTP server configuration section==
objMessage.Send
' Display the usage for this script
Sub DisplayUsage
WScript.Echo "Usage:"
WScript.Echo " sendmail -t <to address> -f <from address> -s " & _
Chr(34) & "<subject>" & Chr(34) & " -b " & Chr(34) & _
"<message body>" & Chr(34)
WScript.Echo " -a <attachment file name>"
WScript.Echo " sendmail [-help|-?]"
WScript.Echo ""
WSCript.Quit
End Sub
Function ReadFile(txtFile)
Dim txtTemp, objFS, objFL
Set objFS = CreateObject("Scripting.FileSystemObject")
Set objFL = objFS.OpenTextFile(txtFile)
Do While Not objFL.AtEndOfStream
txtTemp = txtTemp & objFL.ReadLine
txtTemp = txtTemp & vbCrLf
Loop
objFL.Close
Set objFS = Nothing
ReadFile = txtTemp
End Function
*** end sendmail.vbs -
Delete content in alert.log file
hii,
Presently, i am working at oracle 10g database on windows 2003 server.
alter.log file size is 432 MB around which take several time time to open.
so, how can i delete content form alert.log file to reduce size
Regards
VaibhavHi,
No need to delete contents of alertlog.
just rename the alert log file or copy to another location and delete old one,then it will automatically creates new alert log file with format alert_<sid>.log
note:
no need of database bounce. -
Alert log rotation/OS Audit log rotation
Hi all,
Is there away that I can fix of my audit and alert log size to 100Mb and it will just reuse or rotate around it?
Or can manipulate it thru OS programs?
Thanks,
zxyYou can limit the OS audit file size using the package called DBMS_AUDIT_MGMT
Refer http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/d_audit_mgmt.htm
However, for limitting alert log file size, you need to setup a OS job, which periodically checks the alert log file size and then does a rename of the alert log file. -
Hi,
I am using RDBMS : 9.2.0.6.0 on AIX 5.3 platform.
I want to purge my alter log file as it is never been purged and is almost contains the entry of past 1 year.
Can you please provide me the way to do it?
Thanks
ShivankIf there is no alert log the database will create another one, so you can remove/delete the alert log file.
If you don't want to delete the alert log file. You can rename it while the database is down. So it will create and use a new alert log file.
You can also empty the file as follows;
cp -p alert.log alert.log.date (backing up the alert log file)
echo ""> alert.log (empty the alert log file)
You can also use as follows;
tail -3000 alert_test01.log > alert_test01.log_new (this will take last 3000 lines).
Additionally specifying your O/S would be helpful.
Adith
Thanks
Message was edited by:
Adith -
i have a alert log in <grid home>/log/<node>/alert<node>.log that is growing in size and is also owned by root. is this just like a DB alert log and if I rename it a new one will be created. i'm not sure how to maintenance this log file and I don't want to guess - any suggestions or documentation are appreciated.
thanks.You can use the ADRCI to manage (purge,etc..) the logs of Oracle.
See this links..
http://www.dbasupport.com/oracle/ora11g/ADRCI-Extended-Commands.shtml
http://www.databasejournal.com/features/oracle/article.php/3875896/Purging-Oracle-Databases-Alert-Log-with-ADRCI---Usage-and-Warning.html
Regards,
Levi Pereira -
Hi There,
Recently I started seeing these errors in the alert log for one of the databases:
Tue Aug 04 05:05:00 2009
Errors in file c:\oracle\product\10.2.0\admin\xxxxxx\bdump\xxxxxx_j000_6104.trc:
ORA-12012: error on auto execute of job 130961
ORA-27370: job slave failed to launch a job of type EXECUTABLE
ORA-27300: OS system dependent operation:accessing execution agent failed with status: 109
ORA-27301: OS failure message: The pipe has been ended.
ORA-27302: failure occurred at: sjsec 9
ORA-27303: additional information: The pipe has been ended.
So, I tried looking at the trace file associated with the error, and here is what I get:
$ cat ebcd01_j000_6104.trc
Dump file c:\oracle\product\10.2.0\admin\xxxxxx\bdump\xxxxxx_j000_6104.trc
Tue Aug 04 05:05:00 2009
ORACLE V10.2.0.3.0 - Production vsnsta=0
vsnsql=14 vsnxtr=3
Oracle Database 10g Release 10.2.0.3.0 - Production
Windows Server 2003 Version V5.2 Service Pack 1
CPU : 4 - type 586, 2 Physical Cores
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:1095M/4095M, Ph+PgF:7747M/12110M, VA:1367M/2047M
Instance name: ebcd01
Redo thread mounted by this instance: 1
Oracle process number: 53
Windows thread id: 6104, image: ORACLE.EXE (J000)
*** ACTION NAME:(DEL_ARCH_EBCP01) 2009-08-04 05:05:00.191
*** MODULE NAME:(DBMS_SCHEDULER) 2009-08-04 05:05:00.191
*** SERVICE NAME:(SYS$USERS) 2009-08-04 05:05:00.191
*** SESSION ID:(871.15642) 2009-08-04 05:05:00.191
*** 2009-08-04 05:05:00.191
ORA-12012: error on auto execute of job 130961
ORA-27370: job slave failed to launch a job of type EXECUTABLE
ORA-27300: OS system dependent operation:accessing execution agent failed with status: 109
ORA-27301: OS failure message: The pipe has been ended.
ORA-27302: failure occurred at: sjsec 9
ORA-27303: additional information: The pipe has been ended.
I'm not sure what job is causing this as there is no reference and also not sure how to resolve this issue!! How can I properly trace back these errors? Any ideas or tips to what should I do?
I'm running 10.2.0.3 database on windows 2003 server.
ThanksI found the problem.. the executable job was referring to a none existing batch file..
I have refreshed the database from production some time ago and the jobs I have setup are referring to production scripts and paths (which we didnt have on dev)..
This is now resolved.
Thanks -
Hi
Oracle Version 10.2.0.3.0
Last friday we had a power failure and a server rebooted abruptly. After it came online I restarted the database and the db did a instance recovery and came online without any problems. However when I checked the alert log file I noticed that the date & timestamp has gone back 14 days. This was there for a while and then it started showing the current date & timestamp. Is that normal? If it's not could some one help me to figure out why this has happened?
Fri Feb 27 21:26:29 2009
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_1 parameter default value as /opt/oracle/product/10.2/db_1/dbs/arch
Autotune of undo retention is turned on.
IMODE=BR
ILAT =121
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.3.0.
System parameters with non-default values:
processes = 1000
sessions = 1105
__shared_pool_size = 184549376
__large_pool_size = 16777216
__java_pool_size = 16777216
__streams_pool_size = 0
nls_language = ENGLISH
nls_territory = UNITED KINGDOM
filesystemio_options = SETALL
sga_target = 1577058304
control_files = /opt/oracle/oradata/rep/control.001.dbf, /opt/oracle/oradata/rep/control.002.dbf, /opt/oracle/oradata/rep/control.003.dbf
db_block_size = 8192
__db_cache_size = 1342177280
compatible = 10.2.0
Fri Feb 27 21:26:31 2009
ALTER DATABASE MOUNT
Fri Feb 27 21:26:35 2009
Setting recovery target incarnation to 1
Fri Feb 27 21:26:36 2009
Successful mount of redo thread 1, with mount id 740543687
Fri Feb 27 21:26:36 2009
Database mounted in Exclusive Mode
Completed: ALTER DATABASE MOUNT
Fri Feb 27 21:26:36 2009
ALTER DATABASE OPEN
Fri Feb 27 21:26:36 2009
Beginning crash recovery of 1 threads
parallel recovery started with 3 processes
Fri Feb 27 21:26:37 2009
Started redo scan
Fri Feb 27 21:26:41 2009
Completed redo scan
481654 redo blocks read, 13176 data blocks need recovery
Fri Feb 27 21:26:50 2009
Started redo application at
Thread 1: logseq 25176, block 781367
Fri Feb 27 21:26:50 2009
Recovery of Online Redo Log: Thread 1 Group 6 Seq 25176 Reading mem 0
Mem# 0: /opt/oracle/oradata/rep/redo_a/redo06.log
Mem# 1: /opt/oracle/oradata/rep/redo_b/redo06.log
Fri Feb 27 21:26:53 2009
Completed redo application
Fri Feb 27 21:27:00 2009
Completed crash recovery at
Thread 1: logseq 25176, block 1263021, scn 77945260488
13176 data blocks read, 13176 data blocks written, 481654 redo blocks read
Fri Feb 27 21:27:02 2009
Expanded controlfile section 9 from 1168 to 2336 records
Requested to grow by 1168 records; added 4 blocks of records
Thread 1 advanced to log sequence 25177
Thread 1 opened at log sequence 25177
Current log# 7 seq# 25177 mem# 0: /opt/oracle/oradata/rep/redo_a/redo07.log
Current log# 7 seq# 25177 mem# 1: /opt/oracle/oradata/rep/redo_b/redo07.log
Successful open of redo thread 1
Fri Feb 27 21:27:02 2009
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Fri Feb 27 21:27:02 2009
SMON: enabling cache recovery
Fri Feb 27 21:27:04 2009
Successfully onlined Undo Tablespace 1.
Fri Feb 27 21:27:04 2009
SMON: enabling tx recovery
Fri Feb 27 21:27:04 2009
Database Characterset is AL32UTF8
replication_dependency_tracking turned off (no async multimaster replication found)
Starting background process QMNC
QMNC started with pid=17, OS id=4563
Fri Feb 27 21:27:08 2009
Completed: ALTER DATABASE OPEN
Fri Feb 27 22:46:04 2009
Thread 1 advanced to log sequence 25178
Current log# 8 seq# 25178 mem# 0: /opt/oracle/oradata/rep/redo_a/redo08.log
Current log# 8 seq# 25178 mem# 1: /opt/oracle/oradata/rep/redo_b/redo08.log
Fri Feb 27 23:43:49 2009
Thread 1 advanced to log sequence 25179
Current log# 9 seq# 25179 mem# 0: /opt/oracle/oradata/rep/redo_a/redo09.log
Current log# 9 seq# 25179 mem# 1: /opt/oracle/oradata/rep/redo_b/redo09.log
Fri Mar 13 20:09:29 2009
MMNL absent for 1194469 secs; Foregrounds taking over
Fri Mar 13 20:10:16 2009
Thread 1 advanced to log sequence 25180
Current log# 10 seq# 25180 mem# 0: /opt/oracle/oradata/rep/redo_a/redo10.log
Current log# 10 seq# 25180 mem# 1: /opt/oracle/oradata/rep/redo_b/redo10.log
Fri Mar 13 20:21:17 2009
Thread 1 advanced to log sequence 25181
Current log# 1 seq# 25181 mem# 0: /opt/oracle/oradata/rep/redo_a/redo01.log
Current log# 1 seq# 25181 mem# 1: /opt/oracle/oradata/rep/redo_b/redo01.logyes, you are right. I just found that the server was shutdown for more than 4 hours and server came back online @ 8:08pm and I think within few minutes those old timestamp appeared in the alertlog. We have a table which captures current timestamp from the db and timestamp from application and usually both columns are same. But following are the rows inserted during the time of the issue. Not sure why this has happened. One more thing is that the listener was started and on while database was starting and performing instance recovery.
DBTimestamp_ ApplicationTimestamp_
27-02-2009 21:27:45 13-03-2009 20:08:42
27-02-2009 21:31:47 13-03-2009 20:08:43
27-02-2009 21:31:54 13-03-2009 20:08:43
27-02-2009 21:33:39 13-03-2009 20:08:42
27-02-2009 21:35:47 13-03-2009 20:08:42
27-02-2009 21:37:45 13-03-2009 20:08:42
27-02-2009 21:38:24 13-03-2009 20:08:42
27-02-2009 21:39:42 13-03-2009 20:08:42
27-02-2009 21:40:01 13-03-2009 20:08:42
27-02-2009 21:41:13 13-03-2009 20:08:42
27-02-2009 21:44:07 13-03-2009 20:08:43
27-02-2009 21:53:54 13-03-2009 20:08:42
27-02-2009 22:03:45 13-03-2009 20:08:42
27-02-2009 22:07:02 13-03-2009 20:08:42 -
ORA-01403: no data found in alert.log
Dear All,
I am getting ORA-01403: no data found in alert.log.Could you pls help me out what could be reasons behind it..Due to this i m getting loads of alerts.Pls suggest.
ThanksORA-01403 No Data Found
Typically, an ORA-01403 error occurs when an apply process tries to update an existing row and the OLD_VALUES in the row LCR do not match the current values at the destination database.
Typically, one of the following conditions causes this error:
Supplemental logging is not specified for columns that require supplemental logging at the source database. In this case, LCRs from the source database might not contain values for key columns. You can use a DML handler to modify the LCR so that it contains the necessary supplemental data. See "Using a DML Handler to Correct Error Transactions". Also, specify the necessary supplemental logging at the source database to prevent future errors.
There is a problem with the primary key in the table for which an LCR is applying a change. In this case, make sure the primary key is enabled by querying the DBA_CONSTRAINTS data dictionary view. If no primary key exists for the table, or if the target table has a different primary key than the source table, then specify substitute key columns using the SET_KEY_COLUMNS procedure in the DBMS_APPLY_ADM package. You also might encounter error ORA-23416 if a table being applied does not have a primary key. After you make these changes, you can reexecute the error transaction.
The transaction being applied depends on another transaction which has not yet executed. For example, if a transaction tries to update an employee with an employee_id of 300, but the row for this employee has not yet been inserted into the employees table, then the update fails. In this case, execute the transaction on which the error transaction depends. Then, reexecute the error transaction.
There is a data mismatch between a row LCR and the table for which the LCR is applying a change. Make sure row data in the table at the destination database matches the row data in the LCR. When you are checking for differences in the data, if there are any DATE columns in the shared table, then make sure your query shows the hours, minutes, and seconds. If there is a mismatch, then you can use a DML handler to modify an LCR so that it matches the table. See "Using a DML Handler to Correct Error Transactions".
Alternatively, you can update the current values in the row so that the row LCR can be applied successfully. If changes to the row are captured by a capture process at the destination database, then you probably do not want to replicate this manual change to destination databases. In this case, complete the following steps:
Set a tag in the session that corrects the row. Make sure you set the tag to a value that prevents the manual change from being replicated. For example, the tag can prevent the change from being captured by a capture process.
EXEC DBMS_STREAMS.SET_TAG(tag => HEXTORAW('17'));
In some environments, you might need to set the tag to a different value.
Update the row in the table so that the data matches the old values in the LCR.
Reexecute the error or reexecute all errors. To reexecute an error, run the EXECUTE_ERROR procedure in the DBMS_APPLY_ADM package, and specify the transaction identifier for the transaction that caused the error. For example:
EXEC DBMS_APPLY_ADM.EXECUTE_ERROR(local_transaction_id => '5.4.312');
Or, execute all errors for the apply process by running the EXECUTE_ALL_ERRORS procedure:
EXEC DBMS_APPLY_ADM.EXECUTE_ALL_ERRORS(apply_name => 'APPLY');
If you are going to make other changes in the current session that you want to replicate destination databases, then reset the tag for the session to an appropriate value, as in the following example:
EXEC DBMS_STREAMS.SET_TAG(tag => NULL);
In some environments, you might need to set the tag to a value other than NULL. -
Oracle 10g Enterprise Manager console giving Alert log
Dear all
I have One HP server running Oracle 10g on Redhat Enterprise Linux 3.0 and two other systems with Oracle 9i and 8i. I have written sql query in my Oracle10g system which updates the database in 9i.
The sql statement is
CREATE MATERIALIZED VIEW ADASNAP REFRESH FAST START WITH SYSDATE NEXT SYSDATE+1 AS
SELECT * FROM ADA@WCMMISLINK;
CREATE MATERIALIZED VIEW BGTABSNAP REFRESH FAST START WITH SYSDATE NEXT SYSDATE+1 AS
SELECT * FROM BGTAB@WCMMISLIN;
The above query is sheduled to run every day .
and i get the following Alert log in 10g enterprise manager console
Generic Alert log ORA-12012: error on auto execute of job 54
ORA-04052: error occured when looking up remote object WCMM.SYS@WCMMSERVERLINK
ORA-00604: error occured at recursive SQL level 3
ORA-12514: tns no listener
ORA-06512: AT "SYS.DBMS_SNAPSHOT" line 1883
can you guid me why the above error are occuring
the ORA-12514: tns no listener
the above error why it is occuring , then listener is running on oracle 10g server and other 8i and 9i server also and i am able to connect from oracle10g to other oracle 8i and 9i from sql plus and viceversa..
what could be the problem with tns listener
Regards
NiranjanHi Ugonic
Sorry both are same, it's spelling mistake it's " WCMMISLINK". Acutally, my database is getting updated but this alert log is getting generated in enterprise manager console of 10g.
The sql statement is
CREATE MATERIALIZED VIEW ADASNAP REFRESH FAST START WITH SYSDATE NEXT SYSDATE+1 AS
SELECT * FROM ADA@WCMMISLINK;
CREATE MATERIALIZED VIEW BGTABSNAP REFRESH FAST START WITH SYSDATE NEXT SYSDATE+1 AS
SELECT * FROM BGTAB@WCMMISLINK;
The above query is sheduled to run every day .
and i get the following Alert log in 10g enterprise manager console
Generic Alert log ORA-12012: error on auto execute of job 54
ORA-04052: error occured when looking up remote object WCMM.SYS@WCMMSERVERLINK
ORA-00604: error occured at recursive SQL level 3
ORA-12514: tns no listener
ORA-06512: AT "SYS.DBMS_SNAPSHOT" line 1883
can you guid me why the above error are occuring
Regards
Niranjan
Maybe you are looking for
-
How can I transfer PDF files from my Apple to my iPad?
I can transfer "Word" documents from my Apple to my iPad by adding, within iTunes, the required files to the App. Pages and then sync. I can also add PDF files to my Pages App in iTunes using the same method, BUT I can't open them in Pages - only the
-
This device cannot start. (Code 10) - XtremeGamer
This device cannot start. (Code 0) - XtremeGamer? System Specs Processor : Core 2 Quad Q9550 2.83 Ghz Motherboard: XFX 780i SLI Ram: 8 Gigs OCZ Reaper @ 800mhz Video Card: EVGA GTX 260 Sound Card: XtremeGamer model: SB0730 Bios Revision: P08 Power Su
-
I am running out of space on my iMac hard drive so I bought an external hard drive. I want to transfer my iTunes music library onto that drive. I think I have to do it through iTunes, but I can't even see the hard drive on iTunes like I can see other
-
Help With Buttons Please. Deadline Looming
Hi everyone, I am having a major brain block today. My problem is simple... and I cannot fix it. too tired. I have a menu the has NO overlays. Just a simple graphic that I made a button on top using the Apple Square Red Shape that comes with DVDSP. I
-
Legend behavior when switching between plots in graph.
I am trying to plot two plots on a single XY graph. The user should be able to switch between the individual plots as well as showing them together. I do not use the Plot.Visible property but instead change Plot.Color to transparent to make sure the