Vous êtes sur la page 1sur 2

DBA Views Dynamic Performance Views Dynamic Performance Views (continued)

Storage Information Instance Level Tuning Fixed Views


DBA_EXTENTS, DBA_FREE_SPACE, DBA_OBJECTS, v$GLOBAL_TRANSACTION, v$OBJECT_DEPENDENCY, v$FIXED_TABLE, v$FIXED_VIEW_DEFINITION,
DBA_OBJECT_SIZE, DBA_SEGMENTS, DBA_TABLESPACES, v$SHARED_POOL_RESERVED, v$SORT_SEGMENT, v$INDEXED_FIXED_COLUMN
DBA_ROLLBACK_SEGS, DBA_UNDO_EXTENTS v$SYSTEM_CURSOR_CACHE, v$SORT_USAGE, v$STATNAME, Miscellaneous Views
Operating System v$SYSSTAT, v$SYSTEM_EVENT, v$TRANSACTION, v$LATCH, v$TIMER, v$TYPE_SIZE, v$SEQUENCES
v$LIBRARYCACHE, v$ROLLSTAT, v$ROWCACHE,
DBA_DATA_FILES, DBA_EXP_FILES, DBA_TEMP_FILES
vRSGASTAT, v$SQLAREA, v$SQLTEXT, v$WAITSTAT
MTS and Parallel Server Views
Privileges v$CIRCUIT, v$DISPATCHER, v$DISPATCHER_RATE, v$MTS,
DBA_COL_PRIVS, DBA_PROFILES, DBA_ROLES, Recovery Based Views v$QUEUE, v$REQDIST, v$SHARED_SERVER, v$THREAD
v$ARCHIVE, v$ARCHIVE_DEST, v$BACKUP_CORRUPTION,
DBA_ROLE_PRIVS, DBA_SYS_PRIVS, DBA_TAB_PRIVS,
v$BACKUP_DEVICE, v$BACKUP_REDOLOG,
File Mapping
DBA_UPDATABLE_COLUMNS v$MAP_LIBRARY, v$MAP_FILE, v$MAP_FILE_EXTENT,
v$DELETED_OBJECT, v$RECOVERY_LOG, v$RECOVER_FILE,
Indexes v$ARCHIVED_LOG, v$BACKUP, v$BACKUP_DATAFILE,
v$MAP_ELEMENT, v$MAP_EXT_ELEMENT,
DBA_INDEXES, DBA_IND_COLUMNS, v$MAP_SUBELEMENT, v$MAP_COMP_LIST,
v$BACKUP_PIECE, v$BACKUP_SET,
DBA_IND_EXPRESSIONS, DBA_IND_PARTITIONS v$MAP_FILE_IO_STACK
v$RECOVERY_FILE_STATUS, v$RECOVERY_STATUS,
Tables/Views v$DATABASE_BLOCK_CORRUPTION,
DBA_TABLES, DBA_TAB_COLUMNS, DBA_TAB_PARTITIONS, v$DATABASE_INCARNATION Popular Instance Statistics
DBA_TAB_COMMENTS,
DBA_UNUSED_COL_TABS, DBA_VIEWS
Cache Views
v$CACHE, v$LIBRARYCACHE, v$SUBCACHE, Descriptions for key statistics stored in the v$SESSTAT and
Constraints v$DB_OBJECT_CACHE, v$ROWCACHE v$SYSSTAT views; Set TIMED_STATISTICS = TRUE in the
DBA_CONSTRAINTS, DBA_CONS_COLUMNS database init.ora
Control File Views
Triggers v$CONTROLFILE, v$CONTROLFILE_RECORD_SELECTION The Statistics Query:
DBA_TRIGGERS, DBA_TRIGGER_COLS, SELECT n.name, s.value
DBA_INTERNAL_TRIGGERS
Cursor and SQL Views FROM v$statname n, v$sysstat s
v$SYSTEM_CURSOR_CACHE, v$OPEN_CURSOR, v$SQLAREA, WHERE n.statistic# = s.statistic#
Materialized Views v$SQL, v$SQLTEXT, v$SQLTEXT_WITH_NEWLINES, ORDER BY n.class, n.name;
DBA_MVIEW_AGGREGATES, DBA_MVIEW_ANALYSIS, v$SQL_CURSOR, v$SQL_BIND_METADATA,
DBA_MVIEW_DETAIL_RELATIONS, DBA_MVIEW_JOINS, enqueue timeouts – lock timed out
v$SQL_SHARED_MEMORY, v$SQL_BIND_DATA,
DBA_MVIEW_KEYS enqueue waits – # of times waited for a lock
v$SQL_WORKAREA, v$SQL_WORKAREA_ACTIVE
enqueue requests – # of locks requested
Partitions Security Views enqueue conversions – # of times lock type changed
DBA_PART_COL_STATISTICS, DBA_PART_HISTOGRAMS, v$ENABLEDPRIVS, v$PWFILE_USERS enqueue releases – # of locks released
DBA_PART_INDEXES, DBA_PART_KEY_COLUMNS,
DBA_PART_LOBS, DBA_PART_TABLES,
Session Views db block gets – # of requests for current copy of block
v$ACCESS, v$MYSTAT, v$PROCESS, v$SESSION , consistent gets – this + db block gets = # logical reads
DBA_IND_SUBPARTITIONS, DBA_LOB_PARTITIONS,
v$SESSION_CONNECT_INFO, v$SESSION_CURSOR_CACHE, physical reads – reads directly from disk
DBA_LOB_SUBPARTITIONS
v$SESSION_EVENT, v$SESSION_LONGOPS, free buffer requested – # of free buffers
Objects, Methods and Types v$SESSION_OBJECT_CACHE, v$SESSION_WAIT, v$SESSTAT DBWR free buffers found – # of clean buffers found in scan
DBA_OBJECT_TABLES, DBA_METHOD_PARAMS, (needs v$statname, v$session join), v$SESS_IO DBWR lru scans – number of times lru scanned
DBA_METHOD_RESULTS, DBA_TYPES, DBA_TYPE_ATTRS, DBWR buffers scanned – # of lru scanned for dirty buffers
DBA_TYPE_METHODS, DBA_DIMENSIONS, DBA_LOBS
Latch and Lock Views
v$BUFFER_POOL, v$CACHE_LOCK, v$CLASS_PING, logons cumulative – a since last warm start
Operators v$DLM_CONVERT_LOCAL, v$DLM_CONVERT_REMOTE, logons current – current users
DBA_OPANCILLARY, DBA_OPARGUMENTS, v$DLM_LATCH, v$DLM_MISC, v$ENQUEUE_LOCK, opened cursors cumulative – since last warm start
DBA_OPBINDINGS, DBA_OPERATORS v$EVENT_NAME, v$FALSE_PING, v$FILE_PING, v$LATCH, opened cursors current – current SQL cursors
Summaries v$LATCHHOLDER, v$LATCHNAME, v$LATCH_CHILDREN, recursive calls – high value indicates dictionary cache too small
DBA_SUMMARIES, DBA_SUMMARY_AGGREGATES, v$LATCH_MISSES, v$LATCH_PARENT, v$LOCK, redo entries – # redo entries created
DBA_SUMMARY_DETAIL_TABLES, DBA_SUMMARY_JOINS, v$LOCK_ACTIVITY, v$LOCK_ELEMENT, v$LOCKED_OBJECT, redo size – bytes of generated redo entries
DBA_SUMMARY_KEYS v$LOCKS_WITH_COLLISIONS, v$PING, v$RESOURCE, redo buffer allocation retries – indicates redo problem
redo wastage – filler added to redos, high value is ok
Miscellaneous v$RESOURCE_LIMIT, v$TRANSACTION_ENQUEUE, v$LOCK
redo log space requests – requests to write to redo buffer
DBA_DB_LINKS, DBA_SOURCE, DBA_SEQUENCES, Instance Views
session logical reads – total # of reads (logical/physical)
DBA_SYNONYMS, DBA_USERS, DBA_OUTLINES, v$ACTIVE_INSTANCES, v$BGPROCESS, v$BH,
sorts(disk) – # of sorts sent to disk
DBA_JOBS, DBA_JOBS_RUNNING, DBA_LIBRARIES, v$COMPATIBILITY, v$COMPATSEG, v$COPY_CORRUPTION,
sorts(memory) – # of sorts performed in memory
DBA_PENDING_TRANSACTIONS, DBA_RULESETS, v$DATABASE, v$DATAFILE, v$DATAFILE_COPY,
sorts(rows) – total # of rows sorted cumulative
DBA_OUTLINE_HINTS, DBA_POLICIES, v$DATAFILE_HEADER, v$DBFILE, v$DBLINK, v$DB_PIPES,
table scans (long tables) – minimize in application
DBA_SUBPART_KEY_COLUMNS, DBA_TS_QUOTAS, v$INSTANCE, v$LICENSE, v$OFFLINE_RANGE, v$OPTION,
table scan rows gotten – minimize in application
DBA_JAVA_POLICY, USER_JAVA_POLICY v$ROLLSTAT, v$SGA, v$SGA_STAT, v$TABLESPACE,
table fetch by rowid – indexed fetches
v$TRANSACTION, v$UNDOSTAT, v$VERSION

Copyright 2005 Solution Beacon, LLC. All Rights Reserved.


Initialization Parameters mts_servers = 1 – Retained for backward compatibility only,
deprecated in Oracle9i; use SHARED_SERVERS instead
audit_file_dest = /u01/app/oracle/admin/ORCL/adump – Sets the
open_cursors = 64 – Maximum number of cursors that a user session
path to which audit files are written
can have open at any one time
audit_trail = FALSE – Enables (TRUE) or disables (FALSE) writing
parallel_max_servers = 5 – Maximum number of servers that are
of rows to the audit table
allowed to exist concurrently; Set the value to (maximum number
background_dump_dest = /u01/app/oracle/admin/ORCL/bdump –
of PQO users * their maximum degree of parallelism * 2)
Directory in which to write debugging trace files for the background
pga_aggregate_target = 1000m – Specifies the target aggregate PGA
processes (LGWR, DBWn, and so on)
memory available
control_files = (/u01/oradata/ORCL/controlORCL01.ctl,
processes = 25 – Max number of simultaneous connections allowed
/u02/oradata/ORCL/controlORCL02.ctl) – Full path to database
to the instance
control files
query_rewrite_enabled = FALSE #enable or disable query rewriting
core_dump_dest = /u01/app/oracle/admin/ORCL/cdumpn –
(ex: materialized views/function indexes)
Directory in which to write core dumps in an error situation
rollback_segments = (r01,r02,r03,r04) – Indicates all of the private
db_block_buffers = 6000 – Sets the size of the database buffer cache
rollback segments that you want brought online at instance startup
in memory; in 8.1.x, the default buffer cache size is calculated to be
row_locking = ALWAYS – Should row locking be used?
as many buffers as will fit in 48MB
shared_pool_size = 3500000 – Size of shared buffer pool in the SGA
db_block_size = 8192 – Size of each database buffer in bytes (2048
shared_servers = 1 – Number of server processes that you want to
to 32768; Oracle recommends that you set the parameter to a
create when an instance is started up
minimum of 8 KB and that it be a multiple of the OS block size; this

Oracle9i
sort_area_size = 2048000 – Size in bytes that a user process has
parameter takes effect only at the time the database is created
available for sorting
db_domain = my_company.com – Specifies the extension
_system_trig_enabled = TRUE – Set to FALSE when upgrading
components of a global database name, consisting of valid
rdbms

DBA
identifiers, separated by periods
timed_statistics = TRUE – If set TRUE, provides needed CPU
db_files = 80 – Number of database files that can be open when the
timing information on your SQL statements and by user sessions
database is running
undo_management = AUTO – Specifies the undo space
db_file_multiblock_read_count = 8 – Number of blocks read into

Pocket Guide
management mode
the buffer cache at once when performing a sequential scan
undo_retention = 1800 – Specifies (in seconds) the amount of
db_name = ORCL – The name of this database
committed undo information to retain
dispatchers = "(PRO=TCP)(DIS=3)" – Configures dispatcher
undo_tablespace = UNDOTS – Undo tablespace to be used when
processes in the shared server architecture
instance starts
enqueue_resources = 9999 – Sets the number of resources (10-
user_dump_dest = /u01/app/oracle/admin/ORCL/udump – Directory
65535) that can be locked by the operating system lock manager
in which to write user process trace files
global_names = TRUE – Enables (TRUE) or disables (FALSE) db
workarea_size_policy = AUTO – Controls mode in which working
link name checking
areas are tuned
java_pool_size = 50000000 – minimum for 11i
log_archive_dest = /u08/oraarch/ORCL/arch – Directory location Accessing Utilities Help
and the first part of the name of each archive log that will be written Import Download this and other Pocket Guides and technical
log_archive_format = _%s.log – Sets format for archived logs $ imp help = y articles from our website:
log_archive_start = TRUE – Enables (TRUE) or Disables (FALSE) import example: $ imp system/manager file=expdat.dmp full=y
archiving rows=y buffer=2048000 indexes=y ignore=y commit=y
log_buffer = 65536 – Number of bytes allocated to redo log buffer in www.solutionbeacon.com
log=full_import.log
the SGA; Max = 500K or 128K * CPU_COUNT
Export
log_checkpoint_interval = 10000 – Number of new redo log file Contact:
$ exp help = y
blocks needed to trigger a checkpoint; values: 2 to UNLIMITED
max_dispatchers = 5 – Maximum number of dispatcher processes
export example: $ exp system/manager file=expdat.dmp full=y solutions@solutionbeacon.com
compress=y consistent=y buffer=1024000 log=full_exp.log
allowed to be running simultaneously
max_dump_file_size = 500 – Limits physical size of the trace file to SQL*Loader
the specified number of operating system blocks (or UNLIMITED) $ sqlldr <Enter>
Solution Beacon, LLC reserves the right to revise or make
max_enabled_roles = 20 – Maximum number of roles per user SQL*Plus
Installing Help into SQL*Plus – As user oracle …
improvements to this document at any time without obligation
max_rollback_segments = 30 – Maximum number of rollback to notify any person of such revisions or improvements.
segments that can be kept online simultaneously by one instance Set the SYSTEM_PASS environment variable:
$ SYSTEM_PASS=system/<password>; export SYSTEM_PASS Solution Beacon does not warrant that this document is error-
max_shared_servers = 20 – Maximum number of shared server
processes allowed to be running simultaneously execute the script, $ORACLE_HOME/bin/helpins free. In no event shall Solution Beacon be liable for any
mts_dispatchers = “tcp,1” – Retained for backward compatibility consequential or incidental damages, including, but not limited
Database Control (UNIX) to, loss of business profits. Any other commercial product
only, deprecated in Oracle9i; use DISPATCHERS instead As user oracle …
mts_max_dispatchers = 5 – Retained for backward compatibility $ sqlplus / nolog names herein are trademarks, registered trademarks, or
only, deprecated in Oracle9i; use MAX_DISPATCHERS instead SQL> connect / as sysdba service marks of their respective owners.
mts_max_servers = 20 – Retained for backward compatibility only, SQL> startup
deprecated in Oracle9i; use MAX_SHARED_SERVERS instead startup = startup the database
shutdown – shutdown the database Revision 200506

Copyright 2005 Solution Beacon, LLC. All Rights Reserved.