Search on text with diacritic, and case insensitive
Hello to all,
I'm using this condition in a query on XML:
field[contains(@value, "gangesa" )
If @value= 'Gaṅgeśa' I'd like to get this record also by using the word: "gangesa" So I need to map:
ṅ = n
ś = s
And do it in case insensitive. Somebody can help me?
Thank you,
Cristian
ALTER SESSION SET NLS_COMP=LINGUISTIC;
ALTER session set nls_sort='binary_ai'; -->accent insensitive
binary_ci -->case insensitive.
with t as
(select 'Gageśa' col1 from dual union all
select 'GAgEśa' from dual union all
select 'gagEśA' from dual union all
select 'not Gageśa' from dual
select * from t where col1 like '%gagesa';
Gagesa
GAgEsa
gagEsA
not Gagesaand do the search.
Edited by: PhoenixBai on Aug 25, 2010 10:14 PM
Similar Messages
-
Query that treats "accents insensitive" and "case insensitive"
I need to do one query that treats "accents insensitive" and "case insensitive" if possible too.
I need to have the query below ajusted to return both accent or not accent words:
with t as
( select 'xxxELEIÇÕESyyy' text from dual union all
select 'xxxELEIÇOESyyy' text from dual union all
select 'xxxELEICÕESyyy' text from dual)
select text from t
where text like '%eleicoes%'; --> i need some filter that result true for both 3 linesSQL> with t as
2 ( select 'xxxELEIÇÕESyyy' text from dual union all
3 select 'xxxELEIÇOESyyy' text from dual union all
4 select 'xxxeleiÇOESyyy' text from dual union all
5 select 'xxxELEICÕESyyy' text from dual)
6 select text from t
7 where regexp_like(t.text, '(x|X){3}(ELEI|elei){1}([CcÇç]{1})([ÕOõo]{1})(ES|es){1}(y|Y){3}')
8
SQL> /
TEXT
xxxELEIÇÕESyyy
xxxELEIÇOESyyy
xxxeleiÇOESyyy
xxxELEICÕESyyy -
Case sensitive and case insensitive Search
Hi friends,
Iam doing an Search RFC which will search records based on the search parameters provided at the portal side.
One of the search parameter is a field with 40 character which holds the description(title) of the record.
With this search paramter iam facing case sensitive problem.
Example:
Values in Database Table: ( Can be in any case)
Record 1: Sensitive
Record 2: SENSITIVE
Record 3: SensTive
Record 4: sensitive
Record 5: sensTive
Input to RFC: sens*
Output: Getting only 4rth and 5th record but not all the records.
The same is the case with the remaining search parameters(Like user name..).
Is there any way of getting all the records when searching from the data base (with case insensitive).
Kindly let me know if there is any possibility.
Thanks in advance.
Regards,
Swarna Munukoti.Generally, no. So, you'll either have to use EXEC SQL, or add more fields to the table. You can do this using APPEND structures, which is the SAP approved way of adding fields. If there are suitable user exits in the standard SAP code, then you'll be able to populate the additional fields there, as new records are created, or amended.
Alternatively, create your own Z table with the same key as the standard table and a "search field" which contains the uppercase version of the field you're wanting to search. You can either, again populate in suitable user exits, or, in worst case, have job that runs regularly populating your Z table.
matt -
Use of wildcard and case insensitive searches
Used the "Create form from a table" option. Have a customized form for this table to query, insert, update, and delete rows. My question is how can I allow a user to 1) search using a wildcard (%) from this form and 2) how can I make the search case insensitive for my users.
ThanksHi,
Why not create a report to find the records and link to the form from the report.
You can then set the where clause to be whatever you wish:
where tablename.columnname like :parameter
or even:
where UPPER(tablename.columnname) like UPPER(:parameter)
Regards Michael -
Phonetic and case insensitive searches in Oracle
Hi,
Do you know if Oracle 9i allows phonetic searches ? I've found several solutions for case insensitive searches, but I'd need phonetic searches too (like 'había' vs. 'havia' vs. 'habia', etc)
Any comment would be really welcome.
Thanks in advance,
Juanlookup soundex in the SQL Reference guide.
-
How can I create transparent animated text with Motion and Final Cut Pro?
Hi all,
I am trying to replicate an effect that a previous video editor did in a project, but I can't contact them.
They made animated text in Live Type, and saved it as a QT movie. When this text is placed over existing video in the FCP project, the text is "transparent", basically it acts like text created in FCP (You can see the background image behind the text, like through the middle of the letter "o").
I have made some animated text in Motion, but when I save it as a QT movie, and bring it into FCP, the whole 1280x720 screen is covered by this movie, and I have to crop it so it does not cover the background image. It is all black except for the text. And of course the text is not on a transparent layer. Any ideas how I can create this effect with animated text? I've tried messing with transparency and overlay settings, nothing seems to work.
Running latest version of Final Cut Studio...
Thanks
DaveJust bring the Motion (.motn) project into FCP and lay it over your clip.
The QT you're exporting has to carry the alpha channel (animation codec, million+ colors), but don't waste your time/disk space with that. Just bring the motion project into FCP.
Patrick -
Group texts with iPhone and Android
I made a group text with 17 of my friends, some on iPhone and some on Android. It started out as one group text, thenme and a couple of other people found that it was creating different group texts. These new group texts wouldnt have certain people in each, there turned out to be about a total of four different group texts going on. What is a probable cause of this? And is there a way to fix the problem without making everyone turn to a third party app?
Group texting is not one of the iPhone's stronger features. Group texting among a mix of iPhone and Android users is frequently a less than satisfactory experience. I'd go with the third party app. GroupMe is a nice cross platform app. It's free. It lets you mute certain groups if you don't want to be bothered for a while.
-
How to query using 3 optional inputs and case insensitive using SQL?
Hi Folks,
I am having trouble with the following query:
select *
from t1
where (1=1)
and lower(fname) like lower ('%mary%')
and lower(lname) like lower ('%smith%')
and lower(status) like lower ('%%')
I need all three statements in the where clause to be completely optional and case insensitve.
if I just write the following:
(1=1)
and lower(fname) like lower ('%mary%')
and lower(lname) like lower ('%%') <-- Need to ignore this line
and lower(status) like lower ('%%') <-- need to ignore this line
nothing is returned. How do I ignore the 2nd and third lines using SQL only. I know about the ask TOM Article using procedures, but I need to do this using SQL only
thanks in advance
Edited by: user2184537 on Oct 16, 2009 9:40 AM
Edited by: user2184537 on Oct 16, 2009 10:10 AMHi,
Is this query generated dynamically? (That's the only reason I can see for saying "WHERE 1 = 1".)
If so, test the parameters for NULL, and only add them if a value was given.
Failing that, you can explicitly test for NULL parameters
where ( lower(fname) = '%' || lower (:p_fname) || '%'
OR :p_fname IS NULL
and ( lower(lname) = '%' || lower (:p_lname) || '%'
OR :p_lname IS NULL
and ( lower(status) = '%' || lower (:p_status) || '%'
OR :p_status IS NULL
)Did you really mean to have all those '%''s? '%' is a wildcard in LIKE operations, but not when using =.
Perhaps you should be saying:
where ( lower(fname) = lower (:p_fname)
OR :p_fname IS NULL
and ( lower(lname) = lower (:p_lname)
OR :p_lname IS NULL
and ( lower(status) = lower (:p_status)
OR :p_status IS NULL
)You're already handling case-sensitivity, by using LOWER in all the comparisons.
Unfortunately, you can't just say something like:
WHERE LOWER (fname) = LOWER (NVL (:p_fname, fname))because that would discartd rows where fname IS NULL when :p_name is also NULL.
Edited by: Frank Kulash on Oct 16, 2009 12:54 PM -
Hi All,
I am currently working with generating reports using BI Publisher. My issue is that when I will preview the output(in PDF and RTF) format's of the newly created template, then, if the data coming from DB have some bullets or numbering, then the BI publisher output will ignore the same and will show the complete data as one single line.
For example if the data in the DB Field is like below:
The XYZ has the below sub-parts:
ABC : This again has two parts:
abc1
abc2
CDE
FGH
Then this data will appear as below in the BI Publisher output report's:
The XYZ has the below sub-parts: • ABC : This again has two parts: o abc1 o abc2 • CDE • FGH
I want the format of the data (with bullets and number's) should be maintained in the BI Publisher Report as well, but I am unable to find any solution for the same.
Any help on the same is much appreciated.
Deep Bhojin your query will u get all the columns always null when column1 is null
in your template for each group u can write like below
think G_1 as group in your xml
<?for-each:G_1[COLUMN1!='']?><?COLUMN1?><?COMMENTS?><?end for each?>
or if u are not sure u get null in both places every time u can write like below
<?for-each:G_1[COLUMN1!='' and COMMENTS!='']?><?COLUMN1?><?COMMENTS?><?end for each?> -
InterMedia Text with USER_DATASTORE and ORA-03113
Hi,
I have problems using Oracle's InterMedia Text-index with a
USER_DATASTORE. I'm using Oracle 8.1.7 on Windows NT 4.0.
What I try to do is to create a context-index on multiple columns
of multiple tables. I created a table containing the original
tablenames and primary keys plus a char(1)-column to index, a
user_datastore, a procedure in a user-schema, a
wrapping-procedure in ctxsys' schema and finally the index. All
works fine so far but I get an ORA-03113 "end-of-file on
communication channel" error when querying the table with
contains. The procedure itself works.
Here's what I tried in detail:
I created a table "alldocs" containing the tablename and
primary-key-value of each line of each table plus a dummy-column
for the index:
create table alldocs(
table varchar2(30) not null,
id number not null,
data char(1),
primary key(tabelle, id)
I filled this table:
insert into alldocs (select 'MYDOCS', id, 'a' from mydocs);
insert into alldocs (select 'OTHERDOCS', id, 'b' from otherdocs);
The user's procedure - only dummy for testing - is:
create procedure test.GetAllDocsData(row IN ROWID, data IN OUT
NOCOPY CLOB) IS
tabname varchar2(30);
myid number;
tmpclob clob;
begin
dbms_lob.createtemporary(tmpclob, TRUE);
dbms_lob.writeappend(tmpclob, 34, 'Ein Text mit ca. 20
Zeichen Ldnge.');
data := tmpclob;
end;
In ctxsys' schema I defined the following procedure and the
datastore:
create or replace procedure sysGetAllDocsData(rid in rowid, tlob
in out clob) is
begin
test.GetAllDocsData(rid, tlob);
end sysGetAllDocsData;
grant execute on sysGetAllDocsData to test;
call ctx_ddl.create_preference('MyUserDS', 'user_datastore');
call ctx_ddl.set_attribute('MyUserDS', 'procedure',
'sysGetAllDocsData');
call ctx_ddl.set_attribute('MyUserDS', 'output_type', 'CLOB');
Finally I defined the index:
create index test.alldocs_ctx on test.alldocs(data)
indextype is ctxsys.context
parameters ('DATASTORE CTXSYS.MyUserDS FILTER
CTXSYS.INSO_FILTER LEXER BASIC_LEXER');
This all works without errors. But when querying like this:
select * from test.alldocs where contains('data', 'Text')>0
the answer is
ORA-03113: end-of-file on communication channel
I hope someone can help.
Greetings
RalfHi Ralf,
please define first your own preferences like this:
exec CTX_DDL.drop_preference('MY_LEXER');
exec CTX_DDL.create_preference('MY_LEXER','BASIC_LEXER');
exec CTX_DDL.set_attribute('MY_LEXER','ALTERNATE_SPELLING',
'GERMAN');
exec CTX_DDL.set_attribute('MY_LEXER','BASE_LETTER','YES');
exec CTX_DDL.set_attribute('MY_LEXER','MIXED_CASE', 'NO');
exec CTX_DDL.set_attribute('MY_LEXER','INDEX_THEMES','NO');
exec CTX_DDL.set_attribute('MY_LEXER','INDEX_TEXT', 'YES');
exec CTX_DDL.set_attribute('MY_LEXER','COMPOSITE', 'GERMAN');
exec ctx_ddl.Drop_Preference ('MY_FILTER');
exec ctx_ddl.Create_Preference ('MY_FILTER','NULL_FILTER');
exec ctx_ddl.drop_section_group ('MY_SECTION');
exec ctx_ddl.create_section_group
('MY_SECTION','NULL_SECTION_GROUP');
and then create your index with this preferences. You only need
an INSO filter if you want to index pdf,word,...
create index test.alldocs_ctx on test.alldocs(data)
indextype is ctxsys.context
parameters ('DATASTORE CTXSYS.MyUserDS FILTER
CTXSYS.INSO_FILTER LEXER BASIC_LEXER');create index test.alldocs_ctx on test.alldocs(data)
indextype is ctxsys.context
parameters ('
DATASTORE CTXSYS.MyUserDS
lexer MY_LEXER
filter MY_FILTER
section group MY_SECTION');
Then see in the token table what tokens are in the index:
select token_text from dr$alldocs_ctx$i;
If you got also an ORA-3113 see in alert.log if there is a trace
referenced with this error and have a look in this file to find a
better error message.
Good luck.
Thomas -
Training and event mangement Search functionality, linkage with ESS and MSS
Hi ,
I am implementing TEM (training and event management).. and for frontend application of TEM .. we r using HCM_LEARING BSP application.... but search functionlity is not working.. i checked with EP guy... he told me that TREX is not installed..
can u please tell me .. is TREX required for TEM search functionlity ?
We tried to check through SE80 and then selected Search page and tested search functionlity, there also it is not working..
How do we integrate TEM with MSS also.. client required standard functionlity. I am not getting any data for TEM in MSS?
Kindly help me..
Thanks and Best Regards
PuneetHI,
TREX is a search engine which is required for candidate searching.
contact your basis people they will help you out in installing it.
it works with RFCs' better you touch base abap wdp consultant also.
cheers
rafi -
Handling texts with SMARTFORMS and SE63
Hi all
I am having a strange situation I cannot understand: I am working on a form on two side:
1) changing aspects with smartforms
2) handling texts translations with se63
The problem is that now if I made some change on text in smartform, I cannot see on output. Say I put a text in the middle of the form with "Hello world!" in, I cannot see in its output. why? Is this because I am working also with se63? I tried to leave transaction se63 to avoid eventual conflict, but still ... if now I go in smartforms transaction and try to change the form I cannot see any changes and till yesterday I did not have this kind of problem.
Any idea ?
thanks
GabrieleThe problem was that modifying form modifies were not visible .. I don't know if was because I was using also se63 on same form ... Now I solved and all is turned normal and change are visible: I closed and restart everything handling in different moment se63 and smartforms .. very strange ...
thank you anyway
Gabriele -
Urgent : Search a Demo with B2B and Ebiz integration
Hi all,
I'm in a search for a Demo with a scenario for outbound or inbound flows, integrating Oracle B2B and Ebiz, if the Ebiz Adapter is used it will be great.
Thanks for your help.If you are an Oracle employee then please get in touch with B2B PM's otherwise drop a note to my id (in my profile)
Regards,
Anuj -
Searching PDF's with Sharepoint and Adobe's iFilter (Reader 9 install bug?)
Hi,
The suggested way to get the latest iFilter for PDF's is to install the latest Adobe Reader version 9. However I think that there is a bug in the install process -anyone agree?
The Adobe web site says that the iFilter that comes with Reader version 6,7,8 was the same and that the new iFilter that comes with 9 is an improved version.
My hunch is that the installer for v9 places in the new iFilter, but incorrectly points the file extensions in the registry to the old v6 program, that on a fresh install don't exist.
ie in Regedit - the Gather in Microsoft shared tools should point to
E8978DA6-047F-4E3D-9C78-CDBE46041603, but instead is set up to point to
4C904448-74A9-11D0-AF6E-00C04FD8DC02. (which is iFilter v6)
There appears to be a lot of support on the web for the iFilter v9 not working and people falling back to the v6 one. The Adobe ITMatters blog saying "You may then need to do an additional step of registering that iFilter with SharePoint, but it's easy to do that is not quiet right, as it is not easy.
Regards
SThanks for the document link.
I tried manually updating the DocIcon.xml file and adding OpenControl="AdobeAcrobat.OpenDocuments" stops the web client from being able to open pdf's.
I have checked IIS and the WebDAVModule is not present.
The one thing I have noticed is that the iFilter is version 9 is there a version 10 and would this be causing the problem?
Thanks -
How to extract sql text with SID and SERIAL#
Hi,
I am new to oracle database and recently i have started my journey in performance tuning.
i need to extract sql text which is fired by user based ont SID and SERIAL#.
Thanks in advance..
prabhaseankim wrote:
Hi~
select a.sid, a.serial#, b.sql_fulltext
from v$session a, v$sql b
where decode(a.sql_id,null,a.prev_sql_id, a.sql_id)=b.sql_id
and decode(a.sql_id,null,a.prev_child_number, a.sql_child_number)=b.child_number
and a.sid=&sid
and a.serial#=&serial;
Also a bad idea - have you checked the exection plan ?
Do you think it might be a good idea to think about the need for statistics on fixed objects ?
Here's a possible plan from 11.1.0.7 - and it's not very nice.
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 2182 | 0 (0)| 00:00:01 |
| 1 | NESTED LOOPS | | 1 | 2182 | 0 (0)| 00:00:01 |
| 2 | MERGE JOIN CARTESIAN | | 1 | 2075 | 0 (0)| 00:00:01 |
| 3 | NESTED LOOPS | | 1 | 39 | 0 (0)| 00:00:01 |
|* 4 | FIXED TABLE FIXED INDEX| X$KSLWT (ind:1) | 1 | 26 | 0 (0)| 00:00:01 |
|* 5 | FIXED TABLE FIXED INDEX| X$KSLED (ind:2) | 1 | 13 | 0 (0)| 00:00:01 |
| 6 | BUFFER SORT | | 1 | 2036 | 0 (0)| 00:00:01 |
|* 7 | FIXED TABLE FULL | X$KGLCURSOR_CHILD | 1 | 2036 | 0 (0)| 00:00:01 |
|* 8 | FIXED TABLE FIXED INDEX | X$KSUSE (ind:1) | 1 | 107 | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
4 - filter("W"."KSLWTSID"=82)
5 - filter("W"."KSLWTEVT"="E"."INDX")
7 - filter("INST_ID"=USERENV('INSTANCE'))
8 - filter("S"."INDX"=82 AND "S"."KSUSESER"=53 AND "S"."INST_ID"=USERENV('INSTANCE')
AND BITAND("S"."KSSPAFLG",1)<>0 AND BITAND("S"."KSUSEFLG",1)<>0 AND
"KGLOBT03"=DECODE("S"."KSUSESQI",NULL,"S"."KSUSEPSI","S"."KSUSESQI") AND
"KGLOBT09"=DECODE("S"."KSUSESQI",NULL,DECODE("S"."KSUSEPCH",65535,TO_NUMBER(NULL),"S"."K
SUSEPCH"),DECODE("S"."KSUSESCH",65535,TO_NUMBER(NULL),"S"."KSUSESCH")))You need to avoid the "full tablescan" of the library cache.
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
Maybe you are looking for
-
I need to download a copy of acrobat pro 9.3 for mac
I purchased CS 5 in the past but now need to re-install acrobat pro on a machine that does not have a CD drive. I need to find a copy online please ?
-
Any Better Screen Sharing VNC alternative ?
just stat to use Screen Sharing to control my other PCs at home , not sure is it some setting problem or what. Every time Screen Sharing first start it will run fine, but after a while screen sharing will fail to refresh the remote computer screen at
-
Cannot add preferred networks in network preference
Dear all, I have a quite strange problem after someday. Every time I switch AirPort on, I have to choose the wireless network from the list available, and the computer doesn't join the right network automatically. I went to Network -> AirPort -> Adva
-
Not able to install AIA 11.1.1.3 on a SOA 11g Cluster
Hi All Can any of you provide screens hots for AIA installation on SOA cluster (cluster Installation). I am trying to install AIA 11.1.1.3 on SOA 11g cluster. I am not able to proceed after SOA server details screen. If any of you can share screen sh
-
ever since ive had my tbolt ive had nothing short of problems ive called and emailed about them all now im getting problems were my tbolt will just reset itself no matter what i would be doing i could just unlock it or be in settings or just swipe ov