XmlType variable initialization
Hi all
I have this code
declare
c_xml xmltype.
Start
dbms_output.putline (v_xml. GETSTRINGVAL);
end;
When I run it I have this error
ORA-30625: the distribution of method on NULL SELF argument is not allowed
ORA-06512: at line 7
30625 00000 - "shipping on SELF argument NULL method is not permitted"
* Cause: A member of a type method is called with a NULL AUTO value
argument.
* Action: Change the method call to pass in a valid argument of itself.
I think that my v_xml variable is empty.
My question is:
1-How do I initialize xmltype variable declaration
2. How do I test value of xmltype variable if its null or not
Hi Fabrice,.
1-How do I initialize xmltype variable declaration
Just put a valid instance of xmltype in there.
What you trying to do?
2. How do I test value of xmltype variable if its null or not
Use the IS NULL / is IS NOT NULL operators, like any other type of data.
Tags: Database
Similar Questions
-
Adding XML to an XMLtype variable
Hi all
I got an XMLtype variable, created using XMLelements, but I want to have an empty XML element just before the final closing tag.
All of the above comes from a table, but is not one I would like to add.
The query I use is:
Select xmlelement ("centres",
XMLAGG)
XmlElement ("remove",
XMLFOREST
(
t.centre_no as 'centreRef '.
xml_out)))
centers t
ceil(rownum / 1000) group;
that should result in:
<>centers
< remove >
<>Center
REF < centreRef > < / centreRef >
< / Center >
< / delete >
< / Center >
I would like to add a ' < add / > ' or at least a ' < add > < / add > "before the final < / centres > tag." How can I do this?
I saw insert/appendchildxml, but I can't get this function works.
If anyone has pointers, that would be great.
Thank you!
RobinIt's your current output:
SQL> with centres as ( 2 select 'ref' centre_no from dual) 3 select xmlelement("centres", 4 xmlagg( 5 xmlelement("remove", 6 xmlforest 7 ( 8 t.centre_no as "centreRef" 9 )))) xml_out 10 from centres t 11 group by ceil(rownum / 1000); XML_OUT -------------------------------------------------------------------
ref You do not have the CENTER element that you are showing in your output...
In any case, to add an empty element, you can use XMLCONCAT:
SQL> with centres as ( 2 select 'ref' centre_no from dual) 3 select xmlelement("centres", 4 xmlagg(xmlconcat( 5 xmlelement("remove", 6 xmlforest( 7 t.centre_no as "centreRef" 8 ) 9 ), 10 xmlelement("add",'') 11 ) 12 ) 13 ) xml_out 14 from centres t 15 group by ceil(rownum / 1000); XML_OUT ------------------------------------------------------------------------------
ref Finally, if you want the element CENTER too:
SQL> with centres as ( 2 select 'ref' centre_no from dual) 3 select xmlelement("centres", 4 xmlagg(xmlconcat( 5 xmlelement("remove", 6 xmlelement("centre", 7 xmlforest( 8 t.centre_no as "centreRef" 9 ) 10 ) 11 ), 12 xmlelement("add",'') 13 ) 14 ) 15 ) xml_out 16 from centres t 17 group by ceil(rownum / 1000); XML_OUT -------------------------------------------------------------------------------------------------
ref up to Oracle10g, you can use the EXTRACT function to format the output:
SQL> with centres as ( 2 select 'ref' centre_no from dual) 3 select xmlelement("centres", 4 xmlagg(xmlconcat( 5 xmlelement("remove", 6 xmlelement("centre", 7 xmlforest( 8 t.centre_no as "centreRef" 9 ) 10 ) 11 ), 12 xmlelement("add",'') 13 ) 14 ) 15 ).extract('/*') xml_out 16 from centres t 17 group by ceil(rownum / 1000); XML_OUT ------------------------------------------------------------------
ref In Oracle11g, you can use XMLSERIALIZE.
Max
[My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/01/17/supporto-di-xml-schema-in-oracle-xmldb/]Published by: Massimo Ruocchio, January 18, 2010 18:41
Tip for additional formatting -
Try to get an XML attribute from an XMLType variable
Hi people,
I'm parsing a XML very well, except for a couple of attributes in the first element. I do not know how to reference their (start date / to date). Here is an example XML and the way I am referencing the data.
<? XML version = "1.0" encoding = "UTF-8"? >
< date of animal - data = "2013-01-07" to date "07-01-2013" = >
< animal >
< name > dog < / name >
< color > Brown < / color >
< / animal >
< animal >
< name > cat < / name >
< color > Black < / color >
< / animal >
< / animal - data >
I have no problem get the data as well, assuming the above XML code is in a variable named v_XML of type XMLType
v_AnimalCount: = 1;
All in v_XML.existsNode ('/ data/animal-animal ['| v_AnimalCount |']) ') = 1
loop
v_Name: = v_XML.extract ('/ data/animal-animal ['| v_AnimalCount |'] /Name/Text()').getStringVal ();)
v_color: = v_XML.extract ('/ data/animal-animal ['| v_AnimalCount |'] /Color/Text()').getStringVal ();)
v_animalCount: = v_animalCount + 1;
end loop;
But how do I get the attributes of this day and this day using the same type of syntax (v_XML.extract)?
Thank you very much!
-AdamAdam vonNieda says:
But how do I get the attributes of this day and this day using the same type of syntax (v_XML.extract)?In the XPath language, an attribute is accessible via the "attribute:" axis, or its most commonly used abbreviation '@':
v_from_date := v_XML.extract('/animal-data/@from-date').getStringVal();
What is your version of db?
What about using XMLTable instead of PL/SQL? -
How to initialize a variable of type of car?
E.g.
String_table TYPE IS CLOB INDEX directory TABLE.
Str string_table
for example,.
Str (1): = ' ';
Str (2): = ' ';
.
.
Str (n): = ' ';
Str can be of multiple length, its length is determined at run time.Hello
You do not initialize an associative array, which is what you have.
-You declare the type
-declare a variable of this type,
-Add items (as you pointed out, only you need not add empty strings, first)
http://download.Oracle.com/docs/CD/E11882_01/AppDev.112/e17126/composites.htm#LNPLS005
Concerning
Peter -
Dynamic repository default Variable initialization
Using Oracle BI (10.1.3.3.2) administration tool, I created a repository Variable Init block, the Data Source, the set as default initialization string:
Select cast (trunc (sysdate)-1 date) of the double
and associated with a target Variable, dynamic repository Variable, default initializer, generator expressions, the Variable defined without any error message like:
DATE ' 2008-12-11.
Whenever I have save the repository using the administration tool, this definition of the variable converts without warning to:
TIMESTAMP ' 2008-12-11 00:00:00 '
How can I stop the conversion of TIMESTAMP DATE in the default initializer?Use to_char in your sql instead of using the cast function. For tank allows you to mention the format.
Select double To_Char(Sysdate-1,'MM/DD/YYYY').
-Madan
-
Using the dashboard invites you to initialize session variables
Hello world
I want to know if it is possible to have a command prompt of dashboard which is only used to change session variables. This prompt would stay in a tab completely unrelated.
Is this possible?When the user changes the variables in the prompt of
I guess its value not the variables... .am I get?
the variables seem to work only in the tab corresponding to the command prompt, even if the guest is configured to be valid in the dashboard.
(1) scope of application/presentation variables is in the table edge or the page
(2) as I illustrated it in a demo of dashboard have two pages variable req and multi select when I change the value in the command prompt, it changed the variable quantity value means the value of session variable initialization
The dat I gave screenshot is what you're looking for or something else?
Thank you
saichand.v -
Extract a specific node of XMLTYPE value
I have a piece of code that puts an answer Google geocoding in an XMLTYPe variable. I then use lines similar to the following to retrieve values such as address and location:
px_xml.EXTRACT('/GeocodeResponse[1]/result['||pn_result_number||']/formatted_address[1]/text()').getstringval();
It's a pretty lazy way of just looping through my results and picking a specific value.
Now, I need to extract just the addresses zip_code of XML component and can't do in the same way. Someone at - it ideas?
A call to the example is:
but you need to add your own key to operate. There are several components of the address and I just want to identify who has the type "zip_code".
Thank you!
It's a pretty lazy way of just looping through my results and picking a specific value.
And what about using a more friendly approach, XMLTABLE namely:
Extract data from complex XML of XMLType with nodes parents containing several internal nodes
Use an XPath predicate to target only the required component, for example:
select x.long_name from xmltable('/GeocodeResponse/result' passing px_xml columns long_name varchar2(200) path 'address_component[type="postal_code"]/long_name' ) x ;
-
Variable presentation doesn't work is not in the filter using expr
Hi friends,
I have a quick period with a variable presentation of the v_period used. Inturn, so I applied formula below one of my measure column in the analyses below the means, it does not work when I select the name of period of command prompt. How can I place the presentation variable from the prompt for the filter with expression.
FILTER ("Fact_GL_balances". "Actual_ending_bal" for HELP ("Dim2_GL_periods" ".") " Period_name' IN ('v_period')))
Kind regards
Saro
Hi, Saro,
I think the correct syntax when you use variable presentation would be:
FILTER ("Fact_GL_balances". "Actual_ending_bal" for HELP ("Dim2_GL_periods" ".") " ((IN Period_name' (@{v_period})))
OBIIE does not generate the correct syntax when you use the expression builder
And if v_period can have multiple values, you should use this:
FILTER ("Fact_GL_balances". "Actual_ending_bal" for HELP ("Dim2_GL_periods" ".") " ((Period_name' IN (@{v_period} [' @'])))
I have not tried in my OBIEE because I need to filter a Dimension column, so I have to use CASES instead of FILTER, but this is my reference:
Q & A: OBIEE OBIEE 11 g: presentation Variable initialization in a multiple selection prompt
Concerning
Ana GH
-
assignment of session system variable to a dynamic repository variable obiee 11g
Hi all
It is possible to assign to a session system variable (: USER) in a referential dynamic variable initialization block?
Something like below
Select the country of DM_users where user_name = ": USER '"
We should use NQ_SESSION. USER?
It is possible with a session variable that is independent of the system. But we have some questions to create session variables in our environment. Any help will be much appreciated
Thank you
AJ
Once again: it is not a block for a variable repository init. It is a block init for a session variable.
If your admins have a problem with that then they better run a full review of all the variables and init blocks and see those who are garbage, who is misconfigured, who is not marked with 'performance', even though they should be postponed.
A system is saturated with session variables does not mean you can use variables to repository instead of session ones. The scope of a variable of deposit is the same for all users. You cannot change this behavior, unless you force the BI server to cycle (stop and start) whenever a user logs on (it's a joke by the way).
-
Hi all
I use OBIEE 11.1.1.6.8 version and have deployed version 6.0 of BASEL RPD. When I go to the dashboard I get the below error
Error View display error ODBC driver returned an error (SQLExecDirectW).Error codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65PState: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 23006] The session variable, NQ_SESSION. RPB_Tier1Capital, has no value definition. (HY000)SQL published: {call NQSGetQueryColumnInfo ("SELECT saw_0 FROM ((SELECT sum ("head of Accounting Standard in fact"." Standard Accounting head amount "(/1000000) saw_0,"Head of Accounting Standard"". "" Saw_1 head Accounting Standard identifier', '-D2061Legal entity Info "." Customer First Name' saw_2, VALUEOF (NQ_SESSION. RPB_Tier1Capital) saw_3, saw_4 3, '-Dimension Run D1008 '. " Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (Run surrogate key' AS VARCHAR (10)) saw_5 'Basel' WHERE ('head of Accounting Standard". ("' Chief Accountant standard identifier" = "CAP058") AND ("-D001 Date Dimension". "") (Date of extraction "=" 2013-10-04 ") AND (" '-D2036 Type of Cosolidation legal entity "". "") Basel consolidate Option Type Description"(" GROUP")) AND ("-Info entity D2061Legal "." ") (Client name' IN ("*) nqgtn(*'')) AND (" "-Dimension run D1008" "." ") Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (((Run surrogate key' AS VARCHAR (10)) IN ('Basel II Capital calculation-97000106'))) UNION (SELECT sum ("head of Accounting Standard in fact". "Standard Accounting head amount"(/1000000) saw_0, "Head of Accounting Standard" "." " Saw_1 head Accounting Standard identifier', '-D2061Legal entity Info "." Customer First Name' saw_2, VALUEOF (NQ_SESSION. RPI_TotalEligibleCapital) saw_3, saw_4 4, '-Dimension Run D1008 '. " Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (Run surrogate key' AS VARCHAR (10)) saw_5 'Basel' WHERE ('head of Accounting Standard". ("' Chief Accountant standard identifier" = "CAP210") AND ("-D001 Date Dimension". "") (Date of extraction "=" 2013-10-04 ") AND (" '-D2036 Type of Cosolidation legal entity "". "") Basel consolidate Option Type Description"(" GROUP")) AND ("-Info entity D2061Legal "." ") (Client name' IN ("*) nqgtn(*'')) AND (" "-Dimension run D1008" "." ") Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (((Run surrogate key' AS VARCHAR (10)) IN ('Basel II Capital calculation-97000106'))) UNION (SELECT sum ("head of Accounting Standard in fact". "Standard Accounting head amount"(*100) saw_0, "Head of Accounting Standard" "." " Saw_1 head Accounting Standard identifier', '-D2061Legal entity Info "." Customer First Name' saw_2, VALUEOF (NQ_SESSION. RPB_Tier1CapitalRatio) saw_3, 6 saw_4, '-Dimension Run D1008 '. " Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (Run surrogate key' AS VARCHAR (10)) saw_5 'Basel' WHERE ('head of Accounting Standard". ("' Chief Accountant standard identifier" = "CAP214") AND ("-D001 Date Dimension". "") (Date of extraction "=" 2013-10-04 ") AND (" '-D2036 Type of Cosolidation legal entity "". "") Basel consolidate Option Type Description"(" GROUP")) AND ("-Info entity D2061Legal "." ") (Client name' IN ("*) nqgtn(*'')) AND (" "-Dimension run D1008" "." ") Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (((Run surrogate key' AS VARCHAR (10)) IN ('Basel II Capital calculation-97000106'))) UNION (SELECT sum (case where "Accounting Standard head".)) «Standard accountant Chief identifier "=" CAP090 "then"fact head of Accounting Standard".» "" Flat rate of chief accountant "whenCan someone help me please. I'm new and I have no experience with the available filters.
The session variable, NQ_SESSION. has no definition of value. (HY000)
This means that your init block does not work. Check the init block why its not leading is not to any data.
only when the init block fails in the data, the server checks for the default value of the variable.
Since there is no default value, you get this error.
Init blocks can fail because
1 connection pool does not work.
2. the table or view does not exist
3. no data in the table
4. the filter in the sql in init block is not initialized if his coming of another variable of session.
in general, no data should bring no results in a report.
Since you have a session variable as part of the report, and this variable initialization failed, you get this error.
-
Hello
I am trying to check a condition in a XSL transformation and reassign a variable, I realized that the reallocation of a variable is not an option in functional programming. However, the need is that I need to check for a condition and then reassign a variable with a new value, y at - it another option or the means to do so. I gave to the part of the code below. The varBoxID variable is set to '0', the box fi #! = varBoxID, then re - assign the variable the value of the variable 'TempBoxID' varBoxID
Any ideas / suggestions are greatly appreciated.
* < xsl: variable name = "varBoxID" > 0 < / xsl: variable > * (a value to a variable initialization)
< name of xsl: variable = "TempBoxId."
Select = "/ tns:OrderDetails / tns:Order / tns:BoxNo" / >
< xsl: if test = "/ tns:OrderDetails / tns:Order / tns:BoxNo!" = $varBoxID">
< ns2:package_Data >
< ns0:package_id >
< xsl: value-of select = "/ tns:OrderDetails / tns:Order / tns:BoxNo" / >
< / ns0:package_id >
< xsl: for-each select = "/ tns:OrderDetails / tns:Order" >
< xsl: if test = "tns:BoxNo! = $varBoxID">
* < xsl: variable name = "varBoxID."
Select = "/ tns:OrderDetails / tns:Order / TempBoxID" / > (Re-assignment of a value to the variable declared above)
< ns0:package_Items >
< ns0:vendor_item_number >
< xsl: value-of select = "tns:SKU" / >
< / ns0:vendor_item_number >
< ns0:quantity_shipped >
< xsl: value-of select = "tns:QtyShipped" / >
< / ns0:quantity_shipped >
< / ns0:package_Items >
< / xsl: if >
< / xsl: if >
< / xsl: foreach >
Thank you
VINETHi Vincent,.
Make sure you use XSLT 2.0
and include the namespace xpath-functions
xmlns:fn="http://www.w3.org/2005/xpath-functions"
Your transformation will be like this:
Let me know if it works.
See you soon,.
Vlad -
Apply the variable definition in the subclass with abstract method
Hello
It's his practice use? :
I want to apply the extension of the class to define a private variable, but there is no variable abstract in java, I can use a method for that.public abstract class Base { private int importantPrivateVariable = setImportantPrivateVariable(); protected abstract int setImportantPrivateVariable(); }
Thank you
lemonboston
Edit: the variable can be protected as well, I guess that's not important here, but correct me if I'm wronglemonboston wrote:
HelloIt's his practice use? :
I don't think it's so common, but it's easily understandable code. However, there are several problems with this approach:
public abstract class Base { private int importantPrivateVariable = setImportantPrivateVariable(); protected abstract int setImportantPrivateVariable(); }
I want to apply the extension of the class to define a private variable
This is some what your code implements: your base class requires the subclasses to return an int value, and the Base class uses this value to assign to the variable.
Therefore, the method should be called to
Edit: the variable can be protected as well, I guess that's not important here.
Well, Yes, it is 'important' - at least, there is a noticeable difference: the variable is private, the base class is free to treat it as seems it (for example, assign the value at construction time and never change it later). If the variable was protected, the subclass could change in ways and at times not known by the base class.
but correct me if I'm wrong
There is a trap in this construction: the method is called in the variable initializer, i.e., behind the scenes, about during execution of the Base, so before the constructor of the sub-class class constructor. For example, you call a method on an object that is not completely initialized (for example some of its attributes may always be null at this point). There is a rule that discourages this kind of situation, which goes something like "no calling private and unofficial constructor methods.
To avoid this trap, two options:
-requires an int argument in the constructor of the Base class, as suggested above
-Don't be and set the value of the important variable in the code of the initializer or the constructor, but a special method in the base class instead:public abstract class Base { private int importantPrivateVariable; // default value is zero // or alternatively: // private int importantPrivateVariable = ...; // Some default value protected abstract int getImportantPrivateVariable(); public void initializeImportantPrivateVariable() { importantPrivateVariable = getImportantPrivateVariable(); } }
This construction is a degenerate form of a common model known as the model method (where a base class method calls usually several methods of the subclass in a specified order and with a specified sequence, allowing for the subclass to implement the details of the methods).
The downside is that the client code (the one that uses the Base instance) must know when to call this initialization method, while initialization, a constructor-based allows the free client code of don't like do not at all.
Much luck,
J.
-
XMLType.extract cannot display French special characters in the select statement
Hello
E characters (acute e) get distorted when they are retrieved from the
XMLType column of an ordinary table.
How can we solve correctly get the characters e (acute e)?
We tried setting 'setenv NLS_LANG French_France.WE8ISO8859P1' and
"setenv NLS_LANG French_France.WE8DEC" before loading the table.
Database version:
The test sample case is as follows:SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production PL/SQL Release 11.2.0.2.0 - Production CORE 11.2.0.2.0 Production TNS for Linux: Version 11.2.0.2.0 - Production NLSRTL Version 11.2.0.2.0 - Production
Output is the following with setenv NLS_LANG French_France.WE8ISO8859P1--connect to any schema where you can store XMLType set long 2000; set pagesize 2000; set serveroutput on; --delete from test; drop table test; create table test (id number, xmldata XMLType); declare featureDescriptorXML CLOB; xml_type XMLType; new_xml_type XMLType; myName varchar2(100); myName2 varchar2(100); myName3 varchar2(100); stmt varchar2(4000); begin featureDescriptorXML := '<?xml version="1.0" encoding="UTF-8"?>' || '<abc:TheFeature xmlns:' || 'de' || '="' || 'http://abc.klmno.org/fghde' || '" xmlns:abc="http://www.ghijklmn.net/abc"' || ' xmlns:xyz="http://www.ghijklmn.net/xyz">' || '<abc:Name>de:MyGénérique</abc:Name>' || '</abc:TheFeature>'; xml_type := xmltype(featureDescriptorXML); myName := xml_type.extract('/abc:TheFeature/abc:Name/text()', 'xmlns:abc="http://www.ghijklmn.net/abc"').getStringVal(); dbms_output.put_line('abc:Name value stored in VARCHAR2 variable from XMLType variable is ' || myName); -- can show French chars insert into test(id, xmldata) values(20, xml_type); stmt := 'select t.xmldata.extract(''/abc:TheFeature/abc:Name/text()'', ''xmlns:abc="http://www.ghijklmn.net/abc"'').getStringVal() from test t'; execute immediate stmt into myName2; dbms_output.put_line('abc:Name value stored in VARCHAR2 variable from XMLType column in 2nd version is ' || myName2); -- cannot show French chars stmt := 'select t.xmldata from test t'; execute immediate stmt into new_xml_type; myName3 := new_xml_type.extract('/abc:TheFeature/abc:Name/text()', 'xmlns:abc="http://www.ghijklmn.net/abc"').getStringVal(); dbms_output.put_line('abc:Name value stored in VARCHAR2 variable from first XMLType column and then from XMLType variable in 3rd version is ' || myName3); -- cannot show French chars end; / select t.xmldata.extract('/abc:TheFeature/abc:Name/text()', 'xmlns:abc="http://www.ghijklmn.net/abc"').getStringVal() from test t; -- Cannot show French chars select t.xmldata.extract('/abc:TheFeature/abc:Name/text()', 'xmlns:abc="http://www.ghijklmn.net/abc"').getStringVal() "myname" from test t; -- Cannot show French chars select t.xmldata.getCLOBVal() from test t; -- Cannot show French chars select t.xmldata from test t; -- Can show French chars
and NLS_DATABASE_PARAMETERS are the following:SQL> select * from nls_database_parameters; PARAMETER VALUE ------------------------------ ---------------------------------------- NLS_LANGUAGE AMERICAN NLS_TERRITORY AMERICA NLS_CURRENCY $ NLS_ISO_CURRENCY AMERICA NLS_NUMERIC_CHARACTERS ., NLS_CHARACTERSET WE8DEC NLS_CALENDAR GREGORIAN NLS_DATE_FORMAT DD-MON-RR NLS_DATE_LANGUAGE AMERICAN NLS_SORT BINARY NLS_TIME_FORMAT HH.MI.SSXFF AM PARAMETER VALUE ------------------------------ ---------------------------------------- NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR NLS_DUAL_CURRENCY $ NLS_COMP BINARY NLS_LENGTH_SEMANTICS BYTE NLS_NCHAR_CONV_EXCP FALSE NLS_NCHAR_CHARACTERSET AL16UTF16 NLS_RDBMS_VERSION 11.2.0.2.0 20 ligne(s) sélectionnée(s).
We also tried affecting NLS_CHARACTERSET AL32UTF8Table creé. abc:Name value stored in VARCHAR2 variable from XMLType variable is de:MyGénérique abc:Name value stored in VARCHAR2 variable from XMLType column in 2nd version is de:MyGénérique abc:Name value stored in VARCHAR2 variable from first XMLType column and then from XMLType variable in 3rd version is de:MyGénérique Procdure PL/SQL terminée avec succès. T.XMLDATA.EXTRACT('/ABC:THEFEATURE/ABC:NAME/TEXT()','XMLNS:ABC="HTTP://WWW.GHIJK -------------------------------------------------------------------------------- de:MyGénérique myname -------------------------------------------------------------------------------- de:MyGénérique T.XMLDATA.GETCLOBVAL() -------------------------------------------------------------------------------- <?xml version="1.0" encoding="DEC-MCS"?> <abc:TheFeature xmlns:de="http://abc.klmno.org/fghde" xmlns:abc="http://www.ghij klmn.net/abc" xmlns:xyz="http://www.ghijklmn.net/xyz"> <abc:Name>de:MyGénérique</abc:Name> </abc:TheFeature> XMLDATA -------------------------------------------------------------------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <abc:TheFeature xmlns:de="http://abc.klmno.org/fghde" xmlns:abc="http://www.ghij klmn.net/abc" xmlns:xyz="http://www.ghijklmn.net/xyz"> <abc:Name>de:MyGénérique</abc:Name> </abc:TheFeature>
by CHARACTER SET of ALTER DATABASE.
the database is closed and restarted.
But that did not help.
Thank youOk. Wasn't sure. Thank you for that clarification.
.. .but please make an attempt with XMLTABLE XMLQUERY, XMLCAST (or CAST) and other XML functions that support XQuery and not to use the engine of 'old '... I hope that these features will keep things as it should...
.. .If not... create an SR with support of Oracle on this issue. Changes, if you base your SR on these 'old' operators XML/SQL and functions that are her will not be able to help, mainly due to the fact that your last version and stuff like EXTRACT / getStringVal() etc. are announced officially discouraged in this 11.2.0.2.0 version. As far as I know the t.xmldata.extract, the xml_type.extract and the other syntaxes, outlaw count of 10.1 (although I know, he appealed to java / OO people kind).
Published by: Marco Gralike April 5, 2011 19:50
-
Ensure that a single NSV is delivered
I have a project with a compactRIO, stream of data to a PC via the network stream.
I use VNRS to share state information between devices (i.e.. a Boolean value that indicates if the HARD disk on the compactRIO is full).
NSV is deployed to the compactRIO, compactRIO can work without a PC and its code is dependent on the NSV.
I don't care about losing intermediate data, but I don't like that the last value I wrote is delivered (whether for the PC or the cRIO) because I can write only to the NSV once ever.
My question is twofold:
(1) if I write a value to a variable that is shared once, assuming that there are no network problems, it is guaranteed to eventually spread to the other side? How will I know if she did?
2) given that the NSV is hosted on the RT are values written on the NSV of the RT immediately available for the RT for playback?
j.Collins says:
I still need to add the step where I loop continuously on a read NSV until my changes are propagated during initialization, as suggested here.
Example refers to initialization of a SV hosted on a DIFFERENT target - the target RT variable initialization hosted on a PC, then wait for the PC propagate the initial values back as a way to confirm that initialization was successful. We must wait and check because there is a chance that the link to the PC is down.
Since you are hosting your variable on your RT target, waiting is not necessary. If your cRIO done writing, your cRIO variable motor is guaranteed to receive the initial value.
j.Collins says:
(1) given that the data in this project are written on the NSV is rare and isolated readers don't know where they should be concerned that no new values have been written. I guess I'm more worried that a writer knows that its value has been published on the EVS (if the writer is on the same machine as the EVS or not). What prompted my concern initially was something I read in an article of OR: 'writing to a Publisher does not guarantee an update because the NOR-PSP is frozen. It was an article that was specific to the buffering of the shared network variables, I don't.
(2) "immediate" was a bad choice of phrasing on my part. I want to know is if access from the same device hosting the NSV EVS will work as access to a process variable unique in the sense that the network layer is avoided. I should have a warm fuzzy feeling that a NSV, read and written from the same machine (or RT) of hosting EVS can handle a critical Boolean value on it as ' should I be saving data or not. On a remote system, I catch error access NSV otherwise a network disconnection will throw errors popup to the user, if I'm going to read it. What I have to do this on the machine hosting EVS or is access NSV as safe for the EVS machine like any other local variable? Would it not more sure that I just read NSV written all the worms and to leave local variables on a periodic basis and use local variables in the rest of my code?
(1) "lossy" in this context refers to the Protocol. If your network goes down and your host writes 10 values without buffer before returning to the network, the player will only see the last value and not the first 9. No check is made to ensure that each value is received, and there is no way to recover old values of service. (Compare this with TCP, a protocol without loss - the sender retransmits packets that have not been received)
In your case, since your variable is a flag instead of a data flow, you don't have to worry about this. Even if your network goes down before your written cRIO "full disk" flag, your PC will see the flag after the connection is restored. Just make sure that your connection is good.
(2) given that AES is hosted locally, your cRIO doesn't have access to the network to write values in it. A machine cannot lose the connection with himself. However, you still have to 'open access' to a locally hosted NSV. I've never seen this failure with NSV hosted locally, but I guess I can't confirm with 100% certainty that it will never fail. You need an engineer OR with the knowledge of the inner secrets of the EVS.
-
State machines are well... Thanks to you all
Thank you!!!
For several months I struggled to learn how to use LabView, at all... much less efficiently. With the help of the forum I was finally able to combine a display for our Lab Manager. It was slow and unresponsive no and completely event-driven and completely unmanageable. With the help of several key members of the forum (and I'm sure that the wishes of the rest) I learned about the State machines, queues and other good habits.
Within 2 days, I rewrote the project as a state machine and it works beautifully. It uses a typedef enum for the definitions of the State and a sub.vi for the variable initialization. The BD is readable, simple, and can be seen on a single screen (almost... have to scroll down a bit to see all error.)
I can't thank you all enough.
Hummer 1
Maybe you are looking for
-
How to screen to read the information in Firefox 20?
I want to start Firefox in 32-bit mode. Before, in 18, that was done by selecting file > info > open in 32-bit mode > close Firefox
-
The field "Incoming mail server" cannot be empty.
It all started with Notes in Mail, do not sync with Notes on iCloud more. So I tried to delete the iCloud account in Mail and add more later. I did it in Mail and in system preferences. But now, when I try to change some preferences and save them, it
-
Speakers aren't working (VIA highd audio definition)
I have two speakers high definition. I plugged in a headset, and when I plugged it on, the speakers no longer work. I checked the cables, and they are all connected. I went to the speakers properties and everything seems to be configured correctly, b
-
Recently failed message received ATA device. Replaced ST31000528AS with a ST1000DM003 (supposedly newer model), both by Seagate. After replacing and trying to start understand good etselectionnez Boot device reboot. Advice or instructions are appr
-
Re: How do the reset full on my printer HP Photosmart 5510 all-in-one
Hello, Im having the same problem please please send me the reset procedure. Thank you very much