|
amdisuk
|
 |
« on: February 16, 2008, 05:59:49 pm » |
|
For Maximo to work Oracle Text must be installed. This is stated in the Maximo documentation but it doesn't explain how to install Oracle Text.
To check if Oracle Text is installed the Maximo documentation tells you to run the following script:
select username from dba_users where username ='CTXSYS';
To install the Oracle Text I usually run the following script:
call ctx_ddl.drop_preference('global_lexer'); call ctx_ddl.drop_preference('default_lexer'); call ctx_ddl.drop_preference('english_lexer'); call ctx_ddl.drop_preference('chinese_lexer'); call ctx_ddl.drop_preference('japanese_lexer'); call ctx_ddl.drop_preference('korean_lexer'); call ctx_ddl.drop_preference('german_lexer'); call ctx_ddl.drop_preference('dutch_lexer'); call ctx_ddl.drop_preference('swedish_lexer'); call ctx_ddl.drop_preference('french_lexer'); call ctx_ddl.drop_preference('italian_lexer'); call ctx_ddl.drop_preference('spanish_lexer'); call ctx_ddl.drop_preference('portu_lexer'); call ctx_ddl.create_preference('default_lexer','basic_lexer'); call ctx_ddl.create_preference('english_lexer','basic_lexer'); call ctx_ddl.create_preference('chinese_lexer','chinese_lexer'); call ctx_ddl.create_preference('japanese_lexer','japanese_lexer'); call ctx_ddl.create_preference('korean_lexer','korean_morph_lexer'); call ctx_ddl.create_preference('german_lexer','basic_lexer'); call ctx_ddl.create_preference('dutch_lexer','basic_lexer'); call ctx_ddl.create_preference('swedish_lexer','basic_lexer'); call ctx_ddl.create_preference('french_lexer','basic_lexer'); call ctx_ddl.create_preference('italian_lexer','basic_lexer'); call ctx_ddl.create_preference('spanish_lexer','basic_lexer'); call ctx_ddl.create_preference('portu_lexer','basic_lexer'); call ctx_ddl.create_preference('global_lexer', 'multi_lexer'); call ctx_ddl.add_sub_lexer('global_lexer','default','default_lexer'); call ctx_ddl.add_sub_lexer('global_lexer','english','english_lexer','en'); call ctx_ddl.add_sub_lexer('global_lexer','simplified chinese','chinese_lexer','zh'); call ctx_ddl.add_sub_lexer('global_lexer','japanese','japanese_lexer',null); call ctx_ddl.add_sub_lexer('global_lexer','korean','korean_lexer',null); call ctx_ddl.add_sub_lexer('global_lexer','german','german_lexer','de'); call ctx_ddl.add_sub_lexer('global_lexer','dutch','dutch_lexer',null); call ctx_ddl.add_sub_lexer('global_lexer','swedish','swedish_lexer','sv'); call ctx_ddl.add_sub_lexer('global_lexer','french','french_lexer','fr'); call ctx_ddl.add_sub_lexer('global_lexer','italian','italian_lexer','it'); call ctx_ddl.add_sub_lexer('global_lexer','spanish','spanish_lexer','es'); call ctx_ddl.add_sub_lexer('global_lexer','portuguese','portu_lexer',null);
I have also attached the sql script file I run. Please note that this works for Oracle 10.
|