SlideShare a Scribd company logo
Oracle中SQL解析过程
--------------------------------------------------------------------------------
  The flow of procedure calls will typically look like this:

                         -----------
                       | open_cursor |
                         -----------
                              |
                              |
                              v
                            -----
           ------------>| parse |
         |                  -----
         |                    |
         |                    |---------
         |                    v          |
         |              -------------- |
         |-------->| bind_variable | |
         |      ^       -------------    |
         |      |             |          |
         |        -----------|           |
         |                    |<--------
         |                    v
         |                  query?---------- yes ---------
         |                    |                             |
         |                   no                             |
         |                    |                             |
         |                    v                             v
         |                 -------                    -------------
         |----------->| execute |                 ->| define_column |
         |                 -------              |     -------------
         |                    |------------     |           |
         |                    |             |     ----------|
         |                    v             |               v
         |              --------------      |            -------
         |          ->| variable_value |    | ------>| execute |
         |        |     --------------      | |          -------
         |        |           |             | |             |
         |          ----------|             | |             |
         |                    |             | |             v
         |                    |             | |         ----------
         |                    |<----------- |----->| fetch_rows |
         |                    |               |         ----------
         |                    |               |             |
         |                    |               |             v
         |                    |               |     --------------------
         |                    |               | | column_value            |
         |                    |               | | variable_value          |
         |                    |               |     ---------------------
         |                    |               |             |
         |                    |<--------------------------
         |                    |
           -----------------|
                              |
                              v
                         ------------
                       | close_cursor |
                         ------------

--------------------------------------------------------------------------------
set pagesize 100;
SELECT substr(t.text, 5, 1000)
  FROM all_source t
 WHERE t.owner = 'SYS'
   AND t.type = 'PACKAGE'
   AND t.name = 'DBMS_SQL'
   AND t.line <= 95
   AND t.line >= 38;

More Related Content

PDF
Sweet disposition (acoustic) tabs
PPT
PDF
Day 3 take up convolutional neural network
DOCX
I was a kaleidoscope
PDF
Jvm的最小使用内存测试
PDF
Oracle数据库日志满导致错误
PDF
Java设置环境变量
PDF
Oracle试题Exam Adminv1.1
Sweet disposition (acoustic) tabs
Day 3 take up convolutional neural network
I was a kaleidoscope
Jvm的最小使用内存测试
Oracle数据库日志满导致错误
Java设置环境变量
Oracle试题Exam Adminv1.1

Viewers also liked (6)

PDF
Arrays的Sort算法分析
PDF
Oracle的Constraint约束V1.1
PDF
Java中的Float&Double以及Ieee754研究V1.0
PPTX
top 64 universities of China, their research centers, and researches
PPT
Etika dan Moral Penggunaan TIK
PDF
Webinar: Cloud-Based Web Security as First/Last Line of Defense
Arrays的Sort算法分析
Oracle的Constraint约束V1.1
Java中的Float&Double以及Ieee754研究V1.0
top 64 universities of China, their research centers, and researches
Etika dan Moral Penggunaan TIK
Webinar: Cloud-Based Web Security as First/Last Line of Defense
Ad

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPT
Teaching material agriculture food technology
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Empathic Computing: Creating Shared Understanding
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
cuic standard and advanced reporting.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
A Presentation on Artificial Intelligence
Machine learning based COVID-19 study performance prediction
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Encapsulation_ Review paper, used for researhc scholars
Diabetes mellitus diagnosis method based random forest with bat algorithm
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Teaching material agriculture food technology
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Spectral efficient network and resource selection model in 5G networks
Empathic Computing: Creating Shared Understanding
NewMind AI Weekly Chronicles - August'25-Week II
Building Integrated photovoltaic BIPV_UPV.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Network Security Unit 5.pdf for BCA BBA.
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
cuic standard and advanced reporting.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
A Presentation on Artificial Intelligence
Ad

Oracle中Sql解析过程

  • 1. Oracle中SQL解析过程 -------------------------------------------------------------------------------- The flow of procedure calls will typically look like this: ----------- | open_cursor | ----------- | | v ----- ------------>| parse | | ----- | | | |--------- | v | | -------------- | |-------->| bind_variable | | | ^ ------------- | | | | | | -----------| | | |<-------- | v | query?---------- yes --------- | | | | no | | | | | v v | ------- ------------- |----------->| execute | ->| define_column | | ------- | ------------- | |------------ | | | | | ----------| | v | v | -------------- | ------- | ->| variable_value | | ------>| execute | | | -------------- | | ------- | | | | | | | ----------| | | | | | | | v | | | | ---------- | |<----------- |----->| fetch_rows | | | | ---------- | | | | | | | v | | | -------------------- | | | | column_value | | | | | variable_value | | | | --------------------- | | | | | |<-------------------------- | | -----------------| | v ------------ | close_cursor | ------------ -------------------------------------------------------------------------------- set pagesize 100; SELECT substr(t.text, 5, 1000) FROM all_source t WHERE t.owner = 'SYS' AND t.type = 'PACKAGE' AND t.name = 'DBMS_SQL' AND t.line <= 95 AND t.line >= 38;