D2000 DBManager - performance tuning
Oracle SQL Hints
Oracle SQL Hints are used to pass instructions, or hints, to the performance optimizer of SQL statement.
Syntax:
SELECT /*+ <orahint> */ ... UPDATE /*+ <orahint> */ ... DELETE /*+ <orahint> */ ... INSERT /*+ <orahint> */ ...
In ESL script actions, the value is used without the opening and terminating characters /*+, */.
- DB_READ / DBS_READ
- DB_DELETE / DBS_DELETE
- DB_UPDADE / DBS_UPDATE
- DB_INSERT / DBS_INSERT
- DB_INSUPD / DBS_INSUPD
- DB_READ_BLOB / DBS_READ_BLOB
- DB_UPDATE_BLOB / DBS_UPDATE_BLOB
- PG_CONNECT
- PG_DELETE
- PG_INSERT
- PG_UPDATE
Example of use:
;with APPEND the rows are written directly to the datafiles and are not logged DBS_INSERT DB.AR_USER_PRAVO_TEMP, _Temp, _retCode ORAHINT "append" IF _retCode # _ERR_NO_ERROR THEN CALL [E.AR] LogError((%GetLastExtErrorCode())) ASYNC ON AR.EVH ENDIF
You can find more information in Oracle documentation.
Pridať komentár