Get General Settings
/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/settings
Returns general settings of the specified database. Additional groups of settings can be expanded using the expand
parameter. If expand
is none, links are returned for the additional groups of settings.
Request
-
applicationName(required): string
Application name.
-
databaseName(required): string
Database name.
-
expand: string
Use
none
to show only general settings, with links for other grouped settings. Other expansion options available:startup
(block storage cubes only)calculation
(block storage only)buffers
caches
(block storage only)transactions
(block storage only)compression
(aggregate storage only)all
Default Value:none
Allowed Values:[ "none", "startup", "calculation", "buffers", "caches", "transactions", "compression", "all" ]
Response
- application/json
- application/xml
200 Response
OK
General database settings returned successfully, with links to get expanded settings.
object
-
dataRetrievalBufferSize:
integer(int64)
Retrieval buffer size allocated per retrieval request
-
dataRetrievalSortBufferSize:
integer(int64)
Retrieval sort buffer size allocated per retrieval request
object
-
cacheMemoryLocking:
boolean
Deprecated, along with direct I/O
-
dataCacheCurrentValue:
integer(int64)
The run-time size (in KB) of the data cache
-
dataCacheSetting:
integer(int64)
The data cache size setting value (in KB) currently in effect
-
dataFileCacheCurrentValue:
integer(int64)
The run-time data file cache size (in KB) currently in use by the cube. Once you have changed the data file cache size, you must stop and restart the cube in order for the new data file cache size to take effect.
-
dataFileCacheSetting:
integer(int64)
The data file cache size setting value currently in effect
-
indexCacheCurrentValue:
integer(int64)
Run-time size (in KB) of the index cache
-
indexCacheSetting:
integer(int64)
The index cache size (in KB) setting value currently in effect
-
indexPageCurrentValue:
integer(int32)
Run-time size (in KB) of an index page
-
indexPageSetting:
integer(int32)
The index page size setting (in KB) currently in effect
object
-
aggregateMissingValues:
boolean
If true, aggregate #MISSING values along with the regular cube consolidation. The default is false (missing values are not aggregated).
-
createBlocksOnEquations:
boolean
Force creation of data blocks on constant assignment calc equations (only valid for sparse dimensions). If true, blocks are created.
-
twoPassCalculation:
boolean
Force two pass calculation when running a full calculation (true if two pass calculation is enabled)
array
-
Array of:
object CompressionSettings
Estimated compression statistics for an aggregate storage cube, with different dimensions hypothetically used as the compression dimension. These estimates can help you choose the best compression dimension.
object
-
description:
string
General description of the cube
-
queryTracking:
boolean
Whether collection of query data is enabled. Applies only to aggregate storage cubes. If true, query tracking is enabled, and can be used for query-based view optimization.
object
-
allowUsersToStartDatabase:
boolean
Enable or disable users from starting the cube, either directly, or as a result of requests requiring the cube to be started. The default is true.
-
startDatabaseWhenApplicationStarts:
boolean
Automatically start the cube when the application starts. The default is true. Applicable only when allowUsersToStartDatabase is also true.
object
-
commitBlocks:
integer(int64)
The number of data blocks updated before an explicit commit is performed (during calculation and grid updates). Applicable when committedAccess is false.
-
commitRows:
integer(int64)
The number of rows of the input file processed before an explicit commit is performed (during data load). Applicable when committedAccess is false.
-
committedAccess:
boolean
If true, sets the isolation level to committed access, meaning that only one transaction at a time can update data blocks, and Essbase holds read/write locks on all data blocks until the transaction and the commit operations are performed. If concurrencyPreImageAccess is enabled, users (or transactions) can still have read-only access to data at its last commit point. The default is false.
-
concurrencyPreImageAccess:
boolean
If true, allow users (or other transactions) read-only access to data at its last commit point when the cube is in committed mode (meaning that data blocks may be locked for the duration of a concurrent transaction). The default is true, when committedAccess is enabled.
-
concurrencyWaitSeconds:
integer(int32)
Lock timeout interval; number of seconds to wait for blocks to be unlocked when the database is in committed mode. If a transaction request is made that cannot be granted in the allotted time, the transaction is rolled back until a lock can be granted. Applicable only when committedAccess is true.
object
Estimated compression statistics for an aggregate storage cube, with different dimensions hypothetically used as the compression dimension. These estimates can help you choose the best compression dimension.
-
averageBundleFill:
number(double)
Applies to aggregate storage cubes only. Estimated average number of values per compression dimension bundle. Choosing a compression dimension that has a higher average bundle fill means that the cube compresses better.
-
averageValueLength:
number(double)
Estimated average number of bytes required to store a value. Dimensions with a smaller average value length compress the cube better.
-
dimensionName:
string
Dimension name hypothetically considered to be the aggregate storage compression dimension, for purposes of estimating compression statistics.
-
isCompression:
boolean
Whether this is an aggregate storage compression dimension. By default, the compression dimension is the Accounts dimension. There can be only one compression dimension in an aggregate storage cube.
-
level0MB:
number(double)
Estimated size of the compressed cube, in megabytes. A smaller expected level-0 size indicates that choosing this dimension enables better compression. Except for the scenario in which there is no compression dimension (None), all estimates assume that all pages are compressed. Since compressed pages require additional overhead that uncompressed pages do not, the estimated level-0 database size for some dimensions may be larger than the value for None.
-
storedLevel0Members:
number(double)
Number of stored level 0 members. Aggregate storage compression dimensions with a large number of stored level 0 members do not perform optimally. As with any dynamically calculated dimension, upper-level retrievals from compression dimensions generally are slower.
400 Response
Bad Request
Failed to get database settings. The application or database name may be incorrect.
500 Response
Internal Server Error.
Examples
The following example shows how to get general and startup settings for a cube.
This example uses cURL to access the REST API from a Windows shell script. The calling user's ID and password are variables whose values are set in properties.bat
.
Script with cURL Command
call properties.bat
curl -X GET "https://myserver.example.com:9001/essbase/rest/v1/applications/Sample/databases/Basic/settings?expand=startup&links=none" -H "accept: application/json"-u %User%:%Password%
Example of Response Body
{
"general": {
"description": "",
"queryTracking": false
},
"startup": {
"allowUsersToStartDatabase": true,
"startDatabaseWhenApplicationStarts": true
},
"links": [ ]
}