|
Answer» The PL/SQL engine does the process of compilation and execution of the PL/SQL blocks and programs and can only work if it is installed on an Oracle server or any application tool that supports Oracle such as Oracle Forms. - PL/SQL is one of the parts of Oracle RDBMS, and it is important to know that most of the Oracle applications are developed using the client-server architecture. The Oracle database forms the server-side and requests to the database form a part of the client-side.
- So based on the above fact and the fact that PL/SQL is not a standalone programming language, we must realize that the PL/SQL engine can RESIDE in EITHER the client environment or the server environment. This MAKES it easy to move PL/SQL modules and sub-programs between server-side and client-side applications.
- Based on the architecture shown below, we can UNDERSTAND that PL/SQL engine plays an important role in the process and execute the PL/SQL statements and whenever it encounters the SQL statements, they are sent to the SQL Statement Processor.
- Case 1: PL/SQL engine is on the server: In this case, the whole PL/SQL block gets passed to the PL/SQL engine present on the Oracle server which is then processed and the response is sent.
- Case 2: PL/SQL engine is on the client: Here the engine lies within the Oracle Developer tools and the processing of the PL/SQL statements is done on the client-side.
- In case, there are any SQL statements in the PL/SQL block, then they are sent to the Oracle server for SQL processing.
- When there are no SQL statements, then the whole block processing occurs at the client-side.
|