Manually Editing Additional Query Cache Parameters

Managing Performance Tuning and Query Caching 7-17 ■ SAPurgeCacheByQuery. Purges cache entries that exactly match a specified query. For example, using the following query, you would have one or more query cache entries that retrieve the names of all employees earning more than 100,000: SELECT lastname, firstname FROM employee WHERE salary 100000; The following call purges the cache entries that are associated with this query: Call SAPurgeCacheByQuerySELECT lastname, firstname FROM employee WHERE salary 100000 ; ■ SAPurgeCacheByTable. Purges all cache entries that are associated with a specified physical table name fully qualified for the repository to which the client has connected. This function takes up to four parameters that represent the four components database, catalog, schema, and table name proper of a fully qualified physical table name. For example, you might have a table with the fully qualified name of DBName.CatName.SchName.TabName. To purge the cache entries that are associated with this table in the physical layer of the Oracle Business Intelligence repository, run the following call in a script: Call SAPurgeCacheByTable DBName, CatName, SchName, TabName ; ■ SAPurgeAllCache. Purges all cache entries. The following is an example of this call: Call SAPurgeAllCache; ■ SAPurgeCacheByDatabase. Purges all cache entries associated with a specific physical database name. A record is returned when any of the ODBC procedures to purge the cache are called. This function takes one parameter that represents the physical database name, and the parameter cannot be null. The following shows the syntax of this call: Call SAPurgeCacheByDatabase DBName ;

7.6.2.1 About ODBC Procedure Syntax

If there is a single quotation mark within the string argument of a procedure, then you must use another single quotation mark to escape it. For example: Call SAPurgeCacheByQuerySELECT TOPN- Currency.Markdown , 10 saw_0, XX Line.Order No saw_1, - Bill-To Site.Customer Name saw_2, - Currency.Net USD saw_3, - Currency.Markdown USD saw_4, - Currency.Markdown saw_5 FROM Apps 11i - XX Lines WHERE XX Line.Open Flag = Y AND Operating Unit.Group Name = Group AND - Currency.Net USD = 10000 ORDER BY saw_0; The line in bold highlights the extra single quotation marks that are used as escape characters for the items Y and Group. Note: Wildcards are not supported by the Oracle BI Server for this function. In addition, DBName and TabName cannot be null. If either one is null, then an error message is displayed.