Case-insensitive XPATH
HelloI have the following XMLs stored in a column.
< root >
< abc > abc < / abc >
def < def > < / def >
< / root >
< root >
< ABC > < / ABC >
def < DEF > < / DEF >
< / root >
Is there a way to use a search case-insensitive in my extractValue so that I don't have to write twice?
extractValue (XML_CLOB, / root/abc)
extractValue (XML_CLOB, / root/ABC)
Thank you and best regards,
A
Hello
You can try
extractvalue(XML_CLOB,'/root/*[name()="abc" or name()="ABC"])
Thought that upper-case (name () = 'ABC' should work, but it does not appear on 10.2
HTH,
Chris
Tags: Database
Similar Questions
-
Search case-insensitive for VM by name
I found examples of code in communities, but it seems that the searches are case-sensitive. We need help in modifying the script to make it case insensitive.
var vms = VcPlugin.getAllVirtualMachines(null, "xpath:name='"+vmName+"'"); var vmObject = null; if (vms != null && vms.length >0){ System.log("VMs Found: " + vms.length); if (vms.length == 1){ System.log("Match found for vm named: "+vmName); vmObject = vms[0]; }else{ System.log("More than one VM found with that name! "+vmName); for each (vm in vms){ System.log("VM ID: "+vm.id); } } }else{ System.log("No VMs Found"); }
.
Hi, I was about to send another question on this same method. Here is what I use to perform a case-insensitive search:
machines virtual var = VcPlugin.getAllVirtualMachines (null, "xpath:name [translate(.,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ') =" "+ arg_nameToMatch.toUpperCase () +"'"]");
-
How do the function of table 1 d search case-insensitive for the array of strings
How do the function of table 1 d search case-insensitive for the array of strings
Hi Karine,.
convert the two (table and search for the string) to lowercase before using this feature...
-
Take the attributes advance case-insensitive in af:query research?
Hello
I use JDeveloper 11.1.2.4
I have an af:query on my screen. My main VO has many attributes but the af VIewCriteria: query is empty.
Since it is empty, then there is no fields on the af: query. I goto the advanced option and a field. Research on the attribute that I added watch case-insensitive behavior.
Is it possible that I can do the field added by advanced search case insensitive results.
Note: I HAVE AN EMPTINESS of the CRITERIA overview
Thank you
You can probably not override buildViewCriteriaClauses() in the class ViewObjectImpl, then use something like viewCriteria.setUpperColumns (true)
Dario
-
How to configure the inputComboboxListOfValues case-insensitive search dialog box
Hi all
I use Jdev 11.1.2.3.0
I use a
inputComboboxListOfValues
in a fragment of page ADFWhen I click on "search...". "I can type what I'm looking for, but here the search is case-sensitive.
How can I configure this case-insensitive field? can someone help me please...
Thank you
G.Shilpa
Hello
View the criteria it is checkbox " Ignore Case". Just to check this box and run the application.
For more information, refer
Thank you
Nitesh
-
Mac put in place respect for case-insensitive Volume?
I have no idea what it is; scratch, I don't know, I don't know what to do... How to be a case-insensitive volume? Disk utility does not give me the option.
Thank you everyone
You can only change this reformatting your hard drive and select a non-respect of case-sensitive option.
-
Sort column - Case Insensitive but less should be the first
Hi allAssume that we have EMployee table:
create table Emp (Empname varchar2 (20));
It has following records:
Insert into EMP (EMPNAME) values ('A');
Insert into EMP (EMPNAME) values ('a');
Insert into EMP (EMPNAME) values ('b');
Insert into EMP (EMPNAME) values ('c');
Insert into EMP (EMPNAME) values (');
Insert into EMP (EMPNAME) values ('e');
Insert into EMP (EMPNAME) values ('E');
Insert into EMP (EMPNAME) values ('F');
That is to say
EmpName A one b c D e E F I need output like below: (sort by Ascending, case insensitive, which means I don't want all the money first and then lower the letters. The results should be in alphabetical order, it shouldn't matter if its capital or small. More important is that this tiny letter should come first and then the capital letter). Is this possible?.
EmpName one A b c D e E F Select * from emp by Lower (empname) CSA;
Does not work, because 'A' comes before 'a '.
Kind regards
Billon
Select empname in order by upper (empname), ascii (empname) desc emp;
EMPNAME one A b c D e E F See you soon,.
Manik.
-
Case-insensitive unique constraint
Hi guys,.
Is it possible to create a unique constraint that is case-insensitive
I mean if there is a unique constraint on the name of col
then
'James' and 'JAMES' must not
Kind regards
PAPICreate a unique index to the basic function of...
create unique index uk_name on emp(upper(ename));
-
Hi Experts,
If the filter on the table may be case-insensitive?
Jdev 11.1.1.4 version
thnksHello
See "filterFeatures" in
http://download.Oracle.com/docs/CD/E21764_01/apirefs.1111/e12419/tagdoc/af_column.html
Frank
-
Problem with SQL case insensitive
I have the following SQL query, where I want the where criteria to be case-insensitive.
SELECT t.number, t.nom FROM Table t
WHERE t.nom =?;
I can solve this problem by using for example. DOWN, like this:
SELECT t.number, t.nom FROM Table t
WHERE LOWER (t.name) = LOWER (?);
But, as I understand it, it is a specific solution for Oracle. If want to protect my code, so that it will work on a database, how could I do?You should NOT do this.
Database-independent applications are all shrinkware, vaporware and fraudware.
Built under sqlserver independent database application will run successfully without change on Oracle.
The only people taking advantage of this situation are lawyers.Also to help 'lower (
) =' can delete the use of the index in Oracle.
If you expect a concrete case, you should apply this case upon entry.Heck, everyone is case-sensitive. Only the Empire of evil aka Microsoft is not. You want to be enslaved by the Empire struggling or who belong to the free world?
-----------
Sybrand Bakker
Senior Oracle DBA -
the case-insensitive query results
I got a help from 11g with the suite of version information
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
PL/SQL Release 11.1.0.7.0 - Production
CORE Production 11.1.0.7.0
AMT for 32-bit Windows: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
The result of the query are case-sensitive
Ex: Select * from Table_1 where column like '% new % ';
result: News
But do not go back NEWS News or newsThe result of the query are case-sensitive
But you want the results to be case-insensitive?
Well, then you can use:Select * from Table_1 where lower(column) like '%news%';
And use a function based index.
-
How to change the filter on a table as case insensitive?
Hello
I use JDevelloper 11.1.1.3.0. I have an ADF table that has the filter on top. I need to do case insensitive filters. When I type 'A' in the filter and press on enter, he must bring all records that start with 'A' and 'a '.
Thank youSelect the column in the table and look for the filterFeatures property. Assign the caseInsensitive.
You will need to do this for each column you want to change. You can hold the CTRL key while you click on multiple columns and has replaced the property, both for them.
Published by: Blaine on August 30, 2010 13:19
SDK (Spelun Doent Kownt)Published by: Blaine on August 30, 2010 13:25
Okay, this time I really he correctly spelled... I hope. -
SELECT INTO make case-insensitive query?
Hi all
I'm having a problem with a query as if it is case-insensitive when I do a «SELECT table.x variable INTO...» ». If I do the same query, without the "variable INTO", I get a result as expected.
The query is similar to the following:
SELECT table_id variable FROM table WHERE table.varchar2column = 'name' AND table.integercolumn = int_variable;
There is a unique constraint, forcing the varchar2column / integercolumn of the unique values.
If the varchar2column has two entries that differ only in this case, a regular at the statement select returns a result. However, the procedure stored with the, I get the following error message:
ORA-01422: exact fetch returns more than number of lines
He gets not only if I remove the entry that only differs in the case of the letters. It is 10.2.0.1.0 Oracle, if that matters.
I need this application to be case-sensitive. I'm not an expert of the DB, I'm just a developer trying to solve a problem. I tried to run "ALTER session SET nls_sort = binary" in the stored procedure, but I guess I can't do that...
Any suggestion would be appreciated.As mentioned before... name your best-er settings.
Your setting is the same as the name of the column on the table that you query... bad move.
Here I change the username to work things p_username and 'magically '.
CREATE OR REPLACE FUNCTION get_cached_user_id(p_username user_security_table.username%type, authserver user_security_table.authentication_server_id%type) RETURN user_security_table.user_security_id%type IS cacheduserid user_security_table.user_security_id%type; BEGIN 6 SELECT uat.user_security_id INTO cacheduserid FROM user_security_table uat WHERE uat.username = p_username AND uat.authentication_server_id = authserver; IF cacheduserid IS NULL THEN SELECT uat.user_security_id INTO cacheduserid FROM user_security_table uat WHERE uat.username = 'anonymous' AND uat.authentication_server_id IS NULL; END IF; RETURN cacheduserid; EXCEPTION WHEN NO_DATA_FOUND THEN SELECT uat.user_security_id INTO cacheduserid FROM user_security_table uat WHERE uat.username = 'anonymous' AND uat.authentication_server_id IS NULL; RETURN cacheduserid; END; 21 / Function created. TUBBY_TUBBZ?SELECT get_cached_user_id('sample',20) from dual; GET_CACHED_USER_ID('SAMPLE',20) ------------------------------- 2 1 row selected. TUBBY_TUBBZ?
Simple fix... development of a standard in the future, as for all procedure using p_ settings can save you a lot of grief.
-
Make case-insensitive oracle database
Hi all
I use oracle 10g EE that my front end and database backend is in c# .NET. I want to make my oracle database to perform any case comparison insensibly. I searched the net and found several ways to achieve
1. use the upper function in procedures - cannot afford
2. order of the function - cannot afford
3. setting session parameters
ALTER SESSION SET NLS_COMP = ANSI;
ALTER SESSION SET NLS_SORT = BINARY_CI;
The 3rd is promising and can save a lot of time. I have several question
1 is there a way I can adjust these settings in .NET?
2 is it possible I can set both and will do only my case insensitive database?
any link, reference is very appreciated.
Thank youYou can create a unique index of the feature based on this column to avoid that these records.
I don't see that should be case-insensitive database here.
-
Case-insensitive sort, is this possible?
Hello everyone,
I'm doing a request to make of case insensitive sorts, but I failed miserably. I wonder if anyone has experienced the same problem...
In a regular session of the Oracle, all I have to do is to set the NLS_SORT as BINARY_CI and sorting is case-insensitive; However, my Apex application solemnly ignores everything I try to do in this direction.
I first tried to create a db setting process in the session (running code PL/SQL 'immediate 'alter session... » ») ; tried to put this process within a page, in many processes points and then tried to put this process in the application itself. in both cases, if I debug the page, I see that the command is executed successfully.
And, in fact, the first time, the report is run, and the query appears in the debugging, the works of THIS sort; However, if I try to reload the page with a F5 or change something in the search bar (number of lines per page, filter, etc.), the kind regresses to the shape of the case. It's probably getting the records not in the query, but some cache weird, because any time the sorting doesn't work anymore, debugging does not show the application running.
Then I tried to study where is - this cache and how killing, absolutely nothing helped. Tried to create another process to clear all session state, tried to disconnect and even once tried to kill all sessions of APEX database, close the browser and remove its cache... the cache with poorly sorted records has survived all this.
Oh and even if sometimes the sort works for the records in the report, when I click on the header of column related to the field in question, and it shows all the values in this column, that the order of these values is never affected by the session NLS_SORT setting.
Could someone has an idea about this?
Thank you.What is an interactive report? If so, see [this post | http://forums.oracle.com/forums/thread.jspa?messageID=3920123].
Maybe you are looking for
-
I just bought a new macbook air. I installed the new version of iMovie, version 10.1.2. I can get downloaded photos and in the timeline, but I can't sync with my iTunes library. I am connected and authorized in my iTunes, I can see all my music in iT
-
DeskJet 3050: addresses ePrint
This is probably somewhere but I missed it. I use my existing email account or start a new for eprint please?
-
I can barely read my monitor. I tried to adjust the color and resolution but does not
original title: monitor settings I can barely read my monitor. I tried to adjust the color and resolution, but nothing helped.
-
will be the Z210 Workstation supports a 470 gtx NVIDEA graphics card?
I just got an Z210 workstation, it came with two Quadro NVS295 graphics card but I need to replace a similar to the Quadro 4000 (way to budget for me). A similar card is geforce GTX 470 1 GB or the 460 2 GB. My question is ¿will the z210 accept one o
-
Applications WebWorks for BB10 and BB OS 6 and above
Hi all I'm developing a simple application (including fill them a kind of form of the thing and to submit it to the server). Will it be possible keep the same code for Both BB series (BB10 thus lower version device). Help, please.