|
| ||||||||||
| Tags: function, materialising, pipeline function, streaming, type |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| pipelined functions in oracle 9i database
I am not familiar with some database objects from earlier.I have started my study from oracle 9i and some one asked me suddenly that have you any idea about pipeline functions in oracle !I was unable to reply for his question.I am entirely unknown from this very concept.So please help and introduce me about this concept. Thanks . |
|
#2
| ||||
| ||||
| pipelined functions in oracle 9i database pipelined functions in oracle 9i database : The Oracle 8.0 introduced with a concept of accessing a collection of data which is usually loaded through a function as a "virtual table".This strategy and technique became available with more features in the 8i timeframe just because of Tom Kyte and number of web forums where "SELECT FROM TABLE(CAST(plsql_function AS collection_type))" became a simple and common technique to bind the lists of data generated by the user. In the upcoming 9i Release 1 (9.0), Oracle has introduced to user with new concept called pipelined table functions are also known as pipelined functions with some advance techniques and reliable form. |
|
#3
| ||||
| ||||
| pipelined functions:Principle of working How Pipeline works : When oracle comes with this new feature called pipelined table functions,It builds on the table function principle but with some critical differentiations and perform the manipulation task in this way: First of all , data is piped also treated as streamed to the caller in a small arrays of prepared data, rather than fully materialized as with original table functions. And in second phase, according to the rule Oracle can parallelise the pipelined functions that means the PL/SQL can be executed by multiple slaves for the first attempt and In the Third phase,pipelined functions make it enable to switch PL/SQL procedures into row sources for heavy SQL operations, concatenating large and complex conversion logic with the benefits of SQL. |
|
#4
| ||||
| ||||
| simple pipelined function in oracle 9i database simple pipelined function : To view the functionality of any pipelined function,we need the following elements to be ready :
Creating Collection type : Code: SQL> CREATE OR REPLACE TYPE number_ntt AS TABLE OF NUMBER;
__________________ Grand Theft Auto 4 PC Video Game |
|
#5
| ||||
| ||||
| Creating pipelined functions in oracle 9i database Creating pipelined functions : Now,you can create your first pipelined function.I will make a simple and standalone function using packaged functions.The code is given below : Quote:
__________________ The FIFA Manager 2009 PC Game |
|
#6
| ||||
| ||||
| Executing pipelined functions in oracle 9i database Execution of pipelined functions : To test the created function, I need fire the SELECT query with the name of pipeline function which will be as follows : Code: SQL> SELECT * FROM TABLE( row_generator(5) ); COLUMN_VALUE ------------ 1 2 3 4 5 5 rows selected. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "pipelined functions in oracle 9i database" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cursor in oracle database | Ainsley | Software Development | 5 | 11-02-2010 05:24 PM |
| Recycle bin in oracle database | Norse | Software Development | 4 | 09-02-2010 09:32 PM |
| Subqueries in oracle database | Landan | Software Development | 4 | 09-02-2010 04:57 PM |
| Oracle Announces TimesTen In-Memory Database 11g and In-Memory Database Cache 11g | prakashseth | Web News & Trends | 1 | 30-07-2009 04:58 PM |
| Single database & multiple functions in web services. | Kiran123 | Software Development | 2 | 31-01-2009 03:24 PM |