91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

BBED使用

發布時間:2020-06-23 16:22:02 來源:網絡 閱讀:1108 作者:xuwu147220591 欄目:關系型數據庫

BBED是oracle內部使用的工具,9i,10g默認是自帶的,只要編譯一下就可以使用了。

下面我就來編譯一下BBED并且用它來修改下數據:

[oracle@Srv02 ~]$ cd $ORACLE_HOME/rdbms/lib
[oracle@Srv02 lib]$ make -f ins_rdbms.mk $ORACLE_HOME/rdbms/lib/bbed 
[oracle@Srv02 lib]$ cp $ORACLE_HOME/rdbms/lib/bbed /u01/app/oracle/product/db_1/bin/

 

做如上操作后我們就可以直接在任何路徑下面使用BBED了。

下面我使用BBED來修改數據:

1.首先創建個表并插入兩條數據,并查看它的ROWID:

SQL> create table t1(id number,name varchar2(10));

Table created.

SQL> insert into t1 values(1,'xuwu');

1 row created.

SQL> insert into t1 values(2,'xmj');

1 row created.

SQL> insert into t1 values(3,'xnk');

1 row created.

SQL> commit;

Commit complete.

SQL> select * from t1;

        ID NAME
---------- ----------
         1 xuwu
         2 xmj
         3 xnk

SQL> select rowid,dbms_rowid.rowid_relative_fno(rowid) rel_fno,dbms_rowid.rowid_block_number(rowid) blockno,
  2  dbms_rowid.rowid_row_number(rowid) rowno from t1;

ROWID                 REL_FNO    BLOCKNO      ROWNO
------------------ ---------- ---------- ----------
AAAW9mAABAAAOYiAAA          1      58914          0
AAAW9mAABAAAOYiAAB          1      58914          1
AAAW9mAABAAAOYiAAC          1      58914          2

SQL>

查出listfile

SQL> select file#||' '||name||' '||bytes from v$datafile;

FILE#||''||NAME||''||BYTES
--------------------------------------------------------------------------------
1 /u01/app/oracle/oradata/qxptfh01/system01.dbf 503316480
2 /u01/app/oracle/oradata/qxptfh01/undotbs01.dbf 1289748480
3 /u01/app/oracle/oradata/qxptfh01/sysaux01.dbf 429916160
4 /u01/app/oracle/oradata/qxptfh01/users01.dbf 5242880
5 /u01/app/oracle/oradata/qxptfh01/QXDATA01.dbf 524288000
6 /u01/app/oracle/oradata/qxptfh01/QXDATA02.dbf 11639193600
7 /backup/xuwu_tbs.dbf 10737418240

7 rows selected.

把上面查出來的內容放到listfile.txt文件中:

[oracle@Srv02 ~]$ cat listfile.txt 
1 /u01/app/oracle/oradata/qxptfh01/system01.dbf 503316480
2 /u01/app/oracle/oradata/qxptfh01/undotbs01.dbf 1289748480
3 /u01/app/oracle/oradata/qxptfh01/sysaux01.dbf 429916160
4 /u01/app/oracle/oradata/qxptfh01/users01.dbf 5242880
5 /u01/app/oracle/oradata/qxptfh01/QXDATA01.dbf 524288000
6 /u01/app/oracle/oradata/qxptfh01/QXDATA02.dbf 11639193600
7 /backup/xuwu_tbs.dbf 10737418240
[oracle@Srv02 ~]$ pwd
/home/oracle
[oracle@Srv02 ~]$

現在就可以登錄BBED了:

[oracle@Srv02 ~]$ bbed password=blockedit blocksize=8192 listfile=/home/oracle/listfile.txt mode=edit

BBED: Release 2.0.0.0.0 - Limited Production on Thu Nov 27 15:05:11 2014

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

************* !!! For Oracle Internal Use only !!! ***************

BBED> 
BBED> 
BBED>

下面開始修改數據:

BBED> set dba 1,58914
        DBA             0x0040e622 (4253218 1,58914)

BBED> find /c xuwu
 File: /u01/app/oracle/oradata/qxptfh01/system01.dbf (1)
 Block: 58914            Offsets: 8184 to 8191           Dba:0x0040e622
------------------------------------------------------------------------
 78757775 070670b4 

 <32 bytes per line>

BBED> dump /v dba 1,58914 offset 8184 count 4
 File: /u01/app/oracle/oradata/qxptfh01/system01.dbf (1)
 Block: 58914   Offsets: 8184 to 8187  Dba:0x0040e622
-------------------------------------------------------
 78757775                            l xuwu

 <16 bytes per line>

BBED> modify /c 'hehe' dba 1,58914 offset 8184
 File: /u01/app/oracle/oradata/qxptfh01/system01.dbf (1)
 Block: 58914            Offsets: 8184 to 8187           Dba:0x0040e622
------------------------------------------------------------------------
 68656865 

 <32 bytes per line>

BBED> dump /v dba 1,58914 offset 8184 count 4
 File: /u01/app/oracle/oradata/qxptfh01/system01.dbf (1)
 Block: 58914   Offsets: 8184 to 8187  Dba:0x0040e622
-------------------------------------------------------
 68656865                            l hehe

 <16 bytes per line>

BBED> sum apply
Check value for File 1, Block 58914:
current = 0x153c, required = 0x153c

BBED> verify
DBVERIFY - Verification starting
FILE = /u01/app/oracle/oradata/qxptfh01/system01.dbf
BLOCK = 58914


DBVERIFY - Verification complete

Total Blocks Examined         : 1
Total Blocks Processed (Data) : 1
Total Blocks Failing   (Data) : 0
Total Blocks Processed (Index): 0
Total Blocks Failing   (Index): 0
Total Blocks Empty            : 0
Total Blocks Marked Corrupt   : 0
Total Blocks Influx           : 0

BBED> exit

[oracle@Srv02 ~]$ sqlplus / as sysdba
[uniread] Loaded history (799 lines)

SQL*Plus: Release 10.2.0.5.0 - Production on Thu Nov 27 15:09:25 2014

Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select * from t1;

        ID NAME
---------- ----------
         1 xuwu
         2 xmj
         3 xnk

SQL> alter system flush buffer_cache;

System altered.

SQL> select * from t1;

        ID NAME
---------- ----------
         1 hehe
         2 xmj
         3 xnk

SQL>
向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

凯里市| 安新县| 宁晋县| 六枝特区| 弥渡县| 洪雅县| 米易县| 五华县| 桦川县| 司法| 桐柏县| 盘锦市| 刚察县| 东平县| 陇川县| 乌兰察布市| 嘉黎县| 喀喇沁旗| 普定县| 永靖县| 沧源| 北宁市| 广昌县| 宁乡县| 大英县| 施秉县| 桂东县| 柘荣县| 芜湖市| 河曲县| 海林市| 怀安县| 罗甸县| 潮州市| 上虞市| 永济市| 水城县| 铁岭县| 德阳市| 齐齐哈尔市| 务川|