Delete, Remove or Drop Oracle Stored Packages with Drop Package Hapus, Hapus atau Drop Oracle Stored Paket dengan Paket Drop
Oracle Package is an object in Oracle database that allows developers and designers to group procedures and functions into common groups, typically based upon their functionality. Package can be treated as the container for functions and procedures. Paket dapat diperlakukan sebagai wadah untuk fungsi-fungsi dan prosedur. A package consists of two sections which is the package specification (export script file will be in .pks extension) which must be declared first and contains a definition of any objects that can be referenced from outside of the package. Sebuah paket terdiri dari dua bagian yang merupakan spesifikasi paket (ekspor file script akan di. Pks ekstensi) yang harus dinyatakan terlebih dahulu dan berisi definisi dari setiap objek yang dapat direferensikan dari luar kemasan. The other section is a package body (export SQL script file will be in .pkb extension) that contains the implementation of the objects or stored procedures within the package. Bagian yang lain adalah tubuh paket (ekspor skrip SQL file akan di. PKB ekstensi) yang berisi pelaksanaan prosedur benda atau disimpan di dalam paket. With package, a procedure can be hidden inside the package by not declaring them in the package specification. Dengan paket, prosedur yang dapat disembunyikan dalam paket dengan tidak menyatakan mereka dalam paket spesifikasi.
At same time you may no longer need a package, and wish to remove, delete, or drop the package from the Oracle database. Pada waktu yang sama Anda mungkin tidak lagi membutuhkan sebuah paket, dan ingin menghapus, menghapus, atau menjatuhkan paket dari database Oracle. To do so, simply use the DROP PACKAGE SQL command statement from SQL*Plus or Toad or other database too to drop a stored package. Untuk melakukannya, cukup gunakan perintah SQL PAKET DROP pernyataan dari SQL * Plus atau Katak atau database lain juga untuk drop paket yang disimpan.
Syntax of the Drop Package Sintaks dari Paket Drop
DROP PACKAGE [BODY] [schema.]package_name; PAKET DROP [BODY] [schema.] Nama_paket;
The optional BODY parameter is specified when you want to drop only the body of the package. BODY parameter opsional ditentukan ketika Anda hanya ingin menjatuhkan tubuh paket. If this option is omitted, Oracle drops both the body and specification of the package. Jika opsi ini dihilangkan, Oracle tetes baik tubuh dan spesifikasi dari paket. If the package to drop is in your own schema, then there is no need to specify the scheme containing the package too, else you will need to put in the appropriate schema name. Jika paket untuk menjatuhkan yang ada dalam skema sendiri, maka tidak ada perlu menentukan skema paket berisi juga, kalau Anda akan perlu untuk memasukkan nama skema yang tepat. Beside, you must have the DROP ANY PROCEDURE system privilege too. Samping, Anda harus memiliki sistem PROSEDUR APAPUN DROP keistimewaan juga.
Note: Do not use this statement to remove a single object from a package. Catatan: Jangan menggunakan pernyataan ini untuk menghapus satu objek dari sebuah paket. Instead, re-create the package without the object using the CREATE PACKAGE and CREATE PACKAGE BODY SQL statements, or by using the SQL command with the OR REPLACE clause. Sebaliknya, ciptakan kembali paket tanpa obyek menggunakan CREATE CREATE PAKET dan PAKET BODY pernyataan SQL, atau dengan menggunakan perintah SQL dengan klausa ATAU REPLACE.
IMPORTANT : The page is machine translated and provided "as is" without warranty. PENTING: Halaman ini adalah mesin diterjemahkan dan diberikan "sebagaimana adanya" tanpa jaminan. Machine translation may be difficult to understand. Terjemahan mesin mungkin sulit untuk mengerti. Please refer to Silakan merujuk ke original English article artikel asli bahasa Inggris whenever possible. bila memungkinkan.
Related Articles Artikel Terkait
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Bagaimana Drop tablespace dan Recover Oracle Database Ketika sengaja Hapus Datafile
- How to Remove and Drop Datafiles from Tablespace in Oracle Database Cara Hapus dan Drop Datafiles dari tablespace di Oracle Database
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle Drop Tabel Error
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 Tabel atau Lihat Tiada Oracle Error
- How to Delete Existing WordPress Post Revisions Stored/Saved Cara Hapus ada Stored Revisi Wordpress Posting / Saved
- Oracle Database Import Error 3113/3114 Kesalahan Impor Oracle Database 3113/3114
- Oracle EXP-00091 Error When Export Database EXP-00091 oracle Error Ketika Ekspor Database
- Oracle Database Link Oracle Database Link
- Check Oracle Version Oracle Periksa Versi
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Membuat, Tambah atau Split Pemisahan Oracle Database Gagal dengan ORA-14080 Error









































