Presentation is loading. Please wait.

Presentation is loading. Please wait.

5 Copyright © 2004, Oracle. All rights reserved. Controlling the Database.

Similar presentations


Presentation on theme: "5 Copyright © 2004, Oracle. All rights reserved. Controlling the Database."— Presentation transcript:

1 5 Copyright © 2004, Oracle. All rights reserved. Controlling the Database

2 5-2 Copyright © 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Start and stop i SQL*Plus Start and stop Enterprise Manager Database Control Start and stop the Oracle Listener Start up and shut down Oracle Database 10g

3 5-3 Copyright © 2004, Oracle. All rights reserved. Starting and Stopping i SQL*Plus $ isqlplusctl start iSQL*Plus 10.1.0.2.0 Copyright (c) 2004 Oracle. All rights reserved. Starting iSQL*Plus... iSQL*Plus started. $ isqlplusctl stop iSQL*Plus 10.1.0.2.0 Copyright (c) 2004 Oracle. All rights reserved. Stopping iSQL*Plus... iSQL*Plus stopped.

4 5-4 Copyright © 2004, Oracle. All rights reserved. Management Framework The three components of the Oracle Database 10g management framework are: Database instance Listener Management interface –Database Control –Management agent (when using Grid Control) Listener Database Control Management agent Management interface -or-

5 5-5 Copyright © 2004, Oracle. All rights reserved. Starting and Stopping Database Control $ emctl start dbconsole TZ set to US/Pacific Oracle Enterprise Manager 10g Database Control Release 10.1.0.2.0 Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved. http://edrsr9p1.us.oracle.com:5500/em/console/aboutApplication Starting Oracle Enterprise Manager 10g Database Control...................... started. ------------------------------------------------------------------ Logs are generated in directory /u01/app/oracle/product/10.1.0/db_1/edrsr9p1.us.oracle.com_orcl/sys man/log $ emctl stop dbconsole TZ set to US/Pacific Oracle Enterprise Manager 10g Database Control Release 10.1.0.2.0 Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved. http://edrsr9p1.us.oracle.com:5500/em/console/aboutApplication Stopping Oracle Enterprise Manager 10g Database Control...... Stopped.

6 5-6 Copyright © 2004, Oracle. All rights reserved. Accessing Database Control

7 5-7 Copyright © 2004, Oracle. All rights reserved. SYSOPER and SYSDBA

8 5-8 Copyright © 2004, Oracle. All rights reserved. Database Home Page

9 5-9 Copyright © 2004, Oracle. All rights reserved. Changing the Listener Status

10 5-10 Copyright © 2004, Oracle. All rights reserved. Startup and Shutdown Click Advanced Options to select startup options and shutdown mode

11 5-11 Copyright © 2004, Oracle. All rights reserved. Starting Up a Database NOMOUNT OPEN MOUNT NOMOUNT SHUTDOWN Instance started STARTUP

12 5-12 Copyright © 2004, Oracle. All rights reserved. Starting Up a Database MOUNT OPEN MOUNT NOMOUNT SHUTDOWN Control file opened for this instance Instance started STARTUP SHUTDOWN

13 5-13 Copyright © 2004, Oracle. All rights reserved. Starting Up a Database OPEN OPEN MOUNT NOMOUNT SHUTDOWN All files opened as described by the control file for this instance Control file opened for this instance Instance started STARTUP SHUTDOWN

14 5-14 Copyright © 2004, Oracle. All rights reserved. Shutting Down the Database Shutdown mode: A = ABORT I = IMMEDIATE T = TRANSACTIONAL N = NORMAL A No T No Yes I No Yes Shutdown Mode Allow new connections Wait until current sessions end Wait until current transactions end Force a checkpoint and close files N No Yes

15 5-15 Copyright © 2004, Oracle. All rights reserved. SHUTDOWN Options On the way down: Database buffer cache written to the data files Uncommitted changes rolled back Resources released On the way up: No instance recovery During SHUTDOWN NORMAL or SHUTDOWN TRANSACTIONAL or SHUTDOWN IMMEDIATE Consistent database (clean database)

16 5-16 Copyright © 2004, Oracle. All rights reserved.

17 5-17 Copyright © 2004, Oracle. All rights reserved. SHUTDOWN Options On the way down: Modified buffers are not written to the data files Uncommitted changes are not rolled back On the way up: Online redo log files used to reapply changes Undo segments used to roll back uncommitted changes Resources released During SHUTDOWN ABORT or Instance Failure or STARTUP FORCE Inconsistent database (dirty database)

18 5-18 Copyright © 2004, Oracle. All rights reserved. spfiledb01.ora Initialization Parameter Files

19 5-19 Copyright © 2004, Oracle. All rights reserved. Viewing Initialization Parameters

20 5-20 Copyright © 2004, Oracle. All rights reserved. Viewing the Alert Log

21 5-21 Copyright © 2004, Oracle. All rights reserved. Summary In this lesson, you should have learned how to: Start and stop i SQL*Plus Start and stop Enterprise Manager Database Console Start and stop the listener Start up and shut down the database

22 5-22 Copyright © 2004, Oracle. All rights reserved. Practice 5: Controlling the Database This practice covers the following topics: Connecting to the database using SQL*Plus and i SQL*Plus Stopping and starting Enterprise Manager Database Control Stopping and starting the database Stopping and starting i SQL*Plus

23 5-23 Copyright © 2004, Oracle. All rights reserved. Practice 5 – Controlling the Database Full Notes Page

24 5-24 Copyright © 2004, Oracle. All rights reserved.


Download ppt "5 Copyright © 2004, Oracle. All rights reserved. Controlling the Database."

Similar presentations


Ads by Google