Mapping spatial object type
I need to map a table with a spatial column of type MDSYS.SDO_GEOMETRY using TopLink. This type is defined as:
CREATE TYPE SDO_GEOMETRY AS OBJECT (
SDO_GTYPE NUMBER,
SDO_SRID NUMBER,
SDO_POINT SDO_POINT_TYPE,
SDO_ELEM_INFO MDSYS.SDO_ELEM_INFO_ARRAY,
SDO_ORDINATES MDSYS.SDO_ORDINATE_ARRAY
Has anyone done this before, or can someone tell me how to do this? Do I need to use ConversionManager or Structure Mapping or something else?
Can I conclude from the lack of replies that this is rather complicated?
Similar Messages
-
Oracle Spatial Object types in Designer 6
Hi all,
I'm trying to design a database that uses the new Oracle Spatial Object types (MDSYS.SDO_GEOMETRY) etc. I have been able to capture the object types from Oracle8i but when i try to save the design in the repository it fails. I am assuming that the version of Oracle Designer I am using does not support MDSYS.SDO_GEOMETRY. Is this correct and if so what version of Designer should I be using?
MartinHi Saso,
I'm sorry I don't have any help for you but maybe yo can answer a question for me relating to sdo_geometry. I'm trying to capture a database schema which contains tables with sdo_geometry columns & this fails because I don't have that object defined.
So how do I access the Oracle Object Types branch to define MDSYS.SDO_GEOMETRY? Is it in the object navigator or designer?
Thanks,
Jim Greetham -
Remove spaces when generating xml from data mapped on object types
My problem is kind of complex so I'll try to reduce it to a more manageable example:
drop type msm force;
drop type list_msm force;
create type msm as object(
nume char(20)
create type list_msm as table of msm;
select xmlserialize (document xmlelement("values",
cast(multiset(
select trim(p.den) from produse p) as list_msm
) as clob indent size=2
) as "xml"
from dual;
This is where it gets tricky.
p.den is a field that contains spaces. I use trim(p.den) to remove them but because I cast this to list_msm, the values are then again mapped into msm objects, which have the "nume" field of char(20). So.. when generating the XML, the output still contains spaces.
This is an excerpt of the result:
<values>
<LIST_MSM>
<MSM>
<NUME>Prod.1 </NUME>
</MSM>
<MSM>
<NUME>Prod.2 </NUME>
</MSM>
<MSM>
<NUME>Prod.3 </NUME>
</MSM>
<Later.. I see that the forum removes the extra spaces but I ensure you that after eg. "Prod.1" there are a lot of spaces, as the original field from the "produse" table is defined as char(20))
So.. Is there a way to generate the XML without those extra spaces? Basically, I want to be able to trim them before I send them to the xml serializer, but the problem is that i have no control over the whole casting thing ( oracle magic happening that automatically creates all the xmlelements needed, etc.)
Somehow, when the xml engine steps over the collection and accesses the fields, somehow, i need a trim there. Maybe some kind of accesor for the fields in the type can be declared so that the xml engine uses it instead of the field itself directly. The accesor would then return trim(field). Sorry for this mumbo jumbo gibberish but I want to be as clear as possible.
Edited by: user9229988 on May 10, 2012 9:24 AM
Edited by: user9229988 on May 10, 2012 9:25 AM
Edited by: user9229988 on May 10, 2012 9:38 AMHi.
Check this:
drop type msm force;
drop type list_msm force;
create type msm as object(
nume VARchar2(20) --VARCHAR2 NOT CHAR
create type list_msm as table of msm;
create table produse
den char(20)
INSERT INTO produse VALUES('Prod.1');
INSERT INTO produse VALUES('Prod.2');
INSERT INTO produse VALUES('Prod.3');
COMMIT;
select xmlserialize (document xmlelement("values",
cast(multiset(
select trim(p.den) from produse p) as list_msm
) as clob indent size=2
) as "xml"
from dual;
<values>
<LIST_MSM>
<MSM>
<NUME>Prod.1</NUME>
</MSM>
<MSM>
<NUME>Prod.2</NUME>
</MSM>
<MSM>
<NUME>Prod.3</NUME>
</MSM>
</LIST_MSM>
</values>Hope this helps. -
Help! JDBC & Oracle Object Type
Hi all?
I use JDBC to connect to ORACLE 8i DB...
it has various kind of New Features of Oracle 8( eg. Oject Type
like REF, Nested Tables, VArray... ).
So I'd like to retrieve some Table consisted of general Column
and REF, Varray, Nested Tables... I succeeded retrieving the
data from general table with only general columns like number,
varchar2 consulting Manuals... I use Custom Java Classes
inheriting CustumDatum Interface...
However, I cannot find any other solution to get data from
Tables consisted of Object Features...
So I'd like to know how to configure Custom Java Classes to map
to Object Type like Varray, Ref...
In manual, there's only way to get data from olny the column
which is Object type, I mean i'd like to know how to get whole
column's data using Custom Java Classes...
It will be really thankful if you mail the answer or sample
codes to me...
Pls mail to [email protected]
Thank you all,
nullHi Eddy,
Use sqlj tool, which generates java classes to
corresponding object types in oracle 8i. Use these
(or extend) classes to retrieve the data.
bye
MohanE
Eddy Lim (guest) wrote:
: Hi all?
: I use JDBC to connect to ORACLE 8i DB...
: it has various kind of New Features of Oracle 8( eg. Oject Type
: like REF, Nested Tables, VArray... ).
: So I'd like to retrieve some Table consisted of general Column
: and REF, Varray, Nested Tables... I succeeded retrieving the
: data from general table with only general columns like number,
: varchar2 consulting Manuals... I use Custom Java Classes
: inheriting CustumDatum Interface...
: However, I cannot find any other solution to get data from
: Tables consisted of Object Features...
: So I'd like to know how to configure Custom Java Classes to map
: to Object Type like Varray, Ref...
: In manual, there's only way to get data from olny the column
: which is Object type, I mean i'd like to know how to get whole
: column's data using Custom Java Classes...
: It will be really thankful if you mail the answer or sample
: codes to me...
: Pls mail to [email protected]
: Thank you all,
null -
Partitioned IOT of Object Type - mapping table not allowed for bitmap index
Hi,
looks like a feature available for standard Partitioned IOTs is not supported for object based tables, namely the MAPPING TABLE construct to support secondary local bitmap indexes.
Can you confirm behaviour is as expected/documented?
If so, is a fix/enhancement to support mapping table for object-based Partitioned IOTs in the pipeline?
Results for partition-wise load using pipelined table function are very good, look-ups across tens of millions of rows are excellent.
Environment = Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
OS = Oracle Enterprise Linux Server release 5.2 (Carthage) 2.6.18 92.el5 (32-bit)
Here's the potted test-case...
1) First the non object based Partitioned IOT - data is range-partitioned across the alphabet
CREATE TABLE IOT_Table (
textData VARCHAR2(10),
numberData NUMBER(10,0),
CONSTRAINT IOT_Table_PK PRIMARY KEY(textData))
ORGANIZATION INDEX MAPPING TABLE PCTFREE 0 TABLESPACE Firewire
PARTITION BY RANGE (textData)
(PARTITION Text_Part_A VALUES LESS THAN ('B') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_B VALUES LESS THAN ('C') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_C VALUES LESS THAN ('D') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_D VALUES LESS THAN ('E') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_E VALUES LESS THAN ('F') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_F VALUES LESS THAN ('G') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_G VALUES LESS THAN ('H') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_H VALUES LESS THAN ('I') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_I VALUES LESS THAN ('J') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_J VALUES LESS THAN ('K') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_K VALUES LESS THAN ('L') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_L VALUES LESS THAN ('M') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_M VALUES LESS THAN ('N') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_N VALUES LESS THAN ('O') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_O VALUES LESS THAN ('P') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_P VALUES LESS THAN ('Q') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_Q VALUES LESS THAN ('R') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_R VALUES LESS THAN ('S') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_S VALUES LESS THAN ('T') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_T VALUES LESS THAN ('U') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_U VALUES LESS THAN ('V') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_V VALUES LESS THAN ('W') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_W VALUES LESS THAN ('X') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_X VALUES LESS THAN ('Y') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_Y VALUES LESS THAN ('Z') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_Z VALUES LESS THAN (MAXVALUE) PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0))
NOLOGGING PARALLEL -- FLASHBACK ARCHIVE IOT_Flashback_Data
SQL> table IOT_TABLE created.
2) Create the local secondary bitmap index utilising the underlying mapping table
CREATE BITMAP INDEX IOT_Table_BMI1 ON IOT_Table (numberData)
LOCAL STORAGE (INITIAL 1M PCTINCREASE 0 NEXT 512K) NOLOGGING PARALLEL;
SQL> bitmap index IOT_TABLE_BMI1 created.
3) Quick test to confirm all ok
SQL> INSERT INTO IOT_Table VALUES ('ABC123',100);
SQL> 1 rows inserted.
SQL> SELECT * FROM IOT_Table;
TEXTDATA NUMBERDATA
ABC123 100
4) Now create a minimal object type to use as the template for object table
CREATE TYPE IOT_type AS OBJECT
textData VARCHAR2(10 CHAR),
numberData NUMBER(10,0)
) FINAL
SQL> TYPE IOT_type compiled
5) Attempt to create an object-based range partitioned IOT, including MAPPING TABLE clause as per step (1)
CREATE TABLE IOTObj_Table OF IOT_type (textData PRIMARY KEY)
OBJECT IDENTIFIER IS PRIMARY KEY ORGANIZATION INDEX
MAPPING TABLE -- we'd like to use this feature to enable use of Bitmap Indexes...
PCTFREE 0 TABLESPACE Firewire
PARTITION BY RANGE (textData)
(PARTITION Text_Part_A VALUES LESS THAN ('B') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_B VALUES LESS THAN ('C') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_C VALUES LESS THAN ('D') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_D VALUES LESS THAN ('E') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_E VALUES LESS THAN ('F') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_F VALUES LESS THAN ('G') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_G VALUES LESS THAN ('H') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_H VALUES LESS THAN ('I') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_I VALUES LESS THAN ('J') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_J VALUES LESS THAN ('K') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_K VALUES LESS THAN ('L') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_L VALUES LESS THAN ('M') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_M VALUES LESS THAN ('N') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_N VALUES LESS THAN ('O') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_O VALUES LESS THAN ('P') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_P VALUES LESS THAN ('Q') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_Q VALUES LESS THAN ('R') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_R VALUES LESS THAN ('S') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_S VALUES LESS THAN ('T') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_T VALUES LESS THAN ('U') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_U VALUES LESS THAN ('V') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_V VALUES LESS THAN ('W') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_W VALUES LESS THAN ('X') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_X VALUES LESS THAN ('Y') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_Y VALUES LESS THAN ('Z') PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0),
PARTITION Text_Part_Z VALUES LESS THAN (MAXVALUE) PCTFREE 0 TABLESPACE Firewire Storage (Initial 10M Next 1M PCTIncrease 0))
NOLOGGING PARALLEL -- FLASHBACK ARCHIVE IOT_Flashback_Data
This errors out with the following...
SQL Error: ORA-25182: feature not currently available for index-organized tables
25182. 00000 - "feature not currently available for index-organized tables"
*Cause: An attempt was made to use one or more of the following feature(s) not
currently supported for index-organized tables:
CREATE TABLE with LOB/BFILE/VARRAY columns,
partitioning/PARALLEL/CREATE TABLE AS SELECT options,
ALTER TABLE with ADD/MODIFY column options, CREATE INDEX
*Action: Do not use the disallowed feature(s) in this release.
6) Re-running the create table statement in step 5 without the MAPPING TABLE clause works fine. Not surprisingly an attempt to create a secondary local bitmap index on this table fails as there's no mapping table, like so...
CREATE BITMAP INDEX IOTObj_Table_BMI1 ON IOTObj_Table (numberData)
LOCAL STORAGE (INITIAL 1M PCTINCREASE 0 NEXT 512K) NOLOGGING PARALLEL;
CREATE TABLE with LOB/BFILE/VARRAY columns,
partitioning/PARALLEL/CREATE TABLE AS SELECT options,
ALTER TABLE with ADD/MODIFY column options, CREATE INDEX
*Action: Do not use the disallowed feature(s) in this release.
CREATE BITMAP INDEX IOTObj_Table_BMI1 ON IOTObj_Table (numberData)
LOCAL STORAGE (INITIAL 1M PCTINCREASE 0 NEXT 512K) NOLOGGING PARALLEL
Error at Command Line:99 Column:13
Error report:
SQL Error: ORA-00903: invalid table name
00903. 00000 - "invalid table name"
7) Creating a secondary local b-tree index is fine, like so...
SQL> CREATE INDEX IOTObj_Table_I1 ON IOTObj_Table (numberData)
LOCAL STORAGE (INITIAL 1M PCTINCREASE 0 NEXT 512K) NOLOGGING PARALLEL;
index IOTOBJ_TABLE_I1 created.
8) A quick test to ensure object table ok...
SQL> INSERT INTO IOTObj_Table VALUES (IOT_Type('DEF456',500));
SQL> 1 rows inserted.
SQL> SELECT * FROM IOTObj_Table;
TEXTDATA NUMBERDATA
DEF456 500Thanks Dan,
the intention is to range partition based on the initial character, so A* -> Text_Part_A, B* -> Text_Part_B, and so on.
Here's an example, using an empty IOTObj_Table as created previously.
1) Set up & confirm some test data (two 'D's, one 'N', and two 'Z's)
SQL> INSERT INTO IOTObj_Table VALUES (IOT_Type('DEF456',500));
SQL> INSERT INTO IOTObj_Table VALUES (IOT_Type('DDD111',510));
SQL> INSERT INTO IOTObj_Table VALUES (IOT_Type('N3000',515));
SQL> INSERT INTO IOTObj_Table VALUES (IOT_Type('ZZ1212',520));
SQL> INSERT INTO IOTObj_Table VALUES (IOT_Type('Z111X',530));
SQL> COMMIT;
SQL> SELECT * FROM IOTObj_Table;
TEXTDATA NUMBERDATA
DDD111 510
DEF456 500
N3000 515
Z111X 530
ZZ1212 520
2) Just to prove our IOT is enforcing the Primary Key based on the TextData attribute, try to insert a duplicate
SQL> INSERT INTO IOTObj_Table VALUES (IOT_Type('Z111X',530));
Error starting at line 141 in command:
INSERT INTO IOTObj_Table VALUES (IOT_Type('Z111X',530))
Error report:
SQL Error: ORA-00001: unique constraint (OCDataSystems.SYS_IOT_TOP_84235) violated
00001. 00000 - "unique constraint (%s.%s) violated"
*Cause: An UPDATE or INSERT statement attempted to insert a duplicate key.
For Trusted Oracle configured in DBMS MAC mode, you may see
this message if a duplicate entry exists at a different level.
*Action: Either remove the unique restriction or do not insert the key.
3) Now confirm that our data has been slotted into the range-based partition we expect using the PARTITION clause of SELECT...
- The two 'D's...
SQL> SELECT * FROM IOTObj_Table PARTITION (Text_Part_D);
TEXTDATA NUMBERDATA
DDD111 510
DEF456 500
- The single 'N'...
SQL> SELECT * FROM IOTObj_Table PARTITION (Text_Part_N);
TEXTDATA NUMBERDATA
N3000 515
- The two 'Z's...
SQL> SELECT * FROM IOTObj_Table PARTITION (Text_Part_Z);
TEXTDATA NUMBERDATA
Z111X 530
ZZ1212 520
4) And to wrap up confirm an empty partition
SELECT * FROM IOTObj_Table PARTITION (Text_Part_W); -
Core Data Services in ABAP : No URI-Mapping defined for object type DDLS
Hi ,
When creating a DDL source , I get the error
" No URI-Mapping defined for object type DDLS and object name ZCDSV_01_06".
Can you please suggest what the issue could be?
Thanks,
Chakram GovindarajanNow I am able to proceed to the next step. Not sure how this started working. However, I get the below error when I open the DDL source editor for one particular ABAP system added in the eclipse environment. I however do not get the error when I open the DDL source editor for another system ( AH4) .I am providing the log error details . I updated the ADT installation. However the issue has not been resolved. Also I tried implementing the Note: 1834948. However I cannot find the option "Team -> Share project..." in the ABAP project.
Thanks,
Chakram Govindarajan -
Mapping refcursors with object types in a procedure
Hi all,
I need some help regarding the mapping of refcursors with object types .
Example: Procedure "A" has object types as input/output parameters which lies in the Web Method Application as a API.
We are creating a procedure "B" which has ref cursors as input/ouput parameters
which will map to the Procedure "A"'s object type parameters.
It will be highly needful for the solution.
Regards
SaugataYour pseudocode has a lot of steps in it, but you didn't say which step you need help with. Since I already covered going from a nested table type to a refcursor, I'll assume you want an example that goes the other way now, like from a refcursor to a nested table type. Here's one ...
SQL>
SQL>
SQL> set serveroutput on
SQL>
SQL> create type nested_table_type as table of varchar2(14) ;
2 /
Type created.
SQL> show errors
No errors.
SQL>
SQL>
SQL> create function func
2 ( p_cursor in sys_refcursor )
3 return nested_table_type
4 as
5 v_nested_table nested_table_type ;
6 begin
7
8 fetch p_cursor bulk collect into v_nested_table ;
9 return( v_nested_table );
10
11 end;
12 /
Function created.
SQL> show errors
No errors.
SQL>
SQL> select func( cursor( select dname from dept ) ) as nested_table from dual ;
NESTED_TABLE
NESTED_TABLE_TYPE('ACCOUNTING', 'RESEARCH', 'SALES', 'OPERATIONS')If your cursor selects objects instead of simple data types, the code is pretty much the same.
SQL> create type object_type as object ( c1 varchar2(14), c2 varchar2(13) );
2 /
Type created.
SQL> show errors
No errors.
SQL>
SQL> create type nested_table_type as table of object_type ;
2 /
Type created.
SQL> show errors
No errors.
SQL>
SQL>
SQL>
SQL> create function func
2 ( p_cursor in sys_refcursor )
3 return nested_table_type
4 as
5 v_nested_table nested_table_type ;
6 begin
7
8 fetch p_cursor bulk collect into v_nested_table ;
9 return( v_nested_table );
10
11 end;
12 /
Function created.
SQL> show errors
No errors.
SQL>
SQL> select
2 func( cursor( select object_type( dname, loc ) from dept ) ) as object_table
3 from dual ;
OBJECT_TABLE(C1, C2)
NESTED_TABLE_TYPE
( OBJECT_TYPE('ACCOUNTING', 'NEW YORK'),
OBJECT_TYPE('RESEARCH', 'DALLAS'),
OBJECT_TYPE('SALES', 'CHICAGO'),
OBJECT_TYPE('OPERATIONS', 'BOSTON')
)(NB I manually reformated the query results for clarity). -
No mapping exists from object type Telerik.Web.UI.RadMaskedTextBox to a known
hi for all i got this problem when i try to update record in a database actually it's first
time happining with me
No mapping exists from object type Telerik.Web.UI.RadMaskedTextBox to a known
managed provider native type
and this is my code
SqlCommand cmd = new SqlCommand("update RealEstate set DestinationEntity=@speechDirect,FULLName=@name,Individual_Iqama_NR=@egamhNo,Individual_Passport_NR_ID=@passport,Individual_Gender=@six,Individual_Sociall_Status=@martialstate,Individual_Passport_Issue_Date=@passportdate,Individual_Nationality_ID=@nationality,IqamaIssued_From=@egamhsource,Total_Staying_Time_KSA=@stayduration,Individual_Work_Address=@workdisc,Possess_Type=@omntype,Apartment_No=@estateno,Apartment_Floor_No=@storyno,Possess_City_ID=@city,QuarterID=@area,Deed_No=@InstrumentNo,Deed_Date_HijriAfter=@Instrumentdate,Deed_Issue_City_ID=@Instrumentsource,Request_Status=@orderstate,Real_Estate_Area=@estatespace,[notes]=@notes,Incomming_No=@waredno,Incomming_Date_HijriAfter=@wareddate,Qaied_No=@ghaidno,Qaied_Date_HijriAfter=@ghaiddate,ExportNumber=@jihtsdor, ExportDateHijriAfter=@job where Possess_ID=@id", _con);
cmd.CommandType = CommandType.Text;
_con.Open();
cmd.Parameters.AddWithValue("@id", int.Parse(Request.QueryString["Serial"].ToString()));
cmd.Parameters.AddWithValue("@speechDirect", RadComboBox1.SelectedValue);
cmd.Parameters.AddWithValue("@name", txtname.Text);
cmd.Parameters.AddWithValue("@egamhNo",txtegamhno.Text);
cmd.Parameters.AddWithValue("@passport", txtpassportno.Text);
cmd.Parameters.AddWithValue("@six",RDSix.SelectedValue);
cmd.Parameters.AddWithValue("@martialstate", Rdstatus.SelectedValue);
cmd.Parameters.AddWithValue("@passportdate", DateTime.Now);
cmd.Parameters.AddWithValue("@nationality", RdNationality.SelectedValue);
cmd.Parameters.AddWithValue("@egamhsource", txtegamhsou.Text);
cmd.Parameters.AddWithValue("@stayduration", txtstayduration.Text);
cmd.Parameters.AddWithValue("@workdisc", txtjobdirec.Text);
cmd.Parameters.AddWithValue("@omntype", RdownType.SelectedValue);
cmd.Parameters.AddWithValue("@estateno",txtflatNo.Text);
cmd.Parameters.AddWithValue("@storyno", txtstoryNo.Text);
cmd.Parameters.AddWithValue("@city", RDcity.SelectedValue);
cmd.Parameters.AddWithValue("@area", RadComboBox2.SelectedValue);
cmd.Parameters.AddWithValue("@InstrumentNo",txtskno.Text);
cmd.Parameters.AddWithValue("@Instrumentdate", txtskdate.Text);
cmd.Parameters.AddWithValue("@Instrumentsource", Rdsksource.SelectedValue);
cmd.Parameters.AddWithValue("@orderstate", Rdordercase.SelectedValue);
cmd.Parameters.AddWithValue("@estatespace",txtspace.Text);
cmd.Parameters.AddWithValue("@notes", txtcomments.Text);
cmd.Parameters.AddWithValue("@waredno",txtwaredno.Text);
cmd.Parameters.AddWithValue("@wareddate", txtkitabno.Text);
cmd.Parameters.AddWithValue("@ghaidno", txtgaidno.Text);
cmd.Parameters.AddWithValue("@ghaiddate",txtghaiddate.Text);
cmd.Parameters.AddWithValue("@jihtsdor",Rdsksource.SelectedValue);
cmd.Parameters.AddWithValue("@job", txtsaderdate);
int x =cmd.ExecuteNonQuery();
any one could provide suggestion to solve this problem
thanksHello,
I would like suggest you posting it to:
http://www.telerik.com/support
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Exception [type: SIGSEGV, Address not mapped to object]
Hi,
I'm working on an Oracle Database 11g Release 11.1.0.6.0 - 64bit Production With the Real Application Clusters option.
I'm trying to execute the below:
SELECT /*+ CURSOR_SHARING_EXACT */
vc.id_vehicle, gr.geoRouteId, g.name, round(g.length) length_, gr.active,
g.id_user id_user_georoute_owner, gr.grBindUserId id_user_bind_owner,
(SELECT count(*) FROM dual WHERE XMLEXISTS('$XML_ALM/user/alarmwhen[@direction="out"]' passing gr.geoRouteUser AS "XML_ALM") = 1) alm_out
FROM configurator.t_vehicle_configuration vc, dispatch.v_georoute g,
xmltable('$XML/vehicleconf/GeoRoute/geoRoute[@active="1"]'
passing vc.x_configuration AS "XML"
columns geoRouteId number path '@id',
active number path '@active',
grBindUserId number path '@id_user',
geoRouteUser xmltype path 'user'
) gr
WHERE vc.id_vehicle = 453
AND g.id_georoute = gr.geoRouteId;but after few seconds I got the error in the object.
The alert log says:
+Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x38] [PC:0x483CEFD, evahtr()+495]+
Errors in file /u01/app/oracle/diag/rdbms/evodb/EVODB2/trace/EVODB2_ora_13769.trc (incident=301686):
+ORA-07445: exception encountered: core dump [evahtr()+495] [SIGSEGV] [ADDR:0x38] [PC:0x483CEFD] [Address not mapped to object] []+
Incident details in: /u01/app/oracle/diag/rdbms/evodb/EVODB2/incident/incdir_301686/EVODB2_ora_13769_i301686.trc
The trace doesn't say more:
+ORA-07445: exception encountered: core dump [evahtr()+495] [SIGSEGV] [ADDR:0x38] [PC:0x483CEFD] [Address not mapped to object] []+
+========= Dump for incident 301686 (ORA 7445 [evahtr()+495]) ========+
----- Beginning of Customized Incident Dump(s) -----
+Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x38] [PC:0x483CEFD, evahtr()+495]+
The strange stuff is that if I remove the
(SELECT count(*) FROM dual WHERE XMLEXISTS('$XML_ALM/user/alarmwhen[@direction="out"]' passing gr.geoRouteUser AS "XML_ALM") = 1) alm_out
from the query, there is no problem.
Do you have any suggestion?
Thanks in advance,
SamuelThe strange stuff is that if I remove the
(SELECT count(*) FROM dual WHERE XMLEXISTS('$XML_ALM/user/alarmwhen[@direction="out"]' passing gr.geoRouteUser AS "XML_ALM") = 1) alm_out
from the query, there is no problem.That's probably because you're not using XMLExists correctly.
The function returns a boolean value so you don't need to test for 1 or 0 as we had to with existsNode function before :
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28369/xdb04cre.htm#sthref360
It's also probably better to use a CASE expression instead of a subquery :
SELECT /*+ CURSOR_SHARING_EXACT */
vc.id_vehicle
, gr.geoRouteId
, g.name
, round(g.length) length_
, gr.active
, g.id_user id_user_georoute_owner
, gr.grBindUserId id_user_bind_owner
, case when XMLExists('$XML_ALM/user/alarmwhen[@direction="out"]' passing gr.geoRouteUser AS "XML_ALM")
then 1
else 0
end as alm_out
FROM configurator.t_vehicle_configuration vc
, dispatch.v_georoute g
, xmltable('$XML/vehicleconf/GeoRoute/geoRoute[@active="1"]'
passing vc.x_configuration AS "XML"
columns geoRouteId number path '@id',
active number path '@active',
grBindUserId number path '@id_user',
geoRouteUser xmltype path 'user'
) gr
WHERE vc.id_vehicle = 453
AND g.id_georoute = gr.geoRouteId
;Even better, you can test the condition directly in the COLUMNS clause with fn:exists XPath function.
For example, something like this :
SQL> with sample_data as (
2 select xmltype('<root>
3 <row><item>1</item><other id="a"/><other id="x"/></row>
4 <row><item>2</item><other id="b"/></row>
5 <row><item>3</item><other id="b"/></row>
6 </root>') doc
7 from dual
8 )
9 select x.*
10 from sample_data t
11 , xmltable(
12 '/root/row'
13 passing t.doc
14 columns item number path 'item',
15 flag number path 'exists(other[@id="x"])'
16 ) x
17 ;
ITEM FLAG
1 1
2 0
3 0 -
Error in creation of Object Type from XML passed
Hi,
I am facing a problem creating a appropriate a object type for a XML.
Below are the details:
XML Passed
<mer_offer_action_data>
<form_id>
134039588
</form_id>
<action_cd>
OA
</action_cd>
<offer_decline_reason_cd>
</offer_decline_reason_cd>
<start_dt>
</start_dt>
<candidate>
<ds_prs_id>
109315
</ds_prs_id>
<ds_prs_id>
110534
</ds_prs_id>
<ds_prs_id>
110059
</ds_prs_id>
</candidate>
</mer_offer_action_data>
Types Declaration
+CREATE OR REPLACE type MER_OFF_CANDIDATE
AS
OBJECT
DS_PRS_ID NUMBER
CREATE OR REPLACE TYPE MER_OFF_CANDIDATE_t
AS
TABLE OF MER_OFF_CANDIDATE;
CREATE OR REPLACE type MER_OFFER_ACT_DATA
AS
OBJECT
FORM_ID NUMBER,
ACTION_CD VARCHAR2(6),
OFFER_DECLINE_REASON_CD VARCHAR2(6),
START_DT VARCHAR2(11),
CANDIDATE MER_OFF_CANDIDATE_t
CREATE OR REPLACE TYPE MER_OFFER_ACT_DATA_t
AS
TABLE OF MER_OFFER_ACT_DATA;
CREATE OR REPLACE type MER_OFFER_ACTION_DATA
AS
OBJECT
MER_OFF_ACT_DATA MER_OFFER_ACT_DATA_t
/+
My Declaration
+merOffActDataXML xmltype;
merOffActData MER_OFFER_ACTION_DATA := MER_OFFER_ACTION_DATA(MER_OFFER_ACT_DATA_t());+
Inside Pl/SQL block
+-- Converts XML data into user defined type for further processing of data
xmltype.toobject(merOffActDataXML,merOffActData);+
when I run the Pl/Sql block it gives me error
ORA-19031: XML element or attribute FORM_ID does not match any in type ORADBA.MER_OFFER_ACTION_DATA
which means the object type mapping is wrong
I would like to know whether the object type I had created is correct or not.
Thanks for your help
BedaBedabrata Patel wrote:
Below are the details:The details except for a description of the problem
I am facing a problem creating a appropriate a object type for a XML.And which error you are getting
Error in creation of Object Type http://download.oracle.com/docs/cd/E11882_01/server.112/e10880/toc.htm
And which version of Oracle you are getting the unknown error creating the unknown problem. -
E5 - unable to open. object type not supported
hi.
2 Month back i brought Nokia E-5 Mobile and after few weeks i upgraded the Memory from 2Gb to 8GB. After copying all files from 2gb to 8gb am not able to open or install any existing programs and files. Even maps are not working. When trying to open or install the files am getting this erro " unable to open object type not supported " . Kindly help on this error.
Thanks
VelavanI have never attempted what you did, so can't say for certain, but I don't think memory card data is meant to be copied from one card to another (unless we're talking about data files like pictures or mp3's). I don't understand what you mean by being unable to install files. Are you trying to reinstall the programs that aren't working? If your 2GB card still works normally, I suggest you format the 8 GB card, reinstall the programs to the empty card, and re-download the maps data. If the programs still give you trouble, you may need to uninstall them from the 2 GB card first, but I don't think that should be necessary. I hope that helps.
-
HI Guys...
I am working on a RFC to HTTP scenario:
It is a standard SAP interface ....so we created only ID objects..obviously the BPM delivered by must be correct.
in sxmb_moni_bpe it is throwing th following error texts:
Runtime handle of object type could not be created
Error executing service for node
Exception CX_MERGE_SPLIT occured
component mapping has returned an error
unmodeled exception when executing service for node
No payload found
object FLOWITEM method EXECUTE cannot be executed
I tested the mapping payload from sxmb_moni in IR and it is working fine.
Receiver is an HTTP so could not able to find exactly whats happening as no thrid party tools can be installed....struck up here.
Any iputs will be of help in this area.
Thanx in adavance.
Kiranany inputs around this plz??
-
Cannot send a null Map key for type 'java.util.HashMap'
Hi All,
I am haing an issue with sending data from Server to the client using the AMF Channel.
Most of the method invocations on the RemoteObject are throwing the following Exception.
[CODE]
(mx.rpc.events::FaultEvent)#0
bubbles = false
cancelable = true
currentTarget = (null)
eventPhase = 2
fault = (mx.rpc::Fault)#1
content = (null)
errorID = 0
faultCode = "Server.Processing"
faultDetail = (null)
faultString = "Cannot send a null Map key for type 'java.util.HashMap'."
message = "faultCode:Server.Processing faultString:'Cannot send a null Map key for type 'java.util.HashMap'.' faultDetail:'null'"
name = "Error"
rootCause = (null)
headers = (null)
message = (mx.messaging.messages::ErrorMessage)#2
body = (null)
clientId = "22E55FB1-910E-312F-E37A-ED5167139CB0"
correlationId = "4DB54224-662A-C596-D165-F7C3EBB64DB8"
destination = "TimeMap"
extendedData = (null)
faultCode = "Server.Processing"
faultDetail = (null)
faultString = "Cannot send a null Map key for type 'java.util.HashMap'."
headers = (Object)#3
messageId = "22E56255-D62F-2ACF-4DA5-CF1E4D6353BB"
rootCause = (null)
timestamp = 1266877198902
timeToLive = 0
messageId = "22E56255-D62F-2ACF-4DA5-CF1E4D6353BB"
statusCode = 0
target = (null)
token = (mx.rpc::AsyncToken)#4
message = (mx.messaging.messages::RemotingMessage)#5
body = (Array)#6
clientId = (null)
destination = "TimeMap"
headers = (Object)#7
DSEndpoint = "my-amf"
DSId = "22E53936-7E0E-B21C-C936-EF1078000306"
messageId = "4DB54224-662A-C596-D165-F7C3EBB64DB8"
operation = "getMapKey"
source = (null)
timestamp = 0
timeToLive = 0
responders = (Array)#8
[0] (com.universalmind.cairngorm.events::Callbacks)#9
conflictHandler = (null)
faultHandler = (function)
priority = 0
resultHandler = (function)
result = (null)
type = "fault"
[CODE]
The Spring bean which is exposed as a Remote Object has the following method signature..
[CODE]
public String getMapKey() {
return mapKey;
[/CODE]
I am unable to understand why AMF Channel or Blaze DS is treating the String as HashMap !!!
This was working pefectly fine till yesterday !!
The version of the BlazeDS i am using is : blazeds_turnkey_3-0-0-544
and the Flex SDK Version is : flex_sdk_3.5.0.12683
We recently upgraded to Flex 3.5.0 version earlier we were using 3.3 version
Thanks
marsHi All,
I chcked my server side java beans ( which are managed by Spring) and they are all returning the data property and none of the Keys in the returned hashmaps are null.
Not sure why this is happening.
Thanks
kumars -
Mapping XML object to java object gives ClassCastException
Hi All,
I am trying to map a specific XML object to a specific java object using web
services and received the following exception:
java.lang.ClassCastException: weblogic.soap.xml.XMLObject
at $Proxy0.getMonster(Unknown Source)
at serviceClient.TestServiceClient.main(TestServiceClient.java:46)
Exception in thread "main"
I tried to map a simple type:
<types>
<schema targetNamespace='java:biomaterials'
xmlns='http://www.w3.org/1999/XMLSchema'>
<element name="Monster">
<complexType>
<all>
<element name="name"
type="string"/>
<element name="age"
type="int"/>
</all>
</complexType>
</element>
</schema>
</types>
To the following java bean:
package biomaterials;
public class
ster{
private String name;
private Integer age;
public Monster(String name, int age) {
this.name=name;
this.age=new Integer(age);
public String getName() {
return name;
public void setName(String s) {
this.name=s;
public Integer getAge() {
return age;
public void setAge(int n) {
this.age=new Integer(n);
Here is my client code:
package serviceClient;
import java.util.Properties;
import weblogic.soap.codec.CodecFactory;
import weblogic.soap.codec.SoapEncodingCodec;
import weblog
ic.soap.codec.LiteralCodec;
import weblogic.soap.WebServiceProxy;
import weblogic.soap.SoapMethod;
import weblogic.soap.SoapType;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.ejb.*;
import biomaterials.ServiceSession;
import java.io.File;
import java.io.IOException;
import org.w3c.dom.Element;
import biomaterials.Monster;
public class TestServiceClient
public static void main( String[] arg ) throws Exception
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.soap.http.SoapInitialContextFactory");
h.put("weblogic.soap.wsdl.interface",
ServiceSession.class.getName() );
Context context = new InitialContext(h);
ServiceSession serv =
(ServiceSession)context.lookup("http://localhost:7001/biocat/biomaterials.Se
rviceSession/biomaterials.ServiceSession.wsdl");
//try
//int result = serv.getTheNum();
//String result=serv.getBIXBiologicals();
//int result=serv.setBIXInfo("TARNUMBER");
Monster result=serv.getMonster();
System.out.print("The value is "+result);
} /* end of main */
} /* end of class */
Here is the method in my stateless session bean:
public Monster getMonster()
return new Monster("Sully",3);
And here is my whole wsdl file:
<% response.setHeader( "Content-Type", "text/xml; charset=utf-8" ); %>
<definitions
targetNamespace="java:biomaterials"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="java:biomaterials"
>
<types>
<schema targetNamespace='java:biomaterials'
xmlns='http://www.w3.org/1999/XMLSchema'>
<element name="Monster">
<complexType>
<all>
<element name="name" type="string"/>
<element name="age" type="int"/>
</all>
</complexType>
</element>
</schema>
</types>
<message name="getBIXBiologicalsRequest"></message>
<message name="getBIXBiologicalsResponse">
<part name="return" type="xsd:string" />
</message>
<message name="setBIXInfoRequest">
<part name="arg0" type="xsd:string" />
<part name="arg1" type="xsd:string" />
<part name="arg2" type="xsd:integer" />
</message>
<message name="setBIXInfoResponse"></message>
<message name="getMonsterRequest"></message>
<message name="getMonsterResponse">
<part name="body" element="tns:Monster"/>
</message>
<portType name="ServiceSessionPortType">
<operation name="getBIXBiologicals">
<input message="tns:getBIXBiologicalsRequest"/>
<output message="tns:getBIXBiologicalsResponse"/>
I am using weblogic 6.1 SP1 on WIN NT.
Please help me out in this issue.
Thanks in advance.
SapanHI !
i dont think that the servicepack is an issue in this case.
anyway i ahve tried it on 6.1SP4 and still getting similar results.
any pointers will be highly appreciated.
Thanks,
sapan
"manoj cheenath" <[email protected]> wrote in message
news:[email protected]...
I just skimmed through your email. You said you
are using WLS 6.1 SP1. Can you try this using
the latest SP. There are many bug fixes done
after SP1.
Web service support in 6.1 is very limited. But, It
looks like 6.1 can handle the case you are trying out.
regards,
-manoj
"Sapan Agarwal" <[email protected]> wrote in message
news:[email protected]...
Hi All,
I am trying to map a specific XML object to a specific java object usingweb
services and received the following exception:
java.lang.ClassCastException: weblogic.soap.xml.XMLObject
at $Proxy0.getMonster(Unknown Source)
at
serviceClient.TestServiceClient.main(TestServiceClient.java:46)
>>
Exception in thread "main"
I tried to map a simple type:
<types>
<schema targetNamespace='java:biomaterials'
xmlns='http://www.w3.org/1999/XMLSchema'>
<element name="Monster">
<complexType>
<all>
<element name="name"
type="string"/>
<element name="age"
type="int"/>
</all>
</complexType>
</element>
</schema>
</types>
To the following java bean:
package biomaterials;
public class
ster{
private String name;
private Integer age;
public Monster(String name, int age) {
this.name=name;
this.age=new Integer(age);
public String getName() {
return name;
public void setName(String s) {
this.name=s;
public Integer getAge() {
return age;
public void setAge(int n) {
this.age=new Integer(n);
Here is my client code:
package serviceClient;
import java.util.Properties;
import weblogic.soap.codec.CodecFactory;
import weblogic.soap.codec.SoapEncodingCodec;
import weblog
ic.soap.codec.LiteralCodec;
import weblogic.soap.WebServiceProxy;
import weblogic.soap.SoapMethod;
import weblogic.soap.SoapType;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.ejb.*;
import biomaterials.ServiceSession;
import java.io.File;
import java.io.IOException;
import org.w3c.dom.Element;
import biomaterials.Monster;
public class TestServiceClient
public static void main( String[] arg ) throws Exception
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.soap.http.SoapInitialContextFactory");
h.put("weblogic.soap.wsdl.interface",
ServiceSession.class.getName() );
Context context = new InitialContext(h);
ServiceSession serv =
(ServiceSession)context.lookup("http://localhost:7001/biocat/biomaterials.Se
rviceSession/biomaterials.ServiceSession.wsdl");
file://try
file://int result = serv.getTheNum();
file://String result=serv.getBIXBiologicals();
file://int result=serv.setBIXInfo("TARNUMBER");
Monster result=serv.getMonster();
System.out.print("The value is "+result);
} /* end of main */
} /* end of class */
Here is the method in my stateless session bean:
public Monster getMonster()
return new Monster("Sully",3);
And here is my whole wsdl file:
<% response.setHeader( "Content-Type", "text/xml; charset=utf-8" ); %>
<definitions
targetNamespace="java:biomaterials"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="java:biomaterials"
>
<types>
<schema targetNamespace='java:biomaterials'
xmlns='http://www.w3.org/1999/XMLSchema'>
<element name="Monster">
<complexType>
<all>
<element name="name" type="string"/>
<element name="age" type="int"/>
</all>
</complexType>
</element>
</schema>
</types>
<message name="getBIXBiologicalsRequest"></message>
<message name="getBIXBiologicalsResponse">
<part name="return" type="xsd:string" />
</message>
<message name="setBIXInfoRequest">
<part name="arg0" type="xsd:string" />
<part name="arg1" type="xsd:string" />
<part name="arg2" type="xsd:integer" />
</message>
<message name="setBIXInfoResponse"></message>
<message name="getMonsterRequest"></message>
<message name="getMonsterResponse">
<part name="body" element="tns:Monster"/>
</message>
<portType name="ServiceSessionPortType">
<operation name="getBIXBiologicals">
<input message="tns:getBIXBiologicalsRequest"/>
<outputmessage="tns:getBIXBiologicalsResponse"/>
>>
>>
>>
>>
>>
>>
>>
I am using weblogic 6.1 SP1 on WIN NT.
Please help me out in this issue.
Thanks in advance.
Sapan -
XML attributes and object types
I want to create an XML Document of the following form
<family>
<parent attr1="val1">
<child attr2="val2" attr3="val3"/>
</parent>
</family>
Using object table and object type (for the child element), I am able to produce the following XML Document (with a "select * from family" query)
<family> <!-- rowset -->
<parent> <!-- row -->
<attr1>val1</attr1>
<child>
<attr2>val2</attr2>
<attr3>val3</attr3>
</child>
</parent>
</family>
The question is: how am I going to query these data so that the "attr" elements are mapped to attributes (using XSU only, without XSLT)?
I have already tried the following:
1. Using
SELECT attr1 as "@attr1",
f.child.attr2 "@attr2",
f.child.attr3 "@attr3"
FROM family f
all the attributes are obviously appended to the "parent" element.
2. Using nested table for "child" and the following query
SELECT attr1 as "@attr1",
CURSOR (
SELECT n.child.attr2 as "@attr2", n.child.attr3 as "@attr3"
FROM TABLE(f.child n)
) AS "child"
FROM family f
I am getting the following document
<family>
<parent attr1="val1">
<child>
<child_ROW attr2="val2" attr3="val3"/>
</child>
</parent>
</family>
Is there a smart SQL query to produce the desired document? What data types
is it recommended to use to define my db schema (object types, nested tables...)?
Thank you in advance
nullFinally, I got the desired XML format output from relational tablse using schema based XMLType views.
Wherein I created Object Types from relational table, generated the schema for the Object type, registered the schema and finally created XMLType Views for populating the XML data from Relational Tables.
I guess, you all might aware of my problem, where I got struck. Instead of printing the data in XML format I am successful in generating the XML format data Using the Query Select from BLABLA_Type_view* . I am able to print the number of rows, that I require which is in the fallowing format.
Column Name
1. SYS.XMLTYPE ----- As a row
The view I am querying for is printing the data in a string format, where in I got to do the fallowing query
SELECT SYS.XMLTYPE.getStringVal(OBJECT_VALUE) FROM BLABLA_Type_view. Which ultimately gave me the required data in XML format with tags.
Thanks for every one who tried to give a try to solve, especially "mdrake"
Maybe you are looking for
-
How do I share music on external drive with 2 laptops
We have 2 laptops in our household, my macbook and my partners iBook. Is there a way of keeping all of our music in one folder on the external drive and have it accessible to both computers, each with their own itunes library? Or does each computer n
-
Message is not proposing automatically
Hi There, I am getting below error when I save the Purchase Order, No message record could be found for output of message. Save anyway? I have maintained partner profile for this BP as well as checked the nace settings but did not find anything. Plea
-
HT4528 THE Itunes store app will not open
when i touch the app it open and closes right back up! any help
-
Recording File Size issue CS 5.5
I am using CS 5.5, a Balckmagic Ultra Studio Pro through USB 3.0 being fed by a Roland HD Video switcher. Everything is set for 720P 60fps (59.94) and the Black Magic is using the Motion JPEG compression. I am trying to record our sermons live onto a
-
Recently I'm unable to edit any events in iCal. This happens both when I try to edit from my iPhone 4 and from my 2013 MacBook Air. I am given the option to edit, the edit window comes up, but then the changes I make are not reflected on the calendar