Delete, Remove or Drop Oracle Stored Packages with 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. אורקל חבילה הוא אובייקט במסד נתונים אורקל המאפשר למפתחים למעצבים נהלים קבוצת פונקציות לקבוצות משותף, בדרך כלל בהתבסס על הפונקציונליות שלהם. Package can be treated as the container for functions and procedures. החבילה ניתן לטפל כמו המיכל עבור פונקציות ופרוצדורות. 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. החבילה מורכבת משני חלקים אשר מפרט החבילה (קובץ סקריפט הייצוא יהיה. PKS הרחבה) אשר חייב להיות הכריז הראשון מכיל הגדרה של כל האובייקטים שיכולים להיות מופנים מבחוץ של החבילה. 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. החלק השני הוא הגוף החבילה (ייצוא קובץ Script של SQL יהיה סיומת. Pkb) המכיל את היישום של אובייקטים או stored procedures בתוך החבילה. With package, a procedure can be hidden inside the package by not declaring them in the package specification. עם החבילה, הליך יכולה להיות חבויה בתוך החבילה לא להצהיר על ידי אותם מפרט את החבילה.
At same time you may no longer need a package, and wish to remove, delete, or drop the package from the Oracle database. בו זמנית אתה עלול כבר לא צריך חבילה, ורוצים להסיר, למחוק, או להוריד את חבילת ממסד הנתונים של אורקל. 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. כדי לעשות זאת, פשוט להשתמש במשפט DROP PACKAGE SQL פקודה מ-SQL * Plus או קרפדות או נתונים אחרים גם לירידה חבילת מאוחסן.
Syntax of the Drop Package התחביר של חבילת זרוק
DROP PACKAGE [BODY] [schema.]package_name; PACKAGE DROP [BODY] [סכימה.] Package_name;
The optional BODY parameter is specified when you want to drop only the body of the package. הפרמטר BODY אופציונלי מוגדר כאשר אתה רוצה להוריד רק את הגוף של החבילה. If this option is omitted, Oracle drops both the body and specification of the package. אם אפשרות זו מושמט, אורקל טיפות הן את הגוף ואת המפרט של החבילה. 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. אם את החבילה טיפה הוא בסכמת שלך, אז אין צורך לציין את ערכת המכילה את חבילת מדי, אחרת תצטרך לשים שם את הסכימה המתאימה. Beside, you must have the DROP ANY PROCEDURE system privilege too. ליד, עליך להיות בעל הרשאת DROP PROCEDURE כל המערכת מדי.
Note: Do not use this statement to remove a single object from a package. הערה: אל תשתמש הצהרה להסיר אובייקט יחיד מתוך חבילה. 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. במקום, ליצור מחדש את החבילה בלי האובייקט שימוש בחבילת ליצור Create Package BODY הדוחות של SQL, או באמצעות פקודת SQL עם סעיף או להחליף.
IMPORTANT : The page is machine translated and provided "as is" without warranty. חשוב: הדף מכונת תירגם מתפרסם "כמות שהוא" ללא אחריות. Machine translation may be difficult to understand. תרגום מכונה יכול להיות קשה להבין. Please refer to נא עיין original English article המאמר המקורי באנגלית whenever possible. בכל הזדמנות אפשרית.
Related Articles מאמרים קשורים
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile איך זרוק Tablespace ולשחזר Oracle Database כאשר בטעות מחק Datafile
- How to Remove and Drop Datafiles from Tablespace in Oracle Database כיצד להסיר ושחרר Datafiles מ Tablespace ב Oracle Database
- ORA-02449 Oracle Drop Table Error ORA-02449-Oracle זרוק טבלה שגיאה
- ORA-00942 Table or View Does Not Exist Oracle Error ORA-00942 או לוח האם לא הצג שגיאה אורקל Exist
- How to Delete Existing WordPress Post Revisions Stored/Saved כיצד למחוק קיימות מהדורות פוסט וורדפרס המאוחסנים / שמורים
- Oracle EXP-00091 Error When Export Database אורקל EXP-00091 שגיאה בעת ייצוא מסד נתונים
- Oracle Database Import Error 3113/3114 Oracle Database ייבוא שגיאה 3113/3114
- Oracle Database Link קישור מסד נתונים אורקל
- Check Oracle Version בדוק אורקל גירסה
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error צור, הוספה או פיצול Oracle Database החלוקה נכשל עם שגיאה ORA-14080









































