Ask about the structured storage of XMLTYPE column in Oracle Xml db
Dear all,
Version of DB: Oracle 11g (11.2.0.3.0)
I have a table with an XMLTYPE column with a structured storage.
CREATE TABLE Orders ( Order_id NUMBER NOT NULL, Order_etc VARCHAR2(100), Order_desc XMLType NOT NULL ) XMLTYPE Order_desc STORE AS OBJECT RELATIONAL XMLSCHEMA "http://localhost/public/xsd/order_desc_xsd.xsd" ELEMENT "OrderState";
I then recorded the XSD XML Db schema that is required for the structured storage.
Before the creation of the table, I had created a table XMLTYPE (db_objects) and was able to use the query to verify that all objects, the XMLTYPE table got broken into when I signed his XSD below.
SELECT column_name, data_type FROM user_tab_cols WHERE table_name = 'DB_OBJECTS';
And used under query to find data stored in the object-relational structure for my table (DB_OBJECTS) created with definition of XMLTYPE.
SELECT EXTRACTVALUE(xseq.column_value, '/THISROW/OWNER') AS owner , EXTRACTVALUE(xseq.column_value, '/THISROW/OBJECT_NAME') AS object_name , EXTRACTVALUE(xseq.column_value, '/THISROW/OBJECT_TYPE') AS object_type , EXTRACTVALUE(xseq.column_value, '/THISROW/OBJECT_ID') AS object_id , EXTRACTVALUE(xseq.column_value, '/THISROW/CREATED') AS created FROM db_objects do , TABLE(XMLSEQUENCE(EXTRACT(VALUE(do), '/ROWSET/THISROW'))) xseq WHERE ROWNUM <= 10;
Now could someone let me know, How to find how the column of XMLTYPE (Order_desc) was divided between other objects, just as I did for the Table with XMLTYPE (as shown above)?
Thank you very much.
First of all, because you are on 11.2, ExtractValue is obsolete and the documentation lists three options to use instead. Here's an (untested) option
SELECT owner, object_name, object_type, object_id, created FROM db_objects do, XMLTable('/ROWSET/THISROW' PASSING do.object_value COLUMNS -- Set data types accordingly owner VARCHAR2(20) PATH 'owner', object_name VARCHAR2(20) PATH 'object_name', object_type VARCHAR2(20) PATH 'object_type', object_id VARCHAR2(20) PATH 'object_id', created VARCHAR2(20) PATH 'created');
Secondly, why the column order matter? You store in a method of object / relational. As long as the XML is valid per the schema, Oracle will be able to store the data and thus to retrieve later. How these data are mainly internal Oracle and shouldn't be touched because it can be changed from one version to another. You can use the schema annotation to control how Oracle cards and stores the XML content, but nothing in there specifies the column order I know.
It seems several details are missing information which could help others to answer your question as to what you need.
Tags: Database
Similar Questions
-
Ask about the 'top' of Linux on Linux for oracle user command
It's the output of the 'top' command in one of my linux server hosting an Oracle instance with SGA 600 MB and 400 MB PGA. One instance is in this server.
Top - 14:36:37 04:26, 3 users, load average: 0.05, 0.11 0.28
Tasks: 124 1 total, running, 123 sleeping, 0 stopped, 0 zombie
CPU: 0.2% us, sy 0.1% 0.0% ni, 66.6% id, 33.1% wa, 0.0% Hi, 0.0% if
MEM: 12299332 k total, * 2569836 k * used, 9729496 k free, 61288 k buffers
Swap: 20972816 k total, 0 k used, 20972816 k, 2274852-free updated k cached
PID USER PR NOR VIRT RES SHR S % CPU % MEM TIME + COMMAND
6345 oracle 16 0 37132 1752 1172 S 0,0 0,0 0:00.08 sshd
6346 oracle 16 0 54004 1536 1208 S 0,0 0,0 0:00.02 bash
6423 45376 0 16 10 oracle m 6228 S 0.0 0.1 0:00.25 tnslsnr
6471 oracle 16 0 740 m 17 m 13 m S 0.0 0.1 0:00.02 oracle
6473 oracle 16 0 739 m 15 m 12 m S 0.0 0.1 0:00.01 oracle
6475 oracle 16 0 739 m 32 m 29 m S 0.3 0.0 0:00.07 oracle
6477 oracle 16 742 m 0 50 m 44 m S 0,0 0,4 0:00.27 oracle
6479 oracle 16 754 m 0 23 m 19 m S 0.0 0.2 0:00.43 oracle
6481 oracle 16 0 739 m 24 m 20 m S 0.0 0.2 0:00.61 oracle
6483 oracle 16 740 m 0 88 83 m m S 0.7 0.0 0:00.71 oracle
6485 oracle 16 0 739 m 22 m 19 m S 0.0 0.2 0:00.01 oracle
6487 oracle 16 0 740 m 30 m 25 m S 0.3 0.0 0:00.15 oracle
6489 oracle 16 741 m 0 55 m 48 m S 0.0 0.5 0:00.29 oracle
6491 oracle 16 0 739 m 24 m 20 m S 0.0 0.2 0:00.01 oracle
6493 oracle 16 0 739 m 15 m 11 m S 0.0 0.1 0:00.01 oracle
6495 oracle 16 0 739 m 14 m 11 m S 0.0 0.1 0:00.00 oracle
6622 oracle 16 739 m 0 m 16 m 13 S 0.0 0.1 0:00.00 oracle
6626 oracle 16 740 m 0 79 74 m m S 0.7 0.0 0:01.95 oracle
6636 oracle 16 0 740 m 28 m 23 m S 0.0 0.2 0:00.06 oracle
6638 oracle 16 0 739 m 16 m 12 m S 0.0 0.1 0:00.01 oracle
6846 oracle 16 0 739 m 19 m 16 m S 0.0 0.2 0:00.02 oracle
6848 oracle 16 0 739 m 24 m 21 m S 0.0 0.2 0:00.04 oracle
6850 oracle 16 0 739 m 19 m 16 m S 0.0 0.2 0:00.02 oracle
6852 oracle 16 0 739 m 19 m 16 m S 0.0 0.2 0:00.01 oracle
6854 oracle 16 0 739 m 30 m 26 m S 0.3 0.0 0:00.12 oracle
6856 oracle 15 0 739 m 28 m 24 m S 0.0 0.2 0:00.18 oracle
6858 oracle 15 0 740 m 40 m 35 m S 0.3 0.0 0:06.39 oracle
6862 oracle 16 0 739 m 32 m 28 m S 0.3 0.0 0:02.25 oracle
6864 oracle 16 0 739 m 19 m 16 m S 0.0 0.2 0:00.02 oracle
6866 oracle 16 0 739 m 19 m 16 m S 0.0 0.2 0:00.03 oracle
6868 oracle 16 0 739 m 19 m 16 m S 0.0 0.2 0:00.02 oracle
7480 oracle 15 0 37264 1668 1092 S 0,0 0,0 0:00.15 sshd
7481 oracle 15 0 54004 1528 1196 S 0,0 0,0 0:00.05 bash
10333 oracle 16 0 739 m 20 m 16 m S 0.0 0.2 0:00.00 oracle
10337 oracle 15 0 6168 1080 768 R 0,0 0,0 0:00.00 top
RAM total as seen from the high command is 12G.
* 2569836 *-total RAM that is currently used.
How I see the total RAM used by all Oracle processes running on that server. The server is Linux X 86 64 bit. I can summarize the values under the column 'VIRT' command 'top' to see the total RAM used?
Is it possible to see the total RAM and CPU used by top Oracle?
"VIRT" is the virtual memory - what is related to the figure above, which is the physical memory (RAM)?
Thanks in advance
SSN
Published by: SSNair on October 21, 2010 02:39Oracle used shared memory to implement the CMS, which was the largest consumer of memory of the Oracle instance. The problem is that in of many modern operating system, including linux, it is difficult to define the use of memory real fo software. This is because the memory used by a process consists of shared (for example, shared memory, shared library, executable code) and private components (for example, the heap, stack). Utilities such as top, ps, etc. provides all the visible memory through a process, regardless of whether or not it is shared. Accordingly, the total amount of VIRT etc. will be inflated by shared components. A more accurate figure of the use of memory, shared memory / library / code should be counted once.
Before 11g, Oracle used System V ipc, and it is possible to control the amount of memory allocated by using IPCS. 11 g, Oracle passed to/dev/SHM, use df to check memory allocation. (Thanks user11150436)
The figure of "Mem used" in the upper part is the actual use of memory: shared memory and the library are not counted multiple. However, Linux always puts in cache (read before actually requested) and disk i/o buffer (writing after completion of signaling). Therefore, "Used Mem" is almost always of very nearly the amount of physical memory. "Used Mem' - 'buffers' - 'cached' reflects the memory actually used by the operating system and all the programs most accuately.
And you can use the pmap utility to check the memory card. Can classify you the use of memory sharable and unsharable to calculate a more accurate result, adapted to your need. You need knowledge of OS to understand the output.
-
I already bought the annual plan, I have installed PS, but I can't open the LR, he keeps asking about the serial No.
isn't the annual plan for ps and lr?
Download LR you remove and reinstall your installation of Photoshop Lightroom 5? Licensing for your membership apply to Lightroom if you install through the creative Cloud Desktop application. You can find more details at install and update the apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html.
-
Hi all
I've read about ISO 7816-4 and he talk about MF, DF, EF files which are used in smart cards, I use the java card.
I'm reading java card but I have not read about the structure of these files,
According to iso/iec-7816-4, A4 is an INS to SELECT a command FILE. In scosta if I want to record the name of the smart card then I do
* 1 *-create MF
* 2 *-create Df (INS - E0)
* 3 *-create ef with record structure(INS-E0) oriented
* 4 * run the command "write" record (* INS-D2 *)
and now I can read this name when I want it using the read record command.
-------------------------------------------------------------------------------------
I just want to know that if I want to record several names in java card (in java card eeprom) so what line I need to write within the PROCESS of the applet () method.
-Permanent how to record in the smart card memory?
-How I read the perticular data or the location where name exists?
Thanks in advance...
Published by: rohit pathak on 9 February 2012 22:41
Published by: rohit pathak on 9 February 2012 22:42Hello
I think you should start new threads of each for a question. It will help others too to get info and advice and this is as good for you as more expert will look at them and you will respond.
Concerning
-
Question about the Structure of the InDesign files
I had an interview Friday for design work and they asked me to send them a file InDesign stripped without photos or anything, just a file in order to check the structure of the file and see how I set up my files.
1. What is the structure of files right?
2. What do you think they are looking for?
3. How can I send them?
Thank you!
I would like to provide the following:
Bleed Setup (usually specified comme.125 inches for commercial printing)
Layer stacking order (Z) (to see if you know how a document flattened)
Margins and columns (mainly for multi-column Documents)
Page Setup (spreading if facing Pages or single Page is needed)
I would like to start with 3 layers listed of how they appear in the Layer palette:
Text (this stays on top to counteract the effects of transparency)
Images (this layer is used for images or a type with transparency effects)
Background (I create a rectangle of size of purge with a background and outline of the default none)
If including the text:
Give an example of:
Paragraph and character styles
Nested styles
BONUS: Grep Styles
I have also to create a group of mixed some sort and dieline inks using a spot color and super.
It can impress if you included Rich Black if necessary.
All of this would show them your knowledge of Indesign and Print Design
-
Ask about the feature find my phone
Hello Apple support Team,
I have a question about the find my iPhone feature which is as follows.
-If I had put in place the "find my phone" feature when I bought the iPhone and did not open at all in 2-3 months. So that the disconnection of the app itself?
I ask this because my phone got stolen yesterday and looking for opportunities that could have gone wrong.
On my laptop, I'm always a corner of yesterday in front of https://www.icloud.com/#find to find the location, but its doesn't help not.
(PS: this my second time that find my iPhone is not useful for me, I really wish that Apple must lock the turning the option off when the phone is in mode Code (lock mode))
Waiting for your response.
Thank you
Ravi
If you enable find my iPhone, it will be on except if you have disabled (requires your password to iCloud). The location will only show if the phone is connected to a network and still has the power.
-
Question about the guest of dashboard and column
My question about the dashboard and column prompt:
(1) prompt dashboard usually work with only for columns that are in the topic area. In my report, I have created some of the columns that are based on other columns. As I have the daysNumber column that is based on two other columns, because it calculates the difference between two dates. I can't find this column invites when I create dashboard. I need to make a guest on this column.
(2) to one of the column, I have only two values 1 and 0. When I create a prompt for this column, is possible that falling of drop down it displays 'Yes' of 1 0 and 'No' and always filter the request?Hello...
I forgot to tell you one thing... but performance wise... If you create the column in RPD itself, it is good and easy to maintain.
If you want this feature also... once again you choose directly the column in the area of topic... ;)Thank you & best regards
Kishore Guggilla -
Ask about the policy of replacement of defective parts under warranty (laptop)
Hello. I had a laptop computer with a HARD drive 320, which became faulty (not totally, in fact) within 2 weeks of purchase. I turned it a HP service center and they got it replaced with a new job. Now everything works fine ATM, however I have noticed that my current HARD drive is a Western Digital while I remember that I had before the failure was a one Seagate. Now, I have a question about the HP replacement policy: is it possible to get another brand of HARD drive altogether in lieu of one that was part of the original shipment or should I have obtained one of the same company (Seagate) otherwise the same exact model of the HARD drive as a replacement?
They replace it by what they have there at the time, any policy on this.
This is a forum to a user, no employee of HP here, with the exception of the moderators of the forum.
WD is currently better than Seagate in my opinion.
.
-
Hello
I have a question about the segragation of database access using authentication of the os (like sqlplus "/ as sysdba") in the windows environment. Let me briefly explain my requirement: -.
Assume that you have two DBA viz DBA1 and DBA2 and 4 resideds of databases in a windows server say A, B, C and D.Now I want to configure it in a way if DBA1 opens a session on the server then it may connect to the database A and B using only OS and DBA2 authentication can connect to database C and D only use OS authentication.
Please let me know how to configure for this requirement.
Version of the database is 11.2.0.3
Hello
This doc is 11.1 but I guess it's the same in 11.2 roles on Windows and administering external users
You create a group ORA_SID_DBA and doing it this way - in recent years I have done but it used to work ok...
See you soon,.
Harry
-
Ask about the creation and filling I$ table on different condition
Hello
I have a question about the creation and filling I$ table on a different condition. In which condition the I$ table creation? And these conditions are given below:
(1) * source and transit area * are on the same server (that is to say target is located on another server)
(2) * gathering and target area * are on the same server (IE source is on another server)
(3) * source, transit area and target * are * different 3 * Server
Source 4), area transit and target are on the same server
Thank youI'm not quite clear to your question. Always try my best to erase it.
In your all over requirement I$ table will be created.
If the same staging as target (a database, a user) then all temporary tables are created in this user
If the scaffolding is different from the target (a database, two users (A, B)), then all temporary tables will be created under that user A (lets consider) and the data will be inserted into the target table that is present to user BStaging is different from the target (two database, two users (A1, A2), architecture not recommended) if all temporary tables will be created under that user A1 (A1 of the databases) and the data will be inserted into the target table which is present in user A2 (A2 data base)
If the source, staging, the target will be under a database then no. LKM is required, IKM is sufficient to load the data into the target. Especially for this, you can see an example given by Craig.
http://S3.amazonaws.com/ora/ODI-Simple_SELECT_and_INSERT-interface.swfThank you.
-
A very basic question about the shared storage
To implement GR 11, 2 in Sun SPARC 5.10, our sys admins have allocated block devices in the shared storage and they sent us a letter mentioning the disks. This is what looks like their mail
Storage attached with the Node1
Storage attached to Node2/dev/rdsk/c4ikdzs3 /dev/rdsk/c4ikdzs4 . .
When I connect with the Node1: / dev/rdsk, I see/dev/rdsk/c5ikdzj2 /dev/rdsk/c5ikdzj5 . .
as they have said. Same for Node2/dev/rdsk/c4ikdzs3 /dev/rdsk/c4ikdzs4 . .
But all raw devices mentioned above should be visible at/dev/rdsk of nodes. Right? Isn't that whole point of CARS; Shared storage ?resistanceIsFruitful wrote:
But all raw devices mentioned above should be visible at/dev/rdsk of nodes. Right? Isn't that whole point of CARS; Shared storage ?
Not exactly, if you are referring to the names of devices...
Each core will make a discovery to support when starting. When dealing with the LUN through one HBA (or similar), there is absolutely no guarantee that the nuclei will detect the LUNS in the same order and assign the same scsi device names to them. A LUN can be called device-foo-1 on a single server and device-foo-21 on another.
In addition, several HBAs will be dual port and dual fiber running channels. So, not only is the same logic unit seen as a scsi device, different number of each core but you can see more than once. Device-foo-1 and device-foo-33 may be the same physical LUN on server 1.
To solve this logical device name is required. This will be the name of the same device on all servers - and that it will support multiple paths of I/O to the LUN in turn seamlessly. This is done by looking at the unique signature of the SCSI - called WWID or World Wide nameof the software "special driver. With this unique signature, s/w only recognizes a specific LUN, regardless of what server s/w runs on.
This s/w is called Multipath on Linux, EMC Powerpath and so on. I expect that you will have something similar on your servers.
Scsi device that is mapped by the kernel to the unit number logic is not used. In the case of multipath , for example, use the + / dev/mpath/mpath
+ devices. In the case of Powerpath, these will be + / dev/emcpower + devices. What are the names of device you will use to 11g Grid Infrastructure and Oracle ASM and RAC installation and configuration of shared storage.
-
Ask about the types of objects
Hello
I have a question about the type of object. I want to see the script for the type of object created, that is already stored in the database. How can I see who
ConcerningHello
So, you can try [DBMS_METADATA. GET_DDL | http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_metada.htm#ARPLS640]...
MHO%xe> create or replace type mytype as object( col varchar2( 10 )); 2 / Type is aangemaakt. Verstreken: 00:00:00.37 MHO%xe> select dbms_metadata.get_ddl('TYPE', 'MYTYPE') from dual; DBMS_METADATA.GET_DDL('TYPE','MYTYPE') ------------------------------------------------------------------------------ CREATE OR REPLACE TYPE "MHO"."MYTYPE" as object( col varchar2( 10 ));
-
Ask about the order of the column in a table
We have a table called EMP in several of our patterns. JOB is the third column in order. But in certain patterns, JOB is not the third column. I'm looking for patterns with EMP table where the column of EMPLOYMENT is not the third column.
SQL > desc emp Name Null? Type ----------------------------------------- -------- -------------- EMPNO NOT NULL NUMBER(4) ENAME VARCHAR2(10) JOB VARCHAR2(9) MGR NUMBER(4) HIREDATE DATE SAL NUMBER(7,2) COMM NUMBER(7,2) DEPTNO NUMBER(2) select column_name, column_id from dba_tab_Cols where TABLE_NAME = 'EMP' AND OWNER = 'SCOTT' order by column_id; COLUMN_NAME COLUMN_ID ------------------------------ ---------- EMPNO 1 ENAME 2 JOB 3 --------Third column MGR 4 HIREDATE 5 SAL 6 COMM 7 DEPTNO 8
select owner from dba_tab_Cols where TABLE_NAME = 'EMP' AND OWNER = 'SCOTT' and column_id != 3;
-
Question about the structure of logical storage Foundation for Oracle: blocks and lines
Version: 10 g 2, 11G
Question1.
An oracle block (say an 8 k or 16 k block) can contain multiple lines. Right?
Question2.
Each row stored in an oracle block is referred to as a piece of line in the terminology of the Oracle. Right?Hello
Question1.
An oracle block (say an 8 k or 16 k block) can contain multiple lines. Right?Years: Yes, in a block oracle, there may be more than one rank that oracle 10 g or 11 g is not serious.
Question2.
Each row stored in an oracle block is referred to as a piece of line in the terminology of the Oracle. Right?
Rep. : Yes, you are right.The link below will better answer you on this question.
http://download.Oracle.com/docs/CD/B13789_01/server.101/b10743/schema.htm
Best regards
Rafi
http://rafioracledba.blogspot.com/Published by: Rafi (Oracle DBA) on March 29, 2010 06:37
-
Ask about the Pause/break key on the keyboard
As Saroseus,
I have a program that uses the Pause/break to continue to operate and without it I can not continue to use it for work. The work of the society for us gave keyboards with the Pause/break key, but it is not ergonomic and it's hurting my wrist to use. That is why I bought this keyboard. This is a great keyboard and it works well, but I need this button "Pause". While Microsoft can do you something about it.
Hello
Let me ask you;
- What exactly you're talking about when you say, ' I need this button "Pause"?
- Is not the Pause/break key in the keyboard you purchased, working?
- This keyboard does not have a Pause/break key?
- Do you mean you bought now ergonomic keyboard?
- The keyboard has Pause and break keys separately?
It might be possible that some newer keyboards may have separate keys for the pause feature and the pause feature. Instead of these two functions are on the same key, the keyboard has a separate PAUSE button of the PAUSE button.
On many keyboards, the key that controls the functions pause and break is usually labeled as the PAUSE button. As a result, many keyboard shortcuts show you "Press a PAUSE button." However, when you only press the BREAK key, the default behavior is to take a break.
This behavior that many people know can cause some confusion on newer keyboards that have separate PAUSE and BREAK keys. For example, the newer laptops may have separate PAUSE and BREAK keys.
Steps to reproduce the behavior
Follow these steps on a keyboard that has one button PAUSE/ATTN:
- Open a command prompt window. To do this, click Start, click run, type cmd.exe, and then click OK.
- At the command prompt, type dir, press the ENTER key and immediately press the PAUSE/BREAK key.
Note that the list of files in the directory stops. This behavior indicates that the default behavior of the key is to pause. To see this behavior for a directory that has a short list of files, you must press the PAUSE/BREAK key very quickly after you press the ENTER key.
- Press CTRL + PAUSE/BREAK.
Note that the list of files in the directory stops and returns you to the command prompt. This shows that the secondary behavior of the key is to break.
In addition, if you follow these same steps, and if you press the CTRL + Windows Logo + PAUSE/BREAK Keyboard shortcut to open the System Properties dialog box, the dialog box does not appear. This behavior is further proof that the default behavior of the PAUSE/BREAK key is to pause.
If the keyboard does not pause button, you can use the screen keyboard and check.
Open the on-screen keyboard by clicking the Start button , clicking all programs, Accessories, ease of access, and then click on-screen keyboard.
You can see: using the keyboard (OSK) typing on-screen
Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.
Maybe you are looking for
-
All the buttons worked fine until I updated Firefox to v.16 to v.17. Now, I can't get any of the buttons mentioned above in the toolbar to work more. Links inside an HTML page still work, but not the buttons above. This BUG v.17 appeared on my platfo
-
Satellite M30x-115: Fn + F5 does not work
I have problem with Fn + F5 key, is not scroll the available screens. (I lost the other monitors and I have no signal for other currencies TV). Any ideas how to fix?The laptop is a Satellite m30x 115 Thanks for your help. Haris
-
Tecra M7: Vista display driver (NVidia NVS110)
Hello! I was wondering if someone else encounter the following issues, which I believe are linked to the display driver. 1. black screen after the release of the mode standby (no hibernation). The solution I found is to close and reopen the lid (assu
-
Satellite M60-104 Bluetooth - NEW
I have the above machine and I understand that BT is not installed. I am really annoyed on this subject as it has been sold as an active BT machine. In any case I am trying to connect the computer to a mobile phone and its does not work with a stick
-
How to set the default browser on an iMac? I know this question has been asked before, but I have problems to more responses. So be specific. Thank you.