Get ORA-29545 when loadjava
I have a very simple java class as below:
public class Hello
{ public static String world ()
{ return "Hello world.";
$ javac Hello.java
runs successfully
However, when I tried to run
$ loadjava -user userID/password -oci8 -resolve Hello.class
I got this:
errors : class Hello
ORA-29545: badly formed class:
The following operations failed
class Hello: resolution
exiting : Failures occurred during processing
Any ideas?
Thanks!
I have a very simple java class as below:
public class Hello
{ public static String world ()
{ return "Hello world.";
$ javac Hello.java
runs successfully
However, when I tried to run
$ loadjava -user userID/password -oci8 -resolve Hello.class
I got this:
errors : class Hello
ORA-29545: badly formed class:
The following operations failed
class Hello: resolution
exiting : Failures occurred during processing
Any ideas?
Thanks!
Similar Messages
-
Getting ora-0600 when running PROFLOAD.sql
Hi,
I was getting ORA-0600 when running PROFLOAD.sql script for DBMS_PROFILER (from SYS account). I am running Oracle 9i personal edition on win98. Did anybody had the same problem??Here is the full dump..
QL> @profload
Package created.
Grant succeeded.
Synonym created.
create or replace library sys.dbms_profiler_lib wrapped
ERROR at line 1:
ORA-00600: internal error code, arguments: [16201], [], [], [], [], [], [], []
create or replace
ERROR at line 1:
ORA-00600: internal error code, arguments: [16201], [], [], [], [], [], [], []
Testing for correct installation
PACKAGE BODY sys.DBMS_PROFILER - missing or invalid
PL/SQL procedure successfully completed. -
Getting ORA-1013 when attempting to expand tables within connections
Getting ORA-1013 when attempting to expand tables within connections on new install of Oracle SQL developer 3.1.06.
Any ideas?Hi Steve,
The ORA-01013 usually means a timeout or, more typically on this forum, an intentional user cancellation. Searching the forum, I do not see any prior references to your exact situation. Some recommendations:
1. SQL Developer 3.1.0.6 was an early adopter release. Upgrade to the latest and greatest: 3.2.10.09.57
2. Review this: Re: [SQL Developer 3.0.04] Cannot Drill Down
3. If it is a true timeout, your privileges might make a difference. If you have access to the DBA views, SQL Developer does look-ups using those and performance is better.
So for [3], having the SELECT_CATALOG_ROLE privilege may help. I even read of one case in this forum where the poster finally discovered his database's recycle bin had an issue and the DBA needed to do some clean-up to correct the performance issue.
Hope this helps,
Gary
SQL Developer Team -
Getting ORA-01403:, when it shouldn't
Greetings, i apologize beforehand for my spelling, name(takes 6 hours to change) and the headache you migth get, however,
i bring you the following code, and test results:
------Procedure wich throws the error-------
create or replace
procedure P_COLEGAS(x in number) as
ctipo varchar2(20);
asd varchar2(20);
cursor curnombre is
select nombre from unidad,elemento where (elemento.id_elem=unidad.id_elem and unidad.tipo=ctipo and elemento.ciudad=asd);
begin
select unidad.tipo, elemento.ciudad into ctipo,asd from unidad,elemento where unidad.id_elem=x and elemento.id_elem=x;
for blah in curnombre loop
DBMS_OUTPUT.PUT_LINE('nombre unidad: '||blah.nombre||' ');
end loop;
end;
-what i get when executing the procedure-
Error que empieza en la línea 1 del comando:
exec p_colegas(19)
Informe de error:
ORA-01403: no data found
ORA-06512: at "BD00.P_COLEGAS", line 9
ORA-06512: at line 1
01403. 00000 - "no data found"
*Cause:
*Action:-----------------------------------------------------------
-----------------the real problem--------------------
if in that procedure i were to write
(1)
select unidad.tipo into ctipo from unidad where unidad.id_elem=x;(2)
select elemento.ciudad into asd from elemento where elemento.id_elem=x;instead the single query i wrote, we get the following:
(1) works wonderfull, only gets the error when there are no matches for x.
(2) throws the error i showed before.
however when i do the following query in the worksheet and execute it:
(3)
select elemento.ciudad from elemento where elemento.id_elem=x;i get what i expected to get 1 row 1 column.(yes it has data)
note: in (3) the only difference is that i remove the into clause, and x is the same number i used when i execute the procedure.
--------------------the question------------------------
why in the procedure, the query (2) fail to fetch the data, the same data wich the query(3) does not fail to fetch?
i'm getting ORA-01403, when i shouldn't?
is there a work around to this problem?
--------------------what i try------------------------------
nested the query with it's own error handle exception, getting the same results, just catches the error with a different handling.
tool used: sql developer
-Example data--
tested the procedure with the following example data in a brand new workspace getting the same error.
-- DDL for Table ELEMENTO
CREATE TABLE "ELEMENTO"
( "ID_ELEM" NUMBER,
"CIUDAD" VARCHAR2(20),
"TIPO" CHAR(1),
"X" NUMBER,
"Y" NUMBER,
"FECHAHORA_CREACION" TIMESTAMP (6)
-- DDL for Table UNIDAD
CREATE TABLE "UNIDAD"
( "ID_ELEM" NUMBER,
"PORCENTAJE_SALUD" NUMBER,
"NOMBRE" VARCHAR2(20),
"TIPO" VARCHAR2(20)
REM INSERTING into ELEMENTO
SET DEFINE OFF;
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (12,'Infernalia','U',10,10,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (15,'Infernalia','U',10,7,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (19,'Infernalia','U',15,9,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (23,'Infernalia','U',16,8,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (27,'Infernalia','C',15,10,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (52,'Humania','U',26,10,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (58,'Humania','U',24,9,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (62,'Humania','U',27,11,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (64,'Humania','C',25,8,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (78,'GruntVille','U',47,32,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (84,'GruntVille','U',42,28,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (89,'GruntVille','U',43,29,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (91,'GruntVille','C',44,37,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (29,'Infernalia','C',16,7,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (90,'GruntVille','U',49,36,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
REM INSERTING into UNIDAD
SET DEFINE OFF;
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (12,100,'Grang','Soldado');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (15,100,'Krout','Médico');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (19,100,'Warf','Obrero');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (23,100,'Puaj','Obrero');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (52,100,'Marcelus','Soldado');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (58,100,'Claudius','Soldado');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (62,100,'Arturius','Obrero');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (78,100,'Klaknot','Médico');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (84,100,'Staisht','Médico');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (89,100,'Bjorkson','Soldado');
Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (90,100,'Sknot','Médico');
-- Constraints for Table ELEMENTO
ALTER TABLE "ELEMENTO" ADD CONSTRAINT "ELEMENTO_CHK1_TIPO" CHECK (TIPO IN ('U', 'C')) ENABLE;
ALTER TABLE "ELEMENTO" ADD CONSTRAINT "ELEMENTO_PK" PRIMARY KEY ("ID_ELEM") ENABLE;
ALTER TABLE "ELEMENTO" MODIFY ("ID_ELEM" NOT NULL ENABLE);
ALTER TABLE "ELEMENTO" MODIFY ("CIUDAD" NOT NULL ENABLE);
ALTER TABLE "ELEMENTO" MODIFY ("TIPO" NOT NULL ENABLE);
ALTER TABLE "ELEMENTO" MODIFY ("X" NOT NULL ENABLE);
ALTER TABLE "ELEMENTO" MODIFY ("Y" NOT NULL ENABLE);
ALTER TABLE "ELEMENTO" MODIFY ("FECHAHORA_CREACION" NOT NULL ENABLE);
-- Constraints for Table UNIDAD
ALTER TABLE "UNIDAD" MODIFY ("ID_ELEM" NOT NULL ENABLE);
ALTER TABLE "UNIDAD" MODIFY ("PORCENTAJE_SALUD" NOT NULL ENABLE);
ALTER TABLE "UNIDAD" MODIFY ("NOMBRE" NOT NULL ENABLE);
ALTER TABLE "UNIDAD" MODIFY ("TIPO" NOT NULL ENABLE);
ALTER TABLE "UNIDAD" ADD CONSTRAINT "UNIDAD_PK" PRIMARY KEY ("ID_ELEM") ENABLE;
-- Ref Constraints for Table ELEMENTO
-- Ref Constraints for Table UNIDAD
ALTER TABLE "UNIDAD" ADD CONSTRAINT "UNIDAD_ELEMENTO_FK1" FOREIGN KEY ("ID_ELEM")
REFERENCES "ELEMENTO" ("ID_ELEM") ENABLE;
/Edited by: 975362 on 06-12-2012 04:47 AM
Edited by: BluShadow on 06-Dec-2012 12:51
added {noformat}{noformat} tags for readability of code/data. Please read {message:id=9360002} and learn to do this yourself in future.
Edited by: 975362 on 06-12-2012 05:44 AM
added example data.Oops, I mi9ssed table ELEMENTO has column X. When you use:
where unidad.id_elem=x and elemento.id_elem=x;column names take precedence over PL/SQL variables wnd X is resolved as table ELEMENTO column X. not as PL/SQL procedure parameter X. Change PL/SQL procedure parameter name:
SQL> create or replace
2 procedure P_COLEGAS(x in number) as
3 ctipo varchar2(20);
4 asd varchar2(20);
5
6 cursor curnombre is
7 select nombre from unidad,elemento where (elemento.id_elem=unidad.id_elem and unidad.tipo=ctipo
and elemento.ciudad=asd);
8
9 begin
10 select unidad.tipo, elemento.ciudad into ctipo,asd from unidad,elemento where unidad.id_elem=x
and elemento.id_elem=x;
11 for blah in curnombre loop
12 DBMS_OUTPUT.PUT_LINE('nombre unidad: '||blah.nombre||' ');
13 end loop;
14 end;
15 /
Procedure created.
SQL> exec p_colegas(19)
BEGIN p_colegas(19); END;
ERROR at line 1:
ORA-01403: no data found
ORA-06512: at "SCOTT.P_COLEGAS", line 9
ORA-06512: at line 1
SQL> create or replace
2 procedure P_COLEGAS(p_x in number) as
3 ctipo varchar2(20);
4 asd varchar2(20);
5
6 cursor curnombre is
7 select nombre from unidad,elemento where (elemento.id_elem=unidad.id_elem and unidad.tipo=ctipo
and elemento.ciudad=asd);
8
9 begin
10 select unidad.tipo, elemento.ciudad into ctipo,asd from unidad,elemento where unidad.id_elem=p_
x and elemento.id_elem=p_x;
11 for blah in curnombre loop
12 DBMS_OUTPUT.PUT_LINE('nombre unidad: '||blah.nombre||' ');
13 end loop;
14 end;
15 /
Procedure created.
SQL> exec p_colegas(19)
PL/SQL procedure successfully completed.
SQL> SY. -
In SQLJ Developer's Guide and Reference ppt. 11-12,
Step 1, create a .jar, naming niter-server,jar, complete
Step 2, load .jar file into the server,
loadjava -oci8 -force -user user1/test@oracle niter-server.jar
then the error message is:
Error while creating class NamedIterDemo_SJProfile0
ORA-29545: badly formed class: User has attempted to load a class (NamedIterDemo_S
JProfile0) into a restricted package. Permission can be granted using dbms_java
.grant_permission(<user>, LoadClassInPackage...
(and 3 more error messages, the same error)
what's wrong....Solution in:
Topic,
ORA 29547
Name,
David Pickering ([email protected])
Date,
October 26, 2000
Forum/Archive,
Oracle Help for Java -
Getting ORA-00600 when using table functions
Hello,
I am trying to use simple table function:
create or replace type StatCall AS OBJECT (
dial_number varchar2(255),
start_date date,
duration number(20)
create or replace type StatCallSet AS TABLE OF StatCall;
create or replace package ref IS
type refcall_t IS REF CURSOR RETURN calls%ROWTYPE;
end ref;
create or replace function GetStats(p ref.refcall_t) return StatCallSet pipelined is
out_rec StatCall;
in_rec p%ROWTYPE;
BEGIN
LOOP
FETCH p INTO in_rec;
EXIT WHEN p%NOTFOUND;
out_rec.dial_number := in_rec.dial_number;
out_rec.start_date := in_rec.start_date;
out_rec.duration := in_rec.duration;
PIPE ROW(out_rec);
END LOOP;
CLOSE p;
RETURN;
END;
select * from TABLE(GetStats(CURSOR(select * from call)));
And I get:
ORA-00600: internal error code, arguments: [17285], [0xFFFFFFFF7C4900A8], [1], [0x3943BA5E0], [], [], [], []
Oracle 9.2.0.2
Are there any ideas about how to fix this?What version of the database?
Which flavor of Disco (Plus, Desktop, Viewer)?
Standars EUL or Apps EUL?
Can you post the code for the calculation?
ORA-600 errors, as you mentioned, are internal, and may require opening a dialog with Oracle support. Then again, it could be something else in the calculation that is causing the sky to fall. -
Why do i get ORA-03113 when doing a spatial query against union all view?
Hi, i created the following view
CREATE OR REPLACE FORCE VIEW cola_markets_v
AS
(SELECT mkt_id, NAME, shape shape_a, NULL shape_b, NULL shape_c,
NULL shape_d
FROM COLA_MARKETS
WHERE NAME = 'cola_a')
UNION ALL
(SELECT mkt_id, NAME, NULL shape_a, shape shape_b, NULL shape_c,
NULL shape_d
FROM COLA_MARKETS
WHERE NAME = 'cola_b')
UNION ALL
(SELECT mkt_id, NAME, NULL shape_a, NULL shape_b, shape shape_c,
NULL shape_d
FROM COLA_MARKETS
WHERE NAME = 'cola_c')
UNION ALL
(SELECT mkt_id, NAME, NULL shape_a, NULL shape_b, NULL shape_c,
shape shape_d
FROM COLA_MARKETS
WHERE NAME = 'cola_d');added the necessary entries in USER_SDO_GEOM_METADATA and created a spatial index on COLA_MARKETS (SHAPE). However, when i do a spatial query against this view, i get ORA-03113. A spatial query against the base table works fine. Any ideas why this happens? (This is Oracle 10.2.0.3.0)
Thanks in advance, Markus
PS: This is my spatial query
SELECT *
FROM cola_markets_v t
WHERE sdo_filter (t.shape_a,
SDO_GEOMETRY (2003,
NULL,
NULL,
sdo_elem_info_array (1, 1003, 3),
sdo_ordinate_array (1, 1, 2, 2)
'querytype=window'
) = 'TRUE';Thank you for your reply. I have tried it with 11.1.0.6.0 today and it works. This might be an issue with 10.2.0.3.0.
-
I get Ora-00600 when I try to fetch large data via Xml
Hi all
I user Oracle8i ver 8.1.6, when I execute the following
procedure:
PROCEDURE TTG_EXEC_SQL (SELECT_STATMENT in VarChar2, Result Out
Clob, err_no Out Number) IS
-- This Procedure excutes SELECT command and return the result
data throw Xml CLOB parameter.
QueryCtx DBMS_XMLquery.CtxType;
ErrorNum NUMBER;
ErrorMsg VARCHAR2(200);
RES1 CLOB;
Begin
QueryCtx := DBMS_XMLQuery.NewContext( Select_Statment );
DBMS_XMLQuery.setRaiseException(QueryCtx, true);
DBMS_XMLQuery.setRaiseNoRowsException(QueryCtx, true);
DBMS_XMLQuery.propagateOriginalException(QueryCtx,true);
ResULT := DBMS_XMLQuery.getXML(QueryCtx);
DBMS_XMLQuery.CloseContext(QueryCtx);
Exception
when others then
DBMS_XMLQuery.getExceptionContent (QueryCtx,ErrorNum,
ErrorMsg);
ERR_NO := NVL(ErrorNum,0);
END;
I get Ora-00600 error when the retrived data is more than 800
records.
can any one help me Pls ASAP.
THNX
HusamCan you get the query result with SQL command alone?
-
Getting ORA-22805 when trying to load XML file using SQLLDR
I'm trying to learn the basics of XML since we'll be getting XML files in the near future. I'm using one of the sample schemas that comes with XMLSPY. I loaded this schema into an 11g Oracle DB using XMLSPY:
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.0 NT beta 1 build Jun 13 2001 (http://www.xmlspy.com) by Alexander Falk (Altova, Inc.) -->
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ipo="http://www.altova.com/IPO" targetNamespace="http://www.altova.com/IPO" elementFormDefault="unqualified" attributeFormDefault="unqualified">
<annotation>
<documentation>
International Purchase order schema for Example.com
Copyright 2000 Example.com. All rights reserved.
</documentation>
</annotation>
<!-- include address constructs -->
<include schemaLocation="address.xsd"/>
<element name="purchaseOrder" type="ipo:PurchaseOrderType"/>
<element name="comment" type="string"/>
<complexType name="PurchaseOrderType">
<sequence>
<element name="shipTo" type="ipo:Address"/>
<element name="billTo" type="ipo:Address"/>
<element ref="ipo:comment" minOccurs="0"/>
<element name="Items" type="ipo:Items"/>
</sequence>
<attribute name="orderDate" type="date"/>
</complexType>
<complexType name="Items">
<sequence>
<element name="item" minOccurs="0" maxOccurs="unbounded">
<complexType>
<sequence>
<element name="productName" type="string"/>
<element name="quantity">
<simpleType>
<restriction base="positiveInteger">
<maxExclusive value="100"/>
</restriction>
</simpleType>
</element>
<element name="price" type="decimal"/>
<element ref="ipo:comment" minOccurs="0"/>
<element name="shipDate" type="date" minOccurs="0"/>
</sequence>
<attribute name="partNum" type="ipo:Sku"/>
</complexType>
</element>
</sequence>
</complexType>
<simpleType name="Sku">
<restriction base="string">
<pattern value="\d{3}-[A-Z]{2}"/>
</restriction>
</simpleType>
</schema>
Then I created an XMLType table:
CREATE TABLE purchaseOrder OF XMLType
XMLSCHEMA "ipo.xsd" ELEMENT "purchaseOrder"
I'm trying to load the sample XML file ipo.xml into purchaseOrder using SQLLDR. This is ipo.xml:
<?xml version="1.0"?>
<!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Mr. Nobody (Altova GmbH) -->
<ipo:purchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ipo="http://www.altova.com/IPO" orderDate="1999-12-01" xsi:schemaLocation="http://www.altova.com/IPO
ipo.xsd">
<shipTo export-code="1" xsi:type="ipo:EU-Address">
<ipo:name>Helen Zoe</ipo:name>
<ipo:street>47 Eden Street</ipo:street>
<ipo:city>Cambridge</ipo:city>
<ipo:postcode>126</ipo:postcode>
</shipTo>
<billTo xsi:type="ipo:US-Address">
<ipo:name>Robert Smith</ipo:name>
<ipo:street>8 Oak Avenue</ipo:street>
<ipo:city>Old Town</ipo:city>
<ipo:state>AK</ipo:state>
<ipo:zip>95819</ipo:zip>
</billTo>
<Items>
<item partNum="833-AA">
<productName>Lapis necklace</productName>
<quantity>2</quantity>
<price>99.95</price>
<ipo:comment>Need this for the holidays!</ipo:comment>
<shipDate>1999-12-05</shipDate>
</item>
<item partNum="748-OT">
<productName>Diamond heart</productName>
<quantity>1</quantity>
<price>248.90</price>
<ipo:comment>Valentine's day packaging.</ipo:comment>
<shipDate>2000-02-14</shipDate>
</item>
<item partNum="783-KL">
<productName>Uncut diamond</productName>
<quantity>7</quantity>
<price>79.90</price>
<shipDate>2000-01-07</shipDate>
</item>
<item partNum="238-KK">
<productName>Amber ring</productName>
<quantity>3</quantity>
<price>89.90</price>
<ipo:comment>With no inclusions, please.</ipo:comment>
<shipDate>2000-01-07</shipDate>
</item>
<item partNum="229-OB">
<productName>Pearl necklace</productName>
<quantity>1</quantity>
<price>4879.00</price>
<shipDate>1999-12-05</shipDate>
</item>
<item partNum="128-UL">
<productName>Jade earring</productName>
<quantity>5</quantity>
<price>179.90</price>
<shipDate>2000-02-14</shipDate>
</item>
</Items>
</ipo:purchaseOrder>
This is what's in the control file:
LOAD DATA
INFILE *
INTO TABLE purchaseOrder TRUNCATE
xmltype(xmldata)
FIELDS
xmldata LOBFILE (CONSTANT ipo.xml)
BEGINDATA
0
The load fails with:
Record 1: Rejected - Error on table PURCHASEORDER.
ORA-22805: cannot insert NULL object into object tables or nested tables
Another question I have is, how do we know how many records (0's) to specify in the control file? In this case there's only one but when real files are used we won't know how many are in the file.
Thanks for your help!The concept was "Don't use SQL*Loader to parse XML".
You can use SQL*Loader to load an entire XML document into the DB. That is fine. You can do the same via BFILENAME to read in files from disk as well.
If you want to parse XML, do that from within Oracle via PL/SQL and/or SQL. The solution depends upon your version of Oracle and what is good enough for you in terms of performance.
So the basics are
a) How am I getting the information?
b) How am I getting in into Oracle?
c) How do I want to parse it?
As I see the schema, it only allows for one ipo:purchaseOrder node in the document, since that is the root node. If you have multiple in the incoming file, you no longer have valid XML, both per the schema and because you have no single root node. You have an XML fragment, which must be treated different.
Just trying to understand the question since I now realize it does not agree with what the schema in your initial example shows. -
Getting ORA-06508 when running 6i form in 10g
hi,
I am upgrading my forms from 6i to 10g. I have created the following directory structure on my system.
c:\old_system\<module_name>\<forms60> --- All FMBs and FMXs
c:\old_system\<module_name>\<lib> --- All libraries
c:\old_system\<module_name>\<reports60> ---All Reports
c:\10g_upgrade\<module_name>\<forms60> --- All FMBs and FMXs
c:\10g_upgrade\<module_name>\<lib> --- All libraries
c:\10g_upgrade\<module_name>\<reports60> ---All Reports
i have edited the registery entry for
for forms6i
Forms60_PATH --- c:\old_system\<module_name>\<lib>
for forms10g
Forms_PATH -- c:\10g_upgrade\<module_name>\<lib>
I have two template forms:
1. TMXSTAND.FMB
2. PPSSTAND.FMB inherits TMXSTAND.FMB
when i run the FPPS003.FMB then it gives this error.
ON-ERROR raised an unhandled exception ORA-06508.
Please suggest where is the problem.
Thanks.
nullI have given the proper path of the library folder in Forms_Path. Still I am getting this error...
Is this error because of having both the versions of forms (6i and 10g)?
Message was edited by:
gammit -
Getting ORA-01031 when attempting to Create Database
I am attempting to issue a CREATE DATABASE statement via JDBC but I am getting a "ORA-01031: insufficient privileges" error. I am logged in as an administrator and I have no trouble creating tables. I am also receiving the same error when attempting this from SQLPlus. I'm stumped.
Thanks,
PinoPino,
I haven't verified this, but only the SYS user can create a DATABASE in Oracle, and you also need to use a special login (when going via SQL*Plus) which JDBC cannot handle. Hence your failures both via JDBC and SQL*Plus.
By the way, if you are new to Oracle, but have experience in another database, then the Oracle idea of a DATABASE is probably different than what you're used to. That's probably why you're stumped. If you haven't already done so, I suggest reading the Oracle Database Concepts volume of the Oracle documentation, which is available from:
http://tahiti.oracle.com
Good Luck,
Avi. -
Encount Ora-29534 when loadjava xmlparserv2.jar
I encounted ora-29534 error message when I tried to load xml pl/sql parser using the following command:
% loadjava -user scott/tiger -r -v xmlparserv2.jar
Environment: Oracle8.1.5
windows nt sp4
jdk1.1.8
What causes this problem and how to resolve it?
Thanks!
AllenGot the problem sorted out. Apparently it was because I had Oracle 8.1.5 which used Java 1.1.7, whereas the version of xmlparserv2.jar I had was compiled using a more recent version of Java.
Migrated to Oracle 8.1.7, and that solved the problem. -
Get ORA-00600 when using ExecuteXmlQuery and NCLOB column
I am using ODP.NET, I got the following exception:
at Oracle.DataAccess.Client.OracleCommand.XmlHandleException(OracleException
e)
at Oracle.DataAccess.Client.OracleCommand.XmlHandleException(OracleException
e)
at Oracle.DataAccess.Client.OracleCommand.ExecuteXmlQuery(Boolean wantResult)
at Oracle.DataAccess.Client.OracleCommand.ExecuteXmlQuery(Boolean wantResult)
at Oracle.DataAccess.Client.OracleCommand.ExecuteXmlReader()
at Oracle.DataAccess.Client.OracleCommand.ExecuteXmlReader()
at Wikipedia.WikipediaDumpXml.Run() in c:\documents and settings\atali\my doc
uments\visual studio projects\datacentersolution\wikipedia\wikipediadumpxml.cs:l
ine 98
ORA-00600: internal error code, arguments: [kole_t2u], [34], [], [], [], [], [],
This is my code for retrieving data from database and save it into xml file.
The "TEXT" column in my select statement is NCLOB. When I leave TEXT column, my query works fine but with it I got exception.
please, I need help for resolving this issue.
// Open the connection
oraConn.Open();
OracleCommand selectCmd= new OracleCommand( String.Empty, oraConn);
selectCmd.XmlQueryProperties.RootTag = "Newspaper";
selectCmd.XmlQueryProperties.RowTag = "Article";
selectCmd.CommandText= "SELECT ID, TITLE, LANG, TEXT FROM NEWSPAPER_DATA WHERE LANG='en' AND ID=1";
selectCmd.XmlCommandType=OracleXmlCommandType.Query;
// execute xml request
XmlReader newsReader= selectCmd.ExecuteXmlReader();
// Read
while(newsReader.Read())
string xmlfilename = row["TITLE"].ToString();
using(TextWriter xmlWriter = new StreamWriter( this.DumpDirectory + xmlfilename + ".xml"))
xmlWriter.Write( newsReader.ReadOuterXml());
// Close the newsReader
newsReader.Close();
oraConn.Close();
oraConn.Dispose();
Atali DAOUDMark is correct, you will need to contact support. ORA-600 errors usually require you to patch the database or at least use a workaround to avoid the error.
-
Why my subqueries all get ORA-00933 when I execute them?
Everytime I try to run a subquery, I always get the following error:
[error]
ORA-00933: SQL command not properly ended
[error]
Here are two examples. The 1st is a large one, and the 2nd one is more paired down, because I'm trying to figure out where the error is, but Golden always points to where the subquery begins.
1st query
select p1.associate_id, p1.application_id, p1.entity_id, p1.profile_id, p1.language, p1.neutrals, p1.created_date, p1.sf_completed_date,
p1.completed_time, p1.parent_respondent, p1.parent_aid, p1.attempt, p1.parent_attempt, p1.reported_top1, p1.reported_top2, p1.reported_top3,
p1.reported_top4, p1.reported_top5, p1.top1, p1.top2, p1.top3, p1.top4, p1.top5
from sf.profiles p1
where p1.sf_completed_date < to_date('15-June-2006 00:00:00', 'DD-MM-YYYY HH24:MI:SS')
and p1.parent_respondent is null
and p1.parent_aid is null
and p1.neutrals < 155 in (
select nvl(max(p2.attempt), 0)
from sf.profiles p2
where p2.associate_id = p1.associate_id);2nd query
select p1.language, pl.neutrals, p1.top1, p1.top2, p1.top3, p1.top4, p1.top5
from sf.profiles
where p1.parent_respondent_id is null (
select nvl(max(p2.attempt), 0)
from sf.profiles p2
where p2.associate_id = p1.associate_id);I'm not sure what I'm doing wrong, is there anything that I can read up on to get better at these?
I found this via Google
http://www.lc.leidenuniv.nl/awcourse/oracle/server.920/a96540/queries.htm#2057934
thanksIt is because neither of your queries are syntactically valid. You cannot combine operators in the way you are trying to do it.
I'm not sure aht you are trying to accomplish, but the queries need to be more like:
select p1.associate_id, p1.application_id, p1.entity_id, p1.profile_id,
p1.language, p1.neutrals, p1.created_date, p1.sf_completed_date,
p1.completed_time, p1.parent_respondent, p1.parent_aid, p1.attempt,
p1.parent_attempt, p1.reported_top1, p1.reported_top2, p1.reported_top3,
p1.reported_top4, p1.reported_top5, p1.top1, p1.top2, p1.top3, p1.top4,
p1.top5
from sf.profiles p1
where p1.sf_completed_date < to_date('15-June-2006 00:00:00', 'DD-MM-YYYY HH24:MI:SS') and
p1.parent_respondent is null and
p1.parent_aid is null and
p1.neutrals < 155 and
p1.neutrals in(or possibly =) (select nvl(max(p2.attempt), 0)
from sf.profiles p2
where p2.associate_id = p1.associate_id);
select p1.language, pl.neutrals, p1.top1, p1.top2, p1.top3, p1.top4, p1.top5
from sf.profiles
where p1.parent_respondent_id is null and
p1.something IN(or possibly =)(select nvl(max(p2.attempt), 0)
from sf.profiles p2
where p2.associate_id = p1.associate_id);HTH
John -
Get ORA-32132 when dml on multiple rows using iterations
I got the error ORA-32132: maximum iterations cannot be changed when I run following code. According to the error description, it's caused by The setMaxIterations is called after a setXXX method has been called. Actually in my code, the function setMaxIterations( ) is called before setXXXX( ) functions. From the result, you can also see that it stopped at setString( ). The setInt( ) works. Please help.
#include "stdio.h"
#include <occi.h>
#include <string>
using namespace oracle::occi;
using namespace std;
const int ArraySize=2;
int main()
try
printf("Init the Env&Con....\n");
Environment *env = Environment::createEnvironment(Environment::OBJECT);
Connection *conn = env->createConnection("scott","tiger","TEST");
Statement *stmt = conn->createStatement("INSERT INTO emp (id, ename) VALUES (:1,:2)");
printf("Init ok.\n");
// specify max iterations
stmt->setMaxIterations(ArraySize);
printf("set max iteration is OK\n");
for(int i=0; i<ArraySize; i++)
printf("set int\n");
stmt->setInt(1, 130 + i);
printf("set string\n");
stmt->setString(2, "Test");
stmt->addIteration();
stmt->executeUpdate();
conn->commit();
conn->terminateStatement(stmt);
env->terminateConnection(conn);
Environment::terminateEnvironment(env);
catch(SQLException &e)
printf(e.what());
return 0;
Results:
Init the Env&Con....
Init ok.
set max iteration is OK
set int
set string
ORA-32132: maximum iterations cannot be changedUse the below function for strings before setString in your code.
mStmt->setMaxParamSize(2,4)
Maybe you are looking for
-
Error while posting Parked FI invoice
Hi, While posting the Parked document (after approval) through WF, we are receiving below error message : Parked document could not be posted F5 E 010 &(currency) Your expert advice would be appreciated to solve this. regards, Kiran
-
So since Mt lion 10.8.5 came out nothing has been going right for me. Lately Safari has been crashing, I have attached to following report from the latest crash. Not only that but occasionally the whole Macbook pro will restart just to tell me that t
-
I purchased Adobe Acrobat Pro XI via email download code via the Dell Store yesterday. The product key given doesn't work/fit into the boxes on any of the "Register" pages on the Adobe website. Therefore, although I paid for the product and it is dow
-
Problems with sun's jdbc:odbc bridge under Tomcat 4.0
I keep getting this error when I try to access through jdbc:odbc sun's drive: java.sql.Exception: [Microsoft][Administrador de controladores ODBC] No se encuentra el nomb re del origen de datos y no se especific� ning�n controlador predeterminado at
-
my ath.exe has stopped working ????