Delete, Remove or Drop Oracle Stored Packages with Drop Package Ištrinti, pašalinti ar upuść Oracle Saugojamų Paketai su upuść paketo
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. Oracle Komplektas yra objektas "Oracle" duomenų bazę, kuri leidžia kūrėjams ir dizainerių grupės procedūrų ir funkcijų į bendrąsias grupes, dažniausiai remiasi savo funkcionalumą. Package can be treated as the container for functions and procedures. Komplektas gali būti laikomas konteineris funkcijas ir procedūras. 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. Paketas susideda iš dviejų skyrių, kuris yra pakuotėje specifikacija (eksportui failą scenarijų bus. PKS pratęsimo), kuris turi būti paskelbtas pirmasis ir yra apibrėžimą bet koks objektų, kurie gali būti pateikiami ne iš pakuotės. 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. Kitų skyrių paketą įstaiga (eksporto scenarijų SQL bus. PKB pratęsimo), kad yra įgyvendinti objektus arba laikomų procedūros paketą. With package, a procedure can be hidden inside the package by not declaring them in the package specification. Su paketu, procedūra gali būti paslėpta viduje paketą nėra skelbiama jų pakuotės specifikacijos.
At same time you may no longer need a package, and wish to remove, delete, or drop the package from the Oracle database. Tuo pačiu metu galite nebereikia paketą, ir norite ištrinti, pašalinti ar sumažinti pakuotės iš Oracle duomenų bazės. 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. Norėdami tai padaryti, tiesiog naudokite DROP PAKUOTĖS SQL komandų pareiškimą SQL * Plus arba rupūžė ar kitų duomenų bazę per kritimas saugomas pakete.
Syntax of the Drop Package Sintaksė Drop paketo
DROP PACKAGE [BODY] [schema.]package_name; DROP PAKUOTĖS [organai] [schemos.] Package_name;
The optional BODY parameter is specified when you want to drop only the body of the package. Neprivaloma organai parametras yra nurodyta, kada norite išskleidžiamajame tik kūno pakuotėje. If this option is omitted, Oracle drops both the body and specification of the package. Jei ši parinktis nėra, Oracle lašai tiek kūno ir specifikacija pakuotėje. 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. Jei paketą lašas yra savo schemą, tada nereikia nurodyti schemą turinčių pakete taip pat dar turėsite perkelti į atitinkamą schema. Beside, you must have the DROP ANY PROCEDURE system privilege too. Greta, tu turi DROP BŪTINA PROCEDŪRA sistemos privilegija per.
Note: Do not use this statement to remove a single object from a package. Pastaba: nenaudokite šio pareiškimo pašalinti vieną objektą iš pakuotės. 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. Vietoj to, iš naujo sukurkite paketą be objekto naudojant CREATE PAKUOTĖS IR PAKUOTĖS organai SQL arba naudojant SQL komandą su OR REPLACE sąlyga.
IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Mašininio vertimo, gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.
Related Articles Susiję straipsniai
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Kaip upuść Tablespace ir Atkurti duomenų bazę Oracle Kai atsitiktinai Ištrinti Datafile
- How to Remove and Drop Datafiles from Tablespace in Oracle Database Kaip pašalinti ir upuść Datafiles iš Tablespace į duomenų bazę Oracle
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle Drop Table Klaida
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 lentelė ar vaizdas nėra Oracle Klaida
- How to Delete Existing WordPress Post Revisions Stored/Saved Kaip ištrinti Esamas WordPress Rašyti Taisoma Saugojamų / Išsaugota
- Oracle Database Import Error 3113/3114 Oracle Importo Klaida 3113/3114
- Oracle EXP-00091 Error When Export Database "Oracle" Tinka iki-00091 Klaida Eksporto duomenų bazė
- Oracle Database Link Oracle Nuoroda
- Check Oracle Version Pabandykite Oracle versija
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Naujas, Pridėti arba Splitu Oracle Pasiskirstymo fails su ORA-14080 Klaida









































