GV$ and V$ Views
TimesTen provides several views that are prefixed with GV$
and V$
. These views are supported in TimesTen Scaleout and TimesTen Classic. For most V$
views, there is a corresponding GV$
view.
In TimesTen Scaleout:
-
The
GV$
views contain the contents of theV$
view for every element of the database. -
The
V$
views contain data for the element to which your application is connected.
In TimesTen Classic:
-
The
GV$
views contain the same contents as their correspondingV$
view. -
The
V$
views contain rows of data for the database to which your application is connected.
For example, assume you want to query the GV$
and V$BLOCK_INFO
system views for information on blocks and fragmentation.
In TimesTen Scaleout:
-
When you query the
GV$BLOCK_INFO
view, TimesTen returns the contents of theV$BLOCK_INFO
contents for every element in the database. In this example, there are 6 elements, so TimesTen returns data for each of these 6 elements.Command> SELECT * FROM GV$BLOCK_INFO; TOTALBLOCKS, FREEBLOCKS, FREEBYTES, LARGESTFREE, ELEMENTID < 1549, 11, 235753720, 235717496, 1 > < 1548, 17, 235789368, 235728984, 3 > < 1547, 14, 235883704, 235855096, 5 > < 1549, 13, 235786520, 235762712, 2 > < 1548, 13, 235851352, 235827960, 6 > < 1544, 13, 235886264, 235851960, 4 > 6 rows found.
-
When you query the
V$BLOCK_INFO
view, TimesTen returns data for the element to which your application is connected (the local element). In this example, the local element is 1.Before running the query, run the
set
columnlabels
on
ttIsql
command to display the column headers.Command> set columnlabels on; Command> SELECT * FROM V$BLOCK_INFO; TOTALBLOCKS, FREEBLOCKS, FREEBYTES, LARGESTFREE, ELEMENTID < 1549, 11, 235753720, 235717496, 1 > 1 row found.
In TimesTen Classic:
-
When you query the
GV$BLOCK_INFO
view, TimesTen returns the same contents as theV$BLOCK_INFO
view. Ignore theelementId
column.Command> SELECT * FROM GV$BLOCK_INFO; TOTALBLOCKS, FREEBLOCKS, FREEBYTES, LARGESTFREE, ELEMENTID < 659, 4, 118359840, 118214208, 1 > 1 row found.
-
When you query the
V$BLOCK_INFO
view, TimesTen returns data for the database to which your application is connected. Ignore theelementId
column.Command> SELECT * FROM V$BLOCK_INFO; TOTALBLOCKS, FREEBLOCKS, FREEBYTES, LARGESTFREE, ELEMENTID < 659, 4, 118359840, 118214208, 1 > 1 row found.
These views are categorized as follows:
General GV$ and V$ System Views
Table 1-4 shows the general GV$
and V$
views. The GV$
views are listed first in the name column of the table.
Table 1-4 General GV$ and V$ system views
Name | Description |
---|---|
Contains data about the current or last backup of the database (or element(s)) |
|
Contains data about perm blocks and the amount of block-level fragmentation in the database (or element(s)) |
|
Contains data about the transaction log |
|
contains data about the last 10 autorefresh cycles for a particular autorefresh interval |
|
Contains data about the last ten autorefresh transactions on the specified cache group | |
Contains data about the background checkpointer |
|
Contains data about the last eight checkpoints |
|
Contains data about the number of commit buffer overflows and the high watermark for memory used by the transaction reclaim records during the transaction commit process |
|
Contains data about most, but not all, connection attributes for the current connection |
|
Contains data about the context value of the current connection |
|
Contains data about the list of processes connected to the database (or element(s)) |
|
Contains data about automatic database compaction |
|
Contains data about the value of a system parameter |
|
Contains data about the write concurrency mode of the database and the status of write concurrency mode operations and transitions |
|
Contains data about the transactions of the participants in the cycle |
|
Contains data about deadlock cycles |
|
Contains data about deadlock victims |
|
Contains a subset of the rows in the Supported in TimesTen Scaleout only |
|
Contains the grid topology for the elements of the database (if global) or the local element (if local) Supported in TimesTen Scaleout only |
|
Contains data about the state of each element Supported in TimesTen Scaleout only |
|
Contains the current version number of the distribution map for the elements of the database (if global) or for the local element (if local) Supported in TimesTen Scaleout only |
|
Contains epoch values for all the elements in the database (if global) or for the local element (if local) Supported in TimesTen Scaleout only |
|
Contains the epoch identifier of the last epoch created by the connection Supported in TimesTen Scaleout only |
|
Contains data about errors for PL/SQL objects |
|
Contains a histogram of SQL execution times for either a single SQL command or all SQL commands if the command cache sampling is enabled |
|
Contains data about statistics for databases in TimesTen Scaleout Supported in TimesTen Scaleout only |
|
Contains the size and usage of heap memory |
|
Contains the name of the host |
|
Contains index recommendations from the last recorded capture at the specified level |
|
Contains data about latch statistics |
|
Contains data about transaction log holds |
|
Contains data about system performance Related views: |
|
Contains statistics information in text format |
|
Contains the optimizer flag settings for the current transaction |
|
Contains data about the identifiers in the stored objects |
|
Contains data about the objects that are stored in the database |
|
Contains data about the join order of the last prepared or executed SQL statement ( |
|
Contains the set of statements required to restore the table statistics to the current state |
|
Contains result statistics about PL/SQL library cache performance and activity |
|
Contains data about redundant indexes |
|
Contains data about per subscriber statistics for replication. When parallel replication or parallel asynchronous writethrough (AWT) features are enabled, the statistics are per track. If these features are not enabled, the statistics are for track 0. There is no |
|
Contains data about each current connection in TimesTen. This view is not supported in TimesTen Scaleout. There is no |
|
Contains data about the prepared SQL statements in the TimesTen SQL command cache |
|
Contains data about the commands in the TimesTen SQL command cache |
|
Contains the detailed runtime query plans for SQL statements in the TimesTen SQL command cache |
|
Contains data about the parameters of the |
|
Contains data about system monitoring metrics |
|
Contains data about the space used by a table or materialized view, including indexes |
|
Contains TimesTen release information |
|
Contains the transaction ID information for interpreting lock messages |
GV$ and V$TTSTATS System Views
These views contain data based on information in the ttStats
utility. These views exist in TimesTen Classic, but contain no data.
Table 1-5 shows the ttStats
GV$
and V$
views. The GV$
views are listed first in the name column of the table.
Table 1-5 GV$ and V$TTSTATS system views
Name | Description |
---|---|
Contains the metadata to determine when to do |
|
Contains alerts for system resources Supported, but contains 0 rows |
|
Contains data about the critical checkpoint metric history |
|
Contains data about the CPU metric history |
|
Contains data about the critical disk IO metric history |
|
Contains data about aggregated metrics |
|
Contains data about raw and non-aggregated metric values |
|
Contains data about metrics that can be represented in generic format |
|
Contains data about the history of transaction log holds |
|
Contains data about the critical network metric history |
|
Contains data about the optional user annotations for snapshots |
|
Contains data about the SQL text for the most common SQL commands |
|
Contains data about the SQL command cache metadata history |
|
Contains data about the transaction log write metric history |
|
Contains data about the history of virtual memory usage |