Showing posts with label Nqsconfig. Show all posts
Showing posts with label Nqsconfig. Show all posts

Oracle BIEE 10.1.3.4 TMP and Cache Files Still in Original Path After Modifying NSQConfig.ini File


Modified the NQSConfig.ini file to change the TMP directory and the DATA_STORAGE_PATH (Cache).
Restarted the BI server and presentation server and noticed that files are not being written to the expected locations.
For example, the TMP directory was changed from:

WORK_DIRECTORY_PATHS = “/u01/app/oracle/product/10.1.3/obiee/OracleBIData/tmp”;
To:
WORK_DIRECTORY_PATHS = “/obi-tmp/tmp”;
The DATA_STORAGE_PATH was changed from:
DATA_STORAGE_PATH = “C:\OracleBI\server\Data\Temp\Cache” 500 MB ;
To:
DATA_STORAGE_PATH = “/obi-tmp/cache” 500 MB;
After making these changes, the TMP and cache files are still being written to the original locations.
Cause
Cache and TMP file locations are controlled by NSQConfig.ini parameters and the SATEMPDIR environment variable.
While the NSQConfig.ini file had been partially updated, the SATEMPDIR had not been updated at all.
The cache settings need to be updated in the NSQConfig.ini file under “[MDX_MEMBER_CACHE]” and “Query Result Cache Section.”
If the SATEMPDIR environment variable is not set and both cache locations are not updated in the
NSQConfig.ini file, the files will continue to write to the default locations.
Solution
Please complete/verify the following steps to change TMP and Cache File locations:
1. Open the NQSConfig.ini file and verify/modify desired paths for the TMP and Cache files.
You should leave original values in the file, but prefix with a “#” symbol to comment out the value.
For example:
TMP Files
#WORK_DIRECTORY_PATHS = “/u01/app/oracle/product/10.1.3/obiee/OracleBIData/tmp”;
WORK_DIRECTORY_PATHS = “/obi-tmp/tmp”;
Cache Files
Query Result Cache Section
[ CACHE ]
ENABLE = NO;
// A comma separated list of <directory maxSize> pair(s)
// e.g. DATA_STORAGE_PATHS = “d:\OracleBIData\nQSCache” 500 MB;
#DATA_STORAGE_PATHS = “/u01/app/oracle/product/10.1.3/obiee/OracleBIData/cache” 500 MB;
DATA_STORAGE_PATHS = “/obi-tmp/cache” 500 MB;
[ MDX_MEMBER_CACHE ]
#DATA_STORAGE_PATH = “/u01/app/oracle/product/10.1.3/obiee/OracleBIData/cache” 500 MB;
DATA_STORAGE_PATH = “/obi-tmp/cache” 500 MB;
2. Then update the SATEMPDIR environment variable to show the same physical path as the WORK_DIRECTORY_PATHS variable in the NSQConfig.ini file (“/obi-tmp/tmp”).
The SATEMPDIR is only applicable to the TMP files.
NOTE: On Linux/Unix systems, this environment variable is defined in the common.sh file in the OracleBI/setup directory.
On Windows, the SATEMPDIR is defined under System Settings -> Advanced -> Environment Variables.
3. After making these changes, stop the BI Presentation Server and BI Server. Then restart.
4. After restarting, you will see .tmp and cache files written to the new directories.

Nqsconfig


File Path: < OBIEE Install Directory> / Oracle BI/ Server/ Config / NQSConfig.INI
Here I would like to share the importance of this file
First of all  NQSConfig.INI is the main Configuration file for BI Server. Because it contains lots of parameters.
[Note: After changing anything to this file we  have to restart Oracle BI server Services to reflect that changes  ]
1)  General
If Values in the literals, digits or _, they can be given as such. If values contain characters other than literals, digits or _, values must be given in quotes. (Like “”)
2) Repository
All repositories must reside in OracleBI \ server\ Repository directory, where OracleBI is the directory in which the oracle BI server software is installed.
3)  Cache ( Learn in detail about CACHE MANAGEMENT)
Usually Cache ENABLE options = YES , If you change  as “ NO ” then u can not check in Cache Manager about the entries ( means cache will be disable)
( to check in cache manager follow this
Start \ All Programs \ Oracle Business Intelligence \ Administration  then  File \ open \ online
Give Administrator as user and password. Then go to Manage\cache)
We can change parameters like MAX ROWS PER CACHE ENTRY, MAX CACHE ENTRY SIZE, MAX CACHE ENTRIES .
NQSConfigAbove parameters are by default. And we can change it to need our need. To check the current caching situation on the server path: Oracle BI Admin tool > Manage > Cache > Go right pane and right click> show info.
You will see the screen as below.