EssResetDatabase() clears all loaded data and resets the outline to be empty in the active database.
ESS_FUNC_M EssResetDatabase (hCtx);
ESS_HCTX_T | hCtx; |
hCtx | Essbase API context handle |
None.
This function requires that the caller have Write privilege (ESS_PRIV_WRITE) for the database, and to has selected it as the active database using EssSetActive().
ESS_FUNC_M ESS_ResetDb (ESS_HCTX_T hCtx) { ESS_FUNC_M sts = ESS_STS_NOERR; ESS_PROCSTATE_T pState; sts = EssResetDatabase(hCtx); if (!sts) { sts = EssGetProcessState (hCtx, &pState); while(!sts || (pState.State != ESS_STATE_DONE)) sts = EssGetProcessState (hCtx, &pState); } return (sts); }
EssLocateIBH() locates invalid block headers within the database. At the end of the locate process, a server-based IBH log file is created that can be used later in EssFixIBH() to fix the errors.
ESS_FUNC_M EssLocateIBH (hCtx, dbName);
ESS_HCTX_T | hCtx; |
ESS_STR_T | dbName; |
hCtx | Context handle |
localeName | Name of the database |
EssGetIBH() creates a local log file with all index combinations for which blocks contain invalid block headers. The database administrator can use this information to reload the datapoints that were identified as corrupted.
ESS_FUNC_M EssGetIBH (hCtx, destFileName);
ESS_HCTX_T | hCtx; |
ESS_STR_T | destFileName; |
hCtx | Context handle |
destFileName | Name of the file in which the IBH information is to be stored at client side. |
EssFixIBH() repairs invalid header block corruption in the database. Currently, it removes all the invalid blocks from the database.
ESS_FUNC_M EssFixIBH (hCtx, action);
ESS_FUNC_M EssFixIBH (ESS_HCTX_T, ESS_IBH_ACTION);
ESS_HCTX_T | hCtx; |
ESS_IBH_ACTION | action; |
hCtx | Context handle |
action | An enumeration type. For this release the only valid value is REMOVE. |
EssGetServerLocaleString() gets the server locale description; for example, English_UnitedStates.US-ASCII@Default.
ESS_FUNC_M EssGetServerLocaleString (hCtx, localeString);
ESS_HCTX_T | hCtx; |
ESS_PSTR_T | localeString; |
hCtx | Context handle |
localeString | Address of pointer to receive allocated string of server locale description. |
If successful, returns the name of the server locale description in localeString.
The memory allocated for localeString should be freed using EssFree().
This function requires no special privileges.
ESS_FUNC_M ESS_GetServerLocaleString (ESS_HCTX_T hCtx) { ESS_FUNC_M sts = ESS_STS_NOERR; ESS_STR_T localeStr= NULL; sts = EssGetServerLocaleString(hCtx, &localeStr); if (localeStr) { printf("server locale: %s\r\n",localeStr); EssFree(hInst,localeStr); } return sts; }
EssUpdateBAKFile() compares the security backup file essbase.bak to the security file essbase.sec and overwrites the backup file with the security file if the two files do not match.
ESS_FUNC_M EssUpdateBAKFile (hCtx);
ESS_HCTX_T | hCtx; |
hCtx | Context handle |
If successful, returns Zero.
Essbase compares the security file and the backup file every time the server starts. The Essbase Application Manager can be used to automatically compare the security backup file to the security file at specified intervals or on demand. When Essbase compares the files, Essbase updates the backup file to match the security file.
This function requires supervisor permission.
ESS_FUNC_M ESS_UpdateBAKFile (ESS_HCTX_T hCtx) { ESS_FUNC_M sts = ESS_STS_NOERR; sts = EssUpdateBAKFile(hCtx); return sts; }
ESS_FUNC_M EssOtlRestructure (hCtx, usRestructType);
ESS_HCTX_T | hCtx |
ESS_USHORT_T | usRestructType |
hCtx | Server login context handle. This must be the server on which the outline was saved using EssOtlWriteOutline(). |
usRestructType | Type of restructuring to do. This can be one of the following values:
ESS_DOR_ALLDATA ESS_DOR_NODATA ESS_DOR_LOWDATA ESS_DOR_INDATA ESS_DOR_FORCE_ALLDATA |
Returns 0 if successful; otherwise returns OTLAPI_BAD_RESTRUCTTYPE.
This function requires you to have the appropriate level of access to
the specified application and/or database to contain the outline object.
To restructure the outline object, you must have Application Designer or
Database Designer privilege (ESS_PRIV_APPDESIGN or ESS_PRIV_DBDESIGN) for
the specified application or database containing the outline.
EsbListRequests() returns information about sessions and requests in progress, terminated, or in the process of being terminated.
EsbListRequests (hCtx, UserName, AppName, DbName, Items) ByVal hCtx As Long ByVal UserName As String ByVal AppName As String ByVal DbName As String Items As LongParameters
hCtx | Context handle |
AppName | Application name |
DbName | Database name |
UserName | User name |
Items | Number of index and data files returned |
If successful, returns a count of the number of users in Items, and generates a list of users with access to the specified application and database that is accessible using EsbGetNextItem().
EsbListRequests() returns information about sessions and requests in progress, terminated, or in the process of being terminated.
This function requires no special privileges.
Declare Function EsbListRequests Lib "ESBAPIW" (ByVal hCtx As Long, ByVal UserName As String, ByVal AppName As String, ByVal DbName As String, pItems As Integer) As Long Sub ESB_ListRequests () Dim Items As Integer Dim ReqInfo As ESB_REQUESTINFO_T Dim UserName As String Dim AppName As String Dim DbName As String Dim sts As Long UserName = "Admin" AppName = "Demo" DbName = "Basic" '************* ' List Requests '************* sts = EsbListRequests (hCtx, Items) For n = 1 To Items '******************** ' Get next Request Info ' from the list '******************** sts = EsbGetNextItem (hCtx, ESB_REQUESTINFO_TYPE, ByVal ReqInfo) Next End Sub
EsbKillRequest() terminates specific Essbase user sessions or requests.
EsbKillRequest (hCtx, ReqInfo) ByVal hCtx As Long ByVal pReqInfo As ESB_REQUESTINFO_TParameters
hCtx | Context handle |
pReqInfo | Pointer to the Request Information structure. |
If successful, returns a count of the number of users in Items, and generates a list of users with access to the specified application and database that is accessible using EsbGetNextItem().
This function requires no special privileges.
Declare Function EsbKillRequest Lib "ESAPINW" (ByVal hCtx As Long, pReqInfo As ESB_REQUESTINFO_T) As Long Sub ESB_KillRequest () Dim Items As Integer Dim pReqInfo As ESB_REQUESTINFO_T Dim UserName As String Dim AppName As String Dim DbName As String Dim sts As Long UserName = "Admin" AppName = "Demo" DbName = "Basic" '************* ' List Requests '************* sts = EsbListRequests (hCtx, Items) For n = 1 To Items '******************** ' Get next Request Info ' from the list '******************** sts = EsbGetNextItem (hCtx, ESB_REQUESTINFO_TYPE, ByVal ReqInfo) Print ReqInfo.UserName sts = EsbKillRequest (hCtx, pReqInfo) Next End Sub
EsbSetSpanRelationalSource() sets the Boolean bSpanRelPart field informing Essbase that pertinent data exists in an attached relational store.
ESS_FUNC_M EsbSetSpanRelationalSource (hCtx) ByVal hCtx As Long
ESS_HCTX_T | hCtx; |
hCtx | Essbase VB API context handle |
This function requires that the caller have read privilege (ESB_PRIV_READ) to one or more members in the active database.
Declare Function EsbSetRelationalSource Lib "ESBAPIW" (ByVal hCtx As Long) As Long Sub ESB_SetRelationalSource () Dim sts As Long '************************* ' Set the bSpanRelPart field '************************* sts = EsbSetRelationalSource (hCtx) End Sub
EsbClrSpanRelationalSource() clears the Boolean bSpanRelPart field informing Essbase that pertinent data exists in an attached relational store.
ESS_FUNC_M EsbClrSpanRelationalSource (hCtx) ByVal hCtx As Long
ESS_HCTX_T | hCtx; |
hCtx | Essbase VB API context handle |
This function requires that the caller have read privilege (ESB_PRIV_READ) to one or more members in the active database.
Declare Function EsbClrRelationalSource Lib "ESBAPIW" (ByVal hCtx As Long) As Long Sub ESB_ClrRelationalSource () Dim sts As Long '************************** ' Clear the bSpanRelPart field '************************** sts = EsbClrRelationalSource (hCtx) End Sub