Oracle Text Reference Release 9.2 Part Number A96518-01 |
|
This chapter provides reference information for using the CTX_OUTPUT
PL/SQL package.
CTX_OUTPUT
contains the following stored procedures:
Use this procedure to add an event to the index log for more detailed log output. Currently the only event you can add is the CTX_OUTPUT.EVENT_INDEX_PRINT_ROWID
which logs the rowid of each row after it is indexed. This is useful for debugging a failed index operation.
CTX_OUTPUT.ADD_EVENT(event in varchar2);
Specify the type of index event to log. Currently the only event you can add is the CTX_OUTPUT.EVENT_INDEX_PRINT_ROWID
which logs the rowid of each row after it is indexed.
begin CTX_OUTPUT.ADD_EVENT(CTX_OUTPUT.EVENT_INDEX_PRINT_ROWID);end;
Halt logging index and document service requests
CTX_OUTPUT.END_LOG;
begin CTX_OUTPUT.END_LOG; end;
Returns the filename for the current log. This procedure looks for the log file in the directory specified by the LOG_DIRECTORY
system parameter.
CTX_OUTPUT.LOGFILENAME RETURN VARCHAR2;
Log file name.
declare logname varchar2(100); begin logname := CTX_OUTPUT.LOGFILENAME; dbms_output.put_line('The current log file is: '||logname); end;
Use this procedure to remove an event from the index log.
CTX_OUTPUT.REMOVE_EVENT(event in varchar2);
Specify the type of index event to remove from the log. Currently the only event you can add and remove is the CTX_OUTPUT.EVENT_INDEX_PRINT_ROWID
.
begin CTX_OUTPUT.REMOVE_EVENT(CTX_OUTPUT.EVENT_INDEX_PRINT_ROWID);end;
Begin logging index and document service requests.
CTX_OUTPUT.START_LOG(logfile in varchar2);
Specify the name of the log file. The log is stored in the directory specified by the system parameter LOG_DIRECTORY
.
begin CTX_OUTPUT.START_LOG('mylog1'); end;
|
Copyright © 1998, 2002 Oracle Corporation. All Rights Reserved. |
|