What are features of pl/sql Architecture
PL/SQL stands for Procedural Language Extensions to Structured Query Language. likeasically, SQL is used to perform basic operations of creating a database, storing data in the database, updating data in the database, retrieving the stored data of database, etc, whereas PL/SQL is a fully Structured Procedural language which enables the developer to combine the powers of SQL with its procedural statements.
Features of PL/SQL
The following are some useful features of PL/SQL:
Portable:
Applications written in PL/SQL are portable, meaning they can run on any operating system where Oracle is installed.
Efficient:
Without using an Oracle engine, PL/SQL is capable of effectively doing any kind of calculation. The effectiveness of transactions is enhanced.
Error-checking:
When an error occurs, PL/SQL enables error-checking and shows clear notifications.
Tool for development:
Along with the capabilities of variable declaration, conditional statements, looping and branching, procedures, functions, and triggers, PL/SQL provides the execution of SQL statements.
Processing Exceptions:
The ability of PL/SQL code to handle exceptions that may impact a program's flow contributes to the code's increased reliability.
With the PL/SQL language's aforementioned advantages, the usefulness of PL/SQL programming is demonstrated in actual database-related tasks. because it can perform a variety of logical operations on the database that cannot be carried out with straightforward SQL queries.
For example, Take into account that we have a database for our school's management system, and we want to see a list of students who have applied for admission during the past five years, together with the payments they have made.
Additionally, we wish to provide the total pay paid to both teaching and non-teaching staff. We cannot retrieve these records by just running SQL queries; numerous SQL queries may be necessary in order to collect the data.
However, PL/SQL allows us to build procedures or methods that may be used in a program to execute complicated logic on a database.
Another benefit is that it shows user-friendly alerts and even allows exception handling, making it simple to spot issues.
PL/SQL Architecture
PL/SQL architecture consists of the following three components, below:
The ability of PL/SQL code to handle exceptions that may have an impact on a program's flow makes the code more dependable.
With the PL/SQL language's aforementioned advantages, the usefulness of PL/SQL programming is demonstrated in actual database-related tasks.
Because it can perform a variety of logical operations on the database that cannot be carried out with straightforward SQL queries.
Consider the situation where we wish to view the list of students who applied for admission to the school in the last five years and the fees they paid.
We have a database for the school's administration system. Additionally, we wish to provide the total pay paid to both teaching and non-teaching staff. We are unable to retrieve these records using only SQL queries.
It would take several SQL queries, but we might be able to collect the data.
To execute complicated logic on a database, we can build procedures or methods in PL/SQL scripts if we choose to do so. Another benefit is that it shows user-friendly warnings and even enables exceptions, making it easy to spot issues.
Conclusion
Comparatively speaking, it is much better than DBMS JOB. Both PL/SQL code units (stored procedures and anonymous blocks) and operating system executables can be scheduled for execution using the Scheduler.
It enables you to specify a calendar indicating the intended execution times using a notation that is eerily similar to English. The DBMS SCHEDULER built-in package contains APIs for all Scheduler-related tasks.
Additionally, Oracle Database 10g's Enterprise Manager has a graphical user interface for managing job scheduling, making it incredibly simple for anyone using the tool for the first time.
Comments
Post a Comment