Delete, Remove or Drop Oracle Stored Packages with Drop Package Izdzēst, noņemšana vai Drop Oracle Stored iepakojumi ar Drop Package
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 paketē, ir objekts Oracle datu bāzi, kas ļauj izstrādātājiem un dizaineriem grupu procedūras un funkcijas parastajās grupās, parasti pamatojoties uz to funkcionalitāti. Package can be treated as the container for functions and procedures. Iesaiņojumā, var uzskatīt par konteiners funkcijas un 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. Pakete sastāv no divām daļām, kas ir iepakojuma specifikācijā (eksporta skripta fails tiks. PKS pagarināšana), kas ir atzīstama par pirmo un satur definīcijas jebkuru priekšmetu, kas var būt atsauces no ārpus iepakojuma. 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. Pārējās iedaļas ir paketes struktūra (eksporta SQL skripta fails tiks. PKB pagarinājuma), kas satur īstenošanas objektu vai glabā procedūras paketes. With package, a procedure can be hidden inside the package by not declaring them in the package specification. Ar ceļojumu, procedūru var paslēpies paketes nav atzīstot tās iepakojuma specifikācijā.
At same time you may no longer need a package, and wish to remove, delete, or drop the package from the Oracle database. Tajā pašā laikā jums vairs nav vajadzīga paketi, un vēlaties noņemt, izdzēst vai piliens paketes no Oracle datu bāzes. 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. Lai to izdarītu, vienkārši izmantojiet DROP LIETOŠANAS SQL komandu paziņojumu no SQL * Plus vai krupis vai citas datu bāzes arī sastādīt uzglabā iepakojumā.
Syntax of the Drop Package Sintaksi Drop Package
DROP PACKAGE [BODY] [schema.]package_name; DROP pakete [BODY] [schema.] Package_name;
The optional BODY parameter is specified when you want to drop only the body of the package. Izvēles BODY parametrs ir, ja vēlaties nomest tikai struktūras paketē. If this option is omitted, Oracle drops both the body and specification of the package. Ja šī opcija ir izlaists, Oracle pilieni gan ķermeņa un specifikāciju paketi. 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. Ja iepakojuma samazināties ir jūsu pašu shēmu, tad nav nepieciešams noteikt sistēmu, kurā paketē arī citādi jums būs nepieciešams īstenot atbilstīgu shēmas nosaukumu. Beside, you must have the DROP ANY PROCEDURE system privilege too. Blakus, Jums ir jābūt DROP nevienu procedūru sistēmu privilēģija too.
Note: Do not use this statement to remove a single object from a package. Piezīme: Nelietojiet šo deklarāciju, lai novērstu vienu objektu no iepakojuma. 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. Vietā, no jauna izveidot paketi bez objektu izmantošanas CREATE LIETOŠANAS un CREATE LIETOŠANAS BODY SQL paziņojumus vai izmantojot SQL komandu ar OR REPLACE klauzulu.
IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: lapa mašīna iztulkot un pasniegts tàds, "kàds tas ir" bez garantijas. Machine translation may be difficult to understand. Mašīntulkošanas var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.
Related Articles Saistītie raksti
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Kā Drop Tablespace un atgūt Oracle Database Kad Nejauši Dzēst datni
- How to Remove and Drop Datafiles from Tablespace in Oracle Database Kā noņemt un Drop Datafiles no Tablespace in Oracle Database
- ORA-02449 Oracle Drop Table Error ORA-02.449 Oracle Drop tabula Kļūda
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00.942 tabulā vai View neeksistē Oracle Kļūda
- How to Delete Existing WordPress Post Revisions Stored/Saved Kā izdzēst esošos WordPress Post Revisions Saglabātā / Saved
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 kļūdu Export Database
- Oracle Database Import Error 3113/3114 Oracle Database Import Error 3113/3114
- Oracle Database Link Oracle Database Link
- Check Oracle Version Check Oracle Version
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Izveidot, pievienošana vai Split Oracle Database Partition neizdodas, ORA-14.080 Kļūda









































