Oracle® OLAP DML Reference 10g Release 2 (10.2) Part Number B14346-01 |
|
|
View PDF |
The LOCK_LANGUAGE_DIMS option specifies whether or not the status of language dimension can be changed.
Data Type
BOOLEAN
Syntax
LOCK_LANGUAGE_DIMS= TRUE | FALSE
Arguments
Specifies that Oracle OLAP returns an error if a LIMIT statement tries to limit the status of a language dimension.
When a program changes the value the LOCK_LANGUAGE_DIMS option from FALSE to TRUE, Oracle OLAP resets the status of the language dimension in any attached analytic workspace according to the value of the SESSION_NLS_LANGUAGE option.
Sets the status of the language dimension to ALL, and specifies that programs can modify the status of the language dimension using LIMIT.
When a program changes the value the LOCK_LANGUAGE_DIMS option from TRUE to FALSE, Oracle OLAP resets the status of the language dimension in any attached analytic workspace to ALL.
Examples
Example 16-32 Explicitly Limiting a Language Dimension
Assume that your analytic workspace contains a language dimension named mylangs
that has the following definition and values.
DEFINE MYLANGS DIMENSION TEXT PROPERTY '$DEFAULT_LANGUAGE' - 'AMERICAN' MYLANGS -------------- FRENCH AMERICAN
Assume also, as shown by the following report, that when you attach the analytic workspace that the status of mylangs
is American.
REPORT mylangs MYLANGS -------------- AMERICAN
As the following code illustrates, you can explicitly change the status of mylangs
to French using LIMIT if you first set the value of LOCK_LANGUAGE_DIMS to FALSE. You cannot use LIMIT against a language dimension when the value of LOCK_LANGUAGE_DIMS has its default value of TRUE.
" Try to LIMIT mylangs LIMIT mylangs to 'FRENCH' ORA-33558: The status or contents of the MYAW3!MYLANGS dimension cannot be changed while the LOCK_LANGUAGE_DIMS option is set to yes. " Got an error SHOW LOCK_LANGUAGE_DIMS TRUE " Got the error because LOCK_LANGUAGE_DIMS was TRUE "Change LOCK_LANGUAGE_DIMS to FALSE LOCK_LANGUAGE_DIMS = FALSE " Try to LIMIT mylangs again LIMIT mylangs TO 'FRENCH' " Check to see if the LIMIT worked. It did REPORT mylangs MYLANGS -------------- FRENCH " Then relock the language LOCK_LANGUAGE_DIMS = TRUE