ORA- errors in alert log file
I wanted to know when the ORA- errors are reported into the alert.log file?
And which tye of errors are reported into it?
And if i wanted to log all the ORA-errors in the alert log then is there any setting for that?
You can find the type of errors reported in the link above.
Also, you maynot like to log ORA-00942: table or view does not exist, ORA-00904: : invalid identifier type of errors in alert.log - right? You may want to research at setting up events for generating trace files on specific error numbers you are looking at. That might resolve your problem - hth.
Similar Messages
-
Receiving Alerts on ORA- error in Alert Log File
Hi,
I am using 10.2.0.5 OEM grid control and same versioned agent on my database servers. I have configured the alert email notification if there is any ORA- error message in my alert log file. The metric i selcted for this is "Generic Alert Log Error Status". In notification email, i see only the message that there is generic error message in the alert log file. Is there any way to set this notification so that i receive the exact ORA- error message in my alert notification email if there is any kind of ORA- error found in my alert log file?
Thanks
SalmanPlease look into the Metalink Note: 458605.1
Subject: Receiving "Clear" Notifications Unexpectedly for 'Generic Alert Log Error Status' Metric -
How to check particular error in alert log file
Hi all,
How to check particular error in alert log file,for supose if i get error in batabase yesterday 4 pm & today i want to check alert log file to get basic idea..it might be a big file so how to check that particular error..
Thanks & regards,
Eswar..What's your oracle version?
If you are in 11g you can use adrci tool
1- set homes diag/rdbms/orawiss/ORAWISS/ : the rdbms home
2- show alert -P "MESSAGE_TEXT LIKE '%ORA-%'" -term : to find all the ORA-% errors in the alert file
3- show alert -P "MESSAGE_TEXT LIKE '%ORA-%' and originating_timestamp > systimestamp-51 " -term : to find all the ORA-% errors in the alert file during the last 51 days,
4- show alert -P "MESSAGE_TEXT LIKE '%ORA-%' and originating_timestamp > systimestamp-1/24 " -term : to find all the ORA-% errors in the alert file during the last hour,
5- show alert -P "MESSAGE_TEXT LIKE '%ORA-12012%' and originating_timestamp > systimestamp-1/24 " -term : to find the particular ORA-12012 error in the alert file during the last hour,
Example:
[oracle@wissem wissem]$ adrci
ADRCI: Release 11.2.0.1.0 - Production on Wed May 4 10:24:54 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
ADR base = "/home/oracle/app/oracle"
adrci> set homes diag/rdbms/orawiss/ORAWISS/
adrci> show alert -P "MESSAGE_TEXT LIKE '%ORA-'" -term
ADR Home = /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS:
adrci> show alert -P "MESSAGE_TEXT LIKE '%ORA-%'" -term
ADR Home = /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS:
2010-12-11 19:45:41.289000 +01:00
ORA-1109 signalled during: ALTER DATABASE CLOSE NORMAL...
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/home/oracle/app/oracle/oradata/ORAWISS/system01.dbf'
ORA-1547 signalled during: ALTER DATABASE RECOVER database until time '2011-01-21:10:48:00' ...
Errors in file /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS/trace/ORAWISS_j000_5692.trc:
ORA-12012: error on auto execute of job 29
ORA-01435: user does not exist
2011-03-15 11:39:37.571000 +01:00
opiodr aborting process unknown ospid (31042) as a result of ORA-609
2011-03-15 12:04:15.111000 +01:00
opiodr aborting process unknown ospid (3509) as a result of ORA-609
adrci>
adrci> show alert -P "MESSAGE_TEXT LIKE '%ORA-%' and originating_timestamp > systimestamp-51 " -term
ADR Home = /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS:
2011-03-15 10:19:45.316000 +01:00
Errors in file /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS/trace/ORAWISS_j006_5536.trc:
ORA-12012: error on auto execute of job 26
ORA-01435: user does not exist
Errors in file /home/oracle/app/oracle/diag/rdbms/orawiss/ORAWISS/trace/ORAWISS_j000_5692.trc:
ORA-12012: error on auto execute of job 29
ORA-01435: user does not exist
2011-03-15 11:39:37.571000 +01:00
opiodr aborting process unknown ospid (31042) as a result of ORA-609
2011-03-15 12:04:15.111000 +01:00
opiodr aborting process unknown ospid (3509) as a result of ORA-609
adrci> -
ORA-28 in alert.log file
please help.. getting ORA-28 in alert.log file.
Mon Feb 25 17:46:05 2013
ORA-28 signalled during: ALTER TABLESPACE DATA_APP_199903 READ ONLY...
Mon Feb 25 17:48:54 2013
ALTER TABLESPACE DATA_APP_199903 READ ONLY
please let me know if you need any other info to help me.Error: ORA 28
Text: your session has been killed
Cause: A privileged user killed the session and it is no longer logged in to the database.
Action: Contact the database administrator.
The administrator may be attempting to perform an operation that requires users to be logged out.
When the database administrator announces that the database is available, log in and resume work.So, its a message only not exactly an error. It happens when you or other DBA said alter tablespace tbs read only; and at the same time privileged user killed your session. So, nothing to worry/to do, just relogin and resume work.
Regards
Girish Sharma -
RMAN success, but errors in alert.log file
My RMAN backup script runs well, but generates errors in alert.log file.
Here is the trace file contents:
/usr/lib/oracle/xe/app/oracle/admin/XE/udump/xe_ora_3990.trc
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server
System name: Linux
Node name: plockton
Release: 2.6.18-128.2.1.el5
Version: #1 SMP Wed Jul 8 11:54:54 EDT 2009
Machine: i686
Instance name: XE
Redo thread mounted by this instance: 1
Oracle process number: 26
Unix process pid: 3990, image: oracle@plockton (TNS V1-V3)
*** 2009-07-23 23:05:01.835
*** ACTION NAME:(0000025 STARTED111) 2009-07-23 23:05:01.823
*** MODULE NAME:(backup full datafile) 2009-07-23 23:05:01.823
*** SERVICE NAME:(SYS$USERS) 2009-07-23 23:05:01.823
*** SESSION ID:(33.154) 2009-07-23 23:05:01.823
*** 2009-07-23 23:05:18.689
*** ACTION NAME:(0000045 STARTED111) 2009-07-23 23:05:18.689
*** MODULE NAME:(backup archivelog) 2009-07-23 23:05:18.689
Does anyone know why? Thanks.
RichardI'm not sure if this will answer your question or not, but I believe these messages can likely be ignored.
I'm currently running 10.2.0.1.0 Enterprise Edition in pre-production (yes, I know I should apply the latest patchset and I plan to do so as soon as I get a development box allocated to me and can test it's impact). I see the same types of messages that you've reported with each of my regularly-scheduled backups:
a) The alert_<$SID>.log reports that there are errors in trace files:
Mon Aug 10 04:33:49 2009
Starting control autobackup
Mon Aug 10 04:33:50 2009
Errors in file /opt/oracle/admin/blah/udump/blah_ora_32520.trc:
Mon Aug 10 04:33:50 2009
Errors in file /opt/oracle/admin/blah/udump/blah_ora_32520.trc:
Mon Aug 10 04:33:50 2009
Errors in file /opt/oracle/admin/blah/udump/blah_ora_32520.trc:
Control autobackup written to DISK device
handle '/backup/physical/BLAH/RMAN/cf_c-2740124895-20090810-00'
b) The .trc files, when you look at them contain no errors - only these "informational" messages:
*** 2009-08-10 04:33:50.781
*** ACTION NAME:(0000105 STARTED111) 2009-08-10 04:33:50.754
*** MODULE NAME:(backup archivelog) 2009-08-10 04:33:50.754
*** SERVICE NAME:(SYS$USERS) 2009-08-10 04:33:50.754
*** SESSION ID:(126.28030) 2009-08-10 04:33:50.754
c) I've verified that LOG_ARCHIVE_TRACE is set to 0:
SQL*Plus> show parameter log_archive_trace
NAME TYPE VALUE
log_archive_trace integer 0
As best I can discern from my own experience, these should just be ignored and I trust (read: "hope") they will simply go away once the latest patchset is applied. As for you running Oracle XE, a patchset is not an option, unfortunately.
V/R
-Eric -
Configure Email through OEM when there is a error in alert log file
Hi,
I am using 10.2.0.4 on O/S RHEL5.0
I want to configure email facility through OEM so that whenever there is a error in alert log file i should receive an email.
Thanks and Regards
Amithhttp://www.dba-oracle.com/oracle10g_tuning/t_oem_tuning.htm
Please read above link.
Regards
Girish Sharma -
ORA.00600 Error in alert log file
Hi all,
I'm using Enterprise Linux Red hat 5 OS and Oracle version 10.2.0.1.0
I checked alert log file, yesterday i got this error,
* Errors in file /opt/oracle/admin/ssharp/udump/ssharp_ora_11162.trc:
ORA-00600: internal error code, arguments: [kksfbc-reparse-infinite-loop], [0xB7F8F6B4], [], [], [], [], [], []
Fri Mar 11 19:44:51 2011
Memory Notification: Library Cache Object loaded into SGA
Heap size 3784K exceeds notification threshold (2048K) *
how to solve this issue?
thanks in advanceHello,
ORA-00600: internal error code, arguments: [kksfbc-reparse-infinite-loop], [0xB7F8F6B4], [], [], [], [], [], []For this kind of error you should open a Service Request to My Oracle Support and, send them all the information you can (Alert log, trace files, ...).
More over, as you are in *10.2.0.1*, you may apply the latest patchset to the Database (10.2.0.4 / 10.2.0.5). Sometime, ORA-00600 may be due to a Bug. So, perhaps, by chance, applying a Patch set can help to solve this kind of issue.
Anyway, first of all, contact the Support.
Hope this help.
Best regards,
Jean-Valentin -
ORA-3136 error in alert log file(EBS R12)
I have found ora-3136 alert log error in ebs r12 instance Can any one help on this error. Alert log continuously write this error. Below is the error i found.
Fatal NI connect error 12170.
VERSION INFORMATION:
TNS for Linux: Version 11.1.0.7.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
Time: 07-NOV-2013 18:33:49
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12606
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=172.17.100.108)(PORT=60495))
WARNING: inbound connection timed out (ORA-3136)Does this affect the functionality of the application?
Do you get any errors when opening forms or self-service pages?
Please see:
ORA-01403 and FRM-40735 error occur while opening any forms (Doc ID 1358117.1)
Troubleshooting ORA-3135/ORA-3136 Connection Timeouts Errors - Database Diagnostics (Doc ID 730066.1)
ORA-3136/TNS-12535 or Hang Reported for Connections Across Firewall (Doc ID 974783.1)
Thanks,
Hussein -
hello everybody,
I am getting the following ORA error in my Alert Log file.........
alter tablespace SYSTEM end backup
Sun Apr 13 01:42:58 2008
ORA-1142 signalled during: alter tablespace SYSTEM end backup..
what is this error??The version of oracle i am running is
Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
PL/SQL Release 9.2.0.7.0 - Production
CORE 9.2.0.7.0 Production
TNS for Solaris: Version 9.2.0.7.0 - Production
NLSRTL Version 9.2.0.7.0 - Production........
Section of the Alert Log displaying the message................
Sun Apr 13 05:40:57 2008
Thread 1 advanced to log sequence 109947
Current log# 3 seq# 109947 mem# 0: /u09/oradata/inora/redo/redo03.log
Current log# 3 seq# 109947 mem# 1: /u10/oradata/inora/ctrl/redo03.log
Sun Apr 13 05:40:57 2008
ARCH: Evaluating archive log 2 thread 1 sequence 109946
ARCH: Beginning to archive log 2 thread 1 sequence 109946
Creating archive destination LOG_ARCHIVE_DEST_1: '/u08/oradata/inora/archive/inora_1_109946.dbf'
Sun Apr 13 05:40:57 2008
ARC1: Evaluating archive log 2 thread 1 sequence 109946
ARC1: Unable to archive log 2 thread 1 sequence 109946
Log actively being archived by another process
Sun Apr 13 05:40:57 2008
ARCH: Completed archiving log 2 thread 1 sequence 109946
Sun Apr 13 05:40:59 2008
Thread 1 advanced to log sequence 109948
Current log# 1 seq# 109948 mem# 0: /u09/oradata/inora/redo/redo01.log
Current log# 1 seq# 109948 mem# 1: /u10/oradata/inora/ctrl/redo01.log
Sun Apr 13 05:40:59 2008
ARCH: Evaluating archive log 3 thread 1 sequence 109947
ARCH: Beginning to archive log 3 thread 1 sequence 109947
Creating archive destination LOG_ARCHIVE_DEST_1: '/u08/oradata/inora/archive/inora_1_109947.dbf'
Sun Apr 13 05:40:59 2008
ARC0: Evaluating archive log 3 thread 1 sequence 109947
ARC0: Unable to archive log 3 thread 1 sequence 109947
Log actively being archived by another process
Sun Apr 13 05:40:59 2008
ARCH: Completed archiving log 3 thread 1 sequence 109947
Sun Apr 13 05:42:10 2008
alter tablespace SYSTEM end backup
Sun Apr 13 05:42:10 2008
ORA-1142 signalled during: alter tablespace SYSTEM end backup
Sun Apr 13 05:42:11 2008
Thread 1 advanced to log sequence 109949
Current log# 2 seq# 109949 mem# 0: /u10/oradata/inora/ctrl/redo02.log
Current log# 2 seq# 109949 mem# 1: /u09/oradata/inora/redo/redo02.log
Sun Apr 13 05:42:11 2008
ARCH: Evaluating archive log 1 thread 1 sequence 109948
ARCH: Beginning to archive log 1 thread 1 sequence 109948
Creating archive destination LOG_ARCHIVE_DEST_1: '/u08/oradata/inora/archive/inora_1_109948.dbf'
Sun Apr 13 05:42:11 2008
ARC1: Evaluating archive log 1 thread 1 sequence 109948
ARC1: Unable to archive log 1 thread 1 sequence 109948
Log actively being archived by another process -
Hi,
I have encountered following errors in alrt log file, its strange to see FAST_START_MTTR_TARGET is out of valid and aksing to use another value and that value is changing every second, it should be in increasing order or it should be consistent. I think i have a serious problem, so anyone could help me out on this. I am getting this "FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 24381 instead" error regurarly.
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 24381 instead.
Wed Jan 16 23:40:34 2008
Completed checkpoint up to RBA [0x2aadb.2.10], SCN: 5473742880
Wed Jan 16 23:45:51 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 24017 instead.
Wed Jan 16 23:46:21 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 23647 instead.
Wed Jan 16 23:46:52 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 23298 instead.
Wed Jan 16 23:47:22 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 22906 instead.
Wed Jan 16 23:47:52 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 22507 instead.
Wed Jan 16 23:48:22 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 22133 instead.
Wed Jan 16 23:48:52 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 21786 instead.
Wed Jan 16 23:49:22 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 21443 instead.
Wed Jan 16 23:49:52 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 21062 instead.
Wed Jan 16 23:50:22 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 20698 instead.
Wed Jan 16 23:53:53 2008
Incremental checkpoint up to RBA [0x2aadb.31b4.0], current log tail at RBA [0x2aadb.3e38.0]
Thu Jan 17 00:00:54 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 19582 instead.
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 16287 instead.
Thu Jan 17 00:34:01 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 15902 instead.
Thu Jan 17 00:34:31 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 14638 instead.
Thu Jan 17 00:35:01 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 13600 instead.
Thu Jan 17 00:35:31 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 12773 instead.
Thu Jan 17 00:36:02 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 12460 instead.
Thu Jan 17 00:36:32 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 12338 instead.
Thu Jan 17 00:37:01 2008
Process P187 died, see its trace file
Thu Jan 17 00:37:02 2008
FAST_START_MTTR_TARGET 121 is out of the valid MTTR range, use 12248 instead.
Thu Jan 17 00:37:02 2008
Process P188 died, see its trace file
Thu Jan 17 00:37:03 2008
Process P189 died, see its trace file
Thu Jan 17 00:37:04 2008
Process P190 died, see its trace file
Thu Jan 17 00:37:16 2008
Process J000 died, see its trace file
Thu Jan 17 00:37:16 2008
kkjcre1p: unable to spawn jobq slave process
Thu Jan 17 00:37:16 2008
Errors in file /oracle/BP3/saptrace/background/bp3_cjq0_4788.trc:
Process J000 died, see its trace file
Thu Jan 17 00:37:22 2008
kkjcre1p: unable to spawn jobq slave process
Thu Jan 17 00:37:22 2008
Errors in file /oracle/BP3/saptrace/background/bp3_cjq0_4788.trc:
Thanks
JafarThis parameter, FAST_START_MTTR_TARGET ranges from 0 to 3600 seconds. It is important to specify your oracle version, since a similar issue is reported for the 10gR1 release.
The solution for it would be to increase the value to the suggested one in the alert.log file, but it could be completely out of range from the valid values, so set it to zero and let the oracle instance calculate the value. You can check the output at the V$INSTANCE_RECOVERY view at the columns TARGET_MTTR, and ESTIMATED_MTTR prior to proceeding with modificaiton.
On the other hand, I suggest you to read this metalink note
Kkjcre1p: Unable To Spawn Jobq Slave Process, Error 1089
Doc ID: Note:344275.1
for the Kkjcre1p error message.
~ Madrid -
Getting ORA-28 in alert log file
Hi,
We are getting ORA-28 in alert log.
" ORA-28 ALTER DATABASE BACKUP CONTROLFILE....."
please suggest.
ThanksCould you post 20 lines before and after this error occurred in alertlog
Cheers -
Hi,
I am occasionally seeing ORA-01555 in the alert log file, but the query length is so long that I could not see the full query in the alert log file.
Where can i view the query which is causing this issue?
Thanks
SAYou can see the full query by using below query, just put the respective sql_id.
SELECT
SUBSTR(SQL_TEXT, 1 + (i - 1) * 80, 80) SQL_TEXT
FROM
DBA_HIST_SQLTEXT HST,
(SELECT ROWNUM I FROM DBA_HIST_SQLTEXT WHERE ROWNUM <=
60)
WHERE
HST.SQL_ID = '&SQL_ID'
And according to query length and undo space available please set the undo_retention appropriatley.
regards
Jafar -
Hi,
I am working on oracle10.2.0.4 and o/s is HP-UX .
In alert log ifle of database i found follwoing messages.
ksvcreate: Process(m000) creation failed
Wed Sep 1 09:09:02 2010
Process m000 died, see its trace file
Wed Sep 1 09:09:02 2010
ksvcreate: Process(m000) creation failed
By using TOP command checked that load on database server was very high...
383 processes: 347 sleeping, 35 running, 1 zombie
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 1.67 *97.2%* 0.0% 6.8% 0.0% 0.0% 0.0% 0.0% 0.0%
1 1.68 *96.6%* 0.0% 10.4% 0.0% 0.0% 0.0% 0.0% 0.0%
avg 1.67 *97.4%* 0.0% 8.6% 0.0% 0.0% 0.0% 0.0% 0.0%
Memory: 11087320K (6724692K) real, 12604944K (7680860K) virtual, 924024K free Page# 1/19
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
1 ? 16530 oracle10 235 20 8969M 5180K run 0:52 27.80 27.75 oraclePROD2
0 ? 16536 oracle10 241 20 8969M 5116K run 2:55 20.57 20.53 oraclePROD2
1 ? 16523 oracle10 234 20 8969M 5116K run 0:27 20.18 20.15 oraclePROD2
This time application was down .....and we restarted applicaiton ...
IS this issue is realted to database .... ?
How to reolve this ...?
Edited by: oradba11 on Sep 1, 2010 1:00 PM
Edited by: oradba11 on Sep 1, 2010 1:00 PMYes , database was up and running ...
but in alert log file i got messages ...
and load on server was very high .. i put out put of top command ...
is this is realted to database ...? -
Hi all,
DB Version: 10.2.0
OS Version: Windows 2003 Server
When i check alertlog file there i get following error
ORA-00942: table or view does not exist
I don't know exactly for which table i am getting this errorVikas Kohli wrote:
Hi all,
DB Version: 10.2.0
OS Version: Windows 2003 Server
When i check alertlog file there i get following error
ORA-00942: table or view does not exist
I don't know exactly for which table i am getting this errorNot sure why you would be getting this error in your alert log.
You could try creating an 'after servererror on database' trigger. The below asktom thread is for ORA-1555 which you would need to change to ORA-942 for your situation.
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:40115659055475 -
Trapping ora- errors in alert.log
hello everyone,
A classical question that I think every DBA has encountered.
We have about 40 oracle database servers, some with 9i, others with 10g, still others with both. Some on Linux, others on Solaris.
My question is, how to trap ora- errors in the alert.log of these database and having them being sent as an email.
It's not an easy question to answer, I know. But I'd like to get ideas from your experiences in implementing the same thing in your environments.
Many thnx.
HiruyaHi,
this let you look for errors :
utl_file.get_line(vInHandle, vNewLine);
IF vNewLine like ('%ORA-%') then
Then this let you to mail the errors :
utl_smtp.mail
Here is my complete script :
SET SERVEROUT ON
DECLARE
c utl_smtp.connection;
vInHandle utl_file.file_type;
vNewLine VARCHAR2(250);
vMessage VARCHAR2(250);
I pls_integer := 0;
LC$Fic_in Varchar2(128) := 'db1ALRT.LOG'; -- a adapter sur votre configuration
LC$Dir_in Varchar(30) := 'C:\oracle\admin\db1\bdump';
PROCEDURE send_header(name VARCHAR2, header VARCHAR2) AS
BEGIN
utl_smtp.write_data(c,name ||':'|| header || UTL_TCP.CRLF);
END;
BEGIN
vInHandle := utl_file.fopen(LC$Dir_in, LC$Fic_in, 'R');
LOOP
BEGIN
utl_file.get_line(vInHandle, vNewLine);
IF vNewLine like ('%ORA-%') then
vMessage:=vMessage||chr(10)||vNewLine;
END IF;
EXCEPTION
WHEN OTHERS THEN
EXIT;
END;
END LOOP;
utl_file.fclose(vInHandle);
-----------------------SEND A MAIL---------------------------
c := utl_smtp.open_connection(‘smtpserver’,25);
utl_smtp.helo(c, ‘something.com');
utl_smtp.mail(c, [email protected]');
utl_smtp.rcpt(c, ‘[email protected]');
utl_smtp.open_data(c);
send_header('From', '"someone" <[email protected]>');
send_header('To', '"Recipient" < [email protected] >');
send_header('Subject', 'DB1 ERREUR ALERT LOG');
utl_smtp.write_data(c, UTL_TCP.CRLF ||vMessage);
utl_smtp.close_data(c);
utl_smtp.quit(c);
EXCEPTION
WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
BEGIN
utl_smtp.quit(c);
EXCEPTION
WHEN utl_smtp.transient_error
OR utl_smtp.permanent_error THEN
NULL;
END;
raise_application_error(-20000, SQLERRM);
END fopen;
/
Maybe you are looking for
-
Hi experts, I want to create a catalog in SRM without using mdm. I am new user and I have not able to find out how can i create a catalog. Please can you guide me which t-code i have to use or where it is placed in IMG? Best Regards
-
Text appears slower than typing
Hello, not sure how to describe this so an initial search did not yield any answers. For a couple of days now whenever I type in a document the letters appear slowly, and not almost immediately as they usually do. There seems to be a time lag between
-
Can I make a DVD with multiple slide shows?
I am making a project for my son's school. Each classroom (7 or 8 rooms) has their own photo show that I am making. The school wants me to put all of the photoshows on one DVD and separate classrooms into different titles, so families can skip to the
-
Error -195067903​5 When Using the LabVIEW Shared Variable
While communication of PLC & labview 2014 SP1 via modbus ethernet I am getting continuously Error -1950679035 as per attachment. Also distribution manager system is not responding while expanding of shared variable library. And it is not showing list
-
HT201269 Advice on how to transfer EVERYTHING from old iphone to new....
Hi guys, I've just upgraded from an iPhone 4 16gb to an iPhone 4S 64gb (simply due to space) and I want the new phone to have everything that the old one has on it, including LOADS of music imported from CD's, and ebooks not purchased from iBooks, bu