ORA-03113 error on basic insert using XML
I am getting this error:
Connected to:
Oracle Database 10g Release 10.2.0.1.0 - Production
SQL> desc edi_holidays
Name Null? Type
HOLIDAY DATE
SQL> alter session set sql_trace=true;
Session altered.
SQL> truncate table edi_holidays;
Table truncated.
SQL> SELECT to_date(extractvalue(COLUMN_VALUE, '/SubValueMark/@Value'),
2 'mm/dd/yyyy') holidays
3 FROM xmltable('/root/Record[1]/ValueMark[@Index > 10]/SubValueMark'
4 passing prl_bpl_api.getediholidays('edi', 'SF.PARMS'));
HOLIDAYS
29-MAY-06
04-JUL-06
04-SEP-06
23-NOV-06
24-NOV-06
25-DEC-06
26-DEC-06
01-JAN-06
8 rows selected.
SQL> INSERT INTO edi_holidays
2 SELECT to_date(extractvalue(COLUMN_VALUE, '/SubValueMark/@Value'),
3 'mm/dd/yyyy') holidays
4 FROM xmltable('/root/Record[1]/ValueMark[@Index > 10]/SubValueMark'
5 passing prl_bpl_api.getediholidays('edi', 'SF.PARMS'));
8 rows created.
SQL> commit;
Commit complete.
SQL> select * from edi_holidays;
HOLIDAY
29-MAY-06
04-JUL-06
04-SEP-06
23-NOV-06
24-NOV-06
25-DEC-06
26-DEC-06
01-JAN-06
8 rows selected.
SQL> begin
2 INSERT INTO edi_holidays
3 SELECT to_date(extractvalue(COLUMN_VALUE, '/SubValueMark/@Value'),
4 'mm/dd/yyyy') holidays
5 FROM xmltable('/root/Record[1]/ValueMark[@Index > 10]/SubValueMark'
6 passing prl_bpl_api.getediholidays('edi', 'SF.PARMS'));
7
8 end;
9 /
begin
ERROR at line 1:
ORA-03113: end-of-file on communication channelAny idea what might be happening. I also checked this in another session (with the anonymous block).
Connected.
SQL> begin
2 insert into edi_holidays select sysdate from dual;
3 end;
4 /
PL/SQL procedure successfully completed.
SQL> select * from edi_holidays;
HOLIDAY
18-SEP-06
Below is the relevant code.
In here the procedure sys_sys_utility.processerror is a Autonomous Transaction procedure for Error Logging
and sys_sys_utility.who_am_i is a program pretty much reused from here
http://asktom.oracle.com/~tkyte/who_called_me/who.sql
Also, sys_sys_soapapi is an api provided to me to implement the SOAP Protocol.
SQL> desc edi_holidays;
Name Null? Type
HOLIDAY DATE
CREATE OR REPLACE PACKAGE sys_sys_soapapi IS
TYPE t_request IS RECORD(
method VARCHAR2(256)
,namespace VARCHAR2(256)
,BODY CLOB
,envelope_tag VARCHAR2(30));
TYPE t_response IS RECORD(
doc xmltype
,envelope_tag VARCHAR2(30));
FUNCTION new_request
p_method IN VARCHAR2
,p_namespace IN VARCHAR2
,p_envelope_tag IN VARCHAR2 DEFAULT 'SOAP-ENV'
) RETURN t_request;
PROCEDURE add_parameter
p_request IN OUT NOCOPY t_request
,p_name IN VARCHAR2
,p_type IN VARCHAR2
,p_value IN CLOB
PROCEDURE add_parameter
p_request IN OUT NOCOPY t_request
,p_name IN VARCHAR2
,p_type IN VARCHAR2
,p_value IN xmltype
FUNCTION invoke
p_request IN OUT NOCOPY t_request
,p_url IN VARCHAR2
,p_action IN VARCHAR2
) RETURN t_response;
FUNCTION get_return_value
p_response IN OUT NOCOPY t_response
,p_name IN VARCHAR2
,p_namespace IN VARCHAR2
) RETURN VARCHAR2;
END sys_sys_soapapi;
CREATE OR REPLACE PACKAGE BODY sys_sys_soapapi IS
FUNCTION new_request(p_method IN VARCHAR2,
p_namespace IN VARCHAR2,
p_envelope_tag IN VARCHAR2 DEFAULT 'SOAP-ENV')
RETURN t_request AS
v_request t_request;
BEGIN
v_request.method := p_method;
v_request.namespace := p_namespace;
v_request.envelope_tag := p_envelope_tag;
RETURN v_request;
EXCEPTION
WHEN OTHERS THEN
sys_sys_utility.processerror(SQLCODE,
'[' || SQLERRM || ']',
sys_sys_utility.who_am_i || 'new_request');
RAISE;
END;
PROCEDURE add_parameter(p_request IN OUT NOCOPY t_request,
p_name IN VARCHAR2,
p_type IN VARCHAR2,
p_value IN CLOB) AS
BEGIN
p_request.BODY := p_request.BODY || '<' || p_name || ' xsi:type="' ||
p_type || '">' || p_value || '</' || p_name || '>';
EXCEPTION
WHEN OTHERS THEN
sys_sys_utility.processerror(SQLCODE,
'[' || SQLERRM || ']',
sys_sys_utility.who_am_i || 'add_parameter');
RAISE;
END add_parameter;
PROCEDURE add_parameter(p_request IN OUT NOCOPY t_request,
p_name IN VARCHAR2,
p_type IN VARCHAR2,
p_value IN xmltype) AS
BEGIN
dbms_output.put_line('xmlversion');
/* p_request.BODY := p_request.BODY || '<' || p_name || ' xsi:type="' ||
p_type || '">' || p_value.getclobval ||
'></' || p_name || '>'; */
p_request.BODY := p_request.BODY || '<' || p_name || ' xsi:type="' ||
p_type || '"><![CDATA[' || p_value.getclobval || ']]></' ||
p_name || '>';
EXCEPTION
WHEN OTHERS THEN
sys_sys_utility.processerror(SQLCODE,
'[' || SQLERRM || ']',
sys_sys_utility.who_am_i || 'add_parameter');
RAISE;
END add_parameter;
PROCEDURE generate_envelope(p_request IN OUT NOCOPY t_request,
p_env IN OUT NOCOPY CLOB) AS
BEGIN
p_env := '<?xml version="1.0" encoding="utf-8" ?><' ||
p_request.envelope_tag || ':Envelope xmlns:' ||
p_request.envelope_tag ||
'="http://schemas.xmlsoap.org/soap/envelope/" ' ||
'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">' || '<' ||
p_request.envelope_tag || ':Body>' || '<' || p_request.method || ' ' ||
p_request.namespace || '>' || p_request.BODY || '</' ||
p_request.method || '>' || '</' || p_request.envelope_tag ||
':Body>' || '</' || p_request.envelope_tag || ':Envelope>';
EXCEPTION
WHEN OTHERS THEN
sys_sys_utility.processerror(SQLCODE,
'[' || SQLERRM || ']',
sys_sys_utility.who_am_i ||
'generate_envelope');
RAISE;
END generate_envelope;
PROCEDURE show_envelope(p_env IN CLOB) AS
i PLS_INTEGER;
v_len PLS_INTEGER;
BEGIN
i := 1;
v_len := length(p_env);
WHILE (i <= v_len)
LOOP
dbms_output.put_line(substr(p_env, i, 255));
i := i + 255;
END LOOP;
EXCEPTION
WHEN OTHERS THEN
sys_sys_utility.processerror(SQLCODE,
'[' || SQLERRM || ']',
sys_sys_utility.who_am_i || 'show_envelope');
RAISE;
END show_envelope;
PROCEDURE check_fault(p_response IN OUT NOCOPY t_response) AS
v_fault_node xmltype;
v_fault_code VARCHAR2(256);
v_fault_string VARCHAR2(32767);
BEGIN
v_fault_node := p_response.doc.extract('/' || p_response.envelope_tag ||
':Fault',
'xmlns:' || p_response.envelope_tag ||
'="http://schemas.xmlsoap.org/soap/envelope/');
IF (v_fault_node IS NOT NULL)
THEN
v_fault_code := v_fault_node.extract('/' || p_response.envelope_tag ||
':Fault/faultcode/child::text()',
'xmlns:' || p_response.envelope_tag ||
'="http://schemas.xmlsoap.org/soap/envelope/')
.getstringval();
v_fault_string := v_fault_node.extract('/' || p_response.envelope_tag ||
':Fault/faultstring/child::text()',
'xmlns:' || p_response.envelope_tag ||
'="http://schemas.xmlsoap.org/soap/envelope/')
.getstringval();
raise_application_error(-20000, v_fault_code || ' - ' || v_fault_string);
END IF;
EXCEPTION
WHEN OTHERS THEN
sys_sys_utility.processerror(SQLCODE,
'[' || SQLERRM || ']',
sys_sys_utility.who_am_i || 'check_fault');
RAISE;
END check_fault;
FUNCTION invoke(p_request IN OUT NOCOPY t_request,
p_url IN VARCHAR2,
p_action IN VARCHAR2) RETURN t_response AS
v_envelope CLOB;
v_http_request utl_http.req;
v_http_response utl_http.resp;
v_response t_response;
v_rawresponse CLOB;
v_request_len INTEGER;
v_request_indx INTEGER := 1;
v_request_txt VARCHAR(32767);
BEGIN
generate_envelope(p_request, v_envelope);
--show_envelope(v_envelope);
v_http_request := utl_http.begin_request(p_url, 'POST', 'HTTP/1.1');
utl_http.set_header(v_http_request, 'Content-Type', 'text/xml');
v_request_len := length(v_envelope);
utl_http.set_header(v_http_request, 'Content-Length', v_request_len);
utl_http.set_header(v_http_request, 'SOAPAction', p_action);
--Send Request Piecewise
v_request_indx := 1;
LOOP
EXIT WHEN v_request_indx >= v_request_len;
v_request_txt := substr(v_envelope, v_request_indx, 32767);
utl_http.write_text(v_http_request, v_request_txt);
v_request_indx := v_request_indx + 32767;
END LOOP;
--Get Response
v_http_response := utl_http.get_response(v_http_request);
--Extract Response Text
BEGIN
LOOP
utl_http.read_text(v_http_response, v_envelope);
v_rawresponse := v_rawresponse || v_envelope;
END LOOP;
EXCEPTION
WHEN utl_http.end_of_body THEN
NULL;
WHEN OTHERS THEN
dbms_output.put_line('In the invoke utl_http.read_text procedure');
RAISE;
END;
-- End Response
utl_http.end_response(v_http_response);
--Format My Response
v_response.doc := xmltype.createxml(v_rawresponse);
v_response.envelope_tag := p_request.envelope_tag;
-- Remove Envelope Headers
v_response.doc := v_response.doc.extract('/' || v_response.envelope_tag ||
':Envelope/' ||
v_response.envelope_tag ||
':Body/child::node()',
'xmlns:' || v_response.envelope_tag ||
'="http://schemas.xmlsoap.org/soap/envelope/"');
/*BEGIN
NULL;
show_envelope(v_response.doc.getstringval());
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('Error in show envelope: ' || SQLERRM);
END;*/
check_fault(v_response);
RETURN v_response;
EXCEPTION
WHEN OTHERS THEN
sys_sys_utility.processerror(SQLCODE,
'[' || SQLERRM || ']',
sys_sys_utility.who_am_i || 'invoke');
RAISE;
END invoke;
FUNCTION get_return_value(p_response IN OUT NOCOPY t_response,
p_name IN VARCHAR2,
p_namespace IN VARCHAR2) RETURN VARCHAR2 AS
BEGIN
RETURN p_response.doc.extract('//' || p_name || '/child::text()',
p_namespace) .getstringval();
EXCEPTION
WHEN OTHERS THEN
sys_sys_utility.processerror(SQLCODE,
'[' || SQLERRM || ']',
sys_sys_utility.who_am_i ||
'get_return_value');
RAISE;
END get_return_value;
END sys_sys_soapapi;
FUNCTION getediholidays(p_suser sys_user.username%TYPE DEFAULT NULL,
p_transkey VARCHAR2) RETURN xmltype IS
l_request sys_sys_soapapi.t_request;
l_response sys_sys_soapapi.t_response;
--l_response_value VARCHAR2(500);
v_action VARCHAR2(1000);
l_response_xml xmltype;
BEGIN
-- Set proxy details if no direct net connection.
--UTL_HTTP.set_proxy('myproxy:4480', NULL);
--UTL_HTTP.set_persistent_conn_support(TRUE);
v_action := v_prelude_ws_action || '/GetEdiHolidays';
l_request := sys_sys_soapapi.new_request(p_method => 'GetEdiHolidays',
p_namespace => v_prelude_ws_namespace,
p_envelope_tag => 'soap');
sys_sys_soapapi.add_parameter(p_request => l_request,
p_name => 'sAccount',
p_type => 'xsd:string',
p_value => v_prelude_ws_account);
sys_sys_soapapi.add_parameter(p_request => l_request,
p_name => 'sUser',
p_type => 'xsd:string',
p_value => p_suser);
sys_sys_soapapi.add_parameter(p_request => l_request,
p_name => 'sTransKey',
p_type => 'xsd:string',
p_value => p_transkey);
l_response := sys_sys_soapapi.invoke(p_request => l_request,
p_url => v_prelude_ws_url,
p_action => v_action);
--dbms_output.put_line('hi ' || l_response.doc.getstringval());
SELECT extract(l_response.doc,
'/GetEdiHolidaysResponse/GetEdiHolidaysResult/child::node()',
v_prelude_ws_namespace)
INTO l_response_xml
FROM dual;
RETURN l_response_xml;
EXCEPTION
WHEN OTHERS THEN
sys_sys_utility.processerror(SQLCODE,
'[' || SQLERRM || ']',
sys_sys_utility.who_am_i || 'getediholidays');
RAISE;
END getediholidays;Mark, also, please feel free to comment on any improvements in the code. btw, if this doesn't work, I am planning to go and use collections to get the holidays and then make use of them.
Message was edited by:
rputtagunta
Similar Messages
-
ORA-03113 error when setting up Oracle XML DB Basic Demo
When I try to install XDB_UTILITY package using the command @SQL/xdbUtility, immediately after the view is created successfully, I get the out-of-file error. The error is caused by "select value(x) into dbxml from xdb_database_summary x".
The database I am using is 9.2.0.2 updagrated from 9.2.0.1 and the OS is windows 2000 server.
regardsRegarding the problem with xdbUtility. I think you are running the 9.2.0.1.0 vesrion of the demo. This is a known bug in 9.2.0.2.0, which is fixed in 9.2.0.3.0. Please download an updated version of the demo from http://otn.oracle.com/tech/xml/xmldb/content.html. This version contains a workaround for the problem in 9.2.0.2.0.
Please shutdown and re-start the database before running the new version of the dmeo -
Ora-03113 error with XMLTABLE inside subquery or view
I'm getting ORA-03113 error if I use a result of XMLTABLE inside a subquery of another query (whether XMLTABLE is inline, or from a view). Code below to reproduce this - vastly simplified and now rather meaningless - but produces same error. Has anyone saw this error re. XMLTABLE or know of metalink bugs on this ? I couldn't find anything. I'm having to use deprecated table(xmlsequence) instead, which doesn't get this error.
--DROP TABLE TEST
CREATE TABLE TEST(ID number(10), CUST_REF varchar2(50 char), XMLDATA XMLTYPE);
INSERT INTO TEST(ID, CUST_REF, XMLDATA) VALUES (1, 'XYZ',
XMLTYPE('<?xml version="1.0" encoding="utf-16"?>
<TESTXML
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:ABC-123:TESTXML">
<collections>
<TRANSACTION_COLLECTION>
<TRANSACTION>
<RECORD_ID>1</RECORD_ID>
<TRANSACTION_ID>7791786</TRANSACTION_ID>
<AMOUNT>335</AMOUNT>
<TYPE>I</TYPE>
<DC>DR</DC>
</TRANSACTION>
</TRANSACTION_COLLECTION>
</collections>
</TESTXML>'));
COMMIT;
CREATE VIEW TEST_XMLVIEW
AS
SELECT
ID,
CUST_REF,
xmltbl.RECORD_ID,
xmltbl.TRANSACTION_ID,
xmltbl.AMOUNT,
xmltbl.TYPE,
xmltbl.DC
FROM TEST,
XMLTable(XMLNamespaces(DEFAULT 'urn:ABC-123:TESTXML'),
'/TESTXML/collections/TRANSACTION_COLLECTION/TRANSACTION' PASSING TEST.XMLDATA
COLUMNS
"RECORD_ID" number(10) PATH 'RECORD_ID',
"TRANSACTION_ID" VARCHAR(200 CHAR) PATH 'TRANSACTION_ID',
"DC" VARCHAR(200 CHAR) PATH 'DC',
"TYPE" VARCHAR(200 CHAR) PATH 'TYPE',
"AMOUNT" NUMBER(38,8) PATH 'AMOUNT')
AS xmltbl;
WITH SUM_AMOUNTS (ID, CUST_REF, SUM_1, SUM_2, SUM_3)
AS
(SELECT ID, CUST_REF, SUM(AMOUNT) AS SUM_1, SUM(AMOUNT) AS SUM_2, SUM(AMOUNT) + SUM(AMOUNT) AS SUM_3
FROM TEST_XMLVIEW
GROUP BY ID, CUST_REF)
select
ID,
CUST_REF,
SUM_1,
SUM_2,
SUM_3
from SUM_AMOUNTS;
Version Details:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for 64-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - ProductionHas anyone saw this error re. XMLTABLE or know of metalink bugs on this ? I couldn't find anything.Really?
Go to the trace directory and find the relevant trace/incident file.
On my system, I can see something like this :
ORA-07445: exception encountered: core dump [evaopn3()+656] [ACCESS_VIOLATION] [ADDR:0x0] [PC:0x234A5B6] [UNABLE_TO_READ] []Copy/paste that line into the ORA-00600/ORA-07445 look-up tool on My Oracle Support and run the search for your version.
You will find this article :
*ORA-7445 (evaopn3) [ID 860969.1]*
and at the bottom of the page, among the known related bugs, this one :
*Bug 12724375 : ORA-7445 [evaopn3] from XQuery with GROUP BY* -
How to resolve ORA-00001 Error in SQL Insert?
Hi all, I need your appreciated help.
I make a plsql procedure that is inserting a row according cursor value, I'm having oracle error ORA-00001: unique constraint (constraint_name) violated.
You may see this message if a duplicate entry exists at a different level: in RDBMS MySQL I have the syntax IGNORE to resolve this duplication error... and in Oracle ?
Thanks for your time and hints.
Miguelitouser6317803 wrote:
How to resolve ORA-00001 Error in SQL Insert?ORA-00001 means table has unique/primary key/index and you are trying to insert a row with key value that already exists in the table. I'll assume table COUNTRIES has primary key on COUNTRY_ID. Then change SQL to:
SQL = "INSERT INTO COUNTRIES(COUNTRY_ID,COUNTRY_NAME,REGION_ID) SELECT 'BZ','BLZ',3 FROM DUAL WHERE NOT EXISTS(SELECT 1 FROM COUNTRIES WHERE COUNTRY_ID = 'BZ')"There is a good chance table COUNTRIES also has unique key/index on COUNTRY_NAME. If so use:
SQL = "INSERT INTO COUNTRIES(COUNTRY_ID,COUNTRY_NAME,REGION_ID) SELECT 'BZ','BLZ',3 FROM DUAL WHERE NOT EXISTS(SELECT 1 FROM COUNTRIES WHERE COUNTRY_ID = 'BZ' OR COUNTRY_NAME = 'BLZ')"SY. -
CTX_DDL.SYNC_INDEX gives ORA-03113 error
I am trying to use the CTX_DDL.SYNC_INDEX command in order to update the full Text Index on a table, which contains a word document as a binary object, but I get an ORA-03113 error every time I do this. I get the same error if the table contains an Excel file. It works perfectly OK if the table contains simple text files.
Hi Barbara - thanks for your response.
In answer to your questions;
Oracle version is 9.2.0.1.0
Table structure is created with following sql;
CREATE TABLE DOCUMENTFILE
(DOCUMENTFILEID NUMBER (10,0) NOT NULL,
DATA LONG RAW,
FILE_SIZE NUMBER (10,0),
FILENAME VARCHAR2 (510),
ENCRYPTIONKEY VARCHAR2 (100),
VALIDATIONKEY VARCHAR2 (100),
MIMETYPE VARCHAR2 (255),
FILEEXTENSION CHAR (3),
DELETED NUMBER (1,0)
Index is created with following command
CREATE INDEX ORGANISATION_TEXT_INDEX
ON COLLABORATOR.ORGANISATION(ORGANISATION_NAME)
INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS ('');
Resync command is as follows
EXEC CTX_DDL.SYNC_INDEX('DOCUMENT_TEXT_INDEX');
I am testing by runing the command via SQL Plus
In response to question 'Are you using inso_filter or auto_filter? ' - I dont know
Thanks for your help,
Peter -
Deleting application results in ORA-03113 error
I'm having trouble deleting applications from my workspace. Every time I attempt to delete an application, I get an ORA-03113 error.
It doesn't seem to matter whether or not I choose to include the Application Definition or Supporting Objects when deleting.
If I cancel and keep trying to delete the application, the db crashes. When this happens the .trc file shows multiple memory errors and the alert log shows multiple core dumps.
db version = *10.2.0.1*
apex version = *3.2*
If anyone has experience with similar issues, any suggestions would appreciated. This problem has been a real pain.
Keith Malay
www.sds-cg.comKeith,
There are quite a few hits on Metalink for this error. You may want to go there and see if you can find a patch (of which there seems to be several) or some other method of troubleshooting this problem.
Here is what Doc ID: 1020463.6 has to say in the introduction:
The ORA-3113 error is a general error reported by Oracle client tools,
which signifies that they cannot communicate with the oracle shadow
process. As it is such a general error more information must be collected
to help determine what has happened.
Than note's title is "Diagnosing ORA-3113 Errors".
Good luck,
Don. -
Ora-03113 error in version 8.0.5
kindly guide me through the procedure to solve ora-03113 error "end of file on communication channel" in database version 8.0.5
after instance started up, in sqlplus type:
SQL> show parameter background_dump_dest
NAME TYPE VALUE
background_dump_dest string /oracle/home92/admin/dump ->>>> this is in my caseGo to that folder (which is in your case) and there should be alert_YOUR_DB_NAME.log and open it with text editor and copy/paste last 100 lines here.
Edited by: drop.any on Nov 2, 2009 2:53 AM -
ORA 03113 error creating database
On Oracle 8.1.7, I've get an ORA 03113 error when creating the database. Pressing ignore leaves it hanging at 90%. I've tried creating db by copying files from CD and creating with custom parameters but same issue. There have been other threads regarding this error but no responses. I couldn't find any logs with specific error messages in my temp directory. Are there any logs I can refer to? How can I resolve this issue? I am on NT 4, SP6. Thanks.
Hi Tim,
Have you checked the setup files for the appropriate Net8 driver correctly installed on the server? I'd look at this you not have the correct Oracle networks drivers or a compatibility issue with them. Try reinstalling net8. This is really a Two-Task Common error (TTC) in the net8 stack.
HTH
Steve
On Oracle 8.1.7, I've get an ORA 03113 error when creating the database. Pressing ignore leaves it hanging at 90%. I've tried creating db by copying files from CD and creating with custom parameters but same issue. There have been other threads regarding this error but no responses. I couldn't find any logs with specific error messages in my temp directory. Are there any logs I can refer to? How can I resolve this issue? I am on NT 4, SP6. Thanks. -
ORA-03113 error occurs when trying to insert record using procedure
I have a Database Block whose DML Data Target Type is Procedure. I have given the Insert Procedure Name, Insert Procedure Arguments and Insert Procedure ResultSet Columns. The procedure which is used to insert record into the table, resides in the database. The procedure for insert takes Table of records as argument. I am getting FRM-40735: INSERT-PROCEDURE trigger raised unhandled exception ORA-03113).
This exception does not occur if the Procedure is place under Program Units. But, I want the procedure to be under Database Block. I am working on Oracle Forms 6i.
Please help me out in resolving this.Hello,
I think you should call the support for this kind of error.
Francois -
ORA-03113 error when using Oracle 9i with Mapx 5.0
Hello,
I am using Personal Oracle 9i Release 2 with Mapx5.0 on Delphi.
Accessing the layers using tab files also as server layers..,
and commonly using the method of Mapx Layer.SearchAtPoint
Search is done on region, line as well as on point objects...,
at some point of time it flashes me the error
ORA-03113 end-of-file on communication channel
I am not exactly able to figure out when it gives..,
but i m getting it after some clicks on the layers
The same executable is working fine with Oracle 8.1.7
As anybody faced such a problem and knows the possible cause
Thanks,
BinoyThere is some java bug that is causing some problems if you are using 9.2.0.3. Here is some information:
Workaround for bug 2755842:
Event 10499 can be set (any non-zero level) to revert to the old behaviour.
==================================================
Setting the EVENT 10499
=======================
Check if the database server is using a server parameter (spfile) a parameter (init.ora) file.
From sqlplus, connect as sysdba and execute the command:
show parameters spfile
If the value is NULL or empty, then spfile is NOT enabled and init.ora is used.
1) If SPFILE is used:
SQL> show parameters spfile
NAME TYPE VALUE
spfile string
%ORACLE_HOME%\DATABASE\SPFILE%ORACLE_SID%.ORA
a) Using sqlplus logon as sysdba
b) Execute: alter system set event="10499 trace name context forever,level 4" scope=spfile
sid='*';
c) shutdown
d) startup the database
2) If INIT.ORA is used:
a) In the init<SID>.ora file, add the parameter event="10499 trace name context forever,level 4"
b) Stop and start the database
Hope this is it.
Dan -
ORA-03113 Error when using loadjava
I am trying to create a Java Stored Procedure and when I attempt to load the resource file into Oracle using the loadjava utility, I receive the following message:
ORA-03113: end-of-file on communication channel
I receive this message consistently.
Any ideas?
nullThere would be a trace file generated on the server where the database is installed, try to look in those trace files for additional messages and causes this might be happening, off hand I could also suggest increasing the processes init file parameter
-
SDO_RELATE and ORA-03113 error
Hello,
I am trying to use the SDO_RELATE function and I receive the following error:
ERROR at line 1:
ORA-03113: end-of-file on communication channel
Using the following SQL
SELECT ufi FROM ROADLINE A
WHERE MDSYS.SDO_RELATE(
A.GEOMETRY, mdsys.sdo_geometry( 2003,null,null,
mdsys.sdo_elem_info_array(1,1003,3),
mdsys.sdo_ordinate_array(132,-12,133,-11)),
'mask=ANYINTERACT querytype=WINDOW') = 'TRUE'
A similar search using the SDO_FILTER instead of SDO_RELATE and removing the mask=ANYINTERACT works ok.
Can anyone suggest anything?
Thanks in advance.
GunterHi Gunter,
It looks like there may be other issues. Can you post the version of Oracle you are using, and try debugging just a little bit more to try to narrow the problem down?
This might help to determine which geometry the failure is occuring at:
create table tt as select ufi,geometry
from roadline where rownum < 1;
declare
ufi number ;
window_geom mdsys.sdo_geometry := mdsys.sdo_geometry( 2003,null,null, mdsys.sdo_elem_info_array(1,1003,3),
mdsys.sdo_ordinate_array(132,-12,133,-11));
theGeom mdsys.sdo_geometry ;
TYPE geomcursor is REF CURSOR ;
aCursor geomcursor;
relationship varchar2(30);
begin
open aCursor FOR 'SELECT ufi, geometry from roadline A WHERE SDO_filter( A.GEOMETRY,:WINDOW_GEOM, ''querytype=WINDOW'') = ''TRUE''' using window_geom;
loop
FETCH aCursor INTO ufi, theGeom ;
EXIT WHEN aCursor%NOTFOUND ;
execute immediate 'insert into tt values (:ufi,:theGeom)'
using ufi,theGeom;
execute immediate 'commit';
relationship := sdo_geom.relate(theGeom,'anyinteract',window_geom,0.05);
end loop;
end;
If you see the same error, hopefully it will be determining the relationship between the last geometry in the table tt and the query window. If you can check this, and if this is the case post the geometry that is failing as well as the contents of user_sdo_geom_metadata for roadline that would be great.
Dan -
When network is down, it took 15 minutes to report ORA-03113 error
Now I am using OCCI under redhat to develope application to access oracle database. It works well if the connection with datbase is ok.
But if the network gone down before executing executeQuery of Statement, it took 15 minutes to throw SQLexception and error code is ORA-03113. Is there any solution to decrease the time to wait?
I am using OCCI by the mode of: Environment::THREADED_MUTEXED | Environment::OBJECT)
I only installed 2 rpms in redhat:
oracle-instantclient-basic-10.1.0.3-1
oracle-instantclient-devel-10.1.0.3-1Yes, it is using TCP/IP. It took a long time to change from TCP state ESTABLISHED to CLOSE_WAIT as to tcp/ip.
I don't know whether there is timeout mechanism in the procotol used between oracle client and oracle server.
If there is such timeout mechanism, is it possible to configure it in OCCI? For example, if the network layer
uses select with timeout option, then the timtout is possible to control. But now it seems that it is not clear to set such configuration. Or is there such nonblocking mode in OCCI?
Or we can assume that oracle client library just depend on the tcp/ip protocol implementataion to detect that the tcp is broken. And the fact is in windows platform, the OCCI client will throw exception after about 2 minutes.
Thanks in advance for any suggestion! -
Remote Connection Timeouts - ORA-03113 Errors
I have two Sun Solaris servers running Oracle 10.1.0.4. One is our production server, the other is our test server. Both servers are using the same parameters in the SQLNET.ORA file located on each server. All Oracle Net files are located under /var/opt/oracle. The TNS_ADMIN environmental variable is set to /var/opt/oracle on both servers.
When I connect to the production server via TOAD, OEM, or SQL*Plus from my desktop, I can remain connected as long as I like. If after two hours, I want to run another SQL, I type it in and it runs.
When I connect to the test server via TOAD, OAM, or SQL*Plus from my desktop, I can remain connected for only 30 mins of inactivity. After which, if I issue a new SQL statement, I receive an ORA-03113 end-of-file communication channel error.
I believe I've checked everything on both servers and they appear identical. Both of these server sit behind a firewall. So my feeling is that only the firewall could be causing the idle timeout connections to be dropped on the test server.
Anyone have any ideas on this??
P.S. - I realize that killing idle connections is actually a good thing, but I'm trying to verify the reason for the difference and not whether this is or is not a good networking practice.user583592 wrote:
I have two Sun Solaris servers running Oracle 10.1.0.4. One is our production server, the other is our test server. Both servers are using the same parameters in the SQLNET.ORA file located on each server. All Oracle Net files are located under /var/opt/oracle. The TNS_ADMIN environmental variable is set to /var/opt/oracle on both servers.
When I connect to the production server via TOAD, OEM, or SQL*Plus from my desktop, I can remain connected as long as I like. If after two hours, I want to run another SQL, I type it in and it runs.
When I connect to the test server via TOAD, OAM, or SQL*Plus from my desktop, I can remain connected for only 30 mins of inactivity. After which, if I issue a new SQL statement, I receive an ORA-03113 end-of-file communication channel error.
I believe I've checked everything on both servers and they appear identical. Both of these server sit behind a firewall. So my feeling is that only the firewall could be causing the idle timeout connections to be dropped on the test server.
Anyone have any ideas on this??
P.S. - I realize that killing idle connections is actually a good thing, but I'm trying to verify the reason for the difference and not whether this is or is not a good networking practice.The firewall could very well be the culprit. I had that problem at a previous employer. Why not check with your network guys and find out? -
Hi,
I am trying to upgrade the database from 11.1.0.6 to 11.1.0.7 on OEL operating system.
After applying the patch "6890831" when trying to start the database using "Startup Upgrade" command I am getting the below error.
ORA-03113: end-of-file on communication channel
Process ID: 20826
Session ID: 170 Serial number: 3
I am getting the same error when trying to create the new database using "DBCA".
Please provide me the probable outcomes.
Thanks
AmithBelow entries found in alert_orcl.log file
MMNL started with pid=15, OS id=20571
starting up 1 shared server(s) ...
ORACLE_BASE from environment = /u01/app/oracle
Thu Dec 03 20:11:11 2009
ALTER DATABASE MOUNT
Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_mman_20557.trc:
ORA-27103: internal error
Linux-x86_64 Error: 11: Resource temporarily unavailable
Additional information: -1
Additional information: 1
MMAN (ospid: 20557): terminating the instance due to error 27103
Instance terminated by MMAN, pid = 20557
Below entries found in the Trace file generated
error 27103 detected in background process
ORA-27103: internal error
Linux-x86_64 Error: 11: Resource temporarily unavailable
Additional information: -1
Additional information: 1
*** 2009-12-03 20:11:14.727
MMAN (ospid: 20557): terminating the instance due to error 27103
Maybe you are looking for
-
Email of Purchase Order coming with Standard Form
Hi, I have configured NACE. I am able to generate the PO through email. But, the problem is, system always picking of standard form instead of "customized form", (though I have configured customized form for emailing). Whereas, in case of printing, t
-
How to check for different crop aspect ratios
The problem I'm having is that I have hundreds of images that I need to send to a photo print lab. Before sending off my images I have to make sure they all will fit correctly for 8x10 prints (5:4 aspect ratio) and other ratios but I need to keep the
-
Hello Every body Based on sales order a planned production order has to be made which is not getting generated. Please let me know where exactly the problem would be. As far as Item category is concerned there is no problem but has it to do some thin
-
HT5361 What is wrong with the new Mac mail in Yosemite?i
Why does'nt Mail work properly in Yosemite?
-
How to enable subtitle in iTunes?
iTunes 10.5.3(Lion 10.7.2) 64bit, to play .m4v files which I used HandBrake to convert from my own DVD. I can get my selection for audio and subtitle works fine in VLC and XBMC. But I failed in iTunes. BTW, I have already enabled iTunes->Preferences-