What is different between the use of the text string and bfile in an XMLTable?

I have a problem with obtaining data on an XMLTable which are loaded from a Bfile.
I created two simular tables and load one with the help of a string of text on the other
table is loaded from a file using an Oracle Directory.

create the test_xml XMLtype table
insert into test_xml VALUES (xmltype ('))
<? XML version = "1.0" encoding = "ISO-8859-1? >
< budgetarLista xmlns = "x - schema:atg_ms.xml" >
< ncipal >
< code > 1 < / kod >
< namn > 93/94 < / namn >
< startDat > 1993 - 07 - 01 < / startDat >
< slutDat > 1994 - 06 - 30 < / slutDat >
< / ncipal >
< ncipal >
< code > 2 < / kod >
< namn > 94/95 < / namn >
< startDat > 1994 - 07 - 01 < / startDat >
< slutDat > 1995 - 06 - 30 < / slutDat >
< / ncipal >
< ncipal >
< code > 21 < / kod >
< namn > 2009 < / namn >
< startDat > 2009 - 01 - 01 < / startDat >
< slutDat > 2009 - 12 - 31 < / slutDat >
< / ncipal >
< ncipal >
< code > 22 < / kod >
< namn > 2010 < / namn >
< startDat > 2010 - 01 - 01 < / startDat >
< slutDat > 2010 - 12 - 31 < / slutDat >
< / ncipal >
((< / budgetarLista > '));
create the test2_xml of XMLtype table
Insert values (test2_xml)
insert into test2_xml values (XMLTYPE (BFILENAME('XMLDIR','budgetarlista.xml'), nls_charset_id ('WE8ISO8859P1')));

If I do a select * from both tables, I get the same performance:

SYS_NC_ROWINFO$
----------------------------------------------------
< budgetarLista >
< ncipal >
< code > 1 < / kod >
< namn > 93/94 < / namn >
< SEOtoolkit...
But if I do one
SELECT a.kod, a.namn, a.startDat, a.slutDat
OF TEST_XML,.
XMLTABLE ('/ budgetarLista/ncipal ')
PASSAGE SYS_NC_ROWINFO$
COLUMNS
Kod integer PATH code «,»
VARCHAR2 (10) namn PATH "namn",.
date of startDat path "startDat."
date of slutDat path 'slutDat '.
) one;

I get an empty result of test2_xml that use the Oracle Directory file.
I can't understand what I'm doing wrong.
With regard to the Mats Jonsson ([email protected])

In my environment the query retrieves lines test_xml and test2_xml, and it's okay because you are missing the definition of the namespace.
Added definition of the namespace the query runs bth fom tables:

SQL> SELECT a.kod, a.namn, a.startDat, a.slutDat
  2  FROM TEST_xml,
  3  XMLTABLE('/budgetarLista/budgetar'
  4  PASSING SYS_NC_ROWINFO$
  5  COLUMNS
  6  kod integer PATH 'kod',
  7  namn varchar2(10) PATH 'namn',
  8  startDat date PATH 'startDat',
  9  slutDat date PATH 'slutDat'
 10  ) a;

Nessuna riga selezionata

SQL> SELECT a.kod, a.namn, a.startDat, a.slutDat
  2  FROM TEST2_xml,
  3  XMLTABLE('/budgetarLista/budgetar'
  4  PASSING SYS_NC_ROWINFO$
  5  COLUMNS
  6  kod integer PATH 'kod',
  7  namn varchar2(10) PATH 'namn',
  8  startDat date PATH 'startDat',
  9  slutDat date PATH 'slutDat'
 10  ) a;

Nessuna riga selezionata

SQL> SELECT a.kod, a.namn, a.startDat, a.slutDat
  2  FROM TEST2_xml,
  3  XMLTABLE(xmlnamespaces(DEFAULT 'x-schema:atg_ms.xml'),'/budgetarLista/budgetar'
  4  PASSING SYS_NC_ROWINFO$
  5  COLUMNS
  6  kod integer PATH 'kod',
  7  namn varchar2(10) PATH 'namn',
  8  startDat date PATH 'startDat',
  9  slutDat date PATH 'slutDat'
 10  ) a;

       KOD NAMN       STARTDAT  SLUTDAT
---------- ---------- --------- ---------
         1 93/94      01-LUG-93 30-GIU-94
         2 94/95      01-LUG-94 30-GIU-95
        21 2009       01-GEN-09 31-DIC-09
        22 2010       01-GEN-10 31-DIC-10

SQL> SELECT a.kod, a.namn, a.startDat, a.slutDat
  2  FROM TEST_xml,
  3  XMLTABLE(xmlnamespaces(DEFAULT 'x-schema:atg_ms.xml'),'/budgetarLista/budgetar'
  4  PASSING SYS_NC_ROWINFO$
  5  COLUMNS
  6  kod integer PATH 'kod',
  7  namn varchar2(10) PATH 'namn',
  8  startDat date PATH 'startDat',
  9  slutDat date PATH 'slutDat'
 10  ) a;

       KOD NAMN       STARTDAT  SLUTDAT
---------- ---------- --------- ---------
         1 93/94      01-LUG-93 30-GIU-94
         2 94/95      01-LUG-94 30-GIU-95
        21 2009       01-GEN-09 31-DIC-09
        22 2010       01-GEN-10 31-DIC-10

SQL> select * from v$version
  2  ;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE    10.2.0.4.0      Production
TNS for Solaris: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production

Max
[My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/01/10/crittografia-in-plsql-utilizzando-dbms_crypto/]

Tags: Database

Similar Questions

  • What is different between the event create and save

    I do not understand the position of the event details, create and save, I want to know the behine the theory of functions. Can anyone give some information?  Thank you!

    You can set the part listening to an event in the register for events.
    -Create and destroy functions are necessary for user events.
    -If you always talk registration of events front, yes you can do it dynamically register events and you must create and destroy the user event: https://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/dynamic_register_event/
    -If you can post vi/extract it might explain a little better what you're asking.

  • What is different between the ODI and FDQM?

    I need to know what is different between the ODI and FDQM?

    At is simpler ODI is a tool for ELT enterprise scale which can cope with very large amounts of data bwteen heteregeneous systems moving. It requires a certain degree of technical knowledge to use as well and that the user is competent enough with SQL. It isn't really a tool of the end-user and the jobs tend to be lights out processes to the application with a user interface for execution of these works limited. FDQM is a data quaility tool that gives the average end-user out-of-box functionality must be able to transform and load data into various target systems. It is not designed to move very large amounts of data efficiently i.e. multi millions of lines of data as ODI. However, it has a rich user interface that provides an easy to use mapping engine, a repeatbale under control the data loading process and has a host of built elements, declaration and verification, which would have to be built from scratch in a tool like ODI

  • Re: What is the different between the NB550D-109 and the NB550D - 10G?

    Hello guys. I need help on the NB550D. What is the different between the NB550D-109 and the NB550D - 10G? Is just the color?

    I checked the specifications and I find no difference. Both models have the same part number, so both belong to portable computers with the same hardware configuration. Thus, the difference can be color only.

    What I see is the 109 NB550D offered in more countries than NB550D - 10G.

  • HP officejet 5740: what is different between the office jet 5740 and the 5742

    My HP 4632 just died 1 month warranty.   Looking for a new printer.  This model still sells... but Amend for the price was a great ptinter.  Looking to buy another printer...

    What is different between the office jet 5740 and the 5742

    Hello Izzy1211dw,

    The difference between these models (and the 5745) are content to include the box according to where you buy, like maybe one of these models can have the USB cable included in the box, which is not the other.  It is a HP reseller application, but in regards to the product specification, they are the same.

    You can see the specifications for each of them in these links:

    Printer support e-all-in-one-HP Officejet 5740

    Printer support e-all-in-one-HP Officejet 5742

    Printer support e-all-in-one-HP Officejet 5745

    I hope that answers your question.

  • What is different between the and oracle tutorial and taken that auto study of oracle - in addition to the cost?

    What is different between the socket and ware course oracle and making that auto study of oracle - not to mention that the cost

    I would take oracle 12 c performance and tuning.

    I noticed its a lot cheaper as self-training which is web access for a year.

    However, self study does not prepare you as well as the oracle himself.

    Thank you Roger

    UO has four types of training: classroom, virtual Live, training on demand and self study.  The first three are all variations on the same thing: a human being a conference accompanied by a Powerpoint presentation.  The only difference is the specific method of delivery.  I took a dozen or more courses in the classroom, when I worked for Oracle, but none of the other three.  I don't know that they still existed at the time.

    Self-study courses are completely different.  They are not recorded training sessions (or they would cost the same as TOD). They seem to be created by Skillsoft computer-assisted training courses. There are some demos available on the OU Web site. Go to the following URL and click on the tab "Demos'", just above the section asking you to select a product area:

    Self-study courses | Training | Oracle

    That said, it is not yet an option available for the course self-study: Oracle 12 c database: performance management and Tuning.

  • the different between the default constructors and complete this builders

    I have in my grain I have two constractors
    public Person() {}
    }

    public person (String id, String firstName, String lastName) {}
    This.ID = id;
    this.firstName = firstName;
    this.lastName = lastName;
    }
    in servlet I test the following, they do the same job, so what's the difference between these two constractors?
    Person person = new Person (id, firstName, lastName);
    Person person = new Person();
    person.setId (id);
    person.setFirstName (firstName);
    person.setLastName (lastName);


    If the daughter class extends the class parent, if I need to use great I can use the default constructors?

    A few notes to clarify the terminology first.

    I have in my grain I have two constractors

    Initially, I planned to ignore this harmless typo, but since you have repeated, we will the work point and move it ouf of the path: it's + constr.uctor +.

    the different between the default constructors and complete this builders

    There is no such thing as a "full" constructor There are builders, and a single class may have several of them, which are differentiated by their argument list.
    I assume you mean by "complete Builder" "constructor with arguments" (I dunno what is the official term for this, I'll try to find it in the specs, but that's a detail).

    Also note that the notion of "default constructor" is different from what you think:
    Citing the [url http://java.sun.com/docs/books/jls/third_edition/html/classes.html#16823] JLS:

    If a class contains no statement of constructor, a constructor that takes no default setting is automatically provided:
    (...) the default constructor takes no parameters and simply calls the constructor of the superclass without arguments.

    In your case (given the code provided), you mean "an explicitly declared constructor, which takes no arguments.

    the different between the default constructors and complete this builders

    In addition, there is no such thing as a manufacturer 'this '.
    There are builders, who are declared (or by default), and there is This syntax, which allows to invoke a constructor.
    Typical example:

    public class Price {
        /**
         * Creates a new price, with the specified amount and in the specified currency.
        */
        public Price(int amount, String currency) {
            this.amount = amount;
            this.currency = currency;
        }
    
        /**
         * Creates a new price, with the specified amount and in the default currency (US $).
        */
        public Price(int amount) {
            this (amount, "USD");
        }
    
        /**
         * Creates a new price, with a zero amount and in the default currency (US $).
        */
        public Price() {
            this(0);
        }
    }
    

    * If the daughter class extends the class parent, if I need to use great I can use the default constructors?

    If your question is "I can invoke any superclass constructor, including the default?", then the answer is almost Yes (it's 'Yes, you can call a constructor that is visible to the subclass' - visibility here is in terms of public/protected/package ).

    Example:

    public class Mafioso extends Person {
        public Mafioso(String firstName, String lastName) {
            super(firstName, "The Silencer"); // Mafiosi usually don't like being known by their actual last name
        }
    
        public Mafioso() {
            super();
        }
    }
    

    Note that you can call the constructor of the superclass No. - arg (see super() invocation above), as soon as such a no. - arg constructor exists and is visible, no matter if you explicitly declared, as in your person class, or is this a compiler-generated default constructor.

    I hope this helps. Kind regards

    J.

  • What are different between the IPS and AIP - SSC and AIP - SSM?

    Dear all,

    I'm not clear about the IPS, AIP - SSC and AIP - SSM module which are different?

    Then, when we can use IP addresses?

    When we use the AIP - SSC?

    When we can use AIP - SSM?

    Thus, a different IPS and AIP - SSC and AIP - SSM material or the same material?

    Best regards

    Rechard

    AIP - SSM is an IPS Firewall ASA module.

    IPS is available in different flavors:

    -Device of the IPS 4200 series

    AIP - SSM - module IPS Firewall ASA

    -IDSM2 - IPS module on 6500 series switch

    AIM - IPS - map IPS on router IOS

    Please rate and mark post useful.

  • Attack is different between the view and the browser preview of the design?

    I'm a long-time user of Dreamweaver, but I'm new to Adobe Muse. (I'm eager to learn, especially for its capability of Parallax scrolling). I ran into a problem now, however. It seems that the main in an unordered list (UL) don't shows not the same between design mode and Adobe Muse when you preview in Google Chrome. I'll try to join two screenshot images to illustrate.

    Screen Shot 2015-01-19 at 1.53.29 PM.pngScreen Shot 2015-01-19 at 1.53.47 PM.png

    The image on the left is taken from a way of creation of Muse (you can even see one of the directions in there.) The right image is the same area of Chrome. It is a pretty big difference.

    The unordered list has a specific paragraph Style and the header above it uses a different paragraph Style, as well as a character Style so that it uses one different font and other. However, all of the text in the box uses a value of 120% for the leader. What gives?

    In addition, for reference, the fonts I use are two Adobe Edge Web fonts provided within the Muse: League Gothic and regular Ubuntu.

    Hit it. It turns out that the problem is not the main, but rather the 'space before' and 'Space after' being calculated differently between the Design view and in Chrome. I was able to 'fix' by adjusting these two values. It is not very difficult, because there is still a chance that a line of text may wrap when I don't want that, or vice versa, but he should be fine for now.

  • What is the relationship between the main timeline and timelines of symbol in Adobe Flash Professional CC?

    I am new to Adobe flash and tried to create an E-card for a class. My teacher said that it is better just to have a keyframe for each layer in the main timeline and do all the clips of animation and film on the deadlines of each symbol. I'm having a hard time to understand how it works. To illustrate my confusion, let's start with an example.  I have a kite I want to start flying to frame 20. The kite is a symbol, so I create movement to 20 image interpolation in chronology of the wing. 20 on the symbol Timeline frame occurs at the same time as frame 20 of the MAIN scenario, or are they completely separate instances of time?

    Part of my mission, is should I use code snippets to add an element of interactivity to the Ecard. My confusion about the timeline affects my ability to do so. My teacher said that you need a stop on the first keyframe code to make sure that things will not start before you click the play button. Can I put the stop action on the main timeline or in the timeline of each symbol, or both?  Let's say I want to create a button that makes the kite flies when I click it. Where to play action 'go to and play', in the Assembly of the wing?

    I would greatly appreciate any help from the community. I'm the kind of person who needs to understand how things work. I searched for days, watch videos and read articles, but I still need to find a resource that effectively dissolved my confusion on this subject. So if anyone knows of any tutorials that explain how the main timeline and symbol timelines coincide, please share them with me. Thank you very much for your time.

    (P.S. are CC Animate Adobe and Adobe Flash Professional CC the same?)

    Thank you both for responding. Yes, your answers were useful, but a bit Advanced. I hope that you don't mind me asking a few follow-up questions.

    For Pete47-

    So I put my stop() in the main timeline. How the actionscript in the main timeline code works on the chronology of the wing if the two are separate?  Why not put the ActionScript on chronology of the wing? Clearly, there must be an interaction between the main timeline and symbols, right?  When you say "you can drag the symbol on the main timeline and it will run when you start", what do you mean by that? Like GETTING started, in the main timeline or in the scenario of the symbol? As you can see I am very confused by there!

    For Colin.

    I thought that Pete said you want to only have a keyframe in the main timeline. Then, when you said... "you can do it with an interpolation of the main timeline... from the beginning to the final position," why would you animate the motion on the main timeline? Why not in the chronology of the wing, can create another symbol of the tail in this period?

    And if the schedules of chronology and main symbol are separated, how SYNCHRONIZE you together different symbols to their movement to work together? And why should it be like that anyway?

    I am new to the community here, the last thing I want to say because you two sounds very knowledgeable on the Flash. How did you get your start? Did you start by watching the tutorials, read the manual, or something else?

    Once more, you have my abundant thanks for taking the time to help.

  • I was wondering what the difference was between the powerbeats 2 and the powerbeats 3. What is this new "chip" in the powerbeats 3?

    I was wondering what the difference was between the powerbeats 2 and the powerbeats 3. What is this new "chip" in the powerbeats 3?

    Hello

    Main differences are:

    • Up to 12 hours of battery life with Powerbeats3, which use chips to W1 Apple energy-efficient (vs. up to 6 hours of battery life with Powerbeats2).
    • A quick charge of 5 minutes for a typical use of an hour (vs 15 minutes to load).
    • Improved ergonomic design.

    More information:

    http://www.Apple.com/shop/product/MNN02LL/A/powerbeats3-wireless-earphones-shock-Jaune

    http://www.beatsbydre.com/earphones/browse-earphones/wireless-earphones/ML8V2.ht ml

  • What is the difference between the Service Station and Tempro?

    Searched for information on this, but have not been able to find:

    What is the difference between the Service Station and Tempro?

    I just run the wizard upgrade Toshiba and it installed the gas station but Tempro is already installed and seems to do the same.

    Concerning

    Bushy

    Hello

    These two tools are Toshiba one informs you of the new driver updates available on the Toshiba driver page.

    AFAIK Tempro is slightly older than the gas station.
    In addition the gas station seems to provide a bit more options and features like tool Tempro.
    However, I recommend using one my favorite utility's Service Station

  • What is the difference between the product key and product ID?

    What is the difference between the product key and product ID?

    I guess that thanks to my colleague Bruce Chambers, my question is answered. the product id is used subsequently and the key is used for installation. Thank you. See you soon.

  • What is the diffenrece between the Windows Defender and Microsoft Security Essentials? It is worth more than the other?

    Windows Defender vs Microsoft Security Essentials

    What is the diffenrece between the Windows Defender and Microsoft Security Essentials?  One is more recommended than the other or guarantee better security than the other? .. .or do they use the same definition files and also provide a safe protection?

    Please feel free to share your own opinions and thoughts on the comparison of the two programmes.  It would be much appreciated.

    If you run either of these two programs... That who and why?

    Thank you friends.

    Windows Defender is not an anti-virus program. MSE is a comprehensive security program and that you want to use.
  • Accumulated L7600 ink usage information are different on the "Inks" tab and the tab 'use '.

    I have a HP Officejet Pro L7680 all-in-one
    {Removed privacy}.  When I type the IP address in my browser, a very informative Web page is displayed.  However, information on the use of accumulated ink are different on the "Inks" tab and the "Use" of the Web page tab.  The "Inks" tab specifies the following black: 197,54 ml, yellow: 68,89 ml, Magenta: 160,93 ml and Cyan: 156,46 ml.  The 'Use' tab specifies the black following: 197,57 ml, yellow: 68,91 ml, Magenta: 42,53 ml and Cyan: 32,41 ml.  Why is the different information?  What information is correct?

    Fix.

Maybe you are looking for