Introduction To OCCI
Introduction To OCCI
20/02/2011
INTRODUCTION TO OCCI
Contents
1. Introduction to OCCI .......................................................................................... 3 2. Benefits of OCCI .................................................................................................. 3 3. Processing of SQL Statements........................................................................... 3 4. Building an OCCI Application ............................................................................ 4 5. OCCI Compiling an OCCI Application ............................................................. 4 6. OCCI Environment Class..................................................................................... 4 7. OCCI Initialize Environment Example.......................................................... 5 8. OCCI Connection Class ....................................................................................... 5 9. OCCI Create Connection Example................................................................ 5 10. OCCI Executing SQL/PLSQL........................................................................... 6 11. OCCI Executing SQL Usage ......................................................................... 6 12. OCCI Executing SQL Examples ................................................................... 6 Simple DML Insert ........................................................................................................................... 6 DML Insert with bind...................................................................................................................... 6 Executing Select queries and fetching results ..................................................................... 7 13. OCCI Control classes ...................................................................................... 8 14. OCCI DML on multiple rows using Iterations............................................... 8 DML(INSERT/UPDATE/DELETE) of multiple rows in single roundtrip.......................... 8 15. OCCI Error Handling ...................................................................................... 9 Example - Handling Oracle and C++ STL errors separately............................................. 9 16. References......................................................................................................... 9
INTRODUCTION TO OCCI
1. Introduction to OCCI