Oracle Text - Help needed
Hi,
I am using Oracle Text 9.2 on Oracle databas version 9.2. I want to search for two words, which should be next to each other. For ex.
select col1, col2
from tab1
where contains (col2, 'personal computer') > 0;
I don't want those rows, which have personal in one place and computer in another place. But above query giving all these rows. Please let me know.
Thanks a lot for the help.
I want to search for two words, which should be next to each otherhere we go:
SQL> create table t as select 'my personal computer' col1 from dual union all
select 'personal' col1 from dual union all
select 'computer' col1 from dual union all
select 'personal pc computer' col1 from dual
Table created.
SQL> create index t_idx on t (col1) indextype is ctxsys.context
Index created.
SQL> select * from t where contains(col1, '{personal computer}') > 0
COL1
my personal computer
1 row selected.
Similar Messages
-
Hello Gurus,
I am new to Oracle Text so i need your valuable inputs in resolving an issue i am facing.
Here is the table definition and sample data:
create table test ( a varchar2(100));
insert into test values('Hello How are you');
insert into test values('Just to say you Hello');
insert into test values('I know you');
insert into test values('you know');
insert into test values('you may not know me');
insert into test values('do i know you');
SQL> SELECT * FROM test;
A
Hello How are you
Just to say you Hello
I know you
you know
you may not know me
do i know you
6 rows selected.
If user enters search criteria ('you know', for example); i need to return all the records having 'you' AND 'know' anywhere. Hence for search criteria 'you know', i should get following records:
I know you
you know
you may not know me
do i know you
Similarly, i need to return below records for criteria 'hello you':
Hello How are you
Just to say you Hello
Can Oracle Text help me here?
Thanks in advance for your help.
regards,SQL> create table test ( a varchar2(100))
Table created.
SQL> insert into test values('Hello How are you')
1 row created.
SQL> insert into test values('Just to say you Hello')
1 row created.
SQL> insert into test values('I know you')
1 row created.
SQL> insert into test values('you know')
1 row created.
SQL> insert into test values('you may not know me')
1 row created.
SQL> insert into test values('do i know you')
1 row created.
SQL> create index test_idx on test (a) indextype is ctxsys.context
Index created.
SQL> var str varchar2(100)
SQL> exec :str := 'you know'
PL/SQL procedure successfully completed.
SQL> select * from test where contains(a,:str) > 0
A
I know you
you know
you may not know me
do i know you
4 rows selected.
SQL> exec :str := 'hello you'
PL/SQL procedure successfully completed.
SQL> select * from test where contains(a,:str) > 0
A
Hello How are you
Just to say you Hello
2 rows selected. -
Will Oracle Text help our project ?
Hi All,
We have an existing Oracle Web forms application.
Now we need to manage around 6000 different kind of documents(word, excel
and pdf"). This needs to be accessed over internet and we need to have search functionality.
Can we use Oracle Text for this?
Thank You
Rajesh AlexAbsolutely. One of the many things you can do with OT is check documents via data stored in CLOBs/BLOBs, on a storage device, or via URL.
Ain't it great? I'm just getting into OT, but it's unreal. -
Oracle Text Help with XML column values
Hello. In addition to being new to Oracle Text, I am inheriting an Oracle Text application and have a couple of questions.
First, A context-based index has been set-up on a CLOB column which contains an XML formatted document. The Auto Section Group parameter has been set to created zones for each tag of the XML document. I have found that when using a browser to display the content of the CLOB, some of the column values have trouble displaying in the browser, where I receive an XML processing error. I believe this is due to the fact that some of the XML document rows contain URLs that are not embedded in the CDATA tag. In any case, if the browser has trouble displaying the XML, will oracle text have trouble indexing the XML and creating the section group zones?
Second, I understand that the NOT operator takes a right operand term and left operand term. Can either of the terms be the results of the WITHIN operator, i.e. "dogs not (cats within animals)".
Thank you.I bet you just whipped that out, and I thank you with all my
heart, its amazing to me how many ways I tried to do what you did.
Thanks
I have a second question relating to the same problem and
that is in referencing the over state. Currently, I can write
'text' into the text field and see what I have coming in from xml
in its place during the 'up' state.
However, when the timeline hits the 'over' state, the
textfield will display nothing, or 'text' if I have that written
in. I suspect that I am not referencing the'over' state correctly.
Should I add one line of code sort of referencing the text
field and not just the button while in the over state? -
Scientific Notation conversion to text Help needed
I have a column with datatype nvarchar. I need to remove this problem thats happenning often, This is how sometimes the values can be 13343E11466 in my column but when I run a query it changes to " 1.40E+279".. Do i need to convert
the data type into text? or
Can someone help me out ??
FM> 13343E11466
That is not a common number. How do you interpret the string?
If you want to keep it in a specific display format, you have to keep it as a string. SSMS reformats to a standard scientific display format. The actually value does not change.
DECLARE @Fl float = 13343E11;
SELECT @Fl;
-- 1.3343E+15
Excel does the same thing. This behavior is similar to datetime with a single internal binary representation and many string formats.
Kalman Toth Database & OLAP Architect
SELECT Video Tutorials 4 Hours
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
Group By clause in oracle 10g help needed
Hi
we have a requirement that get the AR aging details at customer level.I have written the following query to fetch the correct rows at invoice level.But now i need to sum the amounts and i should show at invoice level and customer level.Could you please help me how can i group by customer level.
Here is the query i used
select ps.org_id
, sob.SET_OF_BOOKS_ID
, sob.CHART_OF_ACCOUNTS_ID
, gcc.SEGMENT1 Company
, gcc.SEGMENT2 Location
, gcc.SEGMENT3 Department
, gcc.SEGMENT4 Account
, gcc.SEGMENT5 Future_1
, gcc.SEGMENT6 Future_2
, gcc.SEGMENT7 Future_3
, gcc.CONCATENATED_SEGMENTS gl_cc_concat_kff
, ps.trx_number
, ps.trx_date
, ps.due_date
, ps.invoice_currency_code
, sob.currency_code SOB_Currency_Code
, ps.class
, ps.amount_due_original
, ps.amount_due_original * nvl(ps.exchange_rate, 1) acctd_amount_due_original
, ps.amount_due_remaining
, ps.acctd_amount_due_remaining
, ps.status
, ps.cust_trx_type_id
, ps.customer_site_use_id
, ps.customer_trx_id
, ps.cash_receipt_id
, ps.gl_date
, rctlda.CODE_COMBINATION_ID
, ps.customer_id
, nvl(rcta.ATTRIBUTE5,ps.CUSTOMER_ID) End_Customer_Id
, rc.customer_number
, rc2.CUSTOMER_NUMBER Brand_Cust_no
, round((sysdate-ps.due_date))
from gl_sets_of_books sob
, hr_operating_units ou
, ar_payment_schedules_all ps
, ra_customers rc
, ra_cust_trx_line_gl_dist_all rctlda
, gl_code_combinations_kfv gcc
, ra_customer_trx_all rcta
, ra_customers rc2
where sob.set_of_books_id = ou.set_of_books_id
and ou.organization_id = ps.org_id
and ps.status = 'OP'
and ps.org_id is not null
and ps.CUSTOMER_ID=rc.CUSTOMER_ID
and ps.CUSTOMER_TRX_ID=rctlda.CUSTOMER_TRX_ID
and rctlda.ACCOUNT_CLASS='REC'
and rctlda.latest_rec_flag = 'Y'
and rctlda.CODE_COMBINATION_ID=gcc.CODE_COMBINATION_ID
and ps.CUSTOMER_TRX_ID=rcta.CUSTOMER_TRX_ID
and gcc.CODE_COMBINATION_ID=39446
-and ps.trx_number = '1-15O0A8O'
--and rc.CUSTOMER_NUMBER='1-10PA5KX'
and nvl(rcta.ATTRIBUTE5,ps.CUSTOMER_ID)=rc2.CUSTOMER_ID
Could any one help me how to get the same columns with sum( ps.amount_due_original ) for each customer.I tried to use group by clause but it is again giving invoice level.
But my req is for each customer invoice amount should be summed and it should give the total
Thanks
Yif you need to have the sum of invoice related to each customer then may also need to check for the
CUBE
http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_10002.htm#sthref9448
and example here
http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_10002.htm#i2066443
and ROLLUP
http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_10002.htm#sthref9445
I couldn't follow with all your SQL statement, or I could rewrite it for you again
Thanks
Edited by: user9532576 on Jul 21, 2009 9:24 AM -
Hi there, I have an issue hopefully someone here can help me with- I'm working with a cousin on a Flash project, changing a few graphics. Now, I'm using Flash CS4 on a Mac, and a font used in the original file, ''Micra'' is not on my system. I used the Font Mapping function to change the font, but I still see no text when I scroll through the movie in Flash, or when it is now published. Is there anything I can do to make the text visible? What am I missing? Do I need my cousin to do anything for me? I've searched around but haven't found a solution otherwise. If it helps, I had an issue with another graphic that needed to be deleted; I couldn't see it at all and could only get rid of it by deleting it from the library. Maybe that was also due to this font issue. And to add, the movie looks somewhat different when I view it in Flash; there are other graphics that pnly show when the file is published, and I get compiler errors relating to syntax. I'm not too experienced with Flash, so I have no idea how to identify the issue. Much thanks for any help.
Post script- My cousin has no access to any resources I might need, and I tried installing ''Micra Normal'' on my computer. Nothing that's been made invisible so far has become visible. I can imagine a myriad of technical reasons why the text might not be showing up, still hoping someone here might have an answer. The way the text works in the Flash, there are buttons to click through the text. The text fades in with each frame. Within Flash itself I cannot see this action happening, I have no clue why. The font in the original Flash doesn't even seem to look like 'Micra', from what I can tell. My cousin sent me a packet that included a .txt file with all the text that's supposed to go into the Flash, with html code included. Dunno if there's a way I should utilize this in Flash.
-
Starting with Oracle Lite, help needed
Hi everybody,
I have a desktop application written in Java which connects to a Oracle 10g database and I want to use the same application on ultramobile devices under WinXP. These devices will use the application offline and then will synchronize with the DB.
As far as I know, I need Oracle Database Lite on mobile devices for getting database snapshots and track offline changes. I want to know if I need to install the Mobile Server for managing data synchronization between mobile devices and DB.
Do I need to develop a web-app for managing data synchronization or there is a easier way to sinchronize in this case using only the desktop application?
Thanks in advance for your help and sorry for my poor English.You want to look at Win32 applications. There are APIs in multiple programming languages that utilize the Oracle Lite Sync API to sync, or you can just use the mSync tool.
-
Hi
We need help creating desktop manuals and workflows with Oracle Tutor.
Does anyone know any consultants who might also be technical writers who can help out in our New York office?
Much Appreciated,
Lynn Redgrad
PFI PharamaceuticalsOur company recently switched over to Tutor to handle our courseware and manual output. We successfully integrated Tutor output to application help. Overall I was quite satisfied with the work our consultant provided and I would recommend them - we reduced support costs by 30% with their help. I believe they are also in NYC. I don't have their full info on my laptop here but I have their lead's personal email - [email protected] .
Let me know how things work out.
Jed Bronton
EVP Sumpac Financial -
First flash project. All looks great in preview. I've created
a text fade out by converting the white text to a movie clip
symbol. In one keyframe the text is alpha 100%. Several frames
later I've created another keyframe with alpha set to 0%. I've
added a motion tween between the 2 keyframes.
The SWF looks good when I pan it on the timeline, however,
when I test it or publish it. The text just stays alpha 100%.
Your assistance is appreciated.
Kristiwindowswarrior wrote:
> First flash project. All looks great in preview. I've
created a text fade out
> by converting the white text to a movie clip symbol. In
one keyframe the text
> is alpha 100%. Several frames later I've created another
keyframe with alpha
> set to 0%. I've added a motion tween between the 2
keyframes.
>
> The SWF looks good when I pan it on the timeline,
however, when I test it or
> publish it. The text just stays alpha 100%.
>
> Your assistance is appreciated.
> Kristi
>
First let me just point out that if text is not Alpha at all,
you don't need to set
it to 100%, you just set the side where the 0% is, or
whatever number lower than 100%.
100% means no alpha so it's not required to specify that at
all.
Secondly, my guess is that you set the text to DYNAMIC not
STATIC. Dynamic text can
fade in authoring but will fail upon export. In fact try to
Export Preview movie all
the time, this is the only reliable method to find out
whether it's all functioning
properly. Preview while authoring it's never reliable.
Best Regards
Urami
"Never play Leap-Frog with a Unicorn."
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Hi Guys, I've got to design a Family Tree for a client and they want a very particular style. An arc sits at the bottom centre of the page, and inside the arc there are two names/birthdays/deaths/marriages etc. At right angles outside the arc, more names/births/deaths/marriages are listed. For each new generation there will be a new arc, and each new name etc will be at right angles to the arc below, no matter where they sit on the arc. I've done a really rough example of what they want.
So basically my question is this: can it be done easily? (typing on text paths, scripts etc etc..) I really don't want to have to put each new name into an individual text box and rotate to the correct angle, if I can help it. There are up to 8 generations and several hundred names. Family tree goes back to early 1800's...
Any help would be greatly appreciated!It looks like a great opportunity to write a script. After all, it's all just maths; the names 'above' the root can evenly be distributed by dividing the available arc (180°) by the number of names (3), resulting in a separation of 60°, and the initial angle should be half that of that separation. So the first name is at 30°, the second at 90°, the third at 150°, and then there is a remainder of 30° again for the right side.
These same values should be used for the next layer of this onion (family trees can be smelly too), but this time I think the content should be centered on that angle, so the angle for each single line depends on the number of lines in that branch.
It sounds perfectly doable with a script, apart for one thing: how are you going to point out what texts must go where? -
Oracle Certification : Help needed
Hi friends !
I want to prepare for Oracle certification. But I am in dilemma as there are two versions of Oracle : 9i and 10g for which the certification exams exists.
10g is the latest one and I think it will be better to prepare for it. But in my project we are using 9i and I wud b able to do all the practice on it.
Moreover 10g has only one paper for OCA whereas for 9i I need to clear 2 exams for OCA.
Can anybody tell me the differences between the two ?
And will all 10g commands necessary for certification run on 9i platform ?
Plz suggest which one should I go for !!If you just want the OCP title then do 10G. If you want to be a better DBA, do the 9i OCP and then upgrade to 10G. I am 10G OCP and I could clearly see that the level of detail of the 9i study material is far superior to that of the 10G study material.
For 10G OCP they seem to assume that the database will tune itself and that you can backup and recover your database but clicking around in Enterprise Manager. This is all good in theory but if those tools fail then you still need to know what to do to get your database working. -
INTEGER DATA TYPE and Numeric Oracle URGENT Help needed
Hello does any body knows if i run this statement of create table in oracle 9.2
what is maximum number of digit the test_num can stores....
create table test
test_num INTEGER NOT NULL
I have to reply to my client urgently..
Regards
Mahesh
Ramnarayan123All the Oracle reference manuals are on-line at <http://tahiti.oracle.com>. A quick search on "INTEGER" will reveal the answer (38 decimal digits).
Justin -
Hi,
The sql below runs fast in 10gR2 using domain index, but when I uncomment the two commented lines, it reverts back to full table scan and takes longer. Can anyone explain why?
select
pharmacy_name
FROM pharmacy_test
WHERE 1=1
and
(:v_search_pharmacy_name is not null and
contains (pharmacy_name, '%' || :v_search_pharmacy_name || '%') > 0
-- or
-- :v_search_pharmacy_name is null )
Thanks,
JGPHere's the plan for the original sql:
SELECT STATEMENT ALL_ROWSCost: 11,811 Bytes: 142,940 Cardinality: 4,084
* 1 TABLE ACCESS FULL TABLE REPORTUSER.PHARMACY_TEST Cost: 11,811 Bytes: 142,940 Cardinality: 4,084*
And here's the one with the null check:
SELECT STATEMENT ALL_ROWSCost: 14 Bytes: 1,435 Cardinality: 41
* 3 FILTER *
* 2 TABLE ACCESS BY INDEX ROWID TABLE REPORTUSER.PHARMACY_TEST Cost: 14 Bytes: 1,435 Cardinality: 41 *
* 1 DOMAIN INDEX INDEX (DOMAIN) REPORTUSER.PHARMACY_TEST_IX1 Cost: 4*
Thanks,
JGP
Edited by: user567088 on Oct 28, 2009 10:47 AM -
We need to use an Oracle Text index on an application table in a read-only materialised-view replicated environment. The Oracle Text index needs to exist at both the master site and the materialised-view site.
We see two possible alternatives:
(1) Replicate read-only copies of the Oracle Text Index tables and indexes to the materialised view site, in addition to replication of the application table.
or
(2) Replicate only the master application table and create local instances of the Oracle Text index at both the master and materialised view sites.
Which method is best? Any experience, advice or references that you can provide would be much appreciated.
Many thanks for your help,
PeterSee [url http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14226/repoverview.htm#i15730]Introduction to Advanced Replication, [url http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14229/strms_over.htm#i1006084] Introduction to Streams and [url http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14228/gen_rep.htm#i1007573]Understanding Streams Replication
Maybe you are looking for
-
Announcement: Super 4.00 - a suite of EJB/J2EE monitoring/admin tools.
Announcement: Super 4.00 - a suite of EJB/J2EE monitoring/admin tools. Acelet is the leader in J2EE tools area. If you google "j2ee tools", "j2ee logging", "j2ee scheduler" or alike, you will find Acelet is at
-
Arghh!! I am literally about to throw my new iPad out of a window - apple is driving me beyond crazy. I have an old iTunes account to which all my music is saved. I have just created a new apple id and want that to be the one that my iTunes account r
-
How do I stream spotify?
How do I stream from spotify on IPAD 4 to Airplay receiver with airplay ( Pioneer VSX922 ) or to Apple TV conected to the same receiver. I do not find the Airplay symbol in spotify...
-
Nokia 5530 Receives Pictures That Are Too Small
I have a Nokia 5530 and when I get a picture message it comes out really small. This is really frustrating as I sometimes like to save the pictures on my computer. My previous phone was a Nokia 5300 and the pictures I received on this phone were a
-
HTTP POST Request? How? Please Help!
Hi maybe this is a simple question. But I was able to do a GET Request from an applet to an ASP page just fine but I am having problems with the POST Request. How do you do a HTTP POST and put the parameter on the post data? This is what I am doing: