Developer Reference : Platform Management : Distributed Tuning Interface (DTI) Guide : Distributed Tuning Interface Reference : PvCloseDatabase()
 
PvCloseDatabase()
Closes an open database handle.
Header File: catalog.h (See also Header Files)
Function First Available In Library: w3dbav90.dll (Windows), libpsqldti.so (Linux), libpsqldti.dylib (macOS) (See also Link Libraries)
Syntax
PRESULT PvCloseDatabase(
   BTI_WORD       dbHandle);
Arguments
 
In
dbHandle
Handle to a database opened by PvOpenDatabase().
Return Values
 
PCM_Success
The operation was successful.
PCM_errFailed
Operation was not successful.
PCM_errMemoryAllocation
An error occurred during memory allocation
PCM_errDictionaryNotOpen
No database open with specified handle.
Remarks
The following preconditions must be met:
DTI session started by calling PvStart()
Connection established by PvConnectServer() or if you are performing the operation on a local machine, P_LOCAL_DB_CONNECTION may be used as the connection handle.
Valid database handle returned by PvOpenDatabase().
See Also
PvStart()
PvConnectServer()
PvOpenDatabase()
PvDisconnect()
PvStop()