SlideShare uma empresa Scribd logo
1 de 34
OPP 2007 February 28 – March 1, 2007 San Mateo Marriott San Mateo, California An ODTUG SP* Oracle PL/SQL Programming Conference * SP – Seriously Practical   Conference For more information visit www.odtug.com or call 910-452-7444 ODTUG Kaleidoscope June 18 – 21, 2007 Pre-conference Hands-on Training - June 16 – 17 Hilton Daytona Beach Oceanfront Resort Daytona, Florida WOW-Wide Open World, Wide Open Web!
Making the Most of  Oracle PL/SQL  Error Management Features Steven Feuerstein PL/SQL Evangelist Quest Software [email_address]
Ten Years Writing Ten Books   on the Oracle PL/SQL Language
How to benefit most from this class ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],filename_from_demo_zip.sql
Manage errors effectively and consistently ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Achieving ideal error management ,[object Object],[object Object],[object Object],[object Object],[object Object]
Define your requirements clearly  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Different types of exceptions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],exec_ddl_from_file.sql get_nextline.sf fullname.pkb fullname.pkb
PL/SQL error management features  ,[object Object],[object Object],[object Object],[object Object]
Quiz! Test your exception handling know-how ,[object Object],DECLARE aname VARCHAR2(5); BEGIN BEGIN aname := 'Justice'; DBMS_OUTPUT.PUT_LINE (aname); EXCEPTION WHEN  VALUE_ERROR THEN DBMS_OUTPUT.PUT_LINE ('Inner block'); END; DBMS_OUTPUT.PUT_LINE ('What error?'); EXCEPTION WHEN  VALUE_ERROR THEN DBMS_OUTPUT.PUT_LINE ('Outer block'); END; excquiz1.sql
Defining Exceptions ,[object Object],[object Object],[object Object],[object Object],CREATE OR REPLACE PROCEDURE upd_for_dept ( dept_in  IN  employee.department_id%TYPE , newsal_in IN  employee.salary%TYPE ) IS bulk_errors  EXCEPTION; PRAGMA EXCEPTION_INIT (bulk_errors, -24381);
Raising Exceptions ,[object Object],[object Object],[object Object],[object Object],[object Object]
Using RAISE_APPLICATION_ERROR ,[object Object],[object Object],IF :NEW.birthdate > ADD_MONTHS (SYSDATE, -1 * 18 * 12) THEN RAISE_APPLICATION_ERROR  (-20070, ‘Employee must be 18.’); END IF; RAISE_APPLICATION_ERROR (num binary_integer, msg varchar2, keeperrorstack boolean default FALSE);
Quiz: An Exceptional Package ,[object Object],PACKAGE valerr IS FUNCTION  get RETURN VARCHAR2; END valerr; SQL> EXECUTE p.l (valerr.get); PACKAGE BODY valerr IS v VARCHAR2(1) := ‘abc’; FUNCTION get RETURN VARCHAR2 IS BEGIN RETURN v; END; BEGIN p.l ('Before I show you v...'); EXCEPTION WHEN OTHERS THEN p.l (‘Trapped the error!’); END valerr; valerr.pkg valerr2.pkg
Handling Exceptions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
DBMS_UTILITY error functions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],backtrace.sql
DBMS_ERRLOG (Oracle10gR2) ,[object Object],[object Object],[object Object],[object Object],[object Object],dbms_errlog.*
The AFTER SERVERERROR trigger ,[object Object],[object Object],[object Object],[object Object],[object Object],afterservererror.sql
Exceptions and DML ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],log8i.pkg
Best practices for error management ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Compensate for PL/SQL weaknesses ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Object-like representation of an exception ,[object Object],[object Object],[object Object],[object Object],[object Object]
ERD for error definition tables qd_error.erd qd_runtime.pkb
Hard to avoid code repetition in handlers ,[object Object],[object Object],WHEN NO_DATA_FOUND THEN INSERT INTO errlog VALUES ( SQLCODE , 'No company for id ' || TO_CHAR ( v_id ) , 'fixdebt', SYSDATE, USER ); WHEN OTHERS THEN INSERT INTO errlog VALUES (SQLCODE, SQLERRM, 'fixdebt', SYSDATE, USER ); RAISE; END;
Prototype exception manager package PACKAGE errpkg IS PROCEDURE raise (err_in IN PLS_INTEGER); PROCEDURE raise (err_in in VARCHAR2); PROCEDURE record_and_stop ( err_in IN PLS_INTEGER := SQLCODE ,msg_in IN VARCHAR2 := NULL); PROCEDURE record_and_continue ( err_in IN PLS_INTEGER := SQLCODE ,msg_in IN VARCHAR2 := NULL); END errpkg; Generic Raises Record and Stop Record and Continue errpkg.pkg
Invoking standard handlers ,[object Object],[object Object],[object Object],EXCEPTION WHEN NO_DATA_FOUND THEN  errpkg.record_and_continue   ( SQLCODE,  ' No company for id ' || TO_CHAR (v_id)); WHEN OTHERS   THEN errpkg.record_and_stop ;  END; The developer simply describes   the desired action.
Specifying the error ,[object Object],[object Object]
Avoid hard-coding of -20,NNN Errors ,[object Object],PACKAGE errnums  IS en_general_error CONSTANT NUMBER := -20000; exc_general_error EXCEPTION; PRAGMA EXCEPTION_INIT  (exc_general_error, -20000); en_must_be_18 CONSTANT NUMBER := -20001; exc_must_be_18 EXCEPTION; PRAGMA EXCEPTION_INIT  (exc_must_be_18, -20001); en_sal_too_low CONSTANT NUMBER := -20002; exc_sal_too_low EXCEPTION; PRAGMA EXCEPTION_INIT  (exc_sal_too_low , -20002); max_error_used CONSTANT NUMBER := -20002; END errnums; msginfo.pkg msginfo.fmb/fmx But don't write this code manually!
Using the standard raise program ,[object Object],[object Object],[object Object],[object Object],PROCEDURE validate_emp (birthdate_in IN DATE) IS BEGIN IF ADD_MONTHS (SYSDATE, 18 * 12 * -1) < birthdate_in THEN errpkg.raise (errnums.en_too_young); END IF; END; No more hard-coded strings or numbers.
Raise/handle errors by number...or name? ,[object Object],[object Object],BEGIN   IF employee_rp.is_to_young (:new.hire_date)  THEN RAISE_APPLICATION_ERROR  ( -20175 ,   'You must be at least 18 years old!' ); END IF; BEGIN   IF employee_rp.is_to_young (:new.hire_date)  THEN RAISE_APPLICATION_ERROR  ( employee_rp.en_too_young ,  employee_rp.em_too_young ); END IF; But now we have a centralized dependency.
Raising errors by name ,[object Object],[object Object],[object Object],[object Object],[object Object],BEGIN   IF employee_rp.is_to_young (:new.hire_date)  THEN qd_runtime.raise_error  ( 'EMPLOYEE-TOO-YOUNG' , name1_in =>   'LAST_NAME' ,  value1_in =>  :new.last_name ); END IF; Qnxo www.qnxo.com qd_runtime.*
Summary: an Exception Handling Architecture ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
More PL/SQL, Please! ,[object Object],[object Object]
OPP 2007 February 28 – March 1, 2007 San Mateo Marriott San Mateo, California An ODTUG SP* Oracle PL/SQL Programming Conference * SP – Seriously Practical   Conference For more information visit www.odtug.com or call 910-452-7444 ODTUG Kaleidoscope June 18 – 21, 2007 Pre-conference Hands-on Training - June 16 – 17 Hilton Daytona Beach Oceanfront Resort Daytona, Florida WOW-Wide Open World, Wide Open Web!

Mais conteúdo relacionado

Mais procurados

MCS,BCS-7(A,B) Visual programming Syllabus for Final exams @ ISP
MCS,BCS-7(A,B) Visual programming Syllabus for Final exams @ ISPMCS,BCS-7(A,B) Visual programming Syllabus for Final exams @ ISP
MCS,BCS-7(A,B) Visual programming Syllabus for Final exams @ ISPAli Shah
 
javase-1.4.2-docs-guide-lang-assert
javase-1.4.2-docs-guide-lang-assertjavase-1.4.2-docs-guide-lang-assert
javase-1.4.2-docs-guide-lang-assertlukebonham
 

Mais procurados (6)

Php security
Php securityPhp security
Php security
 
Call
CallCall
Call
 
MCS,BCS-7(A,B) Visual programming Syllabus for Final exams @ ISP
MCS,BCS-7(A,B) Visual programming Syllabus for Final exams @ ISPMCS,BCS-7(A,B) Visual programming Syllabus for Final exams @ ISP
MCS,BCS-7(A,B) Visual programming Syllabus for Final exams @ ISP
 
Ppt lesson 06
Ppt lesson 06Ppt lesson 06
Ppt lesson 06
 
Exception handling
Exception handlingException handling
Exception handling
 
javase-1.4.2-docs-guide-lang-assert
javase-1.4.2-docs-guide-lang-assertjavase-1.4.2-docs-guide-lang-assert
javase-1.4.2-docs-guide-lang-assert
 

Destaque

Celebrate Your Event with Holi Color Powder
Celebrate Your Event with Holi Color PowderCelebrate Your Event with Holi Color Powder
Celebrate Your Event with Holi Color PowderColor Marathon
 
Trade Fair (Event Proposal)
Trade  Fair (Event Proposal)Trade  Fair (Event Proposal)
Trade Fair (Event Proposal)Ivan Bendiola
 
BTL activities on vivo smart phone
BTL activities on vivo smart phoneBTL activities on vivo smart phone
BTL activities on vivo smart phoneBIITM
 
Project report on oppo mobile india pvt ltd on consumes awerness
Project report on oppo mobile india pvt ltd on consumes awernessProject report on oppo mobile india pvt ltd on consumes awerness
Project report on oppo mobile india pvt ltd on consumes awernessVINOD7894
 
Using Events As Content Marketing
Using Events As Content MarketingUsing Events As Content Marketing
Using Events As Content MarketingJeff Hurt
 

Destaque (6)

Celebrate Your Event with Holi Color Powder
Celebrate Your Event with Holi Color PowderCelebrate Your Event with Holi Color Powder
Celebrate Your Event with Holi Color Powder
 
GEMS events
GEMS eventsGEMS events
GEMS events
 
Trade Fair (Event Proposal)
Trade  Fair (Event Proposal)Trade  Fair (Event Proposal)
Trade Fair (Event Proposal)
 
BTL activities on vivo smart phone
BTL activities on vivo smart phoneBTL activities on vivo smart phone
BTL activities on vivo smart phone
 
Project report on oppo mobile india pvt ltd on consumes awerness
Project report on oppo mobile india pvt ltd on consumes awernessProject report on oppo mobile india pvt ltd on consumes awerness
Project report on oppo mobile india pvt ltd on consumes awerness
 
Using Events As Content Marketing
Using Events As Content MarketingUsing Events As Content Marketing
Using Events As Content Marketing
 

Semelhante a Error management

Joomla! Day Chicago 2011 Presentation - Steven Pignataro
Joomla! Day Chicago 2011 Presentation - Steven PignataroJoomla! Day Chicago 2011 Presentation - Steven Pignataro
Joomla! Day Chicago 2011 Presentation - Steven PignataroSteven Pignataro
 
Exception
ExceptionException
Exceptionwork
 
Exception
ExceptionException
Exceptionwork
 
ASP.NET 05 - Exception Handling And Validation Controls
ASP.NET 05 - Exception Handling And Validation ControlsASP.NET 05 - Exception Handling And Validation Controls
ASP.NET 05 - Exception Handling And Validation ControlsRandy Connolly
 
Oracle PL/SQL exception handling
Oracle PL/SQL exception handlingOracle PL/SQL exception handling
Oracle PL/SQL exception handlingSmitha Padmanabhan
 
Handling errors in t sql code (1)
Handling errors in t sql code (1)Handling errors in t sql code (1)
Handling errors in t sql code (1)Ris Fernandez
 
Building of systems of automatic C/C++ code logging
Building of systems of automatic C/C++ code loggingBuilding of systems of automatic C/C++ code logging
Building of systems of automatic C/C++ code loggingPVS-Studio
 
Instructions 3-5 pages double space research paper about Eric Sc.docx
Instructions 3-5 pages double space research paper about Eric Sc.docxInstructions 3-5 pages double space research paper about Eric Sc.docx
Instructions 3-5 pages double space research paper about Eric Sc.docxnormanibarber20063
 
London SF Developers: Custom Lightning Component Error Handling
London SF Developers: Custom Lightning Component Error HandlingLondon SF Developers: Custom Lightning Component Error Handling
London SF Developers: Custom Lightning Component Error HandlingRichard Clark
 
04 Handling Exceptions
04 Handling Exceptions04 Handling Exceptions
04 Handling Exceptionsrehaniltifat
 
L9 l10 server side programming
L9 l10  server side programmingL9 l10  server side programming
L9 l10 server side programmingRushdi Shams
 
Exception handling and logging best practices
Exception handling and logging best practicesException handling and logging best practices
Exception handling and logging best practicesAngelin R
 
Oracle - Program with PL/SQL - Lession 08
Oracle - Program with PL/SQL - Lession 08Oracle - Program with PL/SQL - Lession 08
Oracle - Program with PL/SQL - Lession 08Thuan Nguyen
 
Data recovery consistency with check db
Data recovery consistency with check dbData recovery consistency with check db
Data recovery consistency with check dbguesta1b3b39
 

Semelhante a Error management (20)

Joomla! Day Chicago 2011 Presentation - Steven Pignataro
Joomla! Day Chicago 2011 Presentation - Steven PignataroJoomla! Day Chicago 2011 Presentation - Steven Pignataro
Joomla! Day Chicago 2011 Presentation - Steven Pignataro
 
Exception
ExceptionException
Exception
 
Exception
ExceptionException
Exception
 
ASP.NET 05 - Exception Handling And Validation Controls
ASP.NET 05 - Exception Handling And Validation ControlsASP.NET 05 - Exception Handling And Validation Controls
ASP.NET 05 - Exception Handling And Validation Controls
 
Oracle PL/SQL exception handling
Oracle PL/SQL exception handlingOracle PL/SQL exception handling
Oracle PL/SQL exception handling
 
MySQL 5.5
MySQL 5.5MySQL 5.5
MySQL 5.5
 
Handling errors in t sql code (1)
Handling errors in t sql code (1)Handling errors in t sql code (1)
Handling errors in t sql code (1)
 
Building of systems of automatic C/C++ code logging
Building of systems of automatic C/C++ code loggingBuilding of systems of automatic C/C++ code logging
Building of systems of automatic C/C++ code logging
 
Ppt lesson 06
Ppt lesson 06Ppt lesson 06
Ppt lesson 06
 
Ppt lesson 06
Ppt lesson 06Ppt lesson 06
Ppt lesson 06
 
Instructions 3-5 pages double space research paper about Eric Sc.docx
Instructions 3-5 pages double space research paper about Eric Sc.docxInstructions 3-5 pages double space research paper about Eric Sc.docx
Instructions 3-5 pages double space research paper about Eric Sc.docx
 
London SF Developers: Custom Lightning Component Error Handling
London SF Developers: Custom Lightning Component Error HandlingLondon SF Developers: Custom Lightning Component Error Handling
London SF Developers: Custom Lightning Component Error Handling
 
Hot sos em12c_metric_extensions
Hot sos em12c_metric_extensionsHot sos em12c_metric_extensions
Hot sos em12c_metric_extensions
 
Readme
ReadmeReadme
Readme
 
04 Handling Exceptions
04 Handling Exceptions04 Handling Exceptions
04 Handling Exceptions
 
L9 l10 server side programming
L9 l10  server side programmingL9 l10  server side programming
L9 l10 server side programming
 
Exception handling and logging best practices
Exception handling and logging best practicesException handling and logging best practices
Exception handling and logging best practices
 
Oracle - Program with PL/SQL - Lession 08
Oracle - Program with PL/SQL - Lession 08Oracle - Program with PL/SQL - Lession 08
Oracle - Program with PL/SQL - Lession 08
 
Data recovery consistency with check db
Data recovery consistency with check dbData recovery consistency with check db
Data recovery consistency with check db
 
Php exceptions
Php exceptionsPhp exceptions
Php exceptions
 

Último

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 

Último (20)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 

Error management

  • 1. OPP 2007 February 28 – March 1, 2007 San Mateo Marriott San Mateo, California An ODTUG SP* Oracle PL/SQL Programming Conference * SP – Seriously Practical Conference For more information visit www.odtug.com or call 910-452-7444 ODTUG Kaleidoscope June 18 – 21, 2007 Pre-conference Hands-on Training - June 16 – 17 Hilton Daytona Beach Oceanfront Resort Daytona, Florida WOW-Wide Open World, Wide Open Web!
  • 2. Making the Most of Oracle PL/SQL Error Management Features Steven Feuerstein PL/SQL Evangelist Quest Software [email_address]
  • 3. Ten Years Writing Ten Books on the Oracle PL/SQL Language
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23. ERD for error definition tables qd_error.erd qd_runtime.pkb
  • 24.
  • 25. Prototype exception manager package PACKAGE errpkg IS PROCEDURE raise (err_in IN PLS_INTEGER); PROCEDURE raise (err_in in VARCHAR2); PROCEDURE record_and_stop ( err_in IN PLS_INTEGER := SQLCODE ,msg_in IN VARCHAR2 := NULL); PROCEDURE record_and_continue ( err_in IN PLS_INTEGER := SQLCODE ,msg_in IN VARCHAR2 := NULL); END errpkg; Generic Raises Record and Stop Record and Continue errpkg.pkg
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34. OPP 2007 February 28 – March 1, 2007 San Mateo Marriott San Mateo, California An ODTUG SP* Oracle PL/SQL Programming Conference * SP – Seriously Practical Conference For more information visit www.odtug.com or call 910-452-7444 ODTUG Kaleidoscope June 18 – 21, 2007 Pre-conference Hands-on Training - June 16 – 17 Hilton Daytona Beach Oceanfront Resort Daytona, Florida WOW-Wide Open World, Wide Open Web!