ORA-06512: at "SYS." UTL_HTTP"ORA-29259: end-of-entry available on UTL_HTTP. GET_RESPONSE
Hi all
I call using UTL_HTTP and SOAP_API Web services, mentioned below, similarly
FUNCTION to CREATE or REPLACE add_numbers (p_int_1 in NUMBER, p_int_2 number)
RETURN NUMBER
AS
l_request soap_api.t_request;
l_response soap_api.t_response;
l_return VARCHAR2 (32767).
l_url VARCHAR2 (32767).
l_namespace VARCHAR2 (32767).
l_method VARCHAR2 (32767).
l_soap_action VARCHAR2 (32767).
l_result_name VARCHAR2 (32767).
BEGIN
l_url := ' http://oracle-base.com/webservices/server.php';
" l_namespace: = ' xmlns =" http://Oracle-base.com/webservices/ "';
l_method: = 'ws_add ';
l_soap_action: = ' http://oracle-base.com/webservices/server.php/ws_add';
l_result_name: = 'back ';
l_request: = soap_api.new_request (p_method = > l_method,)
p_namespace = > l_namespace);
soap_api.add_parameter (p_request = > l_request,)
p_name = > 'int1 ',.
p_type = > ' xsd: Integer.
p_value = > p_int_1);
soap_api.add_parameter (p_request = > l_request,)
p_name = > "int2"
p_type = > ' xsd: Integer.
p_value = > p_int_2);
l_response: = soap_api.invoke (p_request = > l_request,)
p_url = > l_url,
p_action = > l_soap_action);
l_return: = soap_api.get_return_value (p_response = > l_response,)
p_name = > l_result_name,
p_namespace = > NULL);
RETURN l_return;
END;
It works very well when the number of records is less (the XML output is small), but when the number of records in the source database is passed then I'm not able to get the output XML file.
I get the error message,
error code:-29273, msg error: ORA-29273: HTTP request failed
ORA-06512: at "SYS." UTL_HTTP", line 1369
ORA-29259: end-of-input reached
I am gettting error on line,
L_HTTP_RESPONSE: = UTL_HTTP. GET_RESPONSE (L_HTTP_REQUEST);
Can someone help me with this problem? Is it possible to increase the size HTTP_RESPONSE?
Thank you
Abbas Qureshi
Hello
have you checked the end of your XML data? You wrote:
> Looped it returns two values XML we have a length 32767 and other is 122.
Perhaps you can see which part of your HTTP response is missing.
Kind regards
WoG
Tags: Database
Similar Questions
-
UTL_HTTP: ORA-29259: end-of-input reaches the web service call error
Hi gurus,
I'm calling the DB using UTL_HTTP webservice, but I keep getting the following error. Please note that I am calling only HTTP and HTTPS.
ORA-29273: HTTP request failed
ORA-06512: at "SYS." UTL_HTTP", line 1369
ORA-29259: end-of-input reached
ORA-06512: at "APL_GLOGEXTN. APL_INT_BEM', line 20
ORA-06512: at "APL_GLOGEXTN. APL_INT_BEM', line 50
ORA-06512: at line 1
29273 00000 - "the HTTP request failed.
* Cause: The UTL_HTTP package cannot run the HTTP request.
* Action: Use get_detailed_sqlerrm to check the detailed error message.
Correct the error and restart the HTTP request.
Status code: 1
I call a Web service using the code below
exec utl_http.set_proxy ("172.10.0.00:1524");
SET SERVEROUTPUT ON
EXE DTS_INT_BEM. CALL_BEM();
and the details of the PL/SQL package is expected at the point.
create or replace
package body 'DTS_INT_BEM' as
PROCEDURE INVOKE_BPEL_WS)
P_ENDPOINT_URL IN VARCHAR2,
P_SOAP_REQUEST IN VARCHAR2,
P_RETURN_STS OUT VARCHAR2)
IS
REQUEST_ENVELOPE VARCHAR2 (30000): = P_SOAP_REQUEST;
RESPONSE_ENVELOPE VARCHAR2 (30000);
HTTP_REQUEST UTL_HTTP. REQ;
HTTP_RESPONSE UTL_HTTP. RESP;
BEGIN
HTTP_REQUEST: = UTL_HTTP. BEGIN_REQUEST (P_ENDPOINT_URL, 'POST', ' HTTP / 1.1 ');
UTL_HTTP. SET_HEADER (R = > HTTP_REQUEST, name = > 'Content-Type' ', value = > ' text/xml; charset = utf-8 ');
UTL_HTTP. SET_HEADER (r = > http_request, name = > 'Content-Length', value = > LENGTH (REQUEST_ENVELOPE));
UTL_HTTP. SET_HEADER (R = > HTTP_REQUEST, name = > 'SOAPAction', value = > 'Start');
UTL_HTTP. WRITE_TEXT (R = > HTTP_REQUEST, data = > REQUEST_ENVELOPE);
dbms_output.put_line (' status code: 1');
HTTP_RESPONSE: = UTL_HTTP. GET_RESPONSE (r = > HTTP_REQUEST);
UTL_HTTP. END_RESPONSE (HTTP_RESPONSE);
P_RETURN_STS: = HTTP_RESPONSE.reason_phrase;
/ * EXCEPTION
WHEN UTL_HTTP. END_OF_BODY THEN
UTL_HTTP. END_RESPONSE (HTTP_RESPONSE);
WHEN UTL_HTTP. REQUEST_FAILED THEN
P_RETURN_STS: = ' request failed: ' | UTL_HTTP. GET_DETAILED_SQLERRM;
WHEN UTL_HTTP. HTTP_SERVER_ERROR THEN
P_RETURN_STS: = ' Server error: ' | UTL_HTTP. GET_DETAILED_SQLERRM;
WHEN UTL_HTTP. HTTP_CLIENT_ERROR THEN
P_RETURN_STS: = ' Client error: ' | UTL_HTTP. GET_DETAILED_SQLERRM;
WHILE OTHERS THEN
P_RETURN_STS: = ' Client error: ' | UTL_HTTP. GET_DETAILED_SQLERRM; * /
END INVOKE_BPEL_WS;
--------------------------------
Procedure CALL_BEM / * (-type_objet_p IN VARCHAR2)
-p_process_name in varchar2,
-p_response out varchar2
)
*/
IS
l_endpoint_url VARCHAR2 (200): =' http://172.10.0.00:10101/soa-infra/services/default/ShipmentBusinessRule/BusinessRuleProcess.service?WSDL ';
l_soap_request VARCHAR2 (30000): = NULL;
l_bpel_return_sts VARCHAR2 (3000);
BEGIN
" l_soap_request: = ' < soapenv:Envelope xmlns:soapenv = ' http://schemas.xmlsoap.org/SOAP/envelope/ "xmlns:bus =" " http://xmlns.Oracle.com/BPMN/bpmnProcess/BusinessRuleProcess ' > < soapenv:Header / > < soapenv:Body > < bus: departure > < Transmission xmlns = " http://xmlns.Oracle.com/apps/OTM " "targetNamespace =" http://xmlns.Oracle.com/apps/OTM "> < TransmissionBody > < GLogXMLElement > < PlannedShipment xmlns =" http://xmlns.Oracle.com/apps/OTM "> < delivery > < ShipmentHeader > < ShipmentGid > < Gid > < domain_name > DTS/EXE < / domain_name > < Xid > 01409 < / Xid > < / Gid > < / ShipmentGid > < ShipmentRefnum > < ShipmentRefnumQualifierGid > < Gid > < Xid > GLOG < / Xid > < / Gid > < / ShipmentRefnumQualifierGid > < ShipmentRefnumValue > DTS/EXE.01409 < / ShipmentRefnumValue > < / ShipmentRefnum > < ShipmentRefnum > < ShipmentRefnumQualifierGid > < Gid '" > < Xid > BM < / Xid > < / Gid > < / ShipmentRefnumQualifierGid > < ShipmentRefnumValue > RIAD-000235 < / ShipmentRefnumValue > < / ShipmentRefnum > < TransactionCode > NP < / TransactionCode > < ServiceProviderGid > < Gid > < domain_name > DTS/DATA < / domain_name > < Xid > RIAD < / Xid > < / Gid > < / ServiceProviderGid > < ServiceProviderAlias > < ServiceProviderAliasQualifierGid > < Gid > < Xid > GLOG < / Xid > < / Gid > < /. ServiceProviderAliasQualifierGid > < ServiceProviderAliasValue > DTS/DATA. RIAD < / ServiceProviderAliasValue > < / ServiceProviderAlias > < RateServiceGid > < Gid > < domain_name > DTS/PCM < / domain_name > < Xid > VESSEL_SERVICE < / Xid > < / Gid > < / RateServiceGid > < TransportModeGid > < Gid > < Xid > BOAT-CO < / Xid > < / Gid > < / TransportModeGid > < TotalWeightVolume > < WeightVolume > < weight > < WeightValue > 57.0 < / WeightValue > < WeightUOMGid > < Gid > < Xid > KG < / Xid > < / Gid > < / WeightUOMGid > < / weight > < Volume > < VolumeValue > 0.3 < / VolumeValue > < VolumeUOMGid > < Gid > < Xid > CUMTR < / Xid > < / Gid > < / VolumeUOMGid > < / Volume > < / WeightVolume > < / TotalWeightVolume > < TotalShipUnitCount > 8 < / TotalShipUnitCount > < StartDt > < GLogDate > 20140217124300 < / GLogDate > < TZId > Asia/Hong_Kong < / TZId > < TZOffset > + 08:00 < / TZOffset > < / StartDt > < EndDt > < GLogDate > 20140311234300 < / GLogDate > < TZId > America/Chicago < / TZId > < TZOffset > - 05:00 < / TZOffset > < / EndDt > < SourceLocationRef > < LocationRef > < LocationGid > < Gid > < domain_name > DTS/DATA < / domain_name > < Xid > HKHKG < / Xid > < / Gid > < / LocationGid > < / LocationRef > < / SourceLocationRef > < / ShipmentHeader > < / shipping > < / PlannedShipment > < / GLogXMLElement > < / TransmissionBody > < / Transmission > < / bus: start > < / soapenv:Body > < / soapenv:Envelope > ';
invoke_bpel_ws (l_endpoint_url, l_soap_request, l_bpel_return_sts);
dbms_output.put_line ('-' | l_bpel_return_sts);
end CALL_BEM;
end DTS_INT_BEM;
Thanks in advance for the help.
Shobz
Hi Billy,
Thanks for the reply. It was with the proxy setting.
Once UTL_HTTP. SET_PROXY has been set properly, I no longer get the error of end-of-input.
Thanks for the help...
Kind regards
Shobz
-
I have tried the code
DECLARE
lv_url VARCHAR2 (1000): = ' http://shenzhoufellowship.org/main2/files/old/SpecialTopics/TheLoveDare.pdf';
lc_return BLOB;
lhttp_url httpuritype.
Varriables - declared to have written the LOB to pdf file-
l_file UTL_FILE. TYPE_DE_FICHIER;
l_buffer RAW (32767).
l_amount directory: = 32767;
l_pos INTEGER: = 1;
l_blob BLOB;
l_blob_len INTEGER.
BEGIN
-create URIs
lhttp_url: = httpuritype.createuri (lv_url);
-get the PDF document
lc_return: = lhttp_url.getblob ();
-Open the destination file.
l_file: = UTL_FILE. FOPEN ('MBO_INPUT_DIR', 'MBD.zip', 'wb');
-Get the total length of the BLOB
l_blob_len: = DBMS_LOB.getlength (lc_return);
-Pieces of the BLOB to read and write to the file
-full up.
While l_pos < l_blob_len LOOP
DBMS_LOB. READ (lc_return, l_amount, l_pos, l_buffer);
UTL_FILE.put_raw (l_file, l_buffer, FALSE);
l_pos: = l_pos + l_amount;
END LOOP;
-Closes the file.
UTL_FILE. FCLOSE (l_file);
EXCEPTION
WHILE OTHERS THEN
-Close the file if something goes wrong.
IF UTL_FILE.IS_OPEN (l_file) THEN
UTL_FILE. FCLOSE (l_file);
END IF;
LIFT;
END;
But make a mistake like:
Error report-
ORA-29273: HTTP request failed
ORA-06512: at "SYS." UTL_HTTP", line 1130
ORA-12535: TNS:operation expired
ORA-06512: at line 37 level
29273 00000 - "the HTTP request failed.
* Cause: The UTL_HTTP package cannot run the HTTP request.
* Action: Use get_detailed_sqlerrm to check the detailed error message.
Correct the error and restart the HTTP request.
Please suggest a solution. Is it possible to download a zip file with the same code?
[oracle@localhost ~]$ sqlplus scott/tiger SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 6 13:59:09 2015 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> --My Database version SQL> ---------------------- SQL> SELECT * FROM v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production PL/SQL Release 11.2.0.1.0 - Production CORE 11.2.0.1.0 Production TNS for Linux: Version 11.2.0.1.0 - Production NLSRTL Version 11.2.0.1.0 - Production SQL> ed Wrote file afiedt.buf 1 DECLARE 2 lv_url VARCHAR2(500) := 'http://shenzhoufellowship.org/main2/files/old/SpecialTopics/TheLoveDare.pdf'; 3 lc_return BLOB; 4 lhttp_url httpuritype; 5 ---Varriables declared for writing the LOB to pdf file -- 6 l_file UTL_FILE.FILE_TYPE; 7 l_buffer RAW(32767); 8 l_amount BINARY_INTEGER := 32767; 9 l_pos INTEGER := 1; 10 l_blob BLOB; 11 l_blob_len INTEGER; 12 BEGIN 13 --create uri 14 lhttp_url := httpuritype.createuri(lv_url); 15 --get the PDF document 16 lc_return := lhttp_url.getblob(); 17 -- Open the destination file. 18 l_file := UTL_FILE.FOPEN('SAUBHIK', 'TheLoveDare.pdf', 'wb'); 19 --Get the total length of the BLOB 20 l_blob_len := DBMS_LOB.getlength(lc_return); 21 -- Read chunks of the BLOB and write them to the file 22 -- until complete. 23 WHILE l_pos < l_blob_len LOOP 24 DBMS_LOB.READ(lc_return, l_amount, l_pos, l_buffer); 25 UTL_FILE.put_raw(l_file, l_buffer, FALSE); 26 l_pos := l_pos + l_amount; 27 END LOOP; 28 -- Close the file. 29 UTL_FILE.FCLOSE(l_file); 30 EXCEPTION 31 WHEN OTHERS THEN 32 -- Close the file if something goes wrong. 33 IF UTL_FILE.IS_OPEN(l_file) THEN 34 UTL_FILE.FCLOSE(l_file); 35 END IF; 36 RAISE; 37* END; 38 / DECLARE * ERROR at line 1: ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1130 ORA-24247: network access denied by access control list (ACL) ORA-06512: at line 36 SQL> conn sys as sysdba Enter password: Connected. SQL> ed Wrote file afiedt.buf 1 BEGIN 2 DBMS_NETWORK_ACL_ADMIN.CREATE_ACL(acl => 'love.xml', 3 description => 'Love ACL', 4 principal => 'SCOTT', 5 is_grant => true, 6 privilege => 'connect'); 7 DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl => 'love.xml', 8 principal => 'SCOTT', 9 is_grant => true, 10 privilege => 'resolve'); 11 DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(acl => 'love.xml', 12 host => 'shenzhoufellowship.org'); 13 commit; 14* END; 15 / PL/SQL procedure successfully completed. SQL> conn scott/tiger Connected. SQL> ed Wrote file afiedt.buf 1 DECLARE 2 lv_url VARCHAR2(500) := 'http://shenzhoufellowship.org/main2/files/old/SpecialTopics/TheLoveDare.pdf'; 3 lc_return BLOB; 4 lhttp_url httpuritype; 5 ---Varriables declared for writing the LOB to pdf file -- 6 l_file UTL_FILE.FILE_TYPE; 7 l_buffer RAW(32767); 8 l_amount BINARY_INTEGER := 32767; 9 l_pos INTEGER := 1; 10 l_blob BLOB; 11 l_blob_len INTEGER; 12 BEGIN 13 --create uri 14 lhttp_url := httpuritype.createuri(lv_url); 15 --get the PDF document 16 lc_return := lhttp_url.getblob(); 17 -- Open the destination file. 18 l_file := UTL_FILE.FOPEN('SAUBHIK', 'TheLoveDare.pdf', 'wb'); 19 --Get the total length of the BLOB 20 l_blob_len := DBMS_LOB.getlength(lc_return); 21 -- Read chunks of the BLOB and write them to the file 22 -- until complete. 23 WHILE l_pos < l_blob_len LOOP 24 DBMS_LOB.READ(lc_return, l_amount, l_pos, l_buffer); 25 UTL_FILE.put_raw(l_file, l_buffer, FALSE); 26 l_pos := l_pos + l_amount; 27 END LOOP; 28 -- Close the file. 29 UTL_FILE.FCLOSE(l_file); 30 EXCEPTION 31 WHEN OTHERS THEN 32 -- Close the file if something goes wrong. 33 IF UTL_FILE.IS_OPEN(l_file) THEN 34 UTL_FILE.FCLOSE(l_file); 35 END IF; 36 RAISE; 37* END; 38 / PL/SQL procedure successfully completed. SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options [oracle@localhost ~]$ cd saubhik/ [oracle@localhost saubhik]$ pwd /home/oracle/saubhik [oracle@localhost saubhik]$ ls -l *.pdf -rw-r--r-- 1 oracle oinstall 60055 Apr 6 14:03 TheLoveDare.pdf [oracle@localhost saubhik]$
I love this pdf file. I would like to read this and mean while if you get an error then please post in its entirety and also think that it is an Oracle error or network.
-
Hello
I have a requirement to send the data in the table (retrieved via a select clause) through an email.
Here is the procedure that uses to send email that includes data from the table through trigger.
I don't find any problem during execution of the procedure and the relaxation.
but when inserting the data in table 1 (present to SCHEMA1 please refer to line 37 and 55) I get the following error and the message will not be delivered
ERRORS
ORA-29277: invalid SMTP Operation
ORA-06512: at "SYS." UTL_SMTP", LINE 55
ORA-06512: AT "SYS." UTL_SMTP", LINE 161
ORA-06512: AT "SYS." UTL_SMTP", LINE 452
ORA-06512: AT "SYS." UTL_SMTP", LINE 463
But when I remove the code from line 33 to 44
am able to send mail.
That is to say
/ * IMMEDIATE EXECUTION
"SELECT."
A.BATCHNO, B.PCSBOX, B.AMOUNT
Of
SCHEMA1. Table1: A, SChEMA2.TABLE2 B
WHERE
A.BATCHID = B.BATCHNO AND B.PRODOAID =' | PRODOAID
BULK COLLECT INTO BATCHNO, PCSBOX, AMOUNT;
FOR indx IN 1.BATCHNO. COUNTY
LOOP
UTL_SMTP. WRITE_DATA (A, BATCHNO (indx) |) ' -- '|| PCSBOX (indx) |' --' || Amount (indx) | UTL_TCP. CRLF);
END LOOP; */
I checked the sender and recipient addresses that they are fine.
so, this is my code
1 CREATE OR REPLACE PROCEDURE SEND_TABLE_DATA (FROMAD IN VARCHAR2: =' <[email protected]> ', )
TOAD 2 IN VARCHAR2: = ' < [email protected] > ',
3 under RESERVE IN VARCHAR2: = 'Data Table ',.
4 MESSAGE IN VARCHAR2: = "Dear all,
5 Docid : ' ,
DOCID 6 IN VARCHAR2,
DOCDT DATE 7.
8 PRODOAID IN NUMBER)
9, ACCORDING TO
10 TYPE NumList IS TABLE OF NUMBER;
11 TYPE NameList IS TABLE OF THE VARCHAR2 (32767).
12 BATCHNO NameList;
13 PCSBOX NumList;
AMOUNT 14 NumList;
15 SMTPHOST VARCHAR2 (255): = ' XX. XX. XX. XX ";
16. A UTL_SMTP. CONNECTION;
BEGIN 17
18 A: = UTL_SMTP. OPEN_CONNECTION(SMTPHOST,25);
19 UTL_SMTP. HELO (A, SMTPHOST);
20 UTL_SMTP. MAIL (A, FROMAD);
21 UTL_SMTP. RCPT (A, TOAD);
22 UTL_SMTP. OPEN_DATA (A);
UTL_SMTP 23. WRITE_DATA (A, UTL_TCP. CRLF);
24 UTL_SMTP. WRITE_DATA (A, UTL_TCP. CRLF. UTL_TCP. CRLF. UTL_TCP. CRLF);
25 UTL_SMTP. WRITE_DATA (, ' Date: ' |) TO_CHAR (SYSDATE, ' DD/MM/YYYY HH24:MI:SS'). UTL_TCP. CRLF);
26 UTL_SMTP. WRITE_DATA (, ' from: ' |) FROMAD | UTL_TCP. CRLF);
UTL_SMTP 27. WRITE_DATA (, ' from: ' |) TOAD | UTL_TCP. CRLF);
28 UTL_SMTP. WRITE_DATA (, ' subject: ' |) TOPIC | UTL_TCP. CRLF);
UTL_SMTP 29. WRITE_DATA (ONE, MESSAGE |) DOCID | "Documented on ' | DOCDT | UTL_TCP. CRLF);
30 UTL_SMTP. WRITE_DATA (A, UTL_TCP. CRLF. UTL_TCP. CRLF. UTL_TCP. CRLF);
UTL_SMTP 31. WRITE_DATA (A, "it's for your information" |) UTL_TCP. CRLF);
UTL_SMTP 32. WRITE_DATA (, ' BATCHNO ' |) ' -- '||' PCSBOX ' |' --' ||' AMOUNT '. UTL_TCP. CRLF);
33 IMMEDIATE EXECUTION
34 ' SELECT
35 A.BATCHNO, B.PCSBOX, B.AMOUNT
36 FROM
37 SCHEMA1. Table1: A, SChEMA2.TABLE2 B
38. WHERE THE
39 A.BATCHID = B.BATCHNO AND B.PRODOAID =' | PRODOAID
40 BULK COLLECT INTO BATCHNO PCSBOX, AMOUNT;
41 FOR indx IN 1.BATCHNO. COUNTY
42 LOOP
UTL_SMTP 43. WRITE_DATA (A, BATCHNO (indx) |) ' -- '|| PCSBOX (indx) |' --' || Amount (indx) | UTL_TCP. CRLF);
44 END OF LOOP;
UTL_SMTP 45. WRITE_DATA (A, CHR (13) |) CHR (13) | CHR (13));
UTL_SMTP 46. CLOSE_DATA (A);
UTL_SMTP 47. QUIT (A);
EXCEPTION OF 48
49 THEN THAN OTHERS THEN
50 UTL_SMTP. QUIT (A);
RAISE 51;
END 52;
53.
54, create or replace trigger trg_table_mail_sricity_prodoa
55 after insertion on SCHEMA1. TABLE1:
56 for each line
start at 57
(58) SENd_table_data
59 DOCID = >: new.docid,.
DOCDT 60 = >: new.docdt,.
PRODOAID 61 = >: new.prodoaid
(62);
end 63;
Can what changes I make to the code to meet my needs?
Please correct me if am wrong anywhere,
in the case where if a bad method used to send data (retrieved using a select clause)
Show me another method to achieve my requirement.
Thanks in advance,
Pradeep cordially.
Line 19 is not going. The HELO command is used to identify the SMTP client. The SMTP server knows its IP address and the host name. No need to tell him that via the HELO command. He wants to know who is the appellant. The order is intended to say "Hello, I am a customer
". "" See the SMTP RFC for more details. (and Yes, examples of the Oracle are wrong) Run immediately? Why? There is no true used dynamic SQL.
Collect in bulk? Why? There is not analysis or the treatment performed. Use a cursor loop FOR and call write data from the inside of the loop.
Also consider a fall 80's standard mainframe coding style (and abusing capital letters) and use modern standards that are common in Java. .NET, C/C++, etc. Specifically, as PL/SQL is derived and an implementation of the Ada language, look at Ada 95 quality and Style Guide for standards, and good logic.
-
Trigger the error ORA-06512: in SYS. Line SECURE_DML 5
Hi all
I am trying to create a procedure that is called by a trigger like this:
CREATE or REPLACE PROCEDURE SECURE_DML is
BEGIN
If (TO_CHAR(SYSDATE, 'DY') IN ('SAB', 'DOM')) OR (TO_CHAR (SYSDATE, 'HH24')
NOT FROM 08:00 ' 17:00 ') THEN
RAISE_APPLICATION_ERROR (-20500, ' Insercoes funcionarios only no comercial Monday ');
end if;
end;
/
CREATE OR REPLACE TRIGGER secure_dml2
INSERT BEFORE ON SCOTT. EMP2
BEGIN
exec SECURE_DML procedure;
end;
/
ALTER SESSION set nls_date_format = 'HH24 DY';
insert into SCOTT.emp2 (sal, empno, ename, deptno) values (7935, 'SANDRA', 1203, 10);
The error that is:
ORA-06512: In SYS. Line SECURE_DML 5
ORA-06512: In SYS. SECURE_DML2 line 2
What should I do to remove these erros?
Thank youSQL * Plus still displays the full error stack. You raise an error in the stored procedure that is propagated to trigger that is propagated to SQL * more.
SY.
-
ORA-06512: In SYS. SECURE_DML, line 5
Hi all
I am trying to create a procedure that is called by a trigger like this:
CREATE or REPLACE PROCEDURE SECURE_DML is
BEGIN
If (TO_CHAR(SYSDATE, 'DY') IN ('SAB', 'DOM')) OR (TO_CHAR (SYSDATE, 'HH24')
NOT FROM 08:00 ' 17:00 ') THEN
RAISE_APPLICATION_ERROR (-20500, ' Insercoes funcionarios only no comercial Monday ');
end if;
end;
/
ALTER SESSION set nls_date_format = 'HH24 DY';
CREATE OR REPLACE TRIGGER secure_dml2
INSERT BEFORE ON SCOTT. EMP2
BEGIN
exec SECURE_DML procedure;
end;
/
ALTER SESSION set nls_date_format = 'HH24 DY';
insert into SCOTT.emp2 (sal, empno, ename, deptno) values (7935, 'SANDRA', 1203, 10);
The error that is:
ORA-06512: In SYS. Line SECURE_DML 5
ORA-06512: In SYS. SECURE_DML2 line 2
What should I do to remove these erros?
Thank you
Published by: 994323 on 16/03/2013 20:05You post in the wrong forum. Mark the correct answer and close this message. Post to {forum: id = 75}
-
Why ORA-06512: at "SYS." DBMS_SCHEDULER', line 1794
Hi, I do the following
-creation of a beginning of program
BEGIN
() dbms_scheduler.create_program
program name = > "MAINTAIN_DDI_PROGRAM"
program_type = > 'procedure_stockee ',.
program_action = > 'MAINTAIN_DDI ',.
number_of_arguments = > 1,
activated = > FALSE,
Comments = > 'MAINTAIN_DDI');
END;
/
-creation of a program end
-set the program argument starts
BEGIN
() dbms_scheduler.define_program_argument
program name = > "MAINTAIN_DDI_PROGRAM"
argument_name = > 'p_User ',.
argument_position = > 1,
argument_type = > 'VARCHAR2 ',.
default_value = > 'SYSTEM');
END;
/
-end of the argument to define program
-creation of schedules departure
Start
() DBMS_SCHEDULER.create_schedule
schedule_name = > "MAINTAIN_DDI_SCHEDULE"
start_date = > SYSTIMESTAMP,
repeat_interval = > ' FREQ = DAILY; BYHOUR = 0',
End_date = > ",
Comments = > 'MAINTAIN_DDI_SCHEDULE_COMMENTS');
end;
/
-creation of end times
-creation of the beginning of the task
Start
DBMS_SCHEDULER. () CREATE_JOB
job_name = > 'MAINTAIN_DDI_JOB ',.
program name = > "MAINTAIN_DDI_PROGRAM"
schedule_name = > 'MAINTAIN_DDI_SCHEDULE');
() DBMS_SCHEDULER.set_attribute
name = > 'MAINTAIN_DDI_JOB ',.
attribute = > "job_class"
value = > "daily_job_class");
end;
/
-activation of the start of work
SQL > exec DBMS_SCHEDULER. SELECT ("MAINTAIN_DDI_JOB");
DBMS_SCHEDULER BEGIN. SELECT ("MAINTAIN_DDI_JOB"); END;
*
ERROR on line 1:
ORA-27486: insufficient privileges
ORA-06512: at "SYS." DBMS_ISCHED', line 2751
ORA-06512: at "SYS." DBMS_SCHEDULER', line 1794
ORA-06512: at line 1
-end of jobs
---
-> Why don't I have this error?
SQL > select distinct privilege of user_sys_privs;
PRIVILEGE
----------------------------------------
CREATE JOBS
UNLIMITED TABLESPACE
MANAGE SCHEDULER
= > cannot be doesn't have enough privileges listed in the Administrator's Guide to Oracle database on pg 27-2
to turn on work, I just need to own.
SELECT job_name, job_type, job_action, owner, system, activated from all_scheduler_jobs;
OWNER JOB_NAME J JOB_ACTION SYSTEM ENABL
-------- ----------------------- - ------------------------------ ----- -----
PROCMASK MAINTAIN_DDI_JOB_2 TRUE FALSE
PROCMASK MAINTAIN_DDI_JOB FALSE FALSE
So I created another job using a program named with the same name of program but no schedule_name
BEGIN
DBMS_SCHEDULER. () CREATE_JOB
job_name = > 'MAINTAIN_DDI_JOB_2 ',.
program name = > "MAINTAIN_DDI_PROGRAM"
repeat_interval = > ' FREQ = DAILY; BYHOUR = 12',
Comments = > "every day at noon");
END;
/
DBMS_SCHEDULER exec. SELECT ("MAINTAIN_DDI_JOB_2");
Why am I able to allow a job created a program called aid, but not able to allow a job using a program named creation and a calendar of name?
Thank you very much!
Published by: oraclewannabe2 on September 23, 2008 20:55Hello
You probably need to grant access to the owner of the task running on the job class.
Login as SYS or the creator of the category of jobs and
Grant execute on sys.daily_job_class to job_owner;
Hope this helps,
Ravi. -
Hi all.
Sorry to ask this error again, I read a lot of topic in this forum on this subject, but I can't fix it.
So I create this topic.
My computer is running oracle database 11 g 2 express edition on ubuntu LTS 14.04.
I'm trying to import the database of dmp file. That's what I do:
> sqplus
opening session with sys as sysdba, then run:
Hoangnv CREATE USER IDENTIFIED BY hoangnv;
GRANT CONNECT TO hoangnv;
GRANT RESOURCE, s/n hoangnv;
CREATE OR REPLACE DIRECTORY dmpdir AS ' / home/hoangnv/downloads/db ";
GRANT read, write the DIRECTORY ON dmpdir TO hoangnv;
my_project.dmp file is stored on /home/hoangnv/Downloads/db folder.
Finally, I ran the command below in terminal:
impdp hoangnv/hoangnv@xe directory = dmpdir dumpfile = my_project.dmp logfile = my_project.log
That's what see the Terminal:
ORA-39002: invalid operation
ORA-39070: unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS." UTL_FILE", line 536
ORA-29283: invalid file operation
Any ideas? I run these commands on window and import the database successfully.
Hello
Please try the suggestions below:
1. make sure that the roles granted to the user are 'default' for him.
SQL > change the user hoangnv the role by default all;
then try to re-import.
Note: the DBA role contains the IMP_FULL_DATABASE with it.
2. try import with the use of the 'System' this time, which is the result then? don't forget to give the system read, write on directory dmpdir.
3. is the permission to/home/hoangnv/Downloads/db fine OS?
-
Hello
I get below error frequently in the log database alerts.
ORA-12012: error on auto work 754461
ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, command parameters ' RCPT TO: ' unrecognized or missing
ORA-06512: at "SYS." UTL_SMTP", line 20
ORA-06512: at "SYS." UTL_SMTP", line 98
ORA-06512: at "SYS." UTL_SMTP", line 240
ORA-06512: at the 'APPS '. EIS_UTIL_PKG', line 94
ORA-06512: at the 'APPS '. HKD_PO_ADDON_PKG', line 110
ORA-06512: at line 1
The syntax error comes from the SMTP server, not to the job itself, so I disagree with your solution.
-
Hey guys, it's Xev.
I decide to use SQL and XML and it works in a scenario, but in another scenario, is not.
Here's the Code, I'm passing to two variables, first of all, I spend in the table table_name, and then I spend in the schema.
If I connected it with "user" and that it seeks it's own pattern, he found the results, as for example, but if I try to run this code while not
connected to the same user I'm looking for more, I get this error.
ORA-19202: an error has occurred in the processing of XML
ORA-00942: table or view does not exist
ORA-06512: at "SYS." DBMS_XMLGEN", line 288
ORA-06512: at line 1
19202 00000 - "an error has occurred in the treatment of XML %s.
* Cause: An error occurred during the processing of the XML function
* Action: Check the given error message and resolve the problem appropriate
/*-------------------------------------------------------------------------------
This code works only you are connected to the user you are looking on.
But if you're looking for a different user tables, it is kicking up and gives the above XML error...
*/
SET SERVEROUTPUT ON
exec DBMS_OUTPUT. ENABLE (1000000);
Search_string VAR VARCHAR2 (28)
EXEC: search_string: = ' ^ [0-9]{3}-[0-9]{2}-[0-9]{4}$']
COLUMN "Keyword" FORMAT A28
COLUMN 'Table' FORMAT A9
COLUMN ' column value / "FORMAT A50
SELECT DISTINCT SUBSTR (: search_string, 1: 28) "keyword."
SUBSTR (table_name, 1, 14) "table."
SUBSTR (t.column_value.getstringval (), 1, 50) ' / value of the column.
OF dba_tab_cols.
-where owner = ('& SCHEMA_NAME')
TABLE
(XMLSEQUENCE
(DBMS_XMLGEN. GETXMLTYPE
("SELECT" | column_name |)
'FROM ' | table_name |
"WHERE REGEXP_LIKE.
(' | column_name |) ','''
|| : search_string. ''')'
() .extract (' LINES/rowset / * ""))) t
-WHERE table_name IN ("FIND_TEST")
WHERE table_name = upper ('& table_name')
AND the OWNER = upper ('& SCHEMA_NAME')
ORDER BY "Table".
/
Can someone please explain how works (DBMS_XMLGEN) and why it is throwing this error?
Thank you
Xev.
It has nothing to do with DBMS_XMLGEN. GETXMLTYPE. It simply means the user running your SQL has no select privileges on the table & SCHEMA_NAME. & TABLE_NAME.
SY.
-
Hello
I had an error in my alert.log. The case of the patch?
My OS: linux x86_64 - Redhat 5.5
DBMS: 10.2.0.5 - acronym instance - data files
ERROR:
~ ORA-00600: internal error code, arguments: [ORA-00600: internal error code, arguments: [15735], [2176], [2152], [], [], [], [], [] ~ ORA-06512: at "SYS.] [[DBMS_STATS", line 21275 ~], [] [], [], [], [], []]
TRACK:
[ORA-00600: internal error code, arguments: [15735], [2176], [2152] [] [] [], [],]
For this session current SQL statement:
Select / * + parallel(t,32) parallel_index(t,32) cursor_sharing_exact use_weak_name_resl dynamic_sampling dbms_stats (0) no_monitoring * / count (*), count (distinct "ALIENACAO"), sum (sys_op_opnsize ("ALIENACAO")), substrb (dump (min ("ALIENACAO"), 16.0, 32), 1, 120), substrb (dump (max ("ALIENACAO"), 16.0, 32), 1, 120), count (distinct "PARCELA"), sum (sys_op_opnsize ("PARCELA")), substrb (dump (min ("PARCELA"), 16.0, 32), 1, 120) , substrb (dump (max ("PARCELA") 16.0, 32), 1, 120), count (distinct "NUM_PAGAMENTO"), sum (sys_op_opnsize ("NUM_PAGAMENTO")), substrb (dump (min ("NUM_PAGAMENTO"), 16.0, 32), 1, 120), substrb (dump (max ("NUM_PAGAMENTO"), 16.0, 32), 1, 120), count (distinct "DATA_VENCIMENTO"), substrb (dump (min ("DATA_VENCIMENTO"), 16.0, 32), 1, 120), substrb (dump (max ("DATA_VENCIMENTO"), 16.0, 32), 1, 120), count (distinct "DATA_PAGAMENTO") ,substrb(dump(min("DATA_PAGAMENTO"),16,0,32),1,120),substrb(dump(max("DATA_PAGAMENTO"),16,0,32) ,1,120),count("VALOR_TOTAL_PAGO_10"),count(distinct "VALOR_TOTAL_PAGO_10"),sum(sys_op_opnsize("VALOR_TOTAL_PAGO_10")),substrb(dump(min("VALOR_TOTAL_PAGO_10"),16,0,32),1,120),substrb(dump(max("VALOR_TOTAL_PAGO_10"),16,0,32),1,120),count("VALOR_TAXA_40"),count(distinct "VALOR_TAXA_40"),sum(sys_op_opnsize("VALOR_TAXA_40")) ,substrb(dump(min("VALOR_TAXA_40"),16,0,32) ,1,120),substrb(dump(max("VALOR_TAXA_40"),16,0,32),1,120),count("VALOR_MULTA_60"),count(distinct "VALOR_MULTA_60"),sum(sys_op_opnsize("VALOR_MULTA_60")),substrb(dump(min("VALOR_MULTA_60"),16,0,32),1,120),substrb(dump(max("VALOR_MULTA_60"),16,0,32),1,120),count("VALOR_MULTA_CORRECAO_170"),count(distinct "VALOR_MULTA_CORRECAO_170"),sum(sys_op_opnsize("VALOR_MULTA_CORRECAO_170")) ,substrb(dump(min("VALOR_MULTA_CORRECAO_170") ,16,0,32),1,120),substrb(dump(max("VALOR_MULTA_CORRECAO_170"),16,0,32),1,120),count("SOMA_MULTA_60_170"),count(distinct "SOMA_MULTA_60_170"),sum(sys_op_opnsize("SOMA_MULTA_60_170")),substrb(dump(min("SOMA_MULTA_60_170"),16,0,32),1,120),substrb(dump(max("SOMA_MULTA_60_170"),16,0,32),1,120),count("VALOR_CORRECAO_EXTRA_90"),count(distinct "VALOR_CORRECAO_EXTRA_90") , sum (sys_op_opnsize ("VALOR_CORRECAO_EXTRA_90")), substrb (dump (min ("VALOR_CORRECAO_EXTRA_90"), 16.0, 32), 1, 120), substrb (dump (max ("VALOR_CORRECAO_EXTRA_90"), 16.0, 32), 1, 120), count ("VALOR_RESIDUO_80"), count (distinct "VALOR_RESIDUO_80"), sum (sys_op_opnsize ("VALOR_RESIDUO_80")), substrb (dump (min ("VALOR_RESIDUO_80"), 16.0, 32), 1, 120), substrb (dump (max ("VALOR_RESIDUO_80"), 16.0, 32), 1, 120), count ("VALOR_SEGURO_50") , count (distinct "VALOR_SEGURO_50"), sum (sys_op_opnsize ("VALOR_SEGURO_50")), substrb (dump (min ("VALOR_SEGURO_50"), 16.0, 32), 1, 120), substrb (dump (max ("VALOR_SEGURO_50"), 16.0, 32), 1, 120), count ("VALOR_MORA_70"), count (distinct "VALOR_MORA_70"), sum (sys_op_opnsize ("VALOR_MORA_70")), substrb (dump (min ("VALOR_MORA_70"), 16.0, 32), 1, 120), substrb (dump (max ("VALOR_MORA_70"), 16.0, 32), 1, 120), count ("VALOR_MORA_CORRECAO_160") , count (distinct "VALOR_MORA_CORRECAO_160"), sum (sys_op_opnsize ("VALOR_MORA_CORRECAO_160")), substrb (dump (min ("VALOR_MORA_CORRECAO_160"), 16.0, 32), 1, 120), substrb (dump (max ("VALOR_MORA_CORRECAO_160"), 16.0, 32), 1, 120), count ("SOMA_MORA_70_160"), count (distinct "SOMA_MORA_70_160"), sum (sys_op_opnsize ("SOMA_MORA_70_160")), substrb (dump (min ("SOMA_MORA_70_160"), 16.0, 32), 1, 120), substrb (dump (max("SOMA_MORA_70_160") ,16,0,32),1,120),count("VALOR_AMORTIZACAO_CAP_30"),count(distinct "VALOR_AMORTIZACAO_CAP_30") ,sum(sys_op_opnsize("VALOR_AMORTIZACAO_CAP_30")),substrb(dump(min("VALOR_AMORTIZACAO_CAP_30"),16,0,32),1,120),substrb(dump(max("VALOR_AMORTIZACAO_CAP_30"),16,0,32),1,120),count("VALOR_AMORTIZACAO_JTP_100"),count(distinct "VALOR_AMORTIZACAO_JTP_100"),sum(sys_op_opnsize("VALOR_AMORTIZACAO_JTP_100")),substrb(dump(min("VALOR_AMORTIZACAO_JTP_100") (((, 16,0,32),1,120),substrb(dump(max("VALOR_AMORTIZACAO_JTP_100") 16.0, 32), 1, 120) of "FGAI". "' VALOR_PAG_EXPORTA_SGH ' sample (1.3989586355) t
-PL/SQL call stack-
the line object
serial number of handle
body 0x11e3be750 1216 package SYS. DBMS_SYS_SQL
body 0x11e3cc878 334 package SYS. DBMS_SQL
body 0x11e6c2728 11791 package SYS. DBMS_STATS
body 0x11e6c2728 13987 package SYS. DBMS_STATS
body 0x11e6c2728 14454 package SYS. DBMS_STATS
body 0x11e6c2728 14925 package SYS. DBMS_STATS
package body 21201 0x11e6c2728 SYS. DBMS_STATS
Thank you!
Published by: user13521923 on 02/10/2011 04:42Hello
Refer to Metalink Doc ID 455202.1
HTH
Anand -
HI during startup of the database of the following errors is. Please help solve the problem.
SQL > alter database open;
change the database open * ERROR at line 1: ORA-03113: end of file on the channel of communication process ID: 10400 Session ID: 418 serial number: 3 -.
============================================================
Please see the alerts log entries
--------------------------------------------------------------------------------------------------------------------------------
Commissioning:
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
With the options of partitioning, OLAP, Data Mining and Real Application Testing.
Using parameters in spfile D:\APP\ADMINISTRATOR\PRODUCT\11.2.0\DBHOME_1\DATABASE\SPFILEATTNDPRD server-side. ORA
Parameters of the system with default values:
process = 400
sessions = 624
memory_target = 4G
control_files = 'D:\ORACLE\ORADATA\ATTNDPRD\CONTROLFILE\O1_MF_8LRQYB0M_. CTL.
control_files = 'C:\ORACLE\ORADATA\ATTNDPRD\CONTROLFILE\O1_MF_8LRQYB13_. CTL.
DB_BLOCK_SIZE = 8192
compatible = "11.2.0.0.0."
log_archive_format = "ARC%S_%R.%T."
db_create_file_dest = 'D:\oracle\oradata. '
db_create_online_log_dest_1 = "D:\oracle\oradata".
db_create_online_log_dest_2 = "C:\oracle\oradata".
db_recovery_file_dest = 'C:\oracle\oradata\flash_area. '
db_recovery_file_dest_size = 8G
undo_tablespace = 'UNDOTBS1.
Remote_login_passwordfile = "EXCLUSIVE."
db_domain = «»
dispatchers = "(PROTOCOL=TCP) (SERVICE = ATTNDPRDXDB)" "
audit_file_dest = "D:\APP\ADMINISTRATOR\ADMIN\ATTNDPRD\ADUMP".
AUDIT_TRAIL = 'DB '.
db_name = "ATTNDPRD".
open_cursors = 300
diagnostic_dest = "D:\APP\ADMINISTRATOR".
Sun 24 May 13:43:09 2015
PMON started with pid = 2, OS id = 5792
Sun 24 May 13:43:09 2015
VKTM started with pid = 3, OS id = 6500 high priority
VKTM clocked at (10) precision of milliseconds with DBRM quantum (100) ms
Sun 24 May 13:43:09 2015
GEN0 started with pid = 4, OS id = 13072
Sun 24 May 13:43:09 2015
DIAG started with pid = 5, OS id = 1424
Sun 24 May 13:43:09 2015
DBRM started with pid = 6, OS id = 8240
Sun 24 May 13:43:09 2015
PSP0 started with pid = 7, OS id = 2980
Sun 24 May 13:43:09 2015
DIA0 started with pid = 8, OS id = 12956
Sun 24 May 13:43:09 2015
MA started with pid = 9, OS id = 13356
Sun 24 May 13:43:09 2015
DBW0 started with pid = 10, OS id = 14248
Sun 24 May 13:43:09 2015
DBW1 started with pid = 11, OS id = 17900
Sun 24 May 13:43:09 2015
LGWR started with pid = 12, OS id = 5564
Sun 24 May 13:43:09 2015
CKPT started with pid = 13, OS id = 16736
Sun 24 May 13:43:09 2015
SMON started with pid = 14, OS id = 14068
Sun 24 May 13:43:09 2015
RECCE has started with pid = 15, OS id = 16288
Sun 24 May 13:43:09 2015
MMON started with pid = 16, OS id = 10884
commissioning 1 dispatcher (s) for '(ADDRESS =(PARTIAL=YES) (PROTOCOL = TCP))' network address...
commissioning or shared server 1...
Environment ORACLE_BASE = D:\app\Administrator
Sun 24 May 13:43:09 2015
ALTER DATABASE MOUNT
Sun 24 May 13:43:09 2015
MMNL started with pid = 17, OS id = 16128
Mount of redo thread 1, with mount id 3325657453
Database mounted in exclusive Mode
Disabled lost write protect
Completed: ALTER DATABASE MOUNT
Sun 24 May 13:43:23 2015
change the database open
Sun 24 May 13:43:23 2015
LGWR: FROM PROCESS ARCH
Sun 24 May 13:43:23 2015
Arc0 started with pid = 21, OS id = 10084
Arc0: Started archiving
LGWR: FROM PROCESS ARCH COMPLETE
ARC0: FROM PROCESS ARCH
Sun 24 May 13:43:24 2015
Arc1 started with pid = 22, OS id = 18400
Sun 24 May 13:43:24 2015
ARC2 started with pid = 23, OS id = 17280
Arc1: Started archiving
ARC2: Started archiving
Arc1: become the "no FAL' ARCH
Arc1: become the "no SRL" ARCH
ARC2: Become the heartbeat ARCH
Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:
ORA-19815: WARNING: db_recovery_file_dest_size 8589934592 bytes is 100.00% used and has 0 bytes remaining available.
************************************************************************
You have choice to free up space in the recovery area:
1 consider changing STRATEGY OF RETENTION of RMAN. If you are using Data Guard
then consider changing POLICY of DELETE ARCHIVELOG RMAN.
2 back up files on a tertiary device such as a tape with RMAN
SAFEGUARDING RECOVERY AREA command.
3. Add space drive and increase the db_recovery_file_dest_size setting to
reflect the new space.
4 remove the unnecessary files using the RMAN DELETE command. If a service
the system control has been used to remove the files, and then use the RMAN DUPLICATION and
Commands DELETE has EXPIRED.
************************************************************************
Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:
ORA-19809: limit exceeded for file recovery
ORA-19804: cannot recover disk 44571136 bytes limit 8589934592 space
ARCH: 19809 error creating archive log file to ' C:\ORACLE\ORADATA\FLASH_AREA\ATTNDPRD\ARCHIVELOG\2015_05_24\O1_MF_1_10343_%U_. ARC'
Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:
ORA-16038: log 2 # 10343 sequence can be archived
ORA-19809: limit exceeded for file recovery
ORA-00312: wire 2 1 online journal: ' D:\ORACLE\ORADATA\ATTNDPRD\ONLINELOG\O1_MF_2_8LRQYD8B_. JOURNAL"
ORA-00312: wire 2 1 online journal: ' C:\ORACLE\ORADATA\ATTNDPRD\ONLINELOG\O1_MF_2_8LRQYDF6_. JOURNAL"
USER (ospid: 10400): put an end to litigation because of the error 16038
Sun 24 May 13:43:24 2015
ARC3 started with pid = 24, OS id = 2188
Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_arc2_17280.trc file:
ORA-19815: WARNING: db_recovery_file_dest_size 8589934592 bytes is 100.00% used and has 0 bytes remaining available.
************************************************************************
You have choice to free up space in the recovery area:
1 consider changing STRATEGY OF RETENTION of RMAN. If you are using Data Guard
then consider changing POLICY of DELETE ARCHIVELOG RMAN.
2 back up files on a tertiary device such as a tape with RMAN
SAFEGUARDING RECOVERY AREA command.
3. Add space drive and increase the db_recovery_file_dest_size setting to
reflect the new space.
4 remove the unnecessary files using the RMAN DELETE command. If a service
the system control has been used to remove the files, and then use the RMAN DUPLICATION and
Commands DELETE has EXPIRED.
************************************************************************
Instance of stopped by USER, pid = 10400
--------------------------------------------------------------------------------------------------------------------------
Regarding
Ngoyi
Hello
Now it works very well... with following
--------------------------------------------------
using sqlplus
- Startup mount
- ALTER database noarchivelog;
- ALTER database open;
-------------------------------------------------------------------------------
Concerning
Ngoyi
-------------------------------------------------
-
Help with the exception of Pl/SQL 'ora-3150 end of file on the communication channel.
Hello.
The code attached to this post opens a slider that load of 99 dblinks from different remote databases of different version.
He captures the information from these databases and stores them locally on a central database (11.2.0.4.0 version) on different tables.
The problem I have is that when a database is deleted, the dblink to this database show me the error 'ora-3150 end of file on communication channel' and that's right.
But he's not going trough the exception that I created, the cursor is closed and does not continue with the cycle.
The exception I created insert data on DBMONITOR error. DBMONITOR_LOG_ERROR_TABLE in order to catch the error (you'll be able to see all the code on the attachment)
It's the exception:
exception
while others then
INSERT IN DBMONITOR. DBMONITOR_LOG_ERROR_TABLE (NOMBRE_DBLINK, message, info, FECHA_ERROR, TIPO_PROCEDURE) VALUES (var, SUBSTR (DBMS_UTILITY. (FORMAT_ERROR_STACK, 1, 200), "CONNECTION ERROR", SYSDATE, 'CAPACITY');
commit;
end;
Could help me please on how could intercept this exception?
Thank you.
Juan.
You might have a problem with your connection or mishandling. The end of the file ora-3150, on channel of communication error means that there is a connection, but this link was broken somehow.
If a database is not reachable, you should get other types of errors.
For example judgment of the Kingdom or tns - memory could not resolve alias or simliar things.
Here is a list of typical mistakes I have check and manage when accessing remote databases.
e_db_link_broken EXCEPTION; --ORA-02019 connection description for remote database not found PRAGMA EXCEPTION_INIT (e_db_link_broken, -02019); e_oracle_not_available EXCEPTION; --ORA-01034 ORACLE not available PRAGMA EXCEPTION_INIT (e_oracle_not_available, -01034); e_oracle_down EXCEPTION; --ORA-27101: shared memory realm does not exist PRAGMA EXCEPTION_INIT (e_oracle_down, -27101); e_no_listener EXCEPTION; --ORA-12541: TNS:no listener PRAGMA EXCEPTION_INIT (e_no_listener, -12541); e_no_service EXCEPTION; --ORA-12514: TNS:listener does not currently know of service requested in connect descriptor PRAGMA EXCEPTION_INIT (e_no_service, -12514); e_timeout EXCEPTION; --ORA-12170: TNS:Connect timeout occurred PRAGMA EXCEPTION_INIT (e_timeout, -12170);
If you have a long open session and fail to close the db links after recovered information from the remote site?
In addition, I propose to change your dynamic insertion in a normal insert.
First extract the data of the DB link dynamically, but just with a select statement. Then do the insertion with the result data.
Improve your logging table to store messages up to 4000 char CHARACTER. 200 is really small for error messages.
In addition to the DBMS_UTILITY. FORMAT_ERROR_STACK you must also connect DBMS_UTILITY. FORMAT_ERROR_BACKTRACE. Just to see if you get a better message there.
WHEN e_db_link_broken or e_oracle_not_available or e_oracle_down or e_no_listener or e_no_service or e_timeout THEN INSERT INTO DBMONITOR.DBMONITOR_LOG_ERROR_TABLE (NOMBRE_DBLINK, message, info,FECHA_ERROR,TIPO_PROCEDURE) VALUES(var, 'Remote DB not accessible','ERROR DE CONEXION',SYSDATE,'CAPACITY'); -- commit; WHEN OTHERS THEN INSERT INTO DBMONITOR.DBMONITOR_LOG_ERROR_TABLE (NOMBRE_DBLINK, message, info,FECHA_ERROR,TIPO_PROCEDURE) VALUES(var, SUBSTR(DBMS_UTILITY.FORMAT_ERROR_STACK||DBMS_UTILITY.FORMAT_ERROR_BACKTRACE, 1, 4000),'ERROR DE CONEXION',SYSDATE,'CAPACITY'); --commit; end;
-
Cannot open the database: error, ora-03113 end of file communication
Hi guys,.
I am facing a problem with my database
Oracle Linux Tikanga 5 machine
database: 10.2.0.1
Error: ora-03113
I tried to move a log file while inserting data...
I restored and tried to get back what she recovers with message media recover full but doesnot allow to open the database
gives the same error: error: ora-03113 end of file communication
Watch alert_log
____________
ALTER database recover if necessary
beginning
Start of recovery Media
ORA - 264 marked during: alter database recover if necessary
beginning
...
Fri Jan 9 16:20:18 2013
2048 MB db_recovery_file_dest_size is 40,79% used. It is a
user-specified limit on the amount of space that will be used by the present
for the files related to the recovery of databases and does not reflect the amount of
space available in the underlying file system or ASM diskgroup.
Fri Jan 9 16:22:02 2013
change the list of file restore of database data clear
Fri Jan 9 16:22:02 2013
Completed: change the clear list of restore of database data file
Fri Jan 9 16:22:02 2013
Edit the list of file restore of database data
1, 2, 3, 4, 5
Completed: change the list of file restore of database data
1, 2, 3, 4, 5
Fri Jan 9 16:22:02 2013
ALTER database recover if necessary
beginning
Start of recovery Media
ORA - 264 marked during: alter database recover if necessary
beginning
...
Fri Jan 9 16:22:07 2013
change the database open
Fri Jan 9 16:22:07 2013
LGWR: FROM PROCESS ARCH
Arc0 started with pid = 16, OS id = 2049
Fri Jan 9 16:22:07 2013
Arc0: Started archiving
Arc1: Started archiving
LGWR: FROM PROCESS ARCH COMPLETE
Arc1 started with pid = 17, OS id = 2051
Fri Jan 9 16:22:07 2013
Fix half open fully the valve of the thread 1
Fri Jan 9 16:22:07 2013
Errors in the /d1/app/oracle/oradata/orcl/bdump/orcl_lgwr_1966.trc file:
[ORA-00600: internal error code, arguments: [3712], [1], [1], [0], [445262], [0], [445261],]
Fri Jan 9 16:22:08 2013
Errors in the /d1/app/oracle/oradata/orcl/bdump/orcl_lgwr_1966.trc file:
[ORA-00600: internal error code, arguments: [3712], [1], [1], [0], [445262], [0], [445261],]
LGWR: termination litigation because of the 470 error
Instance terminated by LGWR, pid = 1966
can you please on the same...
Thank youORA-00600: internal error code, arguments: [3712].
ORA-00600 is error internal oracle, you need to check metalink support for this.
-
ORA-03113: end of file on startup
Hello
on the 11g on Win 2008 R2, I try to create a database, but I end of file error:
Thanks for any suggestions.C:\Users\oracle>sqlplus / as sysdba SQL*Plus: Release 11.2.0.3.0 Production on Fri Mar 2 10:07:45 2012 Copyright (c) 1982, 2011, Oracle. All rights reserved. Connected to an idle instance. SQL> @0_createdb10.sql SQL> spool createdb.log SQL> SQL> startup nomount pfile=C:\app\oracle\product\11.2.0\dbhome_2\database\initTEST.ora ORA-03113: end-of-file on communication channel
Check if the
OracleService in services.msc (start-> Run-> services.msc) is started or not
Maybe you are looking for
-
HP Deskjet 8500 has all-in-one: printer printing and scanning in black
Printed OK yesterday. Today it is printing full black pages, on black settings and color. Also the complete black page scan. Has been at rest - not off.
-
How can I get my 924 printer off telling me that I have an #1203 error on & above?
-
I tried to use the "Search" function to locate a specific file. The computer froze... not allow me to cancel when I realized that it wasn't working. The only way I could get the closing of the window had to shut down the computer.
-
Deep link to Adobe MEA Mobile sign in Page
Is there a way out of deep links to the sign in Page of an application called Adobe MEA Mobile?I read the article for a link to adobe AEM hyperlinks in MEA Mobile and I am confident that this is possible.Thank you!
-
I use windows with Photoshop elements 13 10
and when items will update I get this message, update Adobe Photoshop elements 13.1 there was an error in the installation of this update. Quit and try again later. Error code: U44M1I2Some please explain what means error code?