1. Install the CTXSYS schema:
SQL> connect SYS/password as SYSDBA SQL> spool text_install.txt SQL> @?/ctx/admin/catctx.sql change_on_install SYSAUX TEMP NOLOCK
2. Install the language-specific default preferences.
There is script which creates language-specific default preferences for every language Oracle Text supports in $O_H/ctx/admin/defaults Directory
Grep for your language, and you'll find your script easily:
myserver>grep Norwegian * drdefn.sql:Rem default preference for NorwegianExecute it as follows:
SQL> connect "CTXSYS"/"change_on_install" SQL> @?/ctx/admin/defaults/drdefn.sql "NORWEGIAN"; SQL> connect SYS/password as SYSDBA SQL> alter user ctxsys account lock password expire; SQL> spool off
3. Verify your installation by running:
connect SYS/password as SYSDBA set pages 1000 col object_name format a40 col object_type format a20 col comp_name format a30 column library_name format a8 column file_spec format a60 wrap spool text_install_verification.log -- check on setup select comp_name, status, substr(version,1,10) as version from dba_registry where comp_id = 'CONTEXT'; select * from ctxsys.ctx_version; select substr(ctxsys.dri_version,1,10) VER_CODE from dual; select count(*) from dba_objects where owner='CTXSYS'; -- Get a summary count select object_type, count(*) from dba_objects where owner='CTXSYS' group by object_type; -- Any invalid objects select object_name, object_type, status from dba_objects where owner='CTXSYS' and status != 'VALID' order by object_name; spool off
Valid output depends on your Oracle version, but for 11.2.0.3 it is:
COMP_NAME STATUS VERSION ------------------------------ -------------------------------------------- ---------------------------------------- Oracle Text VALID 11.2.0.3.0 VER_DICT VER_CODE ---------------------------------------- ---------------------------------------- 11.2.0.3.0 11.2.0.3.0 VER_CODE ---------------------------------------- 11.2.0.3.0 COUNT(*) ---------- 388 OBJECT_TYPE COUNT(*) -------------------- ---------- INDEX 63 TYPE BODY 6 INDEXTYPE 4 PROCEDURE 2 TYPE 35 TABLE 50 VIEW 77 FUNCTION 2 LIBRARY 1 PACKAGE BODY 63 OPERATOR 6 PACKAGE 74 LOB 2 SEQUENCE 3
No comments:
Post a Comment