Package com.oracle.bmc.opsi.model
Class SqlStats.Builder
- java.lang.Object
- 
- com.oracle.bmc.opsi.model.SqlStats.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlStats.Builderaction(String action)Contains the name of the action that was executing when the SQL statement was first parsed, which is set by calling DBMS_APPLICATION_INFO.SET_ACTIONSqlStats.BuilderapplicationWaitTimeInUs(Long applicationWaitTimeInUs)Application wait time (in microseconds)SqlStats.BuilderavgHardParseTimeInUs(Long avgHardParseTimeInUs)Average hard parse time (in microseconds) used by this cursorSqlStats.BuilderavoidedExecutions(Long avoidedExecutions)Number of executions attempted on this object, but prevented due to the SQL statement being in quarantineSqlStats.BuilderbufferGets(Long bufferGets)Number of Buffer GetsSqlStatsbuild()SqlStats.BuilderchildNumber(Long childNumber)Number of this child cursorSqlStats.BuilderclusterWaitTimeInUs(Long clusterWaitTimeInUs)Cluster wait time (in microseconds).SqlStats.BuildercommandType(Long commandType)Oracle command type definitionSqlStats.BuilderconcurrencyWaitTimeInUs(Long concurrencyWaitTimeInUs)Concurrency wait time (in microseconds)SqlStats.Buildercopy(SqlStats model)SqlStats.BuildercpuTimeInUs(Long cpuTimeInUs)CPU time (in microseconds) used by this cursor for parsing, executing, and fetchingSqlStats.BuilderdeltaCpuRank(Long deltaCpuRank)Rank based on CPU ConsumptionSqlStats.BuilderdeltaCpuTime(Long deltaCpuTime)CPU time (in microseconds) for the cursor since the last AWR snapshotSqlStats.BuilderdeltaExecsRank(Long deltaExecsRank)Rank based on number of executionSqlStats.BuilderdeltaExecutionCount(Long deltaExecutionCount)Number of executions for the cursor since the last AWR snapshotSqlStats.BuilderdeltaIoBytes(Long deltaIoBytes)Number of I/O bytes exchanged between the Oracle database and the storage system for the cursor since the last AWR snapshotSqlStats.BuilderdeltaIoRank(Long deltaIoRank)Rank based on I/O ConsumptionSqlStats.BuilderdirectReads(Long directReads)Number of direct readsSqlStats.BuilderdirectWrites(Long directWrites)Number of Direct writesSqlStats.BuilderdiskReads(Long diskReads)Number of disk readsSqlStats.BuilderelapsedTimeInUs(Long elapsedTimeInUs)Elapsed time (in microseconds) used by this cursor for parsing, executing, and fetching.SqlStats.BuilderendOfFetchCount(Long endOfFetchCount)Number of times this cursor was fully executed since the cursor was brought into the library cacheSqlStats.BuilderexactMatchingSignature(String exactMatchingSignature)exact_matching_signature Example: “18067345456756876713”SqlStats.Builderexecutions(Long executions)Number of executionsSqlStats.Builderfetches(Long fetches)Number of fetchesSqlStats.BuilderforceMatchingSignature(String forceMatchingSignature)force_matching_signature Example: “18067345456756876713”SqlStats.BuilderfullPlanHashValue(String fullPlanHashValue)Total Number of rows in SQLStats tableSqlStats.BuilderharmonicSum(Long harmonicSum)Harmonic sum based on ranking parametersSqlStats.BuilderinstanceName(String instanceName)Name of Database Instance Example: “DB10902_1”SqlStats.Builderinvalidations(Long invalidations)Number of times this child cursor has been invalidatedSqlStats.BuilderioCellOffloadEligibleBytes(Long ioCellOffloadEligibleBytes)Number of I/O bytes which can be filtered by the Exadata storage systemSqlStats.BuilderioCellOffloadReturnedBytes(Long ioCellOffloadReturnedBytes)Number of bytes that are returned by Exadata cell through the regular I/O pathSqlStats.BuilderioCellUncompressedBytes(Long ioCellUncompressedBytes)Number of uncompressed bytes (that is, size after decompression) that are offloaded to the Exadata cellsSqlStats.BuilderioInterconnectBytes(Long ioInterconnectBytes)Number of I/O bytes exchanged between Oracle Database and the storage system.SqlStats.BuilderjavaExecTimeInUs(Long javaExecTimeInUs)Java execution time (in microseconds)SqlStats.BuilderlastActiveTime(String lastActiveTime)last_active_time Example: “0000000099CCE300”SqlStats.Builderloads(Long loads)Number of times the object was either loaded or reloadedSqlStats.Buildermodule(String module)Module nameSqlStats.BuilderobsoleteCount(Long obsoleteCount)Number of times that a parent cursor became obsoleteSqlStats.BuilderoptimizerCost(Long optimizerCost)Cost of this query given by the optimizerSqlStats.BuilderparseCalls(Long parseCalls)Total integer of parse calls Example: 60SqlStats.BuilderphysicalReadBytes(Long physicalReadBytes)Number of bytes read from disks by the monitored SQLSqlStats.BuilderphysicalReadRequests(Long physicalReadRequests)Number of physical read I/O requests issued by the monitored SQL.SqlStats.BuilderphysicalWriteBytes(Long physicalWriteBytes)Number of bytes written to disks by the monitored SQLSqlStats.BuilderphysicalWriteRequests(Long physicalWriteRequests)Number of physical write I/O requests issued by the monitored SQLSqlStats.BuilderplanHashValue(Long planHashValue)Plan hash value for the SQL Execution PlanSqlStats.BuilderplsqlExecTimeInUs(Long plsqlExecTimeInUs)PL/SQL execution time (in microseconds)SqlStats.BuilderpxServersExecutions(Long pxServersExecutions)Total number of executions performed by parallel execution servers (0 when the statement has never been executed in parallel)SqlStats.BuilderrowsProcessed(Long rowsProcessed)Number of row processedSqlStats.BuilderserializableAborts(Long serializableAborts)Number of serializable abortsSqlStats.Builderservice(String service)Service nameSqlStats.BuildersharableMem(Long sharableMem)Total shared memory (in bytes) currently occupied by all cursors with this SQL text and planSqlStats.BuildersharableMemRank(Long sharableMemRank)Rank based on sharable memorySqlStats.Buildersorts(Long sorts)Number of sorts that were done for the child cursorSqlStats.BuildersqlIdentifier(String sqlIdentifier)Unique SQL_ID for a SQL Statement.SqlStats.BuildersqlPatch(String sqlPatch)SQL patch used for this statement, if anySqlStats.BuildersqlPlanBaseline(String sqlPlanBaseline)SQL plan baseline used for this statement, if anySqlStats.BuildersqlProfile(String sqlProfile)SQL profile used for this statement, if anySqlStats.BuildertimeCollected(Date timeCollected)Collection timestamp Example: “2020-03-31T00:00:00.000Z”SqlStats.BuildertotalSharableMem(Long totalSharableMem)Total shared memory (in bytes) occupied by all cursors with this SQL text and plan if they were to be fully loaded in the shared pool (that is, cursor size)SqlStats.BuildertotalSqlCount(Long totalSqlCount)Total number of rows in SQLStats tableSqlStats.BuildertypeCheckMem(Long typeCheckMem)Typecheck memorySqlStats.BuilderuserIoWaitTimeInUs(Long userIoWaitTimeInUs)User I/O wait time (in microseconds)SqlStats.BuilderusersExecuting(Long usersExecuting)Number of users executing the statementSqlStats.BuilderusersOpening(Long usersOpening)Number of users that have any of the child cursors openSqlStats.BuilderversionCount(Long versionCount)Number of cursors present in the cache with this SQL text and planSqlStats.BuilderwtHarmonicSum(Long wtHarmonicSum)Weight based harmonic sum of ranking parameters
 
- 
- 
- 
Method Detail- 
sqlIdentifierpublic SqlStats.Builder sqlIdentifier(String sqlIdentifier) Unique SQL_ID for a SQL Statement.- Parameters:
- sqlIdentifier- the value to set
- Returns:
- this builder
 
 - 
planHashValuepublic SqlStats.Builder planHashValue(Long planHashValue) Plan hash value for the SQL Execution Plan- Parameters:
- planHashValue- the value to set
- Returns:
- this builder
 
 - 
timeCollectedpublic SqlStats.Builder timeCollected(Date timeCollected) Collection timestamp Example: “2020-03-31T00:00:00.000Z”- Parameters:
- timeCollected- the value to set
- Returns:
- this builder
 
 - 
instanceNamepublic SqlStats.Builder instanceName(String instanceName) Name of Database Instance Example: “DB10902_1”- Parameters:
- instanceName- the value to set
- Returns:
- this builder
 
 - 
lastActiveTimepublic SqlStats.Builder lastActiveTime(String lastActiveTime) last_active_time Example: “0000000099CCE300”- Parameters:
- lastActiveTime- the value to set
- Returns:
- this builder
 
 - 
parseCallspublic SqlStats.Builder parseCalls(Long parseCalls) Total integer of parse calls Example: 60- Parameters:
- parseCalls- the value to set
- Returns:
- this builder
 
 - 
diskReadspublic SqlStats.Builder diskReads(Long diskReads) Number of disk reads- Parameters:
- diskReads- the value to set
- Returns:
- this builder
 
 - 
directReadspublic SqlStats.Builder directReads(Long directReads) Number of direct reads- Parameters:
- directReads- the value to set
- Returns:
- this builder
 
 - 
directWritespublic SqlStats.Builder directWrites(Long directWrites) Number of Direct writes- Parameters:
- directWrites- the value to set
- Returns:
- this builder
 
 - 
bufferGetspublic SqlStats.Builder bufferGets(Long bufferGets) Number of Buffer Gets- Parameters:
- bufferGets- the value to set
- Returns:
- this builder
 
 - 
rowsProcessedpublic SqlStats.Builder rowsProcessed(Long rowsProcessed) Number of row processed- Parameters:
- rowsProcessed- the value to set
- Returns:
- this builder
 
 - 
serializableAbortspublic SqlStats.Builder serializableAborts(Long serializableAborts) Number of serializable aborts- Parameters:
- serializableAborts- the value to set
- Returns:
- this builder
 
 - 
fetchespublic SqlStats.Builder fetches(Long fetches) Number of fetches- Parameters:
- fetches- the value to set
- Returns:
- this builder
 
 - 
executionspublic SqlStats.Builder executions(Long executions) Number of executions- Parameters:
- executions- the value to set
- Returns:
- this builder
 
 - 
avoidedExecutionspublic SqlStats.Builder avoidedExecutions(Long avoidedExecutions) Number of executions attempted on this object, but prevented due to the SQL statement being in quarantine- Parameters:
- avoidedExecutions- the value to set
- Returns:
- this builder
 
 - 
endOfFetchCountpublic SqlStats.Builder endOfFetchCount(Long endOfFetchCount) Number of times this cursor was fully executed since the cursor was brought into the library cache- Parameters:
- endOfFetchCount- the value to set
- Returns:
- this builder
 
 - 
loadspublic SqlStats.Builder loads(Long loads) Number of times the object was either loaded or reloaded- Parameters:
- loads- the value to set
- Returns:
- this builder
 
 - 
versionCountpublic SqlStats.Builder versionCount(Long versionCount) Number of cursors present in the cache with this SQL text and plan- Parameters:
- versionCount- the value to set
- Returns:
- this builder
 
 - 
invalidationspublic SqlStats.Builder invalidations(Long invalidations) Number of times this child cursor has been invalidated- Parameters:
- invalidations- the value to set
- Returns:
- this builder
 
 - 
obsoleteCountpublic SqlStats.Builder obsoleteCount(Long obsoleteCount) Number of times that a parent cursor became obsolete- Parameters:
- obsoleteCount- the value to set
- Returns:
- this builder
 
 - 
pxServersExecutionspublic SqlStats.Builder pxServersExecutions(Long pxServersExecutions) Total number of executions performed by parallel execution servers (0 when the statement has never been executed in parallel)- Parameters:
- pxServersExecutions- the value to set
- Returns:
- this builder
 
 - 
cpuTimeInUspublic SqlStats.Builder cpuTimeInUs(Long cpuTimeInUs) CPU time (in microseconds) used by this cursor for parsing, executing, and fetching- Parameters:
- cpuTimeInUs- the value to set
- Returns:
- this builder
 
 - 
elapsedTimeInUspublic SqlStats.Builder elapsedTimeInUs(Long elapsedTimeInUs) Elapsed time (in microseconds) used by this cursor for parsing, executing, and fetching.- Parameters:
- elapsedTimeInUs- the value to set
- Returns:
- this builder
 
 - 
avgHardParseTimeInUspublic SqlStats.Builder avgHardParseTimeInUs(Long avgHardParseTimeInUs) Average hard parse time (in microseconds) used by this cursor- Parameters:
- avgHardParseTimeInUs- the value to set
- Returns:
- this builder
 
 - 
concurrencyWaitTimeInUspublic SqlStats.Builder concurrencyWaitTimeInUs(Long concurrencyWaitTimeInUs) Concurrency wait time (in microseconds)- Parameters:
- concurrencyWaitTimeInUs- the value to set
- Returns:
- this builder
 
 - 
applicationWaitTimeInUspublic SqlStats.Builder applicationWaitTimeInUs(Long applicationWaitTimeInUs) Application wait time (in microseconds)- Parameters:
- applicationWaitTimeInUs- the value to set
- Returns:
- this builder
 
 - 
clusterWaitTimeInUspublic SqlStats.Builder clusterWaitTimeInUs(Long clusterWaitTimeInUs) Cluster wait time (in microseconds).This value is specific to Oracle RAC - Parameters:
- clusterWaitTimeInUs- the value to set
- Returns:
- this builder
 
 - 
userIoWaitTimeInUspublic SqlStats.Builder userIoWaitTimeInUs(Long userIoWaitTimeInUs) User I/O wait time (in microseconds)- Parameters:
- userIoWaitTimeInUs- the value to set
- Returns:
- this builder
 
 - 
plsqlExecTimeInUspublic SqlStats.Builder plsqlExecTimeInUs(Long plsqlExecTimeInUs) PL/SQL execution time (in microseconds)- Parameters:
- plsqlExecTimeInUs- the value to set
- Returns:
- this builder
 
 - 
javaExecTimeInUspublic SqlStats.Builder javaExecTimeInUs(Long javaExecTimeInUs) Java execution time (in microseconds)- Parameters:
- javaExecTimeInUs- the value to set
- Returns:
- this builder
 
 - 
sortspublic SqlStats.Builder sorts(Long sorts) Number of sorts that were done for the child cursor- Parameters:
- sorts- the value to set
- Returns:
- this builder
 
 - 
sharableMempublic SqlStats.Builder sharableMem(Long sharableMem) Total shared memory (in bytes) currently occupied by all cursors with this SQL text and plan- Parameters:
- sharableMem- the value to set
- Returns:
- this builder
 
 - 
totalSharableMempublic SqlStats.Builder totalSharableMem(Long totalSharableMem) Total shared memory (in bytes) occupied by all cursors with this SQL text and plan if they were to be fully loaded in the shared pool (that is, cursor size)- Parameters:
- totalSharableMem- the value to set
- Returns:
- this builder
 
 - 
typeCheckMempublic SqlStats.Builder typeCheckMem(Long typeCheckMem) Typecheck memory- Parameters:
- typeCheckMem- the value to set
- Returns:
- this builder
 
 - 
ioCellOffloadEligibleBytespublic SqlStats.Builder ioCellOffloadEligibleBytes(Long ioCellOffloadEligibleBytes) Number of I/O bytes which can be filtered by the Exadata storage system- Parameters:
- ioCellOffloadEligibleBytes- the value to set
- Returns:
- this builder
 
 - 
ioInterconnectBytespublic SqlStats.Builder ioInterconnectBytes(Long ioInterconnectBytes) Number of I/O bytes exchanged between Oracle Database and the storage system.Typically used for Cache Fusion or parallel queries - Parameters:
- ioInterconnectBytes- the value to set
- Returns:
- this builder
 
 - 
physicalReadRequestspublic SqlStats.Builder physicalReadRequests(Long physicalReadRequests) Number of physical read I/O requests issued by the monitored SQL.The requests may not be disk reads - Parameters:
- physicalReadRequests- the value to set
- Returns:
- this builder
 
 - 
physicalReadBytespublic SqlStats.Builder physicalReadBytes(Long physicalReadBytes) Number of bytes read from disks by the monitored SQL- Parameters:
- physicalReadBytes- the value to set
- Returns:
- this builder
 
 - 
physicalWriteRequestspublic SqlStats.Builder physicalWriteRequests(Long physicalWriteRequests) Number of physical write I/O requests issued by the monitored SQL- Parameters:
- physicalWriteRequests- the value to set
- Returns:
- this builder
 
 - 
physicalWriteBytespublic SqlStats.Builder physicalWriteBytes(Long physicalWriteBytes) Number of bytes written to disks by the monitored SQL- Parameters:
- physicalWriteBytes- the value to set
- Returns:
- this builder
 
 - 
exactMatchingSignaturepublic SqlStats.Builder exactMatchingSignature(String exactMatchingSignature) exact_matching_signature Example: “18067345456756876713”- Parameters:
- exactMatchingSignature- the value to set
- Returns:
- this builder
 
 - 
forceMatchingSignaturepublic SqlStats.Builder forceMatchingSignature(String forceMatchingSignature) force_matching_signature Example: “18067345456756876713”- Parameters:
- forceMatchingSignature- the value to set
- Returns:
- this builder
 
 - 
ioCellUncompressedBytespublic SqlStats.Builder ioCellUncompressedBytes(Long ioCellUncompressedBytes) Number of uncompressed bytes (that is, size after decompression) that are offloaded to the Exadata cells- Parameters:
- ioCellUncompressedBytes- the value to set
- Returns:
- this builder
 
 - 
ioCellOffloadReturnedBytespublic SqlStats.Builder ioCellOffloadReturnedBytes(Long ioCellOffloadReturnedBytes) Number of bytes that are returned by Exadata cell through the regular I/O path- Parameters:
- ioCellOffloadReturnedBytes- the value to set
- Returns:
- this builder
 
 - 
childNumberpublic SqlStats.Builder childNumber(Long childNumber) Number of this child cursor- Parameters:
- childNumber- the value to set
- Returns:
- this builder
 
 - 
commandTypepublic SqlStats.Builder commandType(Long commandType) Oracle command type definition- Parameters:
- commandType- the value to set
- Returns:
- this builder
 
 - 
usersOpeningpublic SqlStats.Builder usersOpening(Long usersOpening) Number of users that have any of the child cursors open- Parameters:
- usersOpening- the value to set
- Returns:
- this builder
 
 - 
usersExecutingpublic SqlStats.Builder usersExecuting(Long usersExecuting) Number of users executing the statement- Parameters:
- usersExecuting- the value to set
- Returns:
- this builder
 
 - 
optimizerCostpublic SqlStats.Builder optimizerCost(Long optimizerCost) Cost of this query given by the optimizer- Parameters:
- optimizerCost- the value to set
- Returns:
- this builder
 
 - 
fullPlanHashValuepublic SqlStats.Builder fullPlanHashValue(String fullPlanHashValue) Total Number of rows in SQLStats table- Parameters:
- fullPlanHashValue- the value to set
- Returns:
- this builder
 
 - 
modulepublic SqlStats.Builder module(String module) Module name- Parameters:
- module- the value to set
- Returns:
- this builder
 
 - 
servicepublic SqlStats.Builder service(String service) Service name- Parameters:
- service- the value to set
- Returns:
- this builder
 
 - 
actionpublic SqlStats.Builder action(String action) Contains the name of the action that was executing when the SQL statement was first parsed, which is set by calling DBMS_APPLICATION_INFO.SET_ACTION- Parameters:
- action- the value to set
- Returns:
- this builder
 
 - 
sqlProfilepublic SqlStats.Builder sqlProfile(String sqlProfile) SQL profile used for this statement, if any- Parameters:
- sqlProfile- the value to set
- Returns:
- this builder
 
 - 
sqlPatchpublic SqlStats.Builder sqlPatch(String sqlPatch) SQL patch used for this statement, if any- Parameters:
- sqlPatch- the value to set
- Returns:
- this builder
 
 - 
sqlPlanBaselinepublic SqlStats.Builder sqlPlanBaseline(String sqlPlanBaseline) SQL plan baseline used for this statement, if any- Parameters:
- sqlPlanBaseline- the value to set
- Returns:
- this builder
 
 - 
deltaExecutionCountpublic SqlStats.Builder deltaExecutionCount(Long deltaExecutionCount) Number of executions for the cursor since the last AWR snapshot- Parameters:
- deltaExecutionCount- the value to set
- Returns:
- this builder
 
 - 
deltaCpuTimepublic SqlStats.Builder deltaCpuTime(Long deltaCpuTime) CPU time (in microseconds) for the cursor since the last AWR snapshot- Parameters:
- deltaCpuTime- the value to set
- Returns:
- this builder
 
 - 
deltaIoBytespublic SqlStats.Builder deltaIoBytes(Long deltaIoBytes) Number of I/O bytes exchanged between the Oracle database and the storage system for the cursor since the last AWR snapshot- Parameters:
- deltaIoBytes- the value to set
- Returns:
- this builder
 
 - 
deltaCpuRankpublic SqlStats.Builder deltaCpuRank(Long deltaCpuRank) Rank based on CPU Consumption- Parameters:
- deltaCpuRank- the value to set
- Returns:
- this builder
 
 - 
deltaExecsRankpublic SqlStats.Builder deltaExecsRank(Long deltaExecsRank) Rank based on number of execution- Parameters:
- deltaExecsRank- the value to set
- Returns:
- this builder
 
 - 
sharableMemRankpublic SqlStats.Builder sharableMemRank(Long sharableMemRank) Rank based on sharable memory- Parameters:
- sharableMemRank- the value to set
- Returns:
- this builder
 
 - 
deltaIoRankpublic SqlStats.Builder deltaIoRank(Long deltaIoRank) Rank based on I/O Consumption- Parameters:
- deltaIoRank- the value to set
- Returns:
- this builder
 
 - 
harmonicSumpublic SqlStats.Builder harmonicSum(Long harmonicSum) Harmonic sum based on ranking parameters- Parameters:
- harmonicSum- the value to set
- Returns:
- this builder
 
 - 
wtHarmonicSumpublic SqlStats.Builder wtHarmonicSum(Long wtHarmonicSum) Weight based harmonic sum of ranking parameters- Parameters:
- wtHarmonicSum- the value to set
- Returns:
- this builder
 
 - 
totalSqlCountpublic SqlStats.Builder totalSqlCount(Long totalSqlCount) Total number of rows in SQLStats table- Parameters:
- totalSqlCount- the value to set
- Returns:
- this builder
 
 - 
buildpublic SqlStats build() 
 - 
copypublic SqlStats.Builder copy(SqlStats model) 
 
- 
 
-