Delete, Remove or Drop Oracle Stored Packages with Drop Package Eliminare, rimuovere o Drop Oracle Stored Packages con 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. Pacchetto Oracle è un oggetto nel database Oracle che permette agli sviluppatori e ai progettisti di gruppo di procedure e funzioni in comune i gruppi, di solito basato sulla loro funzionalità. Package can be treated as the container for functions and procedures. Pacchetto può essere trattata come contenitore per le funzioni e le procedure. 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. Un pacchetto si compone di due sezioni, che è il pacchetto specifica (esportazione file di script sarà. PKS estensione) che devono essere dichiarate prima e contiene una definizione di oggetti che possono essere di riferimento al di fuori del pacchetto. 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. L'altra sezione è un pacchetto corpo (esportare il file di script SQL sarà. PKB estensione) che contiene l'applicazione degli oggetti o stored procedure all'interno del pacchetto. With package, a procedure can be hidden inside the package by not declaring them in the package specification. Con il pacchetto, una procedura che può essere nascosta all'interno del pacchetto non dichiara nel pacchetto disciplinare.
At same time you may no longer need a package, and wish to remove, delete, or drop the package from the Oracle database. Al tempo stesso non si può più bisogno di un pacchetto, e si desidera rimuovere, eliminare, o far cadere il pacchetto del 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. Per farlo, è sufficiente utilizzare il comando SQL DROP PACCHETTO dichiarazione da SQL * Plus o Toad o di altri dati troppo a goccia una stored pacchetto.
Syntax of the Drop Package Sintassi del Drop Package
DROP PACKAGE [BODY] [schema.]package_name; PACCHETTO DROP [BODY] [schema.] Package_name;
The optional BODY parameter is specified when you want to drop only the body of the package. Il parametro opzionale BODY è specificato se si desidera calo solo il corpo del pacchetto. If this option is omitted, Oracle drops both the body and specification of the package. Se questa opzione viene omessa, Oracle gocce sia il corpo e la specificazione del pacchetto. 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. Se il pacchetto è in calo per il proprio schema, quindi non c'è bisogno di specificare il regime contenente il pacchetto di troppo, altrimenti si avrà bisogno di mettere in un apposito schema di denominazione. Beside, you must have the DROP ANY PROCEDURE system privilege too. Accanto, è necessario che il sistema DROP ALCUNA PROCEDURA privilegio troppo.
Note: Do not use this statement to remove a single object from a package. Nota: Non utilizzare questa dichiarazione per rimuovere un oggetto da un unico pacchetto. 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. Invece, ri-creare il pacchetto senza l'oggetto utilizzando la CREARE PACCHETTO e SQL CREATE PACKAGE BODY dichiarazioni, o utilizzando il comando SQL con la O SOSTITUIRE clausola.
IMPORTANT : The page is machine translated and provided "as is" without warranty. IMPORTANTE: La pagina è tradotta macchina e forniti "come è" senza garanzia. Machine translation may be difficult to understand. La traduzione automatica può essere difficile da capire. Please refer to Si prega di fare riferimento a original English article articolo originale inglese whenever possible. ogniqualvolta ciò sia possibile.
Related Articles Articoli correlati
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Come goccia Tablespace e Recover Oracle Database Quando accidentalmente Elimina datafile
- How to Remove and Drop Datafiles from Tablespace in Oracle Database Come rimuovere e da Drop Datafiles Tablespace in Oracle Database
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle goccia tabella di errore
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 tabella o vista non esiste errore di Oracle
- How to Delete Existing WordPress Post Revisions Stored/Saved Come eliminare quelle esistenti WordPress Post Revisioni stored / salvati
- Oracle Database Import Error 3113/3114 Oracle Database di errore di importazione 3113/3114
- Oracle EXP-00091 Error When Export Database Oracle EXP-00091 Errore Quando Esporta database
- Oracle Database Link Oracle Database Link
- Check Oracle Version Check Oracle Version
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Creare, aggiungere o Spalato Oracle Database partizione non riesce con ORA-14080 Errore









































