PL/SQL nedir? Açılımı ve açılımı nedir? Archidoku Açıklaması

⚡ Akıllı Özet

PL/SQL Oracle’s procedural extension to SQL that combines the data manipulation power of SQL with loops, conditions, and object-oriented features. It runs through a three-part architecture of PL/SQL block, PL/SQL engine, and database server for high-performance processing.

  • 🧩 Temel Tanım: PL/SQL means Procedural Language extensions to SQL, adding procedural logic to declarative queries.
  • 🏛️ Archidoku: A PL/SQL block, the PL/SQL engine, and the database server work together to process code.
  • ⚙️ Engine Split: The engine handles procedural units itself and sends the SQL part to the database server.
  • 🧱 Blok Türleri: Anonymous block, function, procedure, package, trigger, and type are the main PL/SQL units.
  • ???? Avantajları: Bulk SQL execution, tight SQL integration, portability, security, and object-oriented support.
  • ⚠️ Sınırlamalar: Stored procedures use high memory and offer limited debugging.
  • 🔀 SQL vs PL/SQL: SQL is a single declarative statement; PL/SQL is a procedural block that can contain SQL.

PL/SQL Full Form and Archidoku

PL/SQL nedir?

Oracle PL / SQL is an extension of the SQL language that combines the data manipulation power of SQL with the processing power of a procedural language to create powerful SQL queries. PL/SQL ensures seamless processing of SQL statements by enhancing the security, portability, and robustness of the database.

PL/SQL means instructing the compiler “what to do” through SQL and “how to do” through its procedural way. Similar to other database languages, it gives more control to programmers through the use of loops, conditions, and object-oriented concepts. The PL/SQL full form is “Procedural Language extensions to SQL”.

PL/SQL Tam Form

PL/SQL, “Yapılandırılmış Sorgu Dilinin Prosedürel Dil uzantıları” anlamına gelir. PL/SQL Oracle Şirketin prosedür uzatması SQL ve Oracle ilişkisel veritabanı. Yüksek performanslı, son derece entegre bir veritabanı dilidir.

What is a PL/SQL Developer?

PL / SQL Geliştirici is an Integrated Development Environment used to develop software in the Oracle database environment and perform various database tasks with ease. The PL/SQL Developer IDE provides a GUI and plugins that help end users save time on their database tasks.

ArchiPL/SQL'in yapısı

The example below is a pictorial representation of the PL/SQL architecture.

PL / SQL Archidoku şeması
PL / SQL Archidoku şeması

The PL/SQL architecture mainly consists of the following three components:

  1. PL/SQL Bloğu
  2. PL/SQL Motoru
  3. Veritabanı sunucusu

PL/SQL Bloğu

  • This is the component that has the actual PL/SQL code.
  • It consists of different sections that divide the code logically: a declarative section for declarations, an execution section for processing statements, and an exception-handling section for handling errors.
  • It also contains the SQL instructions used to interact with the database server.
  • All PL/SQL units are treated as PL/SQL blokları, and this is the starting stage of the architecture, which serves as the primary input.

The different types of PL/SQL units are:

  • Anonim Blok
  • İşlev
  • Kütüphane
  • Prosedür
  • Paket Gövdesi
  • Paket özellikleri
  • Tetik
  • Menşei
  • Tip Gövde

PL/SQL Motoru

  • The PL/SQL engine is the component where the actual processing of the code takes place.
  • It separates the PL/SQL units and the SQL part in the input.
  • The separated PL/SQL units are handled by the PL/SQL engine itself.
  • The SQL part is sent to the database server, where the actual interaction with the database takes place.
  • It can be installed in both the database server and the application server.

Veritabanı sunucusu

  • This is the most important component of the PL/SQL unit, which stores the data.
  • The PL/SQL engine uses the SQL from the PL/SQL units to interact with the database server.
  • It consists of an SQL executor that parses the input SQL statements and executes them.

Features and Advantages of PL/SQL

  1. Better performance, as SQL is executed in bulk rather than one statement at a time.
  2. Yüksek verimlilik.
  3. Tight integration with SQL.
  4. Full portability.
  5. Tight security.
  6. Supports object-oriented programming concepts.
  7. Scalability and manageability.
  8. Supports web application development.
  9. Supports server page development.

PL/SQL'in dezavantajları

  1. Stored procedures in PL/SQL use high memory.
  2. It lacks functionality for debugging stored procedures.
  3. Any change in the underlying database requires a change in the presentation layer as well.
  4. It does not completely separate the roles of back-end and front-end developers.
  5. It is difficult to separate HTML development from PL/SQL development.

Difference Between SQL and PL/SQL

İşte aralarındaki bazı önemli farklar: SQL ve PL/SQL:

SQL PL / SQL
SQL is a single query used to perform DML and DDL operations. PL/SQL is a block of code used to write entire program blocks, procedures, functions, and so on.
It is declarative, defining what needs to be done rather than how. It is procedural, defining how things need to be done.
Executes as a single statement. Executes as a whole block.
Esas olarak verileri işlemek için kullanılır. Esas olarak bir uygulama oluşturmak için kullanılır.
Interacts directly with the database server. The block itself has no direct interaction; its SQL part does.
Cannot contain PL/SQL code. It is an extension of SQL, so it can contain SQL inside it.

Having seen how PL/SQL fits together, the next step is to learn its building block, covered under PL/SQL blokları.

SSS

SQL is a declarative language that runs one statement at a time. PL/SQL is a procedural language that groups statements into a block with loops, conditions, and error handling, and it can embed SQL inside it.

The engine processes the procedural parts of a block itself and forwards the SQL parts to the database server. This split is what lets PL/SQL run bulk logic close to the data.

Yes. PL/SQL is Oracle’s proprietary extension and performs best with the Oracle database. Other databases use their own procedural languages, such as PostgreSQL’s PL/pgSQL or SQL Server’s T-SQL.

Yes. AI can draft a procedure or trigger from a description and explain existing code line by line. Review the output, because business rules and edge cases still need a developer’s judgement.

PL/SQL sends a whole block to the server at once instead of many separate statements. This reduces network round trips and lets related SQL run together, which improves throughput on large workloads.

Bu yazıyı şu şekilde özetleyin: