0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Oracle text

Posted at

#ctxsysユーザを作る必要がある。

SQL> @?/ctx/admin/catctx.sql mypwd DATA TEMP NOLOCK

ここで、CTXSYSはctxsysユーザーのパスワード、SYSAUXはctxsysのデフォルトの表領域、TEMPは>ctxsysの一時表領域で、LOCK|NOLOCKはctxsysユーザーのアカウントをロックするかどうかを指定し>ます。


--以下はdbユーザで実行
begin
ctx_ddl.create_preference('preference_m_sku','BASIC_LEXER');
end;
/



BEGIN
CTX_DDL.create_preference('CTXSYS.DEFAULT_WORDLIST', 'BASIC_WORDLIST');
END;

--以下はctxsysユーザで実行する。
update dr$parameter
set par_value = 'CTXSYS.EMPTY_STOPLIST'
where par_value = 'CTXSYS.DEFAULT_STOPLIST'; 

BEGIN
CTX_DDL.create_preference('CTXSYS.DEFAULT_LEXER', 'BASIC_LEXER');
END;

COMMIT;

--以下はdbユーザで実行
create index I_M_SKU_CONTEXT1 on M_SKU(SKU_CD)
indextype is ctxsys.context
parameters ('lexer COM2.PREFERENCE_M_SKU');
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?