Please enable JavaScript.
Coggle requires JavaScript to display documents.
Oracle Server - Coggle Diagram
Oracle Server
Database file
-
control files
-A small binary file
-Define current state of physical database
-Maintain integrity of database
-Required at mount state during database start up and to operate the database
-Linked to a single database
-Loss may require recovery
-Sized initially by create database
-
-
parameter file
pfile
initSID.ora
-text file and modified with an operating system editor
-Modification made manually
-Changes take effect on next startup
-Only opened during instance startup
-default location $ORACLE_HOME/dbs
Creation
-
create pfile=dir/initSID.ora from spfile=dir/pfileSID.ora
-during instance shutdown
-without pass dir means default directory
spfile
spfileSID.ora
-Binary file
-Maintained by oracle server
-Always resides on server side
-Ability to make changes persistent across startup & shutdown
-Can self tune parameter file
-Can have recovery manager support for backing up to the initialization parameter
Creation
create spfile =dir/spfileSID.ora from pfile=dir/initSID.ora
-Can be executed before & after instance startup
-
-
Memory
-
SGA
sga_max_size
Shared pool
library cache
-store about most recently used sql & pl/sql statements
-enables the sharing of commonly used statements
-is managed by least recently used(LRU) algorithm
shared sql area
-sql stores and shares execution plan and parse tree for sql
-2nd time that an identical sql statement is run it is able take advantage of the parse information
-to ensure that sql statements use same text,schema, and bind variables.
-
data dictionary cache
-collection of most recently used definations in the database
-include information about database files,tables,indexes,columns,users,previleage and other database objects.
-during parse phase the server process looks at the data dictionary for information to resolve object names and variables validate accesss
-caching data dictionary information into memory improves response time on quries and dml
-
-
-
-
-
-
Oracle Instance
Startup
stage
nomount
-Instance started
-read parameter file
-allocation sga
-Starting the background processes
-opening the alert log file & trace file
mount
-To perform maintenance operation
-Reads the control files
-Renaming data files
-enable & disable online redo log file archiving options
-Perform full database recovery
-
-
-
-startup restrict
-alter system enable restricted session
-alter system disable restricted session
-only database access who has restricted session permission
-