Professional Documents
Culture Documents
• Database instance
• Listener
• Management interface
– Database Control
– Management agent (when using Grid Control)
Management -or-
agent
Database Listener
Control
Management interface
Property pages
or
MOUNT
NOMOUNT
Instance
started
SHUTDOWN
MOUNT
Control file
opened for this
NOMOUNT instance
Instance
started
SHUTDOWN
Control file
opened for this
NOMOUNT instance
Instance
started
SHUTDOWN
Control file
opened for this
NOMOUNT instance
Instance
started
SHUTDOWN
Shutdown Mode A I T N
Shutdown mode:
• A = ABORT
• I = IMMEDIATE
• T = TRANSACTIONAL
• N = NORMAL
Consistent database
(clean database)
spfileorcl.ora
SQL*Plus is:
• A command-line tool
• Used interactively or in batch mode
$ sqlplus hr/hr
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
LAST_NAME
-------------------------
Abel
Ande
Atkinson
$ ./batch_sqlplus.sh
Output
$ sqlplus hr/hr @script.sql
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
a
SELECT table_name, tablespace_name FROM
user_tables;
d DESCRIBE dba_indexes;
Oracle instance
a
SQL> SELECT sql_text, executions FROM v$sql
WHERE cpu_time > 200000;