Presentation is loading. Please wait.

Presentation is loading. Please wait.

Oracle 10g Administration Database Control and Storage Structures Copyright ©2006 Custom Training Institute.

Similar presentations


Presentation on theme: "Oracle 10g Administration Database Control and Storage Structures Copyright ©2006 Custom Training Institute."— Presentation transcript:

1 Oracle 10g Administration Database Control and Storage Structures Copyright ©2006 Custom Training Institute.

2 Database Control Console Listener Agents Instance

3 Copyright ©2006 Custom Training Institute. Agent Structure Two parts: Generic code that talks to an Oracle "service" Driver code that talks to a remote process or database

4 Copyright ©2006 Custom Training Institute. Agent Structure Heterogeneous Services component Agent generic code Agent driver code

5 Copyright ©2006 Custom Training Institute. Conceptual Layout of Agents Single "point of contact" within the server. All information going to / from kernel goes through the Agent Driver Transparent "middle" layer. Brokers / translates calls between Agent Driver and remote database Application-specific third layer. Calls directly into remote database's API

6 Copyright ©2006 Custom Training Institute. Heterogeneous Agents vs. Multithreaded Agents Heterogeneous agents are "dedicated." Specific connection from Oracle to outside process or database Multithreaded agents are "shared." A single multithreaded agent has a pool of agent threads Small pool of threads can service many client requests

7 Copyright ©2006 Custom Training Institute. Controlling Multithreaded Agents Agent Control command ( agtctl ) Delete Exit Help Set Show Shutdown Startup Unset

8 Copyright ©2006 Custom Training Institute. Multithreaded Agent Architecture Copyright ©2006, Custom Training Institute.

9 Copyright ©2006 Custom Training Institute. Controlling the Database Startup Mechanisms Shutdown Mechanism Restricted Access

10 Copyright ©2006 Custom Training Institute. Startup Mechanisms Start instance only: STARTUP NOMOUNT Start instance and mount controlfile: STARTUP MOUNT Start instance, mount controlfile, open datafiles: STARTUP

11 Copyright ©2006 Custom Training Institute. STARTUP NOMOUNT Instance is running; controlfile is closed; datafile is closed. Situation: Database creation Corrupted control file

12 Copyright ©2006 Custom Training Institute. STARTUP MOUNT Instance is running; control file is open; data files are NOT open. Situations: Full database recovery Working with redo log files

13 Copyright ©2006 Custom Training Institute. STARTUP Instance is running; controlfile is open; data files are open. Situation: "Normal" operation of the database

14 Copyright ©2006 Custom Training Institute. Shutdown Mechanisms SHUTDOWN SHUTDOWN IMMEDIATE SHUTDOWN TRANSACTIONAL SHUTDOWN ABORT

15 Copyright ©2006 Custom Training Institute. SHUTDOWN NORMAL No new connections. Database will not shut down until all users log off. Situation: "Standard" shutdown

16 Copyright ©2006 Custom Training Institute. SHUTDOWN IMMEDIATE No new connections. Uncommitted transactions rolled back. Situation: Force users off immediately Leave database in "clean" state

17 Copyright ©2006 Custom Training Institute. SHUTDOWN TRANSACTIONAL No new connections. Existing transactions permitted to complete. Each user will be automatically logged off when current transaction completes. Situation: Orderly shutdown desired Do not wish to force existing users to immediately log off

18 Copyright ©2006 Custom Training Institute. SHUTDOWN ABORT No new connections. Existing transactions NOT permitted to complete. Situation: "Last Resort" No other type of SHUTDOWN works

19 Copyright ©2006 Custom Training Institute. Listener Brokers connections between Oracle's clients and Oracle server. Configured through listener.ora file. Manipulated through Listener Control ( lsnrctl ) utility.

20 Copyright ©2006 Custom Training Institute. Controlling the Console Enterprise Manager Console: "Ecosystem" of software and hardware Management Agent communicates with "targets" Management Repository collects information

21 Copyright ©2006 Custom Training Institute. Oracle Enterprise Manager Framework

22 Copyright ©2006 Custom Training Institute. Controlling the Listener Listener Control ( lsnrctl ): change_password / set password / save_config services stop / start set / show exit

23 Copyright ©2006 Custom Training Institute. Database Storage Structures Tablespace Creation Tablespace Management Tablespace Information

24 Copyright ©2006 Custom Training Institute. Tablespace Creation CREATE TABLESPACE tablespace_name DATAFILE name Size

25 Copyright ©2006 Custom Training Institute. Tablespace Information Views USER_TABLESPACES Tablespaces to which the end user has access DBA_TABLESPACES All tablespaces on system

26 Copyright ©2006 Custom Training Institute. Tablespace Management Questions: What would be the advantage of separating static and dynamic tables into separate tablespaces? What would be the advantage of separating tables and indexes into separate tablespaces?

27 Copyright ©2006 Custom Training Institute. Tablespace Management Object Space Utilization RECYCLEBIN view DBA_RECYCLEBIN view System-Managed Undo CREATE UNDO TABLESPACE … RETENTION GUARANTEE …

28 Copyright ©2006 Custom Training Institute. Restoring Objects from the Recycle Bin Use FLASHBACK TABLE command: FLASHBACK TABLE theTable TO BEFORE DROP; FLASHBACK TABLE theTable TO BEFORE DROP RENAME TO theNewTableName; FLASHBACK TABLE command requires same privileges ( DROP TABLE; DROP ANY TABLE ) as were required to drop table originally.

29 Copyright ©2006 Custom Training Institute. Summary Database Control and Storage Structures: Tablespace Information and management Recycle Bin/ Flashback Multithreaded Agents Listeners


Download ppt "Oracle 10g Administration Database Control and Storage Structures Copyright ©2006 Custom Training Institute."

Similar presentations


Ads by Google