Oracle Workshop - Upgrade to 11g P2
Số trang: 20
Loại file: pdf
Dung lượng: 735.98 KB
Lượt xem: 7
Lượt tải: 0
Xem trước 2 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Preparation• Get INVALID Objects: •SQL SELECT UNIQUE object_name, object_type, owner SQL SELECT UNIQUE object_name, object_type, owner FROM dba_objects WHERE status=INVALID; FROM dba_objects WHERE status=INVALID;Recompile invalid objects in SYS and SYSTEM with utlrp.sqlCompare invalid objects from before and after the upgrade• • Beginning with 11.1.0.7 the comparison has been automated registry$sys_inv_objs, registry$nonsys_inv_objs = utluiobj.sql• Get accurate performance statistics• Comparison: before ↔ after • Time specific...
Nội dung trích xuất từ tài liệu:
Oracle Workshop - Upgrade to 11g P2External 11g References 25-Jan-2009 Upgrade Paths UPGRADE UPGRADEExport/ImportExport/Import Y Y OS Change? OS Change? N NCTAS, COPYCTAS, COPY N N Downtime >45min? Downtime >45min? SQL Apply SQL Apply Y Y Oracle Streams Oracle Streams DBUA DBUA Transportable Tablespaces Transportable Tablespaces OR ORA CLI CLI ACL CLEE rrec ecom SQL> @catupgrd Transportable Database Transportable Database omm men ende dedd Preparation• Get INVALID Objects: SQL> SELECT UNIQUE object_name, object_type, owner SQL> SELECT UNIQUE object_name, object_type, owner• FROM dba_objects WHERE status=INVALID; FROM dba_objects WHERE status=INVALID; Recompile invalid objects in SYS and SYSTEM with utlrp.sql• Compare invalid objects from before and after the upgrade • Beginning with 11.1.0.7 the comparison has been automated • registry$sys_inv_objs, registry$nonsys_inv_objs => utluiobj.sql• Get accurate performance statistics • Comparison: before ↔ after • Time specific queries and batches• Test upgrade of the database • Functional tests • Performance tests with real life loads!!! Preparation• Possibilities for performance analysis: • STATSPACK – export Perfstat user!!! • Note:394937.1 STATSPACK guide • AWR - extract the AWR • Do AWR diff reports comparing before/after upgrade • Real Application Testing • SQL Performance Analyzer • Database Replay Preparation• Create dictionary statistics prior to the upgrade - otherwise it will take significantly longer SQL> EXECUTE dbms_stats.gather_schema_stats SQL> EXECUTE dbms_stats.gather_schema_stats (SYS, (SYS, options options => GATHER, => GATHER, estimate_percent estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, => DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt method_opt => FOR ALL COLUMNS SIZE AUTO, => FOR ALL COLUMNS SIZE AUTO, cascade cascade => TRUE); => TRUE); • Detailed scripts can be found here: Oracle® Database Upgrade Guide Appendix B • Or in / : SQL> EXECUTE dbms_stats.gather_dictionary_stats; SQL> EXECUTE dbms_stats.gather_dictionary_stats; Preparation• Switch off DATABASE VAULT (if used/installed) • Oracle® Database Vault Administrators Guide: Appendix B • Unix: (simplified) • Relinking without Database Vault [$ make -f ins_rdbms.mk dv_off ] • $ dvca -action disable ... $ dvca -action disable ... • Windows: • Rename oradv10.dll in ORACLE_HOMEin • Upon restart: $ dvca -action disable ... $ dvca -action disable ... • After upgrading relink with dv_on or rename the DLL and enable Database Vault again: $ dvca -action enable ... $ dvca -action enable ... Preparation• Drop SYS.PLAN_TABLE$ and SYS.PLAN_TABLE • See Note: 605317.1 and Note:736353.1 • Otherwise the component Oracle Server can be INVALID after the upgrade • Introduced with DBMS_SQLPA • Steps to solve this issue if it has happened: • @catplan.sql -- recreate the plan table @dbmsxpln.sql -- reload dbms_xplan spec @prvtxpln.plb -- reload dbms_xplan implementation @prvtspao.plb -- reload dbms_sqlpa Installation• Spac ...
Nội dung trích xuất từ tài liệu:
Oracle Workshop - Upgrade to 11g P2External 11g References 25-Jan-2009 Upgrade Paths UPGRADE UPGRADEExport/ImportExport/Import Y Y OS Change? OS Change? N NCTAS, COPYCTAS, COPY N N Downtime >45min? Downtime >45min? SQL Apply SQL Apply Y Y Oracle Streams Oracle Streams DBUA DBUA Transportable Tablespaces Transportable Tablespaces OR ORA CLI CLI ACL CLEE rrec ecom SQL> @catupgrd Transportable Database Transportable Database omm men ende dedd Preparation• Get INVALID Objects: SQL> SELECT UNIQUE object_name, object_type, owner SQL> SELECT UNIQUE object_name, object_type, owner• FROM dba_objects WHERE status=INVALID; FROM dba_objects WHERE status=INVALID; Recompile invalid objects in SYS and SYSTEM with utlrp.sql• Compare invalid objects from before and after the upgrade • Beginning with 11.1.0.7 the comparison has been automated • registry$sys_inv_objs, registry$nonsys_inv_objs => utluiobj.sql• Get accurate performance statistics • Comparison: before ↔ after • Time specific queries and batches• Test upgrade of the database • Functional tests • Performance tests with real life loads!!! Preparation• Possibilities for performance analysis: • STATSPACK – export Perfstat user!!! • Note:394937.1 STATSPACK guide • AWR - extract the AWR • Do AWR diff reports comparing before/after upgrade • Real Application Testing • SQL Performance Analyzer • Database Replay Preparation• Create dictionary statistics prior to the upgrade - otherwise it will take significantly longer SQL> EXECUTE dbms_stats.gather_schema_stats SQL> EXECUTE dbms_stats.gather_schema_stats (SYS, (SYS, options options => GATHER, => GATHER, estimate_percent estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, => DBMS_STATS.AUTO_SAMPLE_SIZE, method_opt method_opt => FOR ALL COLUMNS SIZE AUTO, => FOR ALL COLUMNS SIZE AUTO, cascade cascade => TRUE); => TRUE); • Detailed scripts can be found here: Oracle® Database Upgrade Guide Appendix B • Or in / : SQL> EXECUTE dbms_stats.gather_dictionary_stats; SQL> EXECUTE dbms_stats.gather_dictionary_stats; Preparation• Switch off DATABASE VAULT (if used/installed) • Oracle® Database Vault Administrators Guide: Appendix B • Unix: (simplified) • Relinking without Database Vault [$ make -f ins_rdbms.mk dv_off ] • $ dvca -action disable ... $ dvca -action disable ... • Windows: • Rename oradv10.dll in ORACLE_HOMEin • Upon restart: $ dvca -action disable ... $ dvca -action disable ... • After upgrading relink with dv_on or rename the DLL and enable Database Vault again: $ dvca -action enable ... $ dvca -action enable ... Preparation• Drop SYS.PLAN_TABLE$ and SYS.PLAN_TABLE • See Note: 605317.1 and Note:736353.1 • Otherwise the component Oracle Server can be INVALID after the upgrade • Introduced with DBMS_SQLPA • Steps to solve this issue if it has happened: • @catplan.sql -- recreate the plan table @dbmsxpln.sql -- reload dbms_xplan spec @prvtxpln.plb -- reload dbms_xplan implementation @prvtspao.plb -- reload dbms_sqlpa Installation• Spac ...
Tìm kiếm theo từ khóa liên quan:
Cơ sở dữ liệu Quản trị web Hệ điều hành Công nghệ thông tin Tin họcTài liệu liên quan:
-
Giáo trình Lý thuyết hệ điều hành: Phần 1 - Nguyễn Kim Tuấn
110 trang 458 0 0 -
52 trang 434 1 0
-
62 trang 403 3 0
-
Đề thi kết thúc học phần học kì 2 môn Cơ sở dữ liệu năm 2019-2020 có đáp án - Trường ĐH Đồng Tháp
5 trang 379 6 0 -
Top 10 mẹo 'đơn giản nhưng hữu ích' trong nhiếp ảnh
11 trang 321 0 0 -
74 trang 304 0 0
-
13 trang 300 0 0
-
96 trang 299 0 0
-
Giáo trình Cơ sở dữ liệu: Phần 2 - TS. Nguyễn Hoàng Sơn
158 trang 298 0 0 -
Phân tích thiết kế hệ thống - Biểu đồ trạng thái
20 trang 293 0 0