Oracle8
ConText Cartridge QuickStart
Release 2.4 A63819-01 |
|
This chapter provides basic information for implementing
ConText.
The chapter covers the following topics:
This QuickStart manual assumes that Oracle8 is installed
and running. In addition, the manual assumes that basic Oracle implementation
tasks have been performed.
Before you proceed to the ConText implementation questions,
verify the following:
This section provides a list of ConText implementation questions
that you need to answer before you can begin the QuickStart tasks:
1. Have you created tables to store
your text?
2. Is text loaded into your tables?
4. Is the ConText initialization parameter
enabled?
5. Is CTXAPP granted to users who
own tables?
The answers you provide depend on whether text is already
stored in Oracle8 or you are storing text for the first time.
Proceed to "2. Is text loaded into
your tables?" >
You need to create one or more tables for storing your text. Each table used to store text must have at least the following columns:
To create tables, log in to SQL*Plus as the Oracle user who
will own the tables and use the CREATE TABLE command.
See Also: |
Proceed to "3. Is ConText installed?"
>
You need to load documents (text) into your table(s). ConText
supports three types of storage for documents:
You can use the following methods for loading documents into a table:
You can also use a ConText server with the Loader personality
to automate loading text from operating system files into a LONG or LONG
RAW column.
The tool/utility you use depends on the structure and usage
of the text column. For example, ctxload only works for tables containing
a LONG or LONG RAW column.
See
Also:
Oracle8 SQL Reference, Oracle8 Utilities, Oracle8 ConText Cartridge Administrator's Guide |
Proceed to "4. Is the ConText initialization
parameter enabled?" >
You must install Oracle8 ConText Cartridge on a server machine.
See
Also:
Oracle8 installation documentation specific to your operating system |
Proceed to "5. Is CTXAPP granted to
users who own tables?" >
If you want to use one-step queries in ConText, you need
to set the initialization parameter TEXT_ENABLE to TRUE.
You can set the TEXT_ENABLE parameter by adding the following line to your initsid.ora file and restarting the database:
text_enable = true
You can also use the SQL command, ALTER SESSION, to set TEXT_ENABLE
for the current session.
See Also: |
You are done with the required implementation tasks for ConText!
Go to Chapter 2, "Using Text Queries" >>
or
Chapter 3, "Using Theme Queries and
CTX_LING" >>
You must grant the ConText role, CTXAPP, to Oracle users
who own the tables in which text is stored. The CTXAPP role allows a user
to create a text index for a column.
To grant CTXAPP to users, log in to SQL*Plus as the CTXSYS
user and use the GRANT command.
For example:
grant CTXAPP to CTXDEV;
In this example, CTXAPP is granted to a user named ctxdev.
Note: ctxdev is an example Oracle user used in QuickStart; the ctxdev user is not provided by ConText and must be created manually if you wish to use it in your installation. |
See
Also:
Oracle8 SQL Reference, Oracle8 ConText Cartridge Administrator's Guide |