Skip Headers
Oracle® Database SQL Language Reference
11g Release 2 (11.2)

Part Number E26088-02
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub
SQLRF01810

DROP TYPE BODY

Purpose

Object types are defined using PL/SQL. Please refer to Oracle Database PL/SQL Language Reference for complete information on creating, altering, and dropping object types.

Use the DROP TYPE BODY statement to drop the body of an object type, varray, or nested table type. When you drop a type body, the object type specification still exists, and you can re-create the type body. Prior to re-creating the body, you can still use the object type, although you cannot call the member functions.

Prerequisites

The object type body must be in your own schema or you must have the DROP ANY TYPE system privilege.

Syntax

SQLRF54968drop_type_body::=

Description of drop_type_body.gif follows
Description of the illustration drop_type_body.gif

Semantics

SQLRF54969schema

Specify the schema containing the object type. If you omit schema, then Oracle Database assumes the object type is in your own schema.

SQLRF54970type_name

Specify the name of the object type body to be dropped.

SQLRF54971Restriction on Dropping Type Bodies You can drop a type body only if it has no type or table dependencies.

Example

SQLRF54972Dropping an Object Type Body: Example The following statement removes object type body data_typ1. See Oracle Database PL/SQL Language Reference for the example that creates this object type.

DROP TYPE BODY data_typ1;
Reader Comment

   

Comments, corrections, and suggestions are forwarded to authors every week. By submitting, you confirm you agree to the terms and conditions. Use the OTN forums for product questions. For support or consulting, file a service request through My Oracle Support.

Hide Navigation

Quick Lookup

Database Library · Master Index · Master Glossary · Book List · Data Dictionary · SQL Keywords · Initialization Parameters · Advanced Search · Error Messages

Main Categories

This Document

New and changed documents:
RSS Feed HTML RSS Feed PDF