Oracle Text is a facility within the database that provides more advanced indexing & search techniques - including the ability to index documents stored in your database; on your server; or even the web!
Now you can incorporate this functionality into your web application using Oracle Application Express.
This presentation will demonstrate how easy it is to combine the two, and give you a platform for further expansion and exploration within a very powerful product.
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
Oracle Text in APEX
1. SAGE Computing Services
Customised Oracle Training Workshops and Consulting
Oracle Text in Apex
Advanced Indexing Techniques Integrated with
Application Express
Scott Wesley
Systems Consultant & Trainer
4. the law is strangling creativity
http://www.ted.com/talks/larry_lessig_says_the_law_is_strangling_creativity.html
http://presentationzen.blogs.com/presentationzen/2005/10/the_lessig_meth.html
5. Identity 2.0 – Dick Hardt
http://identity20.com/media/OSCON2005/
34. Class Description
Datastore How are your documents stored?
Filter How can the documents be converted to plain text?
Lexer What language is being indexed?
Wordlist How should stem and fuzzy queries be expanded?
Storage How should the index data be stored?
Stop List What words or themes are not to be indexed?
Section Group How are documents sections defined?
36. CREATE INDEX ctx_name ON my_names(name)
INDEXTYPE IS ctxsys.context
PARAMETERS ('DATASTORE CTXSYS.DEFAULT_DATASTORE');
37. SQL> SELECT SCORE(1), name
2 FROM my_names
3 WHERE CONTAINS(name, 'fuzzy(john,,,weight)', 1) > 0
4 ORDER BY SCORE(1) DESC;
SCORE(1) NAME
---------- ----------------------------------------
100 John
100 John
70 Jon
70 Jon
63 Joan
63 Joan
52 Jong
48 Jona
8 rows selected.
89. CTX PL/SQL Packages
GRANT EXECUTE ON CTXSYS.CTX_CLS TO ausoug;
GRANT EXECUTE ON CTXSYS.CTX_DDL TO ausoug;
GRANT EXECUTE ON CTXSYS.CTX_DOC TO ausoug;
GRANT EXECUTE ON CTXSYS.CTX_OUTPUT TO ausoug;
GRANT EXECUTE ON CTXSYS.CTX_QUERY TO ausoug;
GRANT EXECUTE ON CTXSYS.CTX_REPORT TO ausoug;
GRANT EXECUTE ON CTXSYS.CTX_THES TO ausoug;
GRANT EXECUTE ON CTXSYS.CTX_ULEXER TO ausoug;
90. Using URL Datastore in 11g
CREATE ROLE apex_url_datastore_role;
GRANT apex_url_datastore_role TO APEX_040000
WITH ADMIN OPTION;
GRANT apex_url_datastore_role TO ausoug;
EXEC
ctxsys.ctx_adm.set_parameter
('file_access_role'
,'APEX_URL_DATASTORE_ROLE');
91. Demonstrations
Script Description
Ctx_blobs.sql Import & index a range of documents
Ctx_bfiles.sql Import & index BFILE pointers
Ctx_urls.sql Index & search URL references
Ctx_dict.sql Index & search English dictionary words
Ctx_views.sql Index view SQL text for impact analysis
Ctx_apex_files.sql Duplicate and search Apex file repository
Ctx_apex_backups.sql Hunt through your (automated) Apex app backups
Ctx_names.sql Basic name filter options
Ctx_products.sql Multiple column searches
Ctx_category.sql Attribute based searching
Ctx_classify.sql Classify documents into categories
122. create table ausoug.my_stats (stats clob);
declare
x clob := null;
begin
for r_rec in
(select *
from ctxsys.ctx_indexes
where idx_owner = 'AUSOUG'
and idx_type = 'CONTEXT') loop
ctx_report.index_stats(r_rec.idx_name,x);
insert into ausoug.my_stats values (x);
end loop;
commit;
dbms_lob.freetemporary(x);
end;
/
156. SAGE Computing Services
Customised Oracle Training Workshops and Consulting
Question time
Presentations are available from our website:
http://www.sagecomputing.com.au
enquiries@sagecomputing.com.au
scott.wesley@sagecomputing.com.au
http://triangle-circle-square.blogspot.com