The name bbed is an acronym for Block Browser and EDitor and it is shipped with thedatabase. It is intended for Oracle internal use only and the company neverpublishes any details about it. It is a very powerful tool but also extremelydangerous since it can change and/or corrupt data blocks of any Oracledatabase.
If you use this tool, you do so at your own risk. Any modifications made with thistool render the database unsupported by Oracle.
BBED: Release 2.0.0.0.0 - Limited Production on Tue Jan 27 05:56:31 2015
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
************* !!! For Oracle Internal Use only !!! *************** ----謹(jǐn)慎使用,No Zuo No Die~~~
5.查看未修改的表狀態(tài):
SQL> select * from summary;
ID INFO
---------- ----------------------------
1 Eric Gao is a Oracle DBA
1 Eric Gao is a PostgreSQL DBA
1 Eric Gao is a AIX SA
1 Eric Gao is a Linux SA
6.查看物理信息:
SQL> select rowid,dbms_rowid.rowid_relative_fno(rowid) rel_fno,dbms_rowid.rowid_block_number(rowid) blockno,dbms_rowid.rowid_row_number(rowid) rowno from summary;
11.保存:
BBED> sum dba 4,653
Check value for File 4, Block 653:
current = 0x7bcf, required = 0x5bcf
BBED> sum dba 4,653 apply
Check value for File 4, Block 653:
current = 0x5bcf, required = 0x5bcf
12.驗(yàn)證修改成果
SQL> conn eric
SQL> alter system flush buffer_cache;
System altered.
SQL> select * from summary;
ID INFO
---------- ----------------------------
1 Eric Gao is a ORACLE DBA -----可以看到該數(shù)據(jù)已經(jīng)由原來的Oracle修改成了ORACLE。
1 Eric Gao is a PostgreSQL DBA
1 Eric Gao is a AIX SA
1 Eric Gao is a Linux SA
OK!修改完成!
PS:這是個(gè)非常2的測試,完全可以用語句: update summary set info='Eric Gao is a ORACLE DBA' where info='Eric Gao is a ORACLE DBA'; 修改過來...
本次實(shí)驗(yàn)僅為了提供簡單的BBED小小手術(shù)刀操作體驗(yàn)。
SQL> update summary set info='Eric Gao is a Oracle DBA' where info='Eric Gao is a ORACLE DBA';
1 row updated.
SQL> select * from summary;
ID INFO
---------- ----------------------------
1 Eric Gao is a ORACLE DBA
1 Eric Gao is a PostgreSQL DBA
1 Eric Gao is a AIX SA
1 Eric Gao is a Linux SA