can express us batch relationship XML structure in the database table
HelloPlease help me...
I have a lot of structure of batch XML... .can we express batch relationship XML structure in the database of tha table?
Yes... so how do?
Thank you
Amou
Published by: amu_2007 on March 25, 2010 18:57
Published by: amu_2007 on March 25, 2010 19:03
But what is the problem with the original solution, given that divides the XML into the data?
I mean you could do something like that?
SQL> create table batch (customer VARCHAR2(10)
2 ,cust_name VARCHAR2(10)
3 ,cust_type VARCHAR2(10)
4 )
5 /
Table created.
SQL>
SQL> create table section (customer VARCHAR2(10)
2 ,sect_name VARCHAR2(10)
3 ,sect_depend VARCHAR2(10)
4 )
5 /
Table created.
SQL> create table job_sections (customer VARCHAR2(10)
2 ,sect_name VARCHAR2(10)
3 ,job_sect_name VARCHAR2(10)
4 ,job_sect_depend VARCHAR2(10)
5 )
6 /
Table created.
SQL> create table job (customer VARCHAR2(10)
2 ,sect_name VARCHAR2(10)
3 ,job_sect_name VARCHAR2(10)
4 ,job_type VARCHAR2(10)
5 ,job_sub_type VARCHAR2(10)
6 ,job_depend VARCHAR2(10)
7 )
8 /
Table created.
SQL>
SQL>
SQL> insert all
2 when batch_rn = 1 then
3 into batch (customer, cust_name, cust_type) values (customer, cust_name, cust_type)
4 when section_rn = 1 then
5 into section (customer, sect_name, sect_depend) values (customer, sect_name, sect_dependency)
6 when job_sections_rn = 1 then
7 into job_sections (customer, sect_name, job_sect_name, job_sect_depend) values (customer, sect_name, job_sect_name, job_sect_dependency)
8 when 1=1 then
9 into job (customer, sect_name, job_sect_name, job_type, job_sub_type, job_depend) values (customer, sect_name, job_sect_name, job_type, jo
10 --
11 WITH t as (select XMLTYPE('
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46 ') as xml from dual)
47 --
48 -- END OF TEST DATA
49 --
50 ,flat as (select a.customer, a.cust_name, a.cust_type
51 ,b.sect_name, NULLIF(b.sect_dependency,'NULL') as sect_dependency
52 ,c.job_sect_name, NULLIF(c.job_sect_dependency,'NULL') as job_sect_dependency
53 ,d.job_type, d.job_sub_type, NULLIF(d.job_dependency,'NULL') as job_dependency
54 from t
55 ,XMLTABLE('/BATCH'
56 PASSING t.xml
57 COLUMNS customer VARCHAR2(10) PATH '/BATCH/@customer'
58 ,cust_name VARCHAR2(10) PATH '/BATCH/@name'
59 ,cust_type VARCHAR2(10) PATH '/BATCH/@type'
60 ,bat_sections XMLTYPE PATH '/BATCH/BATCH_SECTIONS'
61 ) a
62 ,XMLTABLE('/BATCH_SECTIONS/SECTION'
63 PASSING a.bat_sections
64 COLUMNS sect_name VARCHAR2(10) PATH '/SECTION/@name'
65 ,sect_dependency VARCHAR2(10) PATH '/SECTION/@dependency'
66 ,section XMLTYPE PATH '/SECTION'
67 ) b
68 ,XMLTABLE('/SECTION/JOB_SECTIONS'
69 PASSING b.section
70 COLUMNS job_sect_name VARCHAR2(10) PATH '/JOB_SECTIONS/@name'
71 ,job_sect_dependency VARCHAR2(10) PATH '/JOB_SECTIONS/@dependency'
72 ,job_sections XMLTYPE PATH '/JOB_SECTIONS'
73 ) c
74 ,XMLTABLE('/JOB_SECTIONS/JOBS/JOB'
75 PASSING c.job_sections
76 COLUMNS job_type VARCHAR2(10) PATH '/JOB/@type'
77 ,job_sub_type VARCHAR2(10) PATH '/JOB/@sub_type'
78 ,job_dependency VARCHAR2(10) PATH '/JOB/@dependency'
79 ) d
80 )
81 --
82 select customer, cust_name, cust_type, sect_name, sect_dependency, job_sect_name, job_sect_dependency, job_type, job_sub_type, job_dependency
83 ,row_number() over (partition by customer order by 1) as batch_rn
84 ,row_number() over (partition by customer, sect_name order by 1) as section_rn
85 ,row_number() over (partition by customer, sect_name, job_sect_name order by 1) as job_sections_rn
86 from flat
87 /
16 rows created.
SQL> select * from batch;
CUSTOMER CUST_NAME CUST_TYPE
---------- ---------- ----------
ABC ABC1 ABC_TYPE
SQL> select * from section;
CUSTOMER SECT_NAME SECT_DEPEN
---------- ---------- ----------
ABC X
ABC Y X
ABC Z Y
SQL> select * from job_sections;
CUSTOMER SECT_NAME JOB_SECT_N JOB_SECT_D
---------- ---------- ---------- ----------
ABC X JOB1
ABC Y JOB2 X
ABC Z JOB3
ABC Z JOB4
SQL> select * from job;
CUSTOMER SECT_NAME JOB_SECT_N JOB_TYPE JOB_SUB_TY JOB_DEPEND
---------- ---------- ---------- ---------- ---------- ----------
ABC X JOB1 X xx
ABC X JOB1 X yy
ABC X JOB1 X zz
ABC Y JOB2 Y xx X
ABC Y JOB2 Y yy X
ABC Y JOB2 Y zz X
ABC Z JOB3 ..... ....
ABC Z JOB4 .... ....
8 rows selected.
SQL>
But it would depend on what you are really after regarding primary keys and relationships between the tables etc.
I would like to put this just for you...
H1. . If YOU PROVE to THE United States THAT OUTPUT you NEED, WE cannot GIVE YOU AN ANSWER
Tags: Database
Similar Questions
-
How to insert an XML document to the database table
Here's one my XML document example I want to import into database
Example XML Document
<? XML version = "1.0"? >
rowset <>
< ROW >
< DEPTXML department_id = "10" >
SALES of < DEPARTMENT_NAME > < / DEPARTMENT_NAME >
< EMPLIST >
< EMP_T EMPLOYEE_ID = "30" >
Scott < LAST_NAME > < / LAST_NAME >
< / EMP_T >
< EMP_T EMPLOYEE_ID = "31" >
Marie < LAST_NAME > < / LAST_NAME >
< / EMP_T >
< / EMPLIST >
< / DEPTXML >
< / ROW >
< ROW >
< DEPTXML department_id = "20" >
< DEPARTMENT_NAME > ACCOUNTING < / DEPARTMENT_NAME >
< EMPLIST >
< EMP_T EMPLOYEE_ID = "40" >
John < LAST_NAME > < / LAST_NAME >
< / EMP_T >
< EMP_T EMPLOYEE_ID = "41" >
Jerry < LAST_NAME > < / LAST_NAME >
< / EMP_T >
< / EMPLIST >
< / DEPTXML >
< / ROW >
< / LINES >
********End***********
Table in which I want to import this file
hr_new_emp
(
department_id number,
department_name varchar2 (50).
Number of employe_id
last_name varchar2 (50)
)If your XML code is in a file, the easiest is to load as a CLOB in the file (google search will give you lots of results to load a file into a CLOB, so I won't detail it here). Once you have it as a CLOB you can fairly easily convert that XMLTYPE for example
v_xml := XMLTYPE(v_clob);
(assuming that v_xml is declared as XMLTYPE and v_clob is declared as a CLOB)
Once you have it as an XMLTYPE that is simple to use XMLTABLE to break the XML into its components using SQL...
SQL> ed Wrote file afiedt.buf 1 with t as (select xmltype(' 2
3 ') as xml from dual) 30 -- 31 -- END OF TEST DATA 32 -- 33 select x.department_id, x.department_name, y.employee_id, y.last_name 34 from t 35 ,xmltable('/ROWSET/ROW' 36 passing t.xml 37 columns department_id number path '/ROW/DEPTXML/@DEPARTMENT_ID' 38 ,department_name varchar2(30) path '/ROW/DEPTXML/DEPARTMENT_NAME' 39 ,emplist xmltype path '/ROW/DEPTXML/EMPLIST' 40 ) x 41 ,xmltable('/EMPLIST/EMP_T' 42 passing x.emplist 43 columns employee_id number path '/EMP_T/@EMPLOYEE_ID' 44 ,last_name varchar2(30) path '/EMP_T/LAST_NAME' 45* ) y SQL> / DEPARTMENT_ID DEPARTMENT_NAME EMPLOYEE_ID LAST_NAME ------------- ------------------------------ ----------- ------------------------------ 10 SALES 30 Scott 10 SALES 31 Mary 20 ACCOUNTING 40 John 20 ACCOUNTING 41 Jerry4
165 15SALES 67 148 10Scott 911 13Mary 1217
2918 28ACCOUNTING 1920 2721 23John 2224 26Jerry 25... and once you have selected the data as it is quite easy to use an INSERT statement around it to insert data into a table, as in a regular INSERT... Select...
If you are dealing with large amounts of data or a more complex XML structure, you can consider using an XML schema to shred the data in tables.
Example here...
Re: XML processing in oracle file
And you can also load XML data easily by using the function XDB (WebDAV) to Oracle. Details in the Oracle documentation for that or you could find help in the forum XML DB, which also has a FAQ detailing the different methods how to load XML shred data...
-
Please how can I insert a value of richinputtext in the database string attribute
Please how can I insert a value of richinputtext in the database string attribute
If you can get its value at the bean and then call your insert statement to put it in the DB table
and if you want to know about the execution of SQL query
then check - Ashish Awasthi (Jdev/ADF) Blog: SQL to run in an ADF Application using DataSource DBTransaction & JDBC query
Ashish
-
Can I use Ctlref in a structure of the event with a mouse to an event?
I have a large number of controls on a front panel. I use a structure of the event that triggers the movement of a given motor when you press the corresponding button. However, I would like to avoid creating events for identical most of N, so I relied on the use of a mouse down on the front panel event, then retrieve the reference command using the Ctlref node (with gives 'Reference to the control on which the event occurred', according to manual labview) and analyze an array of references to know which engine is supposed to move. However, it seems that this node is not (contrary to what the manual said).
I found other ways to do what I need (I thought using a table containing details of my controls and the coords in the structure of the event node), but I wanted to know why I can't find this node (that is displayed for the event "value change" for example). I'm using Labview 2013.
No luck for you. Mouse down on the Panel does not have the refnum control because it does not work on a control. Mouse down on a control has it, and since you can configure the mouse down events on multiple controls in the same case of event, it also provides a refnum of control so that you can still use the order in question.
This is probably also the question that Jeff might have seen. When you set up multiple events for the same frame that LabVIEW displays only the terminal event that are present in all of these events. Terminals that do not exist in at least a specific event of the multiple events for this image are more selectable.
-
Approach to analyze the large number of XML files in the relational table.
We are studying the possibility of XML DB to treat a large number of files from same day.
The goal is to parse the XML file and store it in several relational tables. Once in the relational table don't care us about the XML file.
The file cannot be stored on the file server and must be stored in a table before analysing because of security concerns. A third-party system will send the file and it will store in the XML database.
The file size can be between 1 MB to 50MB and high performance is very that much is expected of other wise men, that the solution will be discarded.
Although we have no of XSD, the XML file is well structured. We are 11g Release 2.
Based on the reading, that's what my approach.
1. CREATE THE DONNEES_XML TABLE
(xml_col XMLTYPE)
XMLTYPE xml_col STORE AS BINARY XML NAVIGATION;
2. third will store the data in the donnees_xml table.
3. create XMLINDEX on the unique XML element
4 create XMLTYPE views
CREATE OR REPLACE FORCE VIEW (V_XML_DATA)
SType,
Mtype,
MNAME,
ROT
)
AS
SELECT x."Stype"
x."Mtype."
x."Mname"
x."ROT".
OF data_table t,.
XMLTABLE)
' / SectionMain'
PASSAGE t.data
COLUMNS Stype VARCHAR2 (30) PATH "Stype"
Mtype VARCHAR2 (3) path "Mtype."
MNAME VARCHAR2 (30) PATH "MNAME"
ROT VARCHAR2 (30) PATH "OID") x;
5. loading mass analysis of data in the staging table based on the column in the index.
Please comment on the process that precedes any suggestions that can improve the performance.
Thank you
AnuragTPASSAGE t.xml_col<--WHAT will="" passing="" here="" since="" no="">--WHAT>
If you are using an XMLType Table, instead of an XMLType column reference, you are referring to the contents of XMLType while using the NICKNAME "OBJECT_VALUE" column
If--> t.object_value
-
Structure of the place, table 2D, several channels
I do data simultaneously on four-lane acquisition, and I need to store the data acquired from a large table 2D to 16 x 16. To save memory, that I decided to use the structure of the element In Place, I've extended it with four functions of Board Index but I'm struggling with what I put on the right side of the structure.
It is clear that I wire table 2D to all functions of Index table, row and column addresses are constantly evolving and that I have to use shift registers. But how can I tell the LabVIEW I want to modify the same table on multiple channels and do not change 4 different tables?
VI is attached.
Thank you
Kriváň
In place changes just that, in the same place of memory. The same table that you send is what you will get out, modified, even to the same memory addresses.
The 16 x 16 is intended to hold all 4 channels, or one for each? In the former, you can simply extend the Board index to 4 entries and you will get 1 output to your shift register.
In the second case you will need 4-Bay, either in the form of 4 individual tables, add a 3rd dimension to table or do an array of clusters (one for each channel) that contains this little picture of 16 x 16.
/Y
-
Store the output XML editor in the database blob column
Hello
We have a requirement to store the pdf files generated by several applications simultaneous xml editor in a database blob column, so that they can be recovered later, whenever required by the user. As far as we know, publisher concurrent request XML output files are stored on the node of simultaneous treatment and the location of the file does not exist in the FND_CONCURRENT_REQUESTS table. But these files to purge from time to time. We are therefore looking for a solution to store these files in the database to the display if necessary.
If someone knows a solution or can point me to the right direction, it would be much appreciated.
Thank you very much
MaryHi Mary,
You must load the PDF files in the database. Write a regular competitor program which monitors fnd_concurrent_requests and load a custom table or fnd_lobs with any editor of BI exit function application concurrent reading files. BI Publisher output files according to naming convention, so easy to find. http://garethroberts.blogspot.com/2008/07/where-do-i-get-XML-file-or-request.html
Kind regards
Gareth -
Hello
We have about 25 web called from many procedures for package services. Lately we are seeing time-out errors more than usual. So we started to add the value of utl_http.set_transfer_timeout to a value greater than the value default 60 seconds before making calls. I was wondering if the time-out value is adjustable to the level of the database or in the world to avoid changing each procedure.
Thanks in advance.Elcaro wrote:
BTW, the package for SYS.utl_http body is wrapped. How could I manage the implementation of the package body when it is wrapped?
You do not replace SYS. UTL_HTTP. So no need to know the wrapped (coded) / private parts of the package.
For example
create or replace package UTL_HTTP as .. // copied, pasted and modified from real SYS.UTL_HTTP header -- The HTTP protocol versions that can be used in the function begin_request HTTP_VERSION_1_0 CONSTANT VARCHAR2(64) := SYS.UTL_HTTP.HTTP_VERSION_1_0; HTTP_VERSION_1_1 CONSTANT VARCHAR2(64) := SYS.UTL_HTTP.HTTP_VERSION_1_1; .. procedure set_proxy(proxy IN VARCHAR2, no_proxy_domains IN VARCHAR2 DEFAULT NULL); .. end; / create or replace package body UTL_HTTP as .. // wrap calls to the real SYS.UTL_HTTP procedure set_proxy(proxy IN VARCHAR2, no_proxy_domains IN VARCHAR2 DEFAULT NULL) is begin SYS.UTL_HTTP.set_proxy(proxy, no_proxy_domains); end; .. begin // code SYS.UTL_HTTP default settings here end; /
With regard to the authorization DBA. No need.
Assuming that you have a lot of code calling UTL_HTTP in your schema. You just create your UTL_HTTP package that encapsulates calls to the real SYSTEM. UTL_HTTP in your schema.
Scheme code always call you UTL_HTTP - but now she's calling your wrapper UTL_HTTP package. And the package in turn call the real SYS. UTL_HTTP package.
If you have 2 schemas calling UTL_HTTP - then the suggestion is to create a 3rd diagram called CODE_LIB or something. It implements the UTL_HTTP package package. It grants execute rights for 1 and 2 CODE_LIB patterns. UTL_HTTP.
Finally, to make the code in diagrams 1 and 2 call CODE_LIB. UTL_HTTP and not SYS. UTL_HTTP, create synonyms in these patterns, for example
create or replace the synonym UTL_HTTP for CODE_LIB. UTL_HTTPConcern of the DBA is simply security in this regard. Granting access to relevant application schemas to SYS. UTL_HTTPand allowing these tcp access patterns to the outside world (via network ACL in 11g and later).
-
where can I find meaings of each column in the sys.tables
Command > host ttversion
TimesTen release 11.2.2.2.0 (64-bit, Linux/x86_64) (tt1122:53396) 2011-12 - 23 T 09: 26:28Z
Forum admin: tttest
Instance home directory: / timesten/TimesTen/tt1122
Group owner: tttest
Base directory of demon: / timesten/TimesTen/tt1122/info
PL/SQL active.
Command > sys.tables desc;
System SYS table. TABLES:
Columns:
SYS26 TT_BIGINT NOT NULL
* TT_CHAR TABLENAME (31) NOT NULL
* TBLOWNER TT_CHAR (31) NOT NULL
SYS2 TT_SMALLINT NOT NULL
SYS18 TT_BIGINT NOT NULL
SYS1 TT_BIGINT NOT NULL
OWNER TT_INTEGER NOT NULL
SYS3 TT_INTEGER NOT NULL
SYS33 TT_BIGINT NOT NULL
SYS8 TT_BIGINT NOT NULL
SYS4 TT_SMALLINT NOT NULL
NUMVARY TT_SMALLINT NOT NULL
NUMNULL TT_SMALLINT NOT NULL
NUMCOLS TT_SMALLINT NOT NULL
LENGTH TT_BIGINT NOT NULL
SYS19 TT_BIGINT NOT NULL
SYS20 BINARY (1) NOT NULL
SYS21 BINARY (1) NOT NULL
SYS5 TT_SMALLINT NOT NULL
NUMLOB TT_SMALLINT NOT NULL
SYS65 TT_SMALLINT NOT NULL
SYS6 TT_BIGINT NOT NULL
SYS31 TT_BIGINT NOT NULL
SYS40 TT_BIGINT NOT NULL
SYS41 TT_BIGINT NOT NULL
SYS43 TT_BIGINT NOT NULL
SYS39 BINARY (1) NOT NULL
NUMCOMPRESS TT_SMALLINT NOT NULL
SYS64 TT_INTEGER NOT NULL
SYS7 TT_BIGINT NOT NULL
TBLID TT_BIGINT NOT NULL
NUMTUPS TT_BIGINT NOT NULL
MAXTUPS TT_BIGINT NOT NULL
SYS9 TT_INTEGER NOT NULL
SYS10 TT_INTEGER NOT NULL
SYS29 BINARY (4000) NOT NULL
SYS32 TT_BIGINT NOT NULL
SYS11 TT_BIGINT NOT NULL
PRIMCNT TT_SMALLINT NOT NULL
PRIMCOLS BINARY (32) NOT NULL
SYS22 TT_BIGINT NOT NULL
SYS12 TT_BIGINT NOT NULL
CACHEFLAG BINARY (1) NOT NULL
XLAFLAG BINARY (1) NOT NULL
PXLAFLAG BINARY (1) NOT NULL
SYS16 TT_SMALLINT NOT NULL
CACHEGROUP TT_BIGINT NOT NULL
OCACHEGROUP TT_BIGINT NOT NULL
MVID TT_BIGINT NOT NULL
MVIDS TT_VARCHAR (1024) NO INLINE
CGFKIDS TT_VARCHAR (8192) NO INLINE
PERMLTBLID TT_BIGINT NOT NULL
SYS44 TT_INTEGER NOT NULL
CVVERSIONNUM TT_INTEGER NOT NULL
SYS24 TT_SMALLINT NOT NULL
SYS57 TT_SMALLINT NOT NULL
SYS25 TT_INTEGER NOT NULL
REPNUMKEYCOLS TT_SMALLINT NOT NULL
REPTSCOLNUM TT_SMALLINT NOT NULL
REPRETURNSERVICE TT_CHAR (1) NOT NULL
REPRETURNBYREQUEST BINARY (1) NOT NULL
REPUSERID TT_BIGINT NOT NULL
SYS34 TT_INTEGER NOT NULL
SYS35 TT_INTEGER NOT NULL
SYS36 TT_BIGINT NOT NULL
SYS37 TT_BIGINT NOT NULL
REPKEYCOLS BINARY (32) NOT NULL
SYS27 BINARY (240) NOT NULL
REPACCESS TT_CHAR (1) NOT NULL
REPTSUPDATERULE TT_CHAR (1) NOT NULL
SYS45 TT_SMALLINT NOT NULL
SYS46 TT_BIGINT NOT NULL
SYS47 TT_INTEGER NOT NULL
SYS48 TT_INTEGER NOT NULL
SYS49 TT_INTEGER NOT NULL
SYS50 TT_INTEGER NOT NULL
SYS51 TT_INTEGER NOT NULL
SYS52 TT_INTEGER NOT NULL
SYS53 TT_INTEGER NOT NULL
SYS54 TT_INTEGER NOT NULL
SYS55 TT_BIGINT NOT NULL
SYS56 TT_BIGINT NOT NULL
SYS28 BINARY (16) NOT NULL
CACHEDTBLPOS TT_INTEGER NOT NULL
SYS58 TT_SMALLINT NOT NULL
SYS59 TT_SMALLINT NOT NULL
SYS60 TT_BIGINT NOT NULL
SYS61 TT_BIGINT NOT NULL
SYS62 TT_BIGINT NOT NULL
VALTBLIDS VARBINARY (8000) NO INLINE
SYS63 TT_INTEGER NOT NULL
SYS66 TT_INTEGER NOT NULL
SYS67 TT_BIGINT NOT NULL
SYS68 TT_BIGINT NOT NULL
SYS17 BINARY (32) NOT NULL
on the 1 table.
(primary key columns are indicated with *)
I searched Timesten11.2 white paper, but the sys.tables in columns is different from the previous.
In addition, in http://docs.oracle.com/cd/E13085_01/doc/timesten.1121/e17114/systemtables.htm#TTSYS379, I can't find.
Thank you very much.Why do you need to know this? Is there specific information you are trying to find?
Note the columns SYS [n] are not and have never been documented. Although they can contain values are internal engineering and generally not made public. There is no guarantee that a SYS [n] column usage will remain the same between both versions.
-
A query when importing an XML file into a database Table
Hello
I create an ODI project to import an XML file into a database using the following link Table.With
http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/FMW/ODI/odi_11g/odi_project_xml-to-table/odi_project_xml-to-table.htm
I am facing a problem when creating physical Schema for the XML Source model.
For the
Schema (Schema)
and
Schema field (scheme of work) that they have chosen to GEO_D.
What GEO_D here?
or
What should I select here?
(1) the XML schema (NB:-J 'I havn' t created any file .dtd for my file .xml or .xsd)
or
(2) my diagram of target servers
Please tell me what I do?
Thank youand
Schema field (scheme of work) that they have chosen to GEO_D.
What GEO_D here?Is the schema specified in the XML file name.
What should I select here?
(1) the XML schema (NB:-J 'I havn' t created any file .dtd for my file .xml or .xsd)Yes
(2) my diagram of target servers
Please tell me what I do?
Thank you -
XML document to the oracle tables - data isn't fatching
Hello
I'm new to xml and trying to extract some fields of XML to oracle to use more in the application tables. I wrote the following to extract the values, but nothing is fatching document:
<? XML version = "1.0" encoding = "UTF-8"? >
-dmsgo:DMS_GO_Interface xmlns:dmsgo = "https://globalordering.daimler.com/start/dms/interface/DMS_GO_Interface/v1" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "https://globalordering.daimler.com/start/dms/interface/DMS_GO_Interface/v1 DMS_GO_Interface_v1.xsd" >
< dmsgo:majorversion > 1 < / dmsgo:majorversion >
< dmsgo:identity context = datetimecreated "CONFGOFR_OUT" = "03/01/2011 10:51 ' source = 'go' sourceversion ="1.410.1"/ >"
-< dmsgo:prospect >
< code dmsgo:requestresponse = "0" / >
< dmsgo:references / >
-dmsgo:configurationcontext dataversion = LangueCode "2163" = "" orderingmarket = '867' saleslevel "O" = >
< dmsgo:configurationdate > 03/01/2011 < / dmsgo:configurationdate >
< / dmsgo:configurationcontext >
-< dmsgo:vehicle >
< dmsgo: variant baumuster = "2120482" manufacturercode = "2120482" / >
< dmsgo:desc > E 200 CGI BlueEFFICIENCY sedan RHD < / dmsgo:desc >
-< dmsgo:colorcombination >
< dmsgo:interiorcolor codeowner = 'C' manufacturercode = "4201" = ppmtype "to THE" > black leather < / dmsgo:interiorcolor >
< dmsgo:exteriorcolor = 'C' manufacturercode codeowner = "2497" ppmtype "READ" = > metal Brown corrosion < / dmsgo:exteriorcolor >
< dmsgo:paintzone manufacturercode = "" preference = "2" / > "
< / dmsgo:colorcombination >
INSERT INTO p1 (flux_name, elment_1, elment_2, elment_3)
SELECT flux_name, elment_1, elment_2, elment_3
FROM XMLTable)
XMLNamespaces ('https://globalordering.daimler.com/start/dms/interface/DMS_GO_Interface/v1' as 'dmsgo'),
"dmsgo:DMS_GO_Interface/perspective/vehicle.
passage xmltype (bfilename('DMLDIR','prospect.xml'), nls_charset_id ('CHAR_CS'))
columns
path of varchar2 (20) flux_name "dmsgo:variant/@baumuster"
path of varchar2 (20) elment_1 "dmsgo:desc"
path of varchar2 (20) elment_2 ' dmsgo:colorcombination / interiorcolor',
path of varchar2 (20) elment_3 'dmsgo:colorcombination/interiorcolor/@manufacturercode '.
);
Help, please.
Looking forward to early response.
Thank you
UsmanHello
'Re missing you the prefix to namespace on elements.
This should work:SQL> SELECT flux_name, elment_1, elment_2, elment_3 2 FROM XMLTable( 3 XMLNamespaces ('https://globalordering.daimler.com/start/dms/interface/DMS_GO_Interface/v1' as "dmsgo"), 4 'dmsgo:DMS_GO_Interface/dmsgo:prospect/dmsgo:vehicle' 5 passing xmltype(bfilename('DMLDIR','prospect.xml'), nls_charset_id('CHAR_CS')) 6 columns 7 flux_name varchar2(20) path 'dmsgo:variant/@baumuster', 8 elment_1 varchar2(40) path 'dmsgo:desc', 9 elment_2 varchar2(20) path 'dmsgo:colorcombination/dmsgo:interiorcolor', 10 elment_3 varchar2(20) path 'dmsgo:colorcombination/dmsgo:interiorcolor/@manufacturercode' 11 ); FLUX_NAME ELMENT_1 ELMENT_2 ELMENT_3 -------------------- ---------------------------------------- -------------------- -------------------- 2120482 E 200 CGI BlueEFFICIENCY Sedan RHD Leather black 4201
-
How can I do a new insert data in the other table extrancting?
Hello, I'm looking how to do an insertion of two tables save values and apply to other tables like this:
The insert I'm looking for is something like this:
Have two tables, the first table is emp1 and contains the column: data 1 and 2 with line of data1: 1234 and line data 2:5555, therefore,.
I want to create an insert on a new table called (emp2) that contain the data in the column: data 1, data 2 (from the first table demo1), data 3, data 4, etc.
How insert again I can put / call data from another table insert in this table (emp2).
I don't know if my example is correct (my English is very bad).
This is an example: (sorry for the points).
table EMP2:
1 data... 2 data... 3 data... data 4... data 5
(from emp1)... (from emp1)... 8534... 2347... 4544
Thanks for the help.
Published by: user10182692 on 24-May-2009 08:39
Published by: user10182692 on 24-May-2009 08:40
Published by: user10182692 on 24-May-2009 08:45Welcome! on the forum.
You can include the code and data in the {code} tags
If I'm good, and I know what is your condition
insert into emp2 ( data1, data2) select data1, data2 from emp1
SS
-
Oracle Application Express relaxing select the database table?
Hi all
I use Oracle Application Express. I created a page and I want to fill the 2 (txtname, txtaddress1) on my page when the user provides no Id on another field (txtID).
Can someone help me please how to do this?
Thank you very much
Gunajee.Hello
There are 3 ways to meet your needs
1 goto your article > Source > Source: always... > Type of Source: SQL returns a single value > Source value or expression: select column_value from table_name where pk =: pk_item
2 create a calculation
The rendering of Page Goto > calculation.Create calculations > on this Page >. . follow the instructions in the wizard and set required values.
3. create a dynamic action (a better and simpler)
The rendering of Page Goto > Dynamic Actions.create dynamic Actions > on item1 > when changed > value > sql statement > write the sql query > done point > required element (item2)
fire on loading the page: uncheck
Note: For 1 and 2, you need to send the page.
You can use {'code'} {'code'} to keep your code. (remove the apostrophes and use)
Kind regards
Little Foot -
Reading the data from the XML file to the SQL Tables.
I have XML of this type
< empdept >
< employees_marks >
< emp_id > 1 < / emp_id >
BUS from < DIVISION_ID > < / DIVISION_ID >
PRE < JOB_ID > < / JOB_ID >
SMITH of < first-name > < / name >
JAMES < LAST_NAME > < / LAST_NAME >
< > 10000 salary < / salary >
< / employees_marks >
< dept >
< dept_details >
< deptid > 10 < / deptid >
< deptname > mechanical < / deptname >
< / dept_details >
< dept_details >
< deptid > 20 < / deptid >
< deptname > civilian < / deptname >
< / dept_details >
< dept_details >
< deptid > 30 < / deptid >
< deptname > ICE < / deptname >
< / dept_details >
< / dept >
((< / empdept > '));
With the above format am able to recover data successfully to relational tables.
< employees_marks emp_id = 1 DIVISION_ID = BUS JOB_ID = salary PRE = 10000 / >
< dept_details deptid = 10 deptname = "Mechanical" / >
< dept_details deptid = 20 deptname = "ECE" / >
< dept_details deptid = 30 deptname = "EEE" / >
that is, I have data as attributes rather than elements, if can I know the way how can I reach the requirement.
How to recover data when it is present as attributes rather than elements.
Thank you
Sunil. Nwith temp as ( select xmltype('
') tempxml from dual ) SELECT extractvalue(tempxml,'/employees_marks/@emp_id') empid, extractvalue(tempxml,'/employees_marks/@DIVISION_ID') divid , extractvalue(tempxml,'/employees_marks/@JOB_ID') jobid , extractvalue(tempxml,'/employees_marks/@salary') sal FROM temp Do you need this?
Ravi Kumar
-
Can we do a line read only in the advanced table?
Hello
We have an obligation where the user wants to the first line of a table advanced to readonly, and remaining lines as editable lines. Can someone please let me if we can achieve this?
Thanks in advance.
SolèneHello
Yes, you can set row as read only in the table in advance.
Steps to follow:
(1) take the attribute Transient seen as ControlReadonly (Boolean Type) in the attached with advanced table view object.
Note: Your all the lines will have now a new attribute called ControlReadOnly.(2) using the property read only set SPELL on each field of your advance deposited the region.
as ReadOnly ${oa.. ControlReadOnly} (3) the loading of the page, in the query itself process you can set the attribute to True and if you need frontline to travel up to the end of the rows in the table and set the value to False for ControlReadOnly.
ex: line = vo.first ();
row.setAttribute ("ControlReadOnly", Boolean.TRUE);Kind regards
Swati.
Maybe you are looking for
-
App has taken hostage by another after update
Recently I did a 'update all' to my apps on my iPhone, not realizing apps which has been updated was a completely new and different application. The former "triggering Fest", a kaleidoscopic art application which I suppose was for all ages, transform
-
How do I get the download icon in the toolbar?
There is an icon consisting of three balls of color rotation while the download is in progress.How to get this functionality applied?
-
Change background string indicator when color in short
Hi, I know how I can change the background color for an indicator of string by using the Text.BGColor property. My question is how can I change this only when the indicator is at the point, I mean when the cursor is in this area. As soon as the curso
-
I work at 115vac 400 Hz power reading by using a PXI-4472. I got it to work, but if the signal is lost the loop crashes. How it stop doing that? Someone at - it an alternative even if voltage reading example its 0 volt?
-
BitDefender Total Security 2015, I installed on my Windows 7 system, and I want to remove it. BitDefender seems designed to prevent users to remove and prevent users to install another security software. Try to remove Bitdefender via the window prog