Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to restore Oracle Delete table

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article will explain in detail how to restore the Oracle Delete table, the content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Oracle Delete recovery (ODU)

The data in the table is DELETE

(1) set the parameter unload_deleted to YES

(2) generate data dictionary: unload dict

(3) recovery table: unload table username.tablename

-Simulation erroneous deletion

Create table t0 as select * from dba_objects

Create table t0_bak as select * from t0

Select count (*) from t0;-86159

Delete t0 where object_id > 85000; commit

Select count (*) from t0;-84141

One: set the parameter unload_deleted to YES

Second: generate a data dictionary

Three: restore the table

Rename t0 to tt0

CREATE TABLE "CHEN". "T0"

(

"OWNER" VARCHAR2 (30)

"OBJECT_NAME" VARCHAR2

"SUBOBJECT_NAME" VARCHAR2 (30)

"OBJECT_ID" NUMBER

"DATA_OBJECT_ID" NUMBER

"OBJECT_TYPE" VARCHAR2 (19)

"CREATED" DATE

"LAST_DDL_TIME" DATE

"TIMESTAMP" VARCHAR2 (19)

"STATUS" VARCHAR2 (7)

"TEMPORARY" VARCHAR2 (1)

"GENERATED" VARCHAR2 (1)

"SECONDARY" VARCHAR2 (1)

"NAMESPACE" NUMBER

"EDITION_NAME" VARCHAR2 (30)

);

Four: load the data into the database through sqlldr

5: validate data

Select count (*) from t0;-86159

Select * from t0 where object_id > 85000

On how to restore the Oracle Delete table to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report