Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Oracle Administration Glen Parker University of South Florida BbWorld 07 Boston, MA.

Similar presentations


Presentation on theme: "Introduction to Oracle Administration Glen Parker University of South Florida BbWorld 07 Boston, MA."— Presentation transcript:

1 Introduction to Oracle Administration Glen Parker University of South Florida BbWorld 07 Boston, MA

2 Today Rename presentation “Intro to Backup & Recovery” Backup strategy Backup & Recovery Example

3 RMAN Backups Cold Backups Hot Backups

4 SQL> archive log list Database log mode Archive Mode Automatic archival Enabled Do you Archivelog ? Database log mode No Archive Mode Automatic archival Disabled - or -

5 create pfile from spfile; alter system set log_archive_start=TRUE scope=spfile; alter system set log_archive_dest_1= scope=spfile; shutdown immediate;startup mountalter database archivelog;alter database open; Start Archivelog Today

6 RMAN Backups Cold Backups Hot Backups

7 Control File Simple One Database No Stored Scripts Fewer Recovery Options Repository Complex Many databases N+1 Backup problem Stored Scripts RMAN ?

8 RMAN Prerequisites Database in Archivelog mode A separate storage location from the production database Multiplexed Controlfiles

9 RMAN Setup rman TARGET CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE = 2G FORMAT '/nfs/backup/SID/ora_df%t_s%s_s%p'; CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 30 DAYS;

10 RMAN Setup rman TARGET CONFIGURE CONTROLFILE AUTOBACKUP ON; CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/nfs/backup/SID/controlfile%F';

11 RMAN Backup rman TARGET RMAN> BACKUP INCREMENTAL LEVEL 0 DATABASE SPFILE PLUS ARCHIVELOG ;

12 RMAN Backup rman TARGET RMAN> BACKUP INCREMENTAL LEVEL 1 CUMULATIVE DATABASE SPFILE PLUS ARCHIVELOG;

13 RMAN Automation # crontab -l 30 1 * * 0 /oracle/backup/SID_levelzero.sh 30 1 * * 1-6 /oracle/backup/SID_levelone.sh

14 RMAN Recovery rman TARGET RMAN> STARTUP FORCE MOUNT; RESTORE DATABASE; RECOVER DATABASE; ALTER DATABASE OPEN; Result: No Data Loss

15 Nuff’Said Practice Recovery Often

16 Questions Online Resources Search: ‘raistlinxw’ & ‘bbworld07’ Glen Parker Thank You ! !

17 Start on boot Solaris - /var/opt/oracle/oratab Linux - /etc/oratab # cat oratab SID0:/usr/local/oracle/base/product/9.2:Y # cat /etc/rc3.d/S99oracle $ORACLE_HOME/bin/dbstart $ORACLE_HOME/bin/lsnrctl start

18 login.sql export SQLPATH = $ORACLE_HOME/sqlpath cat $SQLPATH/login.sql define _editor=vi set serveroutput on size set trimspool on set long 5000 set linesize 100 set pagesize 0 set echo off

19 Logs SQL> show parameter dump_dest - Background (alert.log) # grep ORA alert.log - Core - User

20 Blackboard Support Point in Time snapshot Database most expensive queries cd /usr/local/blackboard/tools/perf_reports./run_all.sh

21 dbms_stats sqlplus system/password SQL> exec dbms_stats.gather_schema_stats( OWNER=>’bb_bb60’, METHOD_OPT=>’for all indexed columns size auto’, CASCADE=>true );

22 Statspack setup user: perfstat

23 Statspack Snapshot sqlplus perfstat/password SQL> exec statspack.snap 15 minutes apart

24 Statspack Report sqlplus perfstat/password

25 Questions Online Resources Search: ‘raistlinxw’ & ‘bbworld07’ Glen Parker Thank You ! !


Download ppt "Introduction to Oracle Administration Glen Parker University of South Florida BbWorld 07 Boston, MA."

Similar presentations


Ads by Google