Presentation is loading. Please wait.

Presentation is loading. Please wait.

Stephen D. Mund, OCP Database Administrator Nevada System of Higher Education System Computing Services.

Similar presentations


Presentation on theme: "Stephen D. Mund, OCP Database Administrator Nevada System of Higher Education System Computing Services."— Presentation transcript:

1 Stephen D. Mund, OCP Database Administrator Nevada System of Higher Education System Computing Services

2 Introduction  Blackboard CE’s Section Backup.

3 Introduction  Blackboard CE’s Section Backup.  Using Oracle for backup of small datasets.

4 Introduction  Blackboard CE’s Section Backup.  Using Oracle for backup of small datasets.  Offloading I/O from backups.

5 Case Study  Great Basin College –  Uses Blackboard CE as a primary tool in their Distance Learning program serving students in over 62,000 sq. mi. of rural Nevada.

6 Case Study  Great Basin College –  Uses Blackboard CE as a primary tool in their Distance Learning program serving students in over 62,000 sq. mi. of rural Nevada.  Over 1200 courses are offered through the Blackboard CE solution.

7 Case Study  Great Basin College –  Uses Blackboard CE as a primary tool in their Distance Learning program serving students in over 62,000 sq. mi. of rural Nevada.  Over 1200 courses are offered through the Blackboard CE solution.  Section backup was performing nominally, issue was with the amount of coursework needed to be backed up.

8 Case Study (continued)  Server degradation in performance towards the end of each semester.

9 Case Study (continued)  Server degradation in performance towards the end of each semester.  Massive slowdown causing users to log off and log on later.

10 Case Study (continued)  Server degradation in performance towards the end of each semester.  Massive slowdown causing users to log off and log on later.  Hangs during both reading and writing.

11 Case Study (continued)  Server degradation in performance towards the end of each semester.  Massive slowdown causing users to log off and log on later.  Hangs during both reading and writing.  Caused by extensive I/O on the application server due to constant use of section backup.

12 Case Study (continued)  Server degradation in performance towards the end of each semester.  Massive slowdown causing users to log off and log on later.  Hangs during both reading and writing.  Caused by extensive I/O on the application server due to constant use of section backup.  Section Backup required use of the application.

13 Options Considered  Don’t use the section backup utility and use another database to perform Point-in-Time Recovery. Then use Section Backup to recovery the file.

14 Options Considered  Don’t use the section backup utility and use another database to perform Point-in-Time Recovery. Then use Section Backup to recovery the file.  PROS: Does not require ongoing use of storage. Relieves the I/O issue.

15 Options Considered  Don’t use the section backup utility and use another database to perform Point-in-Time Recovery. Then use Section Backup to recovery the file.  PROS: Does not require ongoing use of storage. Relieves the I/O issue.  CONS: Cumbersome requires time consuming restoration to another server. More involved, difficult to script.

16 Options Considered  Optimize Disk Performance. System currently uses RAID 5 could reconfigure to better RAID configuration like 1+0 or even RAID 1.

17 Options Considered  Optimize Disk Performance. System currently uses RAID 5 could reconfigure to better RAID configuration like 1+0 or even RAID 1.  PROS: I/O performance is increased at the storage level.

18 Options Considered  Optimize Disk Performance. System currently uses RAID 5 could reconfigure to better RAID configuration like 1+0 or even RAID 1.  PROS: I/O performance is increased at the storage level.  CONS: It is doubtful that the performance increase would be substantial enough. Requires application downtime to configure and is labor intensive.

19 Options Considered  Standby database with Flashback technology and roll forward.

20 Options Considered  Standby database with Flashback technology and roll forward.  PROS: Off loads most of the I/O leaving only a minor amount required for resynchronization.

21 Options Considered  Standby database with Flashback technology and roll forward.  PROS: Off loads most of the I/O leaving only a minor amount required for resynchronization.  CONS: Requires extensive ongoing disk space for flashback logs, archive logs and database files.

22 Options Considered  Delayed Standby database with Flashback technology

23 Options Considered  Delayed Standby database with Flashback technology  PROS: Has the advantages of previous option but uses about half the space.

24 Options Considered  Delayed Standby database with Flashback technology.  PROS: Has the advantages of previous option but uses about half the space.  CONS: More involved setup. Requires special configurations to use extra long delay. Space requirement is more than first two options and recoveries are more involved than third option.

25 Our Solution  Best solutions.

26 Our Solution  Best solutions.  Technical points option 3.

27 Our Solution  Best solutions.  Technical points option 3.  Our specific situation option 4.

28 Our Solution  Best solutions  Technical points option 3.  Our specific situation option 4.  Option 3 is the easiest to implement and simplest to maintain.

29 Our Solution  Best solutions  Technical points option 3.  Our specific situation option 4.  Option 3 is the easiest to implement and simplest to maintain.  Option 4 was the best solution for us. Because it uses least disk space.

30 Implementation  Set up a Standby database.

31 Implementation  Set up a Standby database.  This is well documented in Oracle® Data Guard Concepts and Administration 10g Release 2 (10.2) Part Number B ,Chapter 3, Chapter 12.7, Chapter 12.8 Appendix F.

32 Implementation  Remote Archivelog Destination.

33 Implementation  Remote Archivelog Destination.  Parameters ARCH.

34 Implementation  Remote Archivelog Destination.  Parameters ARCH.  DELAY=20160.

35 Implementation  Remote Archivelog Destination.  Parameters ARCH.  DELAY=  MAXIMUM PERFORMANCE.

36 Implementation  Standby Redo Logs.

37 Implementation  Standby Redo Logs.  Not needed in this application.

38 Implementation  Standby Redo Logs.  Not needed in this application.  Flashback Database.

39 Implementation  Standby Redo Logs.  Not needed in this application.  Flashback Database.  Only on the Standby Database.

40 Implementation  Special Configurations.

41 Implementation  Special Configurations.  Control file retention period greater than the amount of the delay (control_file_record_keep_time).

42 Implementation  Special Configurations.  Control file retention period greater than the amount of the delay (control_file_record_keep_time).  Archive logs will need to be maintained on both the primary and the standby for at least the delay time.

43 Implementation  Errors.

44 Implementation  Errors.  If you.see something akin to this in the alert log: FAL[client]: Failed to request gap sequence GAP - thread 1 sequence DBID branch FAL[client]: All defined FAL servers have been attempted.

45 Implementation  Errors.

46 Implementation  Errors.  Probably indicates that you are not keeping enough archive logs on the primary rather than keep time for the control file.

47 Implementation  Errors.  Probably indicates that you are not keeping enough archive logs on the primary rather that keep time for the control file.  You will need to manually ship the archived logs on the standby to the primary.

48 Implementation  Best Practice.

49 Implementation  Best Practice.  Place the standby database in it’s own home. During upgrades and patching you will need to patch the standby along with the primary.

50 Implementation  Best Practice.  Place the standby database in it’s own home. During upgrades and patching you will need to patch the standby along with the primary.  If you use a development or test home then you won’t be able to test the patch without upgrading everything.

51 Using the Recovery System  Recovery Overview.

52 Using the Recovery System  Recovery Overview. 1. Ascertain the last “known good” time. This would be provided by the end user. The time which the restore was known to be good.

53 Using the Recovery System  Recovery Overview. 2. Take the delayed standby out of the managed recovery mode. First you want to know the log that will be next applied to the standby. Use this query: SELECT NAME FROM V$ARCHIVED_LOG WHERE APPLIED = ‘NO’ AND SEQUENCE# = (SELECT SEQUENCE# FROM V$MANAGED_STANDBY WHERE PROCESS LIKE ‘MRP%’); Cancel the recovery on the standby and defer the log shipping on the primary. Make a Guaranteed Recovery Point so you can resynchronize the system.

54 Using the Recovery System  Recovery Overview. 3. Recover the standby to the correct point in time. RECOVER STANDBY DATABASE UNTIL TIME ‘ YYYY-MM-DD:HH24:MI:SS’;

55 Using the Recovery System  Recovery Overview. 3. Recover the standby to the correct point in time. RECOVER STANDBY DATABASE UNTIL TIME ‘ YYYY-MM-DD:HH24:MI:SS’; 4. Activate and open the standby database ALTER DATABASE ACTIVATE STANDBY DATABASE; ALTER DATABASE OPEN;

56 Using the Recovery System  Recovery Overview. 5. Point the application (development) to standby database. The ORACLE_SID of the development database needs to be change to the DB_UNIQUE_NAME of the standby database in the following files: CP-WebCTConnectionPool$PF-jdbc.xml CP-WebCTConnectionPool-jdbc.xml CP-WebCTJMSConnectionPool-jdbc.xml Then restart the applications server.

57 Using the Recovery System  Recovery Overview. 6. Run the section backup in order to extract the course backup.

58 Using the Recovery System  Recovery Overview. 6. Run the section backup in order to extract the course backup. 7. Restore the section backup on the production system.

59 Using the Recovery System  Resynchronization Overview.

60 Using the Recovery System  Resynchronization Overview. 1. Point the application (standby) to original database Change the following files back to the original sid: CP-WebCTConnectionPool$PF-jdbc.xml CP-WebCTConnectionPool-jdbc.xml CP-WebCTJMSConnectionPool-jdbc.xml.

61 Using the Recovery System  Resynchronization Overview. 1. Point the application (standby) to original database Change the following files back to the original sid: CP-WebCTConnectionPool$PF-jdbc.xml CP-WebCTConnectionPool-jdbc.xml CP-WebCTJMSConnectionPool-jdbc.xml. 2. Remount the database and flashback to original delay STARTUP FORCE MOUNT; FLASHBACK DATABASE TO RESTORE POINT ; ALTER DATABASE CONVERT TO PHYSICAL STANDBY; STARTUP FORCE MOUNT; Drop the restore point to avoid having too many flashback logs.

62 Using the Recovery System  Resynchronization Overview. 3. Manually register the next archivelog to pick up the delay information ALTER DATABASE REGISTER OR REPLACE LOGFILE ‘ ’;

63 Using the Recovery System  Resynchronization Overview. 3. Manually register the next archivelog to pick up the delay information. ALTER DATABASE REGISTER OR REPLACE LOGFILE ‘ ’; 4. Enable log shipping on the primary and restart the managed recovery.

64 Using the Recovery System  Resynchronization Overview. 3. Manually register the next archivelog to pick up the delay information. ALTER DATABASE REGISTER OR REPLACE LOGFILE ‘ ’; 4. Enable log shipping on the primary and restart the managed recovery. 5. Verify with log switch on the primary.

65 Using the Recovery System  Resynchronization Overview. 6. Check the standby alert log for appropriate response. You should see logs shipping virtually immediately and eventually you should see “Media Recovery Log” which means a log has applied.

66 Final Results

67  Most notably was that GBC received NO complaints concerning access during the end of semesters.

68 Final Results  Most notably was that GBC received NO complaints concerning access during the end of semesters.  The change was so marked that it was commented on several times by the Web Campus administration team.

69 Final Results  Lisa Frasier, Director of Online Education and Curriculum Development at Great Basin stated: “Logon was really not the problem but the extreme lag time and problems with assignment errors, due to resource competition. Assignment errors has stopped almost completely. We haven’t had a help desk call complaining about slow server speed since the upgrade was completed.”

70 Final Results  Additional benefits are that GBC was able to extend testing of the latest major upgrade because of the reduction of performance problems made upgrading less crucial. Allowing added time for training of faculty and pilots for students.

71 Stephen D. Mund, OCP Database Administrator Nevada System of Higher Education System Computing Services

72 Stephen D. Mund, OCP Database Administrator Nevada System of Higher Education System Computing Services


Download ppt "Stephen D. Mund, OCP Database Administrator Nevada System of Higher Education System Computing Services."

Similar presentations


Ads by Google