一:表的恢複 對誤刪的表,只要沒有使用PURGE永久刪除選項,那麼從flash back區恢複回來希望是挺大的。一般步驟有:1、從flash back裡查詢被刪除的表 select * from recyclebin2.執行表的恢複 flashback table tb to before drop,這裡的tb代表你要恢複的表的名稱。二:表資料恢複 對誤刪的表記錄,只要沒有truncate語句,就可以根據事務的提交時間進行選擇恢複,一般步驟有:
--刪除表--drop table account;--學生資訊表--create table student(STU_ID number(10) NOT NULL,STU_NAME varchar2(20) NOT NULL,STU_SEX CHAR(5) NOT NULL,STU_BIRTHDAY date NOT NULL,constraint PK_STUDENT PRIMARY KEY(STU_ID)--設為主健);--插入資料--insert into student select
/*建立新表用COURSE表為模板,建立一張新表COURSE_NEW,並且包括COURSE表的所有記錄。*/--刪除已存在的表DROP TABLE course_new;CREATE TABLE course_new AS SELECT * FROM COURSE;select * from course_new/*清空COURSE_NEW表中的所有記錄。*/TRUNCATE TABLE
---建立學生表---create table student(STU_NO number(10) NOT NULL,STU_NAME varchar2(20) NOT NULL,STU_AGE number(10) NOT NULL,constraint PK_STUDENT PRIMARY KEY(STU_NO)--設為主健);---插入資料---insert into student select 1001,'AE','12' from dual union select 10
文章目錄 RollbackRead ConsistencyFlashbackACTIVEEXPIREDUNEXPIREDSummary‘Normal’ operationOut of Free/EXPIRED extentsOut of Undo spaceRetention to large or UNDO to small?Fixed SizeFixed Size, out of UNEXPIRED extents? Check
Issue:When you create a instance and a database after your install Oracle 10g. You may come across following exception in D:/oracle/product/10.2.0/db_2/BIN/sqlnet.log*********************************************************************** Fatal NI