Presentation is loading. Please wait.

Presentation is loading. Please wait.

4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.

Similar presentations


Presentation on theme: "4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance."— Presentation transcript:

1 4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance

2 4-2 Copyright © 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Use Windows Services to check Oracle processes Administer two databases by using Enterprise Manager –Modify initialization parameters –Start and stop the Oracle listener –Start up and shut down an Oracle Database 10g instance –Compare automatic and manual memory management of the SGA –View the alert log Access databases with SQL*Plus and i SQL*Plus

3 4-3 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-

4 4-4 Copyright © 2004, Oracle. All rights reserved. Starting and Stopping Database Control The dbconsole process starts automatically. To view, start, or stop the dbconsole process, select and open the Windows 2000 Services window:

5 4-5 Copyright © 2004, Oracle. All rights reserved. Accessing Oracle Enterprise Manager

6 4-6 Copyright © 2004, Oracle. All rights reserved. Database Home Page Property pages

7 4-7 Copyright © 2004, Oracle. All rights reserved. Starting and Stopping the Listener

8 4-8 Copyright © 2004, Oracle. All rights reserved. Starting the Oracle DB Instance Use one of the following to start up and shut down the database: 1.Oracle Enterprise Manager (next page) 2.Oracle Administration Assistant for Windows 3.Windows Services: OracleService

9 4-9 Copyright © 2004, Oracle. All rights reserved. Startup and Shutdown

10 4-10 Copyright © 2004, Oracle. All rights reserved. Starting Up an Oracle DB Instance: NOMOUNT OPEN MOUNT NOMOUNT SHUTDOWN Instance started STARTUP

11 4-11 Copyright © 2004, Oracle. All rights reserved. Starting Up an Oracle DB Instance: MOUNT OPEN MOUNT NOMOUNT SHUTDOWN Control file opened for this instance Instance started STARTUP SHUTDOWN

12 4-12 Copyright © 2004, Oracle. All rights reserved. Starting Up an Oracle DB Instance: 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

13 4-13 Copyright © 2004, Oracle. All rights reserved. Shutting Down an Oracle DB Instance 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

14 4-14 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)

15 4-15 Copyright © 2004, Oracle. All rights reserved. Full Notes Page

16 4-16 Copyright © 2004, Oracle. All rights reserved. SHUTDOWN Options On the way down: Modified buffers not written to the data files Uncommitted changes 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)

17 4-17 Copyright © 2004, Oracle. All rights reserved. SPFILEMTG.ORA Initialization Parameter Files

18 4-18 Copyright © 2004, Oracle. All rights reserved. Viewing and Modifying Initialization Parameters

19 4-19 Copyright © 2004, Oracle. All rights reserved. Managing Memory Components Automatic Shared Memory Management: –Is recommended to simplify management –Enables you to specify the total SGA memory through one initialization parameter –Helps the Oracle server to manage the amount of memory allocated to the shared pool, Java pool, buffer cache, and the large pool Manually setting shared memory management –Size the components through multiple individual initialization parameters. –Use the Memory Advisor to make recommendations.

20 4-20 Copyright © 2004, Oracle. All rights reserved. Enabling Automatic Shared Memory Management Click Enable to enable Automatic Shared Memory Management.

21 4-21 Copyright © 2004, Oracle. All rights reserved. Manually Setting Shared Memory Management

22 4-22 Copyright © 2004, Oracle. All rights reserved. Viewing the Alert Log

23 4-23 Copyright © 2004, Oracle. All rights reserved. Viewing the Alert History

24 4-24 Copyright © 2004, Oracle. All rights reserved. Using SQL*Plus and i SQL*Plus to Access Your Database SQL*Plus and i SQL*Plus provide additional interfaces to your database to: Perform database management operations Execute SQL commands to query, insert, update, and delete data in your database

25 4-25 Copyright © 2004, Oracle. All rights reserved. Using i SQL*Plus

26 4-26 Copyright © 2004, Oracle. All rights reserved. Using i SQL*Plus

27 4-27 Copyright © 2004, Oracle. All rights reserved. Using SQL*Plus

28 4-28 Copyright © 2004, Oracle. All rights reserved. Summary In this lesson, you should have learned how to: Use Windows Services to check Oracle processes Administer two databases by using Enterprise Manager: –Modify initialization parameters –Start and stop the Oracle listener –Start up and shut down an Oracle Database 10g instance –Compare automatic and manual memory management of the SGA –View the alert log Access databases with SQL*Plus and i SQL*Plus

29 4-29 Copyright © 2004, Oracle. All rights reserved. Practice Overview: Managing the Oracle Instance This practice covers the following topics: Accessing Windows Services Navigating in Enterprise Manager Stopping and starting the Oracle listener Viewing and modifying initialization parameters Stopping and starting the database instance Viewing the alert log Setting OracleServiceMTG to Manual Connecting to the database by using SQL*Plus

30 4-30 Copyright © 2004, Oracle. All rights reserved.


Download ppt "4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance."

Similar presentations


Ads by Google