Get the App
SLTechnology News&Howtos  ›  Database  › 

How to delete Object table and recycle bin

Shulou Source: shulou.com Published: 2022-05-31 12:12:53 11月16日 Update

This article mainly explains how to delete the Object table and recycle bin. Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "how to delete the Object table and recycle bin"!

I. Synonyms

Oracle synonyms literally mean aliases and function like attempts, a mapping relationship.

create

create public synonym table_name for user.table_name;

undefined

delete

drop public synonym table_name;

II. Deletion of Tables & Recycle Bin

Delete object to Recycle Bin

drop table table_name;

completely delete

DROP TABLE table_name PURGE;

Delete tables in Recycle Bin

purge table [schema.] table[,[ schema.] table ]...

Flashback deleted tables

FLASHBACK TABLE[schema.] table[,[ schema.] table ]...

TO { TIMESTAMP | SCN } expr

[ { ENABLE | DISABLE } TRIGGERS ];

example sentences

DROP TABLE emp2;

SELECT original_name, operation, droptime FROM recyclebin;

FLASHBACK TABLE emp2 TO BEFORE DROP;

III. Contents

Create & modify directory statements

CREATE OR REPLACE DIRECTORY directory_name AS '';

Grant permission to a user

GRANT READ ON DIRECTORY directory_name TO user_name;

delete directory statement

DROP DIRECTORY directory_name;

IV. External tables

syntax

CREATE TABLE ( , … )

ORGANIZATION EXTERNAL

(TYPE

DEFAULT DIRECTORY

ACCESS PARAMETERS

(… ) )

LOCATION ('') ) REJECT LIMIT [0 | | UNLIMITED];

undefined

example sentences

CREATE TABLE oldemp(

fname char(25),

lname CHAR(25))

ORGANIZATION EXTERNAL(

TYPE ORACLE_LOADER

DEFAULT DIRECTORY emp_dir

ACCESS PARAMETERS(

RECORDS DELIMITED BY NEWLINE

NOBADFILE

NOLOGFILE

FIELDS TERMINATED BY ','(

fname POSITION ( 1:20) CHAR,

lname POSITION (22:41) CHAR))

LOCATION ('emp.dat'))

PARALLEL 5

REJECT LIMIT 200;

At this point, I believe that everyone has a deeper understanding of "how to delete the Object table and recycle bin", so let's actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

Tags: Recycle bin example sentence content synonym that is sentence synonym learning practical deeper interest alias function literal practical practical meaning simple operation method more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple vpn MariaDB Huawei Docker