oracle文件头0号块损坏的处理
oracle文件头0号块只存放操作系统信息,包括文件大小和数据块大小,比如8192
如果0号块损坏,bbed无法识别拷贝,可以通过bvi的方式直接根据相同文件大小的数据文件修改前32个字节即可。可以用dd覆盖字节。
工作中需要将A文件填充到B文件中的C开始处,长度为D。dd if=A of=B bs=1 seek=C count=D conv=notrunc修改后B文件长度不变。notrunc:不截短输出文件
如果数据库是在线的情况下,可以尝试resize文件大小。
参考:
http://blog.itpub.net/267265/viewspace-2128267/
https://www.askmaclean.com/archives/oracle-%E5%A6%82%E4%BD%95%E5%9C%A8os-%E6%95%B0%E6%8D%AE%E6%96%87%E4%BB%B6%E5%A4%B4%E9%83%A8%E9%9B%B6%E5%9D%97-ora-27047-dbv-107-ora-1157ora-27048%E4%B8%AD%E6%A3%80%E6%B5%8B%E5%92%8C%E4%BF%AE.html
[oracle@saperp ~]$ cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)
[oracle@saperp ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Wed Apr 29 16:10:38 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
PL/SQL Release 11.2.0.4.0 - Production
CORE 11.2.0.4.0 Production
TNS for Linux: Version 11.2.0.4.0 - Production
NLSRTL Version 11.2.0.4.0 - Production
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@saperp ~]$ cd $ORACLE_HOME/rdbms/lib
[oracle@saperp lib]$ ls -l $ORACLE_HOME/bin/bbed
ls: cannot access /home/db/oracle/product/11.2.0/db_1/bin/bbed: No such file or directory
[oracle@saperp lib]$ make -f $ORACLE_HOME/rdbms/lib/ins_rdbms.mk BBED=$ORACLE_HOME/bin/bbed $ORACLE_HOME/bin/bbed
Linking BBED utility (bbed)
rm -f /home/db/oracle/product/11.2.0/db_1/bin/bbed
gcc -o /home/db/oracle/product/11.2.0/db_1/bin/bbed -m64 -z noexecstack -L/home/db/oracle/product/11.2.0/db_1/rdbms/lib/ -L/home/db/oracle/product/11.2.0/db_1/lib/ -L/home/db/oracle/product/11.2.0/db_1/lib/stubs/ /home/db/oracle/product/11.2.0/db_1/lib/s0main.o /home/db/oracle/product/11.2.0/db_1/rdbms/lib/ssbbded.o /home/db/oracle/product/11.2.0/db_1/rdbms/lib/sbbdpt.o `cat /home/db/oracle/product/11.2.0/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -ldbtools11 -lclntsh `cat /home/db/oracle/product/11.2.0/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /home/db/oracle/product/11.2.0/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnnz11 -lzt11 -lztkg11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lmm -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 `cat /home/db/oracle/product/11.2.0/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /home/db/oracle/product/11.2.0/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 `cat /home/db/oracle/product/11.2.0/db_1/lib/sysliblist` -Wl,-rpath,/home/db/oracle/product/11.2.0/db_1/lib -lm `cat /home/db/oracle/product/11.2.0/db_1/lib/sysliblist` -ldl -lm -L/home/db/oracle/product/11.2.0/db_1/lib
gcc: error: /home/db/oracle/product/11.2.0/db_1/rdbms/lib/ssbbded.o: No such file or directory
gcc: error: /home/db/oracle/product/11.2.0/db_1/rdbms/lib/sbbdpt.o: No such file or directory
make: *** [/home/db/oracle/product/11.2.0/db_1/bin/bbed] Error 1
[oracle@saperp lib]$ ll ins_rdbms.mk
-rwxr-xr-x. 1 oracle oinstall 45073 Sep 13 2019 ins_rdbms.mk
[oracle@saperp lib]$ pwd
/home/db/oracle/product/11.2.0/db_1/rdbms/lib
[oracle@saperp lib]$ ll sbbdpt.o
ls: cannot access sbbdpt.o: No such file or directory
[oracle@saperp lib]$ ll ssbbded.o
ls: cannot access ssbbded.o: No such file or directory
[oracle@saperp lib]$ ll bbedus.msb
ls: cannot access bbedus.msb: No such file or directory
[oracle@saperp lib]$ ll ssbbded.o
-rw-r--r-- 1 root root 1191 Jan 15 2015 ssbbded.o
[oracle@saperp lib]$ ll bbedus.msb
-rw-r--r-- 1 root root 8704 Jan 15 2015 bbedus.msb
[oracle@saperp lib]$ ll ssbbded.o
-rw-r--r-- 1 root root 1191 Jan 15 2015 ssbbded.o
[oracle@saperp lib]$ make -f $ORACLE_HOME/rdbms/lib/ins_rdbms.mk BBED=$ORACLE_HOME/bin/bbed $ORACLE_HOME/bin/bbed
Linking BBED utility (bbed)
rm -f /home/db/oracle/product/11.2.0/db_1/bin/bbed
gcc -o /home/db/oracle/product/11.2.0/db_1/bin/bbed -m64 -z noexecstack -L/home/db/oracle/product/11.2.0/db_1/rdbms/lib/ -L/home/db/oracle/product/11.2.0/db_1/lib/ -L/home/db/oracle/product/11.2.0/db_1/lib/stubs/ /home/db/oracle/product/11.2.0/db_1/lib/s0main.o /home/db/oracle/product/11.2.0/db_1/rdbms/lib/ssbbded.o /home/db/oracle/product/11.2.0/db_1/rdbms/lib/sbbdpt.o `cat /home/db/oracle/product/11.2.0/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -ldbtools11 -lclntsh `cat /home/db/oracle/product/11.2.0/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /home/db/oracle/product/11.2.0/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnnz11 -lzt11 -lztkg11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lmm -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 `cat /home/db/oracle/product/11.2.0/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /home/db/oracle/product/11.2.0/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 `cat /home/db/oracle/product/11.2.0/db_1/lib/sysliblist` -Wl,-rpath,/home/db/oracle/product/11.2.0/db_1/lib -lm `cat /home/db/oracle/product/11.2.0/db_1/lib/sysliblist` -ldl -lm -L/home/db/oracle/product/11.2.0/db_1/lib
[oracle@saperp lib]$ ls -l $ORACLE_HOME/bin/bbed
-rwxr-xr-x 1 oracle oinstall 257800 Apr 29 16:16 /home/db/oracle/product/11.2.0/db_1/bin/bbed
[oracle@saperp lib]$
[oracle@saperp lib]$
[oracle@saperp lib]$
[oracle@saperp lib]$ bbed -help
LRM-00118: syntax error at '-' at the end of input
PASSWORD - Required parameter
FILENAME - Database file name
BLOCKSIZE - Database block size
LISTFILE - List file name
MODE - [browse/edit]
SPOOL - Spool to logfile [no/yes]
CMDFILE - BBED command file name
LOGFILE - BBED log file name
PARFILE - Parameter file name
BIFILE - BBED before-image file name
REVERT - Rollback changes from BIFILE [no/yes]
SILENT - Hide banner [no/yes]
HELP - Show all valid parameters [no/yes]
BBED-00105: file not found; arguments: [110]
[oracle@saperp lib]$ vi par.txt
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"par.txt" [New] 3L, 46C written
[oracle@saperp lib]$ pwd
/home/db/oracle/product/11.2.0/db_1/rdbms/lib
[oracle@saperp lib]$ pwd
/home/db/oracle/product/11.2.0/db_1/rdbms/lib
[oracle@saperp lib]$ mkdir /home/oracle/bbed
[oracle@saperp lib]$ cd /home/oracle/bbed
[oracle@saperp bbed]$ mv /home/db/oracle/product/11.2.0/db_1/rdbms/lib/par.txt ./
[oracle@saperp bbed]$ cat par.txt
blocksize=8192
listfile=dbfiles.txt
mode=edit
[oracle@saperp bbed]$
[oracle@saperp bbed]$
[oracle@saperp bbed]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Wed Apr 29 16:18:38 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> set line 132
SQL> select file#||chr(9)||name||chr(9)||bytes from v$datafile;
FILE#||CHR(9)||NAME||CHR(9)||BYTES
------------------------------------------------------------------------------------------------------------------------------------
1 /home/db/oracle/oradata/erp/system01.dbf 513802240
2 /home/db/oracle/oradata/erp/sysaux01.dbf 555745280
3 /home/db/oracle/oradata/erp/undotbs1.dbf 346030080
4 /home/db/oracle/oradata/erp/PARTTBS103.dbf 5242880
5 /home/db/oracle/oradata/erp/PARTTBS102.dbf 5242880
6 /home/db/oracle/oradata/erp/PARTTBS101.dbf 5242880
7 /home/db/oracle/oradata/erp/USERS01.dbf 5242880
8 /home/db/oracle/oradata/erp/JYCTBS03.dbf 524288
9 /home/db/oracle/oradata/erp/JYCTBS02.dbf 131072
10 /home/db/oracle/oradata/erp/JYCTBS01.dbf 131072
11 /home/db/oracle/oradata/erp/TESTTBS103.dbf 720896
FILE#||CHR(9)||NAME||CHR(9)||BYTES
------------------------------------------------------------------------------------------------------------------------------------
12 /home/db/oracle/oradata/erp/TESTTBS102.dbf 589824
13 /home/db/oracle/oradata/erp/TESTTBS101.dbf 851968
14 /home/db/oracle/oradata/erp/TESTTBS202.dbf 262144
15 /home/db/oracle/oradata/erp/TESTTBS201.dbf 327680
16 /home/db/oracle/oradata/erp/APEX_1301369653334498.dbf 10551296
17 /home/db/oracle/oradata/erp/APEX_1706321139930175.dbf 21037056
17 rows selected.
SQL> set pagesize 0
SQL> r
1* select file#||chr(9)||name||chr(9)||bytes from v$datafile
1 /home/db/oracle/oradata/erp/system01.dbf 513802240
2 /home/db/oracle/oradata/erp/sysaux01.dbf 555745280
3 /home/db/oracle/oradata/erp/undotbs1.dbf 346030080
4 /home/db/oracle/oradata/erp/PARTTBS103.dbf 5242880
5 /home/db/oracle/oradata/erp/PARTTBS102.dbf 5242880
6 /home/db/oracle/oradata/erp/PARTTBS101.dbf 5242880
7 /home/db/oracle/oradata/erp/USERS01.dbf 5242880
8 /home/db/oracle/oradata/erp/JYCTBS03.dbf 524288
9 /home/db/oracle/oradata/erp/JYCTBS02.dbf 131072
10 /home/db/oracle/oradata/erp/JYCTBS01.dbf 131072
11 /home/db/oracle/oradata/erp/TESTTBS103.dbf 720896
12 /home/db/oracle/oradata/erp/TESTTBS102.dbf 589824
13 /home/db/oracle/oradata/erp/TESTTBS101.dbf 851968
14 /home/db/oracle/oradata/erp/TESTTBS202.dbf 262144
15 /home/db/oracle/oradata/erp/TESTTBS201.dbf 327680
16 /home/db/oracle/oradata/erp/APEX_1301369653334498.dbf 10551296
17 /home/db/oracle/oradata/erp/APEX_1706321139930175.dbf 21037056
17 rows selected.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@saperp bbed]$ pwd
/home/oracle/bbed
[oracle@saperp bbed]$ vi dbfiles.txt
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"dbfiles.txt" [New] 19L, 1159C written
[oracle@saperp bbed]$ bbed parfile=parameter.txt
LRM-00109: could not open parameter file 'parameter.txt'
LRM-00113: error when processing file 'parameter.txt'
PASSWORD - Required parameter
FILENAME - Database file name
BLOCKSIZE - Database block size
LISTFILE - List file name
MODE - [browse/edit]
SPOOL - Spool to logfile [no/yes]
CMDFILE - BBED command file name
LOGFILE - BBED log file name
PARFILE - Parameter file name
BIFILE - BBED before-image file name
REVERT - Rollback changes from BIFILE [no/yes]
SILENT - Hide banner [no/yes]
HELP - Show all valid parameters [no/yes]
BBED-00105: file not found; arguments: [109]
[oracle@saperp bbed]$ ll
total 8
-rw-r--r-- 1 oracle oinstall 1159 Apr 29 16:20 dbfiles.txt
-rw-r--r-- 1 oracle oinstall 46 Apr 29 16:17 par.txt
[oracle@saperp bbed]$ cat dbfiles.txt
###select file#||chr(9)||name||chr(9)||bytes from v$datafile;
1 /home/db/oracle/oradata/erp/system01.dbf 513802240
2 /home/db/oracle/oradata/erp/sysaux01.dbf 555745280
3 /home/db/oracle/oradata/erp/undotbs1.dbf 346030080
4 /home/db/oracle/oradata/erp/PARTTBS103.dbf 5242880
5 /home/db/oracle/oradata/erp/PARTTBS102.dbf 5242880
6 /home/db/oracle/oradata/erp/PARTTBS101.dbf 5242880
7 /home/db/oracle/oradata/erp/USERS01.dbf 5242880
8 /home/db/oracle/oradata/erp/JYCTBS03.dbf 524288
9 /home/db/oracle/oradata/erp/JYCTBS02.dbf 131072
10 /home/db/oracle/oradata/erp/JYCTBS01.dbf 131072
11 /home/db/oracle/oradata/erp/TESTTBS103.dbf 720896
12 /home/db/oracle/oradata/erp/TESTTBS102.dbf 589824
13 /home/db/oracle/oradata/erp/TESTTBS101.dbf 851968
14 /home/db/oracle/oradata/erp/TESTTBS202.dbf 262144
15 /home/db/oracle/oradata/erp/TESTTBS201.dbf 327680
16 /home/db/oracle/oradata/erp/APEX_1301369653334498.dbf 10551296
17 /home/db/oracle/oradata/erp/APEX_1706321139930175.dbf 21037056
[oracle@saperp bbed]$ cat par.txt
blocksize=8192
listfile=dbfiles.txt
mode=edit
[oracle@saperp bbed]$ bbed parfile=par.txt
Message 112 not found; No message file for product=RDBMS, facility=BBED
BBED-00113: file not found
[oracle@saperp bbed]$ bbed parfile=par.txt
Message 112 not found; No message file for product=RDBMS, facility=BBED
BBED-00113: file not found
[oracle@saperp bbed]$ bbed parfile=./par.txt
Message 112 not found; No message file for product=RDBMS, facility=BBED
BBED-00113: file not found
[oracle@saperp bbed]$ vi dbfiles.txt
###select file#||chr(9)||name||chr(9)||bytes from v$datafile;
1 /home/db/oracle/oradata/erp/system01.dbf 513802240
2 /home/db/oracle/oradata/erp/sysaux01.dbf 555745280
3 /home/db/oracle/oradata/erp/undotbs1.dbf 346030080
4 /home/db/oracle/oradata/erp/PARTTBS103.dbf 5242880
5 /home/db/oracle/oradata/erp/PARTTBS102.dbf 5242880
6 /home/db/oracle/oradata/erp/PARTTBS101.dbf 5242880
7 /home/db/oracle/oradata/erp/USERS01.dbf 5242880
8 /home/db/oracle/oradata/erp/JYCTBS03.dbf 524288
9 /home/db/oracle/oradata/erp/JYCTBS02.dbf 131072
10 /home/db/oracle/oradata/erp/JYCTBS01.dbf 131072
11 /home/db/oracle/oradata/erp/TESTTBS103.dbf 720896
12 /home/db/oracle/oradata/erp/TESTTBS102.dbf 589824
13 /home/db/oracle/oradata/erp/TESTTBS101.dbf 851968
14 /home/db/oracle/oradata/erp/TESTTBS202.dbf 262144
15 /home/db/oracle/oradata/erp/TESTTBS201.dbf 327680
16 /home/db/oracle/oradata/erp/APEX_1301369653334498.dbf 10551296
17 /home/db/oracle/oradata/erp/APEX_1706321139930175.dbf 21037056
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"dbfiles.txt" 18L, 1097C written
[oracle@saperp bbed]$ cat dbfiles.txt
1 /home/db/oracle/oradata/erp/system01.dbf 513802240
2 /home/db/oracle/oradata/erp/sysaux01.dbf 555745280
3 /home/db/oracle/oradata/erp/undotbs1.dbf 346030080
4 /home/db/oracle/oradata/erp/PARTTBS103.dbf 5242880
5 /home/db/oracle/oradata/erp/PARTTBS102.dbf 5242880
6 /home/db/oracle/oradata/erp/PARTTBS101.dbf 5242880
7 /home/db/oracle/oradata/erp/USERS01.dbf 5242880
8 /home/db/oracle/oradata/erp/JYCTBS03.dbf 524288
9 /home/db/oracle/oradata/erp/JYCTBS02.dbf 131072
10 /home/db/oracle/oradata/erp/JYCTBS01.dbf 131072
11 /home/db/oracle/oradata/erp/TESTTBS103.dbf 720896
12 /home/db/oracle/oradata/erp/TESTTBS102.dbf 589824
13 /home/db/oracle/oradata/erp/TESTTBS101.dbf 851968
14 /home/db/oracle/oradata/erp/TESTTBS202.dbf 262144
15 /home/db/oracle/oradata/erp/TESTTBS201.dbf 327680
16 /home/db/oracle/oradata/erp/APEX_1301369653334498.dbf 10551296
17 /home/db/oracle/oradata/erp/APEX_1706321139930175.dbf 21037056
[oracle@saperp bbed]$ bbed parfile=par.txt
Message 112 not found; No message file for product=RDBMS, facility=BBED
BBED-00113: file not found
[oracle@saperp bbed]$ ll par.txt
-rw-r--r-- 1 oracle oinstall 46 Apr 29 16:17 par.txt
[oracle@saperp bbed]$ cat par.txt
blocksize=8192
listfile=dbfiles.txt
mode=edit
[oracle@saperp bbed]$ cat dbfiles.txt
1 /home/db/oracle/oradata/erp/system01.dbf 513802240
2 /home/db/oracle/oradata/erp/sysaux01.dbf 555745280
3 /home/db/oracle/oradata/erp/undotbs1.dbf 346030080
4 /home/db/oracle/oradata/erp/PARTTBS103.dbf 5242880
5 /home/db/oracle/oradata/erp/PARTTBS102.dbf 5242880
6 /home/db/oracle/oradata/erp/PARTTBS101.dbf 5242880
7 /home/db/oracle/oradata/erp/USERS01.dbf 5242880
8 /home/db/oracle/oradata/erp/JYCTBS03.dbf 524288
9 /home/db/oracle/oradata/erp/JYCTBS02.dbf 131072
10 /home/db/oracle/oradata/erp/JYCTBS01.dbf 131072
11 /home/db/oracle/oradata/erp/TESTTBS103.dbf 720896
12 /home/db/oracle/oradata/erp/TESTTBS102.dbf 589824
13 /home/db/oracle/oradata/erp/TESTTBS101.dbf 851968
14 /home/db/oracle/oradata/erp/TESTTBS202.dbf 262144
15 /home/db/oracle/oradata/erp/TESTTBS201.dbf 327680
16 /home/db/oracle/oradata/erp/APEX_1301369653334498.dbf 10551296
17 /home/db/oracle/oradata/erp/APEX_1706321139930175.dbf 21037056
[oracle@saperp bbed]$ pwd
/home/oracle/bbed
[oracle@saperp bbed]$ cd $ORACLE_HOME/rbdms/lib
-bash: cd: /home/db/oracle/product/11.2.0/db_1/rbdms/lib: No such file or directory
[oracle@saperp bbed]$ cd $ORACLE_HOME/rdbms/lib
[oracle@saperp lib]$ mv bbedus.msb $ORACLE_HOME/rdbms/mesg/
[oracle@saperp lib]$ cd /home/oracle/bbed
[oracle@saperp bbed]$ bbed parfile=par.txt
Password:
BBED: Release 2.0.0.0.0 - Limited Production on Wed Apr 29 16:26:11 2020
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
************* !!! For Oracle Internal Use only !!! ***************
BBED> exit
[oracle@saperp bbed]$ vi par.txt
blocksize=8192
listfile=dbfiles.txt
mode=edit
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"par.txt" 4L, 65C written
[oracle@saperp bbed]$ bbed parfile=par.txt
BBED: Release 2.0.0.0.0 - Limited Production on Wed Apr 29 16:26:37 2020
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
************* !!! For Oracle Internal Use only !!! ***************
BBED> exit
[oracle@saperp bbed]$ cat par.txt
blocksize=8192
listfile=dbfiles.txt
mode=edit
password=blockedit
[oracle@saperp bbed]$ vi dbfiles.txt
1 /home/db/oracle/oradata/erp/system01.dbf 513802240
2 /home/db/oracle/oradata/erp/sysaux01.dbf 555745280
3 /home/db/oracle/oradata/erp/undotbs1.dbf 346030080
4 /home/db/oracle/oradata/erp/PARTTBS103.dbf 5242880
5 /home/db/oracle/oradata/erp/PARTTBS102.dbf 5242880
6 /home/db/oracle/oradata/erp/PARTTBS101.dbf 5242880
7 /home/db/oracle/oradata/erp/USERS01.dbf 5242880
8 /home/db/oracle/oradata/erp/JYCTBS03.dbf 524288
9 /home/db/oracle/oradata/erp/JYCTBS02.dbf 131072
10 /home/db/oracle/oradata/erp/JYCTBS01.dbf 131072
11 /home/db/oracle/oradata/erp/TESTTBS103.dbf 720896
12 /home/db/oracle/oradata/erp/TESTTBS102.dbf 589824
13 /home/db/oracle/oradata/erp/TESTTBS101.dbf 851968
14 /home/db/oracle/oradata/erp/TESTTBS202.dbf 262144
15 /home/db/oracle/oradata/erp/TESTTBS201.dbf 327680
16 /home/db/oracle/oradata/erp/APEX_1301369653334498.dbf 10551296
17 /home/db/oracle/oradata/erp/APEX_1706321139930175.dbf 21037056
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"dbfiles.txt" 19L, 1159C written
[oracle@saperp bbed]$ cat dbfiles.txt
###select file#||chr(9)||name||chr(9)||bytes from v$datafile;
1 /home/db/oracle/oradata/erp/system01.dbf 513802240
2 /home/db/oracle/oradata/erp/sysaux01.dbf 555745280
3 /home/db/oracle/oradata/erp/undotbs1.dbf 346030080
4 /home/db/oracle/oradata/erp/PARTTBS103.dbf 5242880
5 /home/db/oracle/oradata/erp/PARTTBS102.dbf 5242880
6 /home/db/oracle/oradata/erp/PARTTBS101.dbf 5242880
7 /home/db/oracle/oradata/erp/USERS01.dbf 5242880
8 /home/db/oracle/oradata/erp/JYCTBS03.dbf 524288
9 /home/db/oracle/oradata/erp/JYCTBS02.dbf 131072
10 /home/db/oracle/oradata/erp/JYCTBS01.dbf 131072
11 /home/db/oracle/oradata/erp/TESTTBS103.dbf 720896
12 /home/db/oracle/oradata/erp/TESTTBS102.dbf 589824
13 /home/db/oracle/oradata/erp/TESTTBS101.dbf 851968
14 /home/db/oracle/oradata/erp/TESTTBS202.dbf 262144
15 /home/db/oracle/oradata/erp/TESTTBS201.dbf 327680
16 /home/db/oracle/oradata/erp/APEX_1301369653334498.dbf 10551296
17 /home/db/oracle/oradata/erp/APEX_1706321139930175.dbf 21037056
[oracle@saperp bbed]$ cat par.txt
blocksize=8192
listfile=dbfiles.txt
mode=edit
password=blockedit
[oracle@saperp bbed]$ bbed parfile=par.txt
BBED: Release 2.0.0.0.0 - Limited Production on Wed Apr 29 16:27:15 2020
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
************* !!! For Oracle Internal Use only !!! ***************
BBED> list
BBED-00200: invalid keyword (list)
BBED> help
HELP [ <bbed command> | ALL ]
BBED> help all
SET DBA [ dba | file#, block# ]
SET FILENAME 'filename'
SET FILE file#
SET BLOCK [+/-]block#
SET OFFSET [ [+/-]byte offset | symbol | *symbol ]
SET BLOCKSIZE bytes
SET LIST[FILE] 'filename'
SET WIDTH character_count
SET COUNT bytes_to_display
SET IBASE [ HEX | OCT | DEC ]
SET OBASE [ HEX | OCT | DEC ]
SET MODE [ BROWSE | EDIT ]
SET SPOOL [ Y | N ]
SHOW [ <SET parameter> | ALL ]
INFO
MAP[/v] [ DBA | FILENAME | FILE | BLOCK ]
DUMP[/v] [ DBA | FILENAME | FILE | BLOCK | OFFSET | COUNT ]
PRINT[/x|d|u|o|c] [ DBA | FILE | FILENAME | BLOCK | OFFSET | symbol | *symbol ]
EXAMINE[/Nuf] [ DBA | FILE | FILENAME | BLOCK | OFFSET | symbol | *symbol ]
</Nuf>:
N - a number which specifies a repeat count.
u - a letter which specifies a unit size:
b - b1, ub1 (byte)
h - b2, ub2 (half-word)
w - b4, ub4(word)
r - Oracle table/index row
f - a letter which specifies a display format:
x - hexadecimal
d - decimal
u - unsigned decimal
o - octal
c - character (native)
n - Oracle number
t - Oracle date
i - Oracle rowid
FIND[/x|d|u|o|c] numeric/character string [ TOP | CURR ]
COPY [ DBA | FILE | FILENAME | BLOCK ] TO [ DBA | FILE | FILENAME | BLOCK ]
MODIFY[/x|d|u|o|c] numeric/character string
[ DBA | FILE | FILENAME | BLOCK | OFFSET | symbol | *symbol ]
ASSIGN[/x|d|u|o] <target spec>=<source spec>
<target spec> : [ DBA | FILE | FILENAME | BLOCK | OFFSET | symbol | *symbol ]
<source spec> : [ value | <target spec options> ]
SUM [ DBA | FILE | FILENAME | BLOCK ] [ APPLY ]
PUSH [ DBA | FILE | FILENAME | BLOCK | OFFSET ]
POP [ALL]
REVERT [ DBA | FILE | FILENAME | BLOCK ]
UNDO
HELP [ <bbed command> | ALL ]
VERIFY [ DBA | FILE | FILENAME | BLOCK ]
CORRUPT [ DBA | FILE | FILENAME | BLOCK ]
BBED> show all
FILE# 1
BLOCK# 1
OFFSET 0
DBA 0x00400001 (4194305 1,1)
FILENAME /home/db/oracle/oradata/erp/system01.dbf
BIFILE bifile.bbd
LISTFILE dbfiles.txt
BLOCKSIZE 8192
MODE Edit
EDIT Unrecoverable
IBASE Dec
OBASE Dec
WIDTH 80
COUNT 512
LOGFILE log.bbd
SPOOL No
BBED> info
File# Name Size(blks)
----- ---- ----------
1 /home/db/oracle/oradata/erp/system01.dbf 62720
2 /home/db/oracle/oradata/erp/sysaux01.dbf 67840
3 /home/db/oracle/oradata/erp/undotbs1.dbf 42240
4 /home/db/oracle/oradata/erp/PARTTBS103.dbf 640
5 /home/db/oracle/oradata/erp/PARTTBS102.dbf 640
6 /home/db/oracle/oradata/erp/PARTTBS101.dbf 640
7 /home/db/oracle/oradata/erp/USERS01.dbf 640
8 /home/db/oracle/oradata/erp/JYCTBS03.dbf 64
9 /home/db/oracle/oradata/erp/JYCTBS02.dbf 16
10 /home/db/oracle/oradata/erp/JYCTBS01.dbf 16
11 /home/db/oracle/oradata/erp/TESTTBS103.dbf 88
12 /home/db/oracle/oradata/erp/TESTTBS102.dbf 72
13 /home/db/oracle/oradata/erp/TESTTBS101.dbf 104
14 /home/db/oracle/oradata/erp/TESTTBS202.dbf 32
15 /home/db/oracle/oradata/erp/TESTTBS201.dbf 40
16 /home/db/oracle/oradata/erp/APEX_1301369653334498.dbf 1288
17 /home/db/oracle/oradata/erp/APEX_1706321139930175.dbf 2568
BBED> map
File: /home/db/oracle/oradata/erp/system01.dbf (1)
Block: 1 Dba:0x00400001
------------------------------------------------------------
Data File Header
struct kcvfh, 860 bytes @0
ub4 tailchk @8188
BBED> map /v
File: /home/db/oracle/oradata/erp/system01.dbf (1)
Block: 1 Dba:0x00400001
------------------------------------------------------------
Data File Header
struct kcvfh, 860 bytes @0
struct kcvfhbfh, 20 bytes @0
struct kcvfhhdr, 76 bytes @20
ub4 kcvfhrdb @96
struct kcvfhcrs, 8 bytes @100
ub4 kcvfhcrt @108
ub4 kcvfhrlc @112
struct kcvfhrls, 8 bytes @116
ub4 kcvfhbti @124
struct kcvfhbsc, 8 bytes @128
ub2 kcvfhbth @136
ub2 kcvfhsta @138
struct kcvfhckp, 36 bytes @484
ub4 kcvfhcpc @140
ub4 kcvfhrts @144
ub4 kcvfhccc @148
struct kcvfhbcp, 36 bytes @152
ub4 kcvfhbhz @312
struct kcvfhxcd, 16 bytes @316
sword kcvfhtsn @332
ub2 kcvfhtln @336
text kcvfhtnm[30] @338
ub4 kcvfhrfn @368
struct kcvfhrfs, 8 bytes @372
ub4 kcvfhrft @380
struct kcvfhafs, 8 bytes @384
ub4 kcvfhbbc @392
ub4 kcvfhncb @396
ub4 kcvfhmcb @400
ub4 kcvfhlcb @404
ub4 kcvfhbcs @408
ub2 kcvfhofb @412
ub2 kcvfhnfb @414
ub4 kcvfhprc @416
struct kcvfhprs, 8 bytes @420
struct kcvfhprfs, 8 bytes @428
ub4 kcvfhtrt @444
ub4 tailchk @8188
BBED> p kcvfh
struct kcvfh, 860 bytes @0
struct kcvfhbfh, 20 bytes @0
ub1 type_kcbh @0 0x0b
ub1 frmt_kcbh @1 0xa2
ub1 spare1_kcbh @2 0x00
ub1 spare2_kcbh @3 0x00
ub4 rdba_kcbh @4 0x00400001
ub4 bas_kcbh @8 0x00000000
ub2 wrp_kcbh @12 0x0000
ub1 seq_kcbh @14 0x01
ub1 flg_kcbh @15 0x04 (KCBHFCKV)
ub2 chkval_kcbh @16 0xcc41
ub2 spare3_kcbh @18 0x0000
struct kcvfhhdr, 76 bytes @20
ub4 kccfhswv @20 0x00000000
ub4 kccfhcvn @24 0x0b200400
ub4 kccfhdbi @28 0x109971fe
text kccfhdbn[0] @32 E
text kccfhdbn[1] @33 R
text kccfhdbn[2] @34 P
text kccfhdbn[3] @35
text kccfhdbn[4] @36
text kccfhdbn[5] @37
text kccfhdbn[6] @38
text kccfhdbn[7] @39
ub4 kccfhcsq @40 0x00000625
ub4 kccfhfsz @44 0x0000f500
s_blkz kccfhbsz @48 0x00
ub2 kccfhfno @52 0x0001
ub2 kccfhtyp @54 0x0003
ub4 kccfhacid @56 0x00000000
ub4 kccfhcks @60 0x00000000
text kccfhtag[0] @64
text kccfhtag[1] @65
text kccfhtag[2] @66
text kccfhtag[3] @67
text kccfhtag[4] @68
text kccfhtag[5] @69
text kccfhtag[6] @70
text kccfhtag[7] @71
text kccfhtag[8] @72
text kccfhtag[9] @73
text kccfhtag[10] @74
text kccfhtag[11] @75
text kccfhtag[12] @76
text kccfhtag[13] @77
text kccfhtag[14] @78
text kccfhtag[15] @79
text kccfhtag[16] @80
text kccfhtag[17] @81
text kccfhtag[18] @82
text kccfhtag[19] @83
text kccfhtag[20] @84
text kccfhtag[21] @85
text kccfhtag[22] @86
text kccfhtag[23] @87
text kccfhtag[24] @88
text kccfhtag[25] @89
text kccfhtag[26] @90
text kccfhtag[27] @91
text kccfhtag[28] @92
text kccfhtag[29] @93
text kccfhtag[30] @94
text kccfhtag[31] @95
ub4 kcvfhrdb @96 0x00400208
struct kcvfhcrs, 8 bytes @100
ub4 kscnbas @100 0x00000007
ub2 kscnwrp @104 0x0000
ub4 kcvfhcrt @108 0x3d6109ff
ub4 kcvfhrlc @112 0x3d6109fe
struct kcvfhrls, 8 bytes @116
ub4 kscnbas @116 0x00000001
ub2 kscnwrp @120 0x0000
ub4 kcvfhbti @124 0x00000000
struct kcvfhbsc, 8 bytes @128
ub4 kscnbas @128 0x00000000
ub2 kscnwrp @132 0x0000
ub2 kcvfhbth @136 0x0000
ub2 kcvfhsta @138 0x2004 (KCVFHOFZ)
struct kcvfhckp, 36 bytes @484
struct kcvcpscn, 8 bytes @484
ub4 kscnbas @484 0x000f2daa
ub2 kscnwrp @488 0x0000
ub4 kcvcptim @492 0x3dee287c
ub2 kcvcpthr @496 0x0001
union u, 12 bytes @500
struct kcvcprba, 12 bytes @500
ub4 kcrbaseq @500 0x00000024
ub4 kcrbabno @504 0x00000002
ub2 kcrbabof @508 0x0010
ub1 kcvcpetb[0] @512 0x02
ub1 kcvcpetb[1] @513 0x00
ub1 kcvcpetb[2] @514 0x00
ub1 kcvcpetb[3] @515 0x00
ub1 kcvcpetb[4] @516 0x00
ub1 kcvcpetb[5] @517 0x00
ub1 kcvcpetb[6] @518 0x00
ub1 kcvcpetb[7] @519 0x00
ub4 kcvfhcpc @140 0x00000046
ub4 kcvfhrts @144 0x3dee287c
ub4 kcvfhccc @148 0x00000045
struct kcvfhbcp, 36 bytes @152
struct kcvcpscn, 8 bytes @152
ub4 kscnbas @152 0x00000000
ub2 kscnwrp @156 0x0000
ub4 kcvcptim @160 0x00000000
ub2 kcvcpthr @164 0x0000
union u, 12 bytes @168
struct kcvcprba, 12 bytes @168
ub4 kcrbaseq @168 0x00000000
ub4 kcrbabno @172 0x00000000
ub2 kcrbabof @176 0x0000
ub1 kcvcpetb[0] @180 0x00
ub1 kcvcpetb[1] @181 0x00
ub1 kcvcpetb[2] @182 0x00
ub1 kcvcpetb[3] @183 0x00
ub1 kcvcpetb[4] @184 0x00
ub1 kcvcpetb[5] @185 0x00
ub1 kcvcpetb[6] @186 0x00
ub1 kcvcpetb[7] @187 0x00
ub4 kcvfhbhz @312 0x00000000
struct kcvfhxcd, 16 bytes @316
ub4 space_kcvmxcd[0] @316 0x00000000
ub4 space_kcvmxcd[1] @320 0x00000000
ub4 space_kcvmxcd[2] @324 0x00000000
ub4 space_kcvmxcd[3] @328 0x00000000
sword kcvfhtsn @332 0
ub2 kcvfhtln @336 0x0006
text kcvfhtnm[0] @338 S
text kcvfhtnm[1] @339 Y
text kcvfhtnm[2] @340 S
text kcvfhtnm[3] @341 T
text kcvfhtnm[4] @342 E
text kcvfhtnm[5] @343 M
text kcvfhtnm[6] @344
text kcvfhtnm[7] @345
text kcvfhtnm[8] @346
text kcvfhtnm[9] @347
text kcvfhtnm[10] @348
text kcvfhtnm[11] @349
text kcvfhtnm[12] @350
text kcvfhtnm[13] @351
text kcvfhtnm[14] @352
text kcvfhtnm[15] @353
text kcvfhtnm[16] @354
text kcvfhtnm[17] @355
text kcvfhtnm[18] @356
text kcvfhtnm[19] @357
text kcvfhtnm[20] @358
text kcvfhtnm[21] @359
text kcvfhtnm[22] @360
text kcvfhtnm[23] @361
text kcvfhtnm[24] @362
text kcvfhtnm[25] @363
text kcvfhtnm[26] @364
text kcvfhtnm[27] @365
text kcvfhtnm[28] @366
text kcvfhtnm[29] @367
ub4 kcvfhrfn @368 0x00000001
struct kcvfhrfs, 8 bytes @372
ub4 kscnbas @372 0x00000000
ub2 kscnwrp @376 0x0000
ub4 kcvfhrft @380 0x00000000
struct kcvfhafs, 8 bytes @384
ub4 kscnbas @384 0x00000000
ub2 kscnwrp @388 0x0000
ub4 kcvfhbbc @392 0x00000000
ub4 kcvfhncb @396 0x00000000
ub4 kcvfhmcb @400 0x00000000
ub4 kcvfhlcb @404 0x00000000
ub4 kcvfhbcs @408 0x00000000
ub2 kcvfhofb @412 0x000a
ub2 kcvfhnfb @414 0x000a
ub4 kcvfhprc @416 0x00000000
struct kcvfhprs, 8 bytes @420
ub4 kscnbas @420 0x00000000
ub2 kscnwrp @424 0x0000
struct kcvfhprfs, 8 bytes @428
ub4 kscnbas @428 0x00000000
ub2 kscnwrp @432 0x0000
ub4 kcvfhtrt @444 0x00000000
BBED> p kcvfhprs
struct kcvfhprs, 8 bytes @420
ub4 kscnbas @420 0x00000000
ub2 kscnwrp @424 0x0000
BBED> info
File# Name Size(blks)
----- ---- ----------
1 /home/db/oracle/oradata/erp/system01.dbf 62720
2 /home/db/oracle/oradata/erp/sysaux01.dbf 67840
3 /home/db/oracle/oradata/erp/undotbs1.dbf 42240
4 /home/db/oracle/oradata/erp/PARTTBS103.dbf 640
5 /home/db/oracle/oradata/erp/PARTTBS102.dbf 640
6 /home/db/oracle/oradata/erp/PARTTBS101.dbf 640
7 /home/db/oracle/oradata/erp/USERS01.dbf 640
8 /home/db/oracle/oradata/erp/JYCTBS03.dbf 64
9 /home/db/oracle/oradata/erp/JYCTBS02.dbf 16
10 /home/db/oracle/oradata/erp/JYCTBS01.dbf 16
11 /home/db/oracle/oradata/erp/TESTTBS103.dbf 88
12 /home/db/oracle/oradata/erp/TESTTBS102.dbf 72
13 /home/db/oracle/oradata/erp/TESTTBS101.dbf 104
14 /home/db/oracle/oradata/erp/TESTTBS202.dbf 32
15 /home/db/oracle/oradata/erp/TESTTBS201.dbf 40
16 /home/db/oracle/oradata/erp/APEX_1301369653334498.dbf 1288
17 /home/db/oracle/oradata/erp/APEX_1706321139930175.dbf 2568
BBED> exit
[oracle@saperp bbed]$ dbfsize /home/db/oracle/oradata/erp/system01.dbf
Database file: /home/db/oracle/oradata/erp/system01.dbf
Database file type: file system
Database file size: 62720 8192 byte blocks
[oracle@saperp bbed]$ dbfsize /home/db/oracle/oradata/erp/USERS01.dbf
Database file: /home/db/oracle/oradata/erp/USERS01.dbf
Database file type: file system
Database file size: 640 8192 byte blocks
[oracle@saperp bbed]$ bbed parfile=par.txt
BBED: Release 2.0.0.0.0 - Limited Production on Wed Apr 29 16:32:45 2020
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
************* !!! For Oracle Internal Use only !!! ***************
BBED> set file 1
FILE# 1
BBED> set block 0
BLOCK# 0
BBED> show all
FILE# 1
BLOCK# 0
OFFSET 0
DBA 0x00400000 (4194304 1,0)
FILENAME /home/db/oracle/oradata/erp/system01.dbf
BIFILE bifile.bbd
LISTFILE dbfiles.txt
BLOCKSIZE 8192
MODE Edit
EDIT Unrecoverable
IBASE Dec
OBASE Dec
WIDTH 80
COUNT 512
LOGFILE log.bbd
SPOOL No
BBED> dump
File: /home/db/oracle/oradata/erp/system01.dbf (1)
Block: 0 Offsets: 0 to 511 Dba:0x00400000
------------------------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 660f0000 00200000 00f50000 7d7c7b7a
a0810000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<32 bytes per line>
BBED> exit
[oracle@saperp bbed]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.4.0 Production on Wed Apr 29 16:34:50 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
SQL> conn /as sysdba
Connected.
SQL> set line 132
SQL> select * from V$TRANSPORTABLE_PLATFORM ORDER BY PLATFORM_ID;
PLATFORM_ID PLATFORM_NAME ENDIAN_FORMAT
----------- ----------------------------------------------------------------------------------------------------- --------------
1 Solaris[tm] OE (32-bit) Big
2 Solaris[tm] OE (64-bit) Big
3 HP-UX (64-bit) Big
4 HP-UX IA (64-bit) Big
5 HP Tru64 UNIX Little
6 AIX-Based Systems (64-bit) Big
7 Microsoft Windows IA (32-bit) Little
8 Microsoft Windows IA (64-bit) Little
9 IBM zSeries Based Linux Big
10 Linux IA (32-bit) Little
11 Linux IA (64-bit) Little
PLATFORM_ID PLATFORM_NAME ENDIAN_FORMAT
----------- ----------------------------------------------------------------------------------------------------- --------------
12 Microsoft Windows x86 64-bit Little
13 Linux x86 64-bit Little
15 HP Open VMS Little
16 Apple Mac OS Big
17 Solaris Operating System (x86) Little
18 IBM Power Based Linux Big
19 HP IA Open VMS Little
20 Solaris Operating System (x86-64) Little
21 Apple Mac OS (x86-64) Little
20 rows selected.
SQL> select to_number('2000','xxxxxx') from dual;
TO_NUMBER('2000','XXXXXX')
--------------------------
8192
SQL> select to_number('f500','xxxxxx') from dual;
TO_NUMBER('F500','XXXXXX')
--------------------------
62720
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@saperp bbed]$ bbed parfile=par.txt
BBED: Release 2.0.0.0.0 - Limited Production on Wed Apr 29 16:36:32 2020
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
************* !!! For Oracle Internal Use only !!! ***************
BBED> set file 2
FILE# 2
BBED> set block 0
BLOCK# 0
BBED> show all
FILE# 2
BLOCK# 0
OFFSET 0
DBA 0x00800000 (8388608 2,0)
FILENAME /home/db/oracle/oradata/erp/sysaux01.dbf
BIFILE bifile.bbd
LISTFILE dbfiles.txt
BLOCKSIZE 8192
MODE Edit
EDIT Unrecoverable
IBASE Dec
OBASE Dec
WIDTH 80
COUNT 512
LOGFILE log.bbd
SPOOL No
BBED> set file 9
FILE# 9
BBED> set block 0
BLOCK# 0
BBED> show all
FILE# 9
BLOCK# 0
OFFSET 0
DBA 0x02400000 (37748736 9,0)
FILENAME /home/db/oracle/oradata/erp/JYCTBS02.dbf
BIFILE bifile.bbd
LISTFILE dbfiles.txt
BLOCKSIZE 8192
MODE Edit
EDIT Unrecoverable
IBASE Dec
OBASE Dec
WIDTH 80
COUNT 512
LOGFILE log.bbd
SPOOL No
BBED> dump
File: /home/db/oracle/oradata/erp/JYCTBS02.dbf (9)
Block: 0 Offsets: 0 to 511 Dba:0x02400000
------------------------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 76fa0000 00200000 10000000 7d7c7b7a
a0810000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<32 bytes per line>
BBED> exit
[oracle@saperp bbed]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.4.0 Production on Wed Apr 29 16:37:59 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
SQL> conn /as sysdba
Connected.
SQL> select to_number('1000','xxxxxx') from dual;
TO_NUMBER('1000','XXXXXX')
--------------------------
4096
SQL> select to_number('0010','xxxxxx') from dual;
TO_NUMBER('0010','XXXXXX')
--------------------------
16
SQL> select dbid,name from v$database;
DBID NAME
---------- ---------
278491646 ERP
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@saperp bbed]$ bbed parfile=par.txt
BBED: Release 2.0.0.0.0 - Limited Production on Wed Apr 29 16:39:21 2020
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
************* !!! For Oracle Internal Use only !!! ***************
BBED> set file 1,block 1
FILE# 1
BBED-00202: invalid parameter (,)
BBED> set file 1
FILE# 1
BBED> set block 1
BLOCK# 1
BBED> set count 64
COUNT 64
BBED> dump
File: /home/db/oracle/oradata/erp/system01.dbf (1)
Block: 1 Offsets: 0 to 63 Dba:0x00400001
------------------------------------------------------------------------
0ba20000 01004000 00000000 00000104 41cc0000 00000000 0004200b fe719910
45525000 00000000 25060000 00f50000 00200000 01000300 00000000 00000000
<32 bytes per line>
BBED> map
File: /home/db/oracle/oradata/erp/system01.dbf (1)
Block: 1 Dba:0x00400001
------------------------------------------------------------
Data File Header
struct kcvfh, 860 bytes @0
ub4 tailchk @8188
BBED> exit
[oracle@saperp bbed]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Wed Apr 29 16:43:10 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select to_number('109971fe') from dual;
select to_number('109971fe') from dual
*
ERROR at line 1:
ORA-01722: invalid number
SQL> select to_number('109971fe') from dual;
select to_number('109971fe') from dual
*
ERROR at line 1:
ORA-01722: invalid number
SQL> select to_number('109971fe','xxxxxxxxxxxxxxxxx') from dual;
TO_NUMBER('109971FE','XXXXXXXXXXXXXXXXX')
-----------------------------------------
278491646
SQL> select chr(to_number((substr(replace('00505245 00000000',' '),rownum*2-1,2)),'xxxxxxxxxxx')) from v$mystat where rownum <9;
CH
--
P
R
E
8 rows selected.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@saperp bbed]$ bbed parfile=par.txt
BBED: Release 2.0.0.0.0 - Limited Production on Wed Apr 29 16:48:25 2020
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
************* !!! For Oracle Internal Use only !!! ***************
BBED> map /v
File: /home/db/oracle/oradata/erp/system01.dbf (1)
Block: 1 Dba:0x00400001
------------------------------------------------------------
Data File Header
struct kcvfh, 860 bytes @0
struct kcvfhbfh, 20 bytes @0
struct kcvfhhdr, 76 bytes @20
ub4 kcvfhrdb @96
struct kcvfhcrs, 8 bytes @100
ub4 kcvfhcrt @108
ub4 kcvfhrlc @112
struct kcvfhrls, 8 bytes @116
ub4 kcvfhbti @124
struct kcvfhbsc, 8 bytes @128
ub2 kcvfhbth @136
ub2 kcvfhsta @138
struct kcvfhckp, 36 bytes @484
ub4 kcvfhcpc @140
ub4 kcvfhrts @144
ub4 kcvfhccc @148
struct kcvfhbcp, 36 bytes @152
ub4 kcvfhbhz @312
struct kcvfhxcd, 16 bytes @316
sword kcvfhtsn @332
ub2 kcvfhtln @336
text kcvfhtnm[30] @338
ub4 kcvfhrfn @368
struct kcvfhrfs, 8 bytes @372
ub4 kcvfhrft @380
struct kcvfhafs, 8 bytes @384
ub4 kcvfhbbc @392
ub4 kcvfhncb @396
ub4 kcvfhmcb @400
ub4 kcvfhlcb @404
ub4 kcvfhbcs @408
ub2 kcvfhofb @412
ub2 kcvfhnfb @414
ub4 kcvfhprc @416
struct kcvfhprs, 8 bytes @420
struct kcvfhprfs, 8 bytes @428
ub4 kcvfhtrt @444
ub4 tailchk @8188
BBED> p kcvfhhdr
struct kcvfhhdr, 76 bytes @20
ub4 kccfhswv @20 0x00000000
ub4 kccfhcvn @24 0x0b200400
ub4 kccfhdbi @28 0x109971fe
text kccfhdbn[0] @32 E
text kccfhdbn[1] @33 R
text kccfhdbn[2] @34 P
text kccfhdbn[3] @35
text kccfhdbn[4] @36
text kccfhdbn[5] @37
text kccfhdbn[6] @38
text kccfhdbn[7] @39
ub4 kccfhcsq @40 0x00000625
ub4 kccfhfsz @44 0x0000f500
s_blkz kccfhbsz @48 0x00
ub2 kccfhfno @52 0x0001
ub2 kccfhtyp @54 0x0003
ub4 kccfhacid @56 0x00000000
ub4 kccfhcks @60 0x00000000
text kccfhtag[0] @64
text kccfhtag[1] @65
text kccfhtag[2] @66
text kccfhtag[3] @67
text kccfhtag[4] @68
text kccfhtag[5] @69
text kccfhtag[6] @70
text kccfhtag[7] @71
text kccfhtag[8] @72
text kccfhtag[9] @73
text kccfhtag[10] @74
text kccfhtag[11] @75
text kccfhtag[12] @76
text kccfhtag[13] @77
text kccfhtag[14] @78
text kccfhtag[15] @79
text kccfhtag[16] @80
text kccfhtag[17] @81
text kccfhtag[18] @82
text kccfhtag[19] @83
text kccfhtag[20] @84
text kccfhtag[21] @85
text kccfhtag[22] @86
text kccfhtag[23] @87
text kccfhtag[24] @88
text kccfhtag[25] @89
text kccfhtag[26] @90
text kccfhtag[27] @91
text kccfhtag[28] @92
text kccfhtag[29] @93
text kccfhtag[30] @94
text kccfhtag[31] @95
BBED> show all
FILE# 1
BLOCK# 1
OFFSET 20
DBA 0x00400001 (4194305 1,1)
FILENAME /home/db/oracle/oradata/erp/system01.dbf
BIFILE bifile.bbd
LISTFILE dbfiles.txt
BLOCKSIZE 8192
MODE Edit
EDIT Unrecoverable
IBASE Dec
OBASE Dec
WIDTH 80
COUNT 512
LOGFILE log.bbd
SPOOL No
BBED> p kccfhdbi
BBED-00207: invalid offset specifier (kccfhdbi)
BBED> p kcvfhbfh
struct kcvfhbfh, 20 bytes @0
ub1 type_kcbh @0 0x0b
ub1 frmt_kcbh @1 0xa2
ub1 spare1_kcbh @2 0x00
ub1 spare2_kcbh @3 0x00
ub4 rdba_kcbh @4 0x00400001
ub4 bas_kcbh @8 0x00000000
ub2 wrp_kcbh @12 0x0000
ub1 seq_kcbh @14 0x01
ub1 flg_kcbh @15 0x04 (KCBHFCKV)
ub2 chkval_kcbh @16 0xcc41
ub2 spare3_kcbh @18 0x0000
BBED> dump
File: /home/db/oracle/oradata/erp/system01.dbf (1)
Block: 1 Offsets: 0 to 511 Dba:0x00400001
------------------------------------------------------------------------
0ba20000 01004000 00000000 00000104 41cc0000 00000000 0004200b fe719910
45525000 00000000 25060000 00f50000 00200000 01000300 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
08024000 07000000 00000000 ff09613d fe09613d 01000000 00000000 00000000
00000000 00000000 00000420 46000000 7c28ee3d 45000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 06005359 5354454d 00000000 00000000
00000000 00000000 00000000 00000000 01000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 0a000a00
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 aa2d0f00 00000000 7c28ee3d 01000000 24000000 02000000 10000000
<32 bytes per line>
BBED> set block 0
BLOCK# 0
BBED> dump
File: /home/db/oracle/oradata/erp/system01.dbf (1)
Block: 0 Offsets: 0 to 511 Dba:0x00400000
------------------------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 660f0000 00200000 00f50000 7d7c7b7a
a0810000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<32 bytes per line>
BBED> map
File: /home/db/oracle/oradata/erp/system01.dbf (1)
Block: 0 Dba:0x00400000
------------------------------------------------------------
BBED-00400: invalid blocktype (00)
BBED> map /v
File: /home/db/oracle/oradata/erp/system01.dbf (1)
Block: 0 Dba:0x00400000
------------------------------------------------------------
BBED-00400: invalid blocktype (00)
BBED> p kcvfh
BBED-00400: invalid blocktype (00)
BBED> show all
FILE# 1
BLOCK# 0
OFFSET 0
DBA 0x00400000 (4194304 1,0)
FILENAME /home/db/oracle/oradata/erp/system01.dbf
BIFILE bifile.bbd
LISTFILE dbfiles.txt
BLOCKSIZE 8192
MODE Edit
EDIT Unrecoverable
IBASE Dec
OBASE Dec
WIDTH 80
COUNT 512
LOGFILE log.bbd
SPOOL No
BBED> set file 2 block 0
FILE# 2
BLOCK# 0
BBED> dump count 48
File: /home/db/oracle/oradata/erp/sysaux01.dbf (2)
Block: 0 Offsets: 0 to 47 Dba:0x00800000
------------------------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 67f30000 00200000 00090100 7d7c7b7a
a0810000 00000000 00000000 00000000
<32 bytes per line>
BBED> set file 9 block 0
FILE# 9
BLOCK# 0
BBED> dump count 48
File: /home/db/oracle/oradata/erp/JYCTBS02.dbf (9)
Block: 0 Offsets: 0 to 47 Dba:0x02400000
------------------------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 76fa0000 00200000 10000000 7d7c7b7a
a0810000 00000000 00000000 00000000
<32 bytes per line>
BBED> set file 1 block 0
FILE# 1
BLOCK# 0
BBED> dump count 48
File: /home/db/oracle/oradata/erp/system01.dbf (1)
Block: 0 Offsets: 0 to 47 Dba:0x00400000
------------------------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 660f0000 00200000 00f50000 7d7c7b7a
a0810000 00000000 00000000 00000000
<32 bytes per line>
BBED> map
File: /home/db/oracle/oradata/erp/system01.dbf (1)
Block: 0 Dba:0x00400000
------------------------------------------------------------
BBED-00400: invalid blocktype (00)
BBED> set file 3 block 0
FILE# 3
BLOCK# 0
BBED> dump count 48
File: /home/db/oracle/oradata/erp/undotbs1.dbf (3)
Block: 0 Offsets: 0 to 47 Dba:0x00c00000
------------------------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 665f0000 00200000 00a50000 7d7c7b7a
a0810000 00000000 00000000 00000000
<32 bytes per line>
BBED> set file 4 block 0
FILE# 4
BLOCK# 0
BBED> dump count 48
File: /home/db/oracle/oradata/erp/PARTTBS103.dbf (4)
Block: 0 Offsets: 0 to 47 Dba:0x01000000
------------------------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 e6f80000 00200000 80020000 7d7c7b7a
a0810000 00000000 00000000 00000000
<32 bytes per line>
BBED> exit
[oracle@saperp bbed]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Wed Apr 29 17:06:23 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select to_number('f8e6','xxxxxxxxxxx') from dual;
TO_NUMBER('F8E6','XXXXXXXXXXX')
-------------------------------
63718
SQL> select to_number('5f66','xxxxxxxxxxx') from dual;
TO_NUMBER('5F66','XXXXXXXXXXX')
-------------------------------
24422
SQL> select to_number('0f66','xxxxxxxxxxx') from dual;
TO_NUMBER('0F66','XXXXXXXXXXX')
-------------------------------
3942
SQL> select to_number('fa76','xxxxxxxxxxx') from dual;
TO_NUMBER('FA76','XXXXXXXXXXX')
-------------------------------
64118
SQL> select to_number('f367','xxxxxxxxxxx') from dual;
TO_NUMBER('F367','XXXXXXXXXXX')
-------------------------------
62311
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@saperp bbed]$ bbed parfile=par.txt
BBED: Release 2.0.0.0.0 - Limited Production on Wed Apr 29 17:11:44 2020
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
************* !!! For Oracle Internal Use only !!! ***************
BBED> set file 1 block 0
FILE# 1
BLOCK# 0
BBED> dump /v count 48
File: /home/db/oracle/oradata/erp/system01.dbf (1)
Block: 0 Offsets: 0 to 47 Dba:0x00400000
-------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 l ................
660f0000 00200000 00f50000 7d7c7b7a l f.... ......}|{z
a0810000 00000000 00000000 00000000 l ................
<16 bytes per line>
BBED> set file 2 block 0
FILE# 2
BLOCK# 0
BBED> dump /v count 48
File: /home/db/oracle/oradata/erp/sysaux01.dbf (2)
Block: 0 Offsets: 0 to 47 Dba:0x00800000
-------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 l ................
67f30000 00200000 00090100 7d7c7b7a l g.... ......}|{z
a0810000 00000000 00000000 00000000 l ................
<16 bytes per line>
BBED> set file 3 block 0
FILE# 3
BLOCK# 0
BBED> dump /v count 48
File: /home/db/oracle/oradata/erp/undotbs1.dbf (3)
Block: 0 Offsets: 0 to 47 Dba:0x00c00000
-------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 l ................
665f0000 00200000 00a50000 7d7c7b7a l f_... ......}|{z
a0810000 00000000 00000000 00000000 l ................
<16 bytes per line>
BBED> set file 4 block 0
FILE# 4
BLOCK# 0
BBED> dump /v count 48
File: /home/db/oracle/oradata/erp/PARTTBS103.dbf (4)
Block: 0 Offsets: 0 to 47 Dba:0x01000000
-------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 l ................
e6f80000 00200000 80020000 7d7c7b7a l ..... ......}|{z
a0810000 00000000 00000000 00000000 l ................
<16 bytes per line>
BBED> dump /v count 48 file 5 block0
BBED-00202: invalid parameter (block0)
BBED> set file 5 block 0
FILE# 5
BLOCK# 0
BBED> dump /v count 48
File: /home/db/oracle/oradata/erp/PARTTBS102.dbf (5)
Block: 0 Offsets: 0 to 47 Dba:0x01400000
-------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 l ................
e6f80000 00200000 80020000 7d7c7b7a l ..... ......}|{z
a0810000 00000000 00000000 00000000 l ................
<16 bytes per line>
BBED> set file 6 block 0
FILE# 6
BLOCK# 0
BBED> dump /v count 48
File: /home/db/oracle/oradata/erp/PARTTBS101.dbf (6)
Block: 0 Offsets: 0 to 47 Dba:0x01800000
-------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 l ................
e6f80000 00200000 80020000 7d7c7b7a l ..... ......}|{z
a0810000 00000000 00000000 00000000 l ................
<16 bytes per line>
BBED> info
File# Name Size(blks)
----- ---- ----------
1 /home/db/oracle/oradata/erp/system01.dbf 62720
2 /home/db/oracle/oradata/erp/sysaux01.dbf 67840
3 /home/db/oracle/oradata/erp/undotbs1.dbf 42240
4 /home/db/oracle/oradata/erp/PARTTBS103.dbf 640
5 /home/db/oracle/oradata/erp/PARTTBS102.dbf 640
6 /home/db/oracle/oradata/erp/PARTTBS101.dbf 640
7 /home/db/oracle/oradata/erp/USERS01.dbf 640
8 /home/db/oracle/oradata/erp/JYCTBS03.dbf 64
9 /home/db/oracle/oradata/erp/JYCTBS02.dbf 16
10 /home/db/oracle/oradata/erp/JYCTBS01.dbf 16
11 /home/db/oracle/oradata/erp/TESTTBS103.dbf 88
12 /home/db/oracle/oradata/erp/TESTTBS102.dbf 72
13 /home/db/oracle/oradata/erp/TESTTBS101.dbf 104
14 /home/db/oracle/oradata/erp/TESTTBS202.dbf 32
15 /home/db/oracle/oradata/erp/TESTTBS201.dbf 40
16 /home/db/oracle/oradata/erp/APEX_1301369653334498.dbf 1288
17 /home/db/oracle/oradata/erp/APEX_1706321139930175.dbf 2568
BBED> set file 7 block 0
FILE# 7
BLOCK# 0
BBED> dump /v count 48
File: /home/db/oracle/oradata/erp/USERS01.dbf (7)
Block: 0 Offsets: 0 to 47 Dba:0x01c00000
-------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 l ................
e6f80000 00200000 80020000 7d7c7b7a l ..... ......}|{z
a0810000 00000000 00000000 00000000 l ................
<16 bytes per line>
BBED> set file 9 block 0
FILE# 9
BLOCK# 0
BBED> dump /v count 48
File: /home/db/oracle/oradata/erp/JYCTBS02.dbf (9)
Block: 0 Offsets: 0 to 47 Dba:0x02400000
-------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 l ................
76fa0000 00200000 10000000 7d7c7b7a l v.... ......}|{z
a0810000 00000000 00000000 00000000 l ................
<16 bytes per line>
BBED> set file 10 block 0
FILE# 10
BLOCK# 0
BBED> dump /v count 48
File: /home/db/oracle/oradata/erp/JYCTBS01.dbf (10)
Block: 0 Offsets: 0 to 47 Dba:0x02800000
-------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 l ................
76fa0000 00200000 10000000 7d7c7b7a l v.... ......}|{z
a0810000 00000000 00000000 00000000 l ................
<16 bytes per line>
BBED> exit
[oracle@saperp bbed]$ bvi
-bash: bvi: command not found
[oracle@saperp bbed]$ exit
logout
[root@saperp ~]# yum install bvi
Loaded plugins: auto-update-debuginfo, fastestmirror
Determining fastest mirrors
epel/x86_64/metalink | 5.4 kB 00:00:00
epel-debuginfo/x86_64/metalink | 5.5 kB 00:00:00
* base: mirrors.bfsu.edu.cn
* epel: mirrors.bfsu.edu.cn
* epel-debuginfo: mirrors.bfsu.edu.cn
* extras: mirrors.bfsu.edu.cn
* updates: mirrors.bfsu.edu.cn
base | 3.6 kB 00:00:00
base-debuginfo | 2.5 kB 00:00:00
epel | 4.7 kB 00:00:00
epel-debuginfo | 3.0 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/8): base/7/x86_64/group_gz | 153 kB 00:00:00
(2/8): epel/x86_64/group_gz | 95 kB 00:00:00
(3/8): epel/x86_64/updateinfo | 1.0 MB 00:00:00
(4/8): updates/7/x86_64/primary_db | 120 kB 00:00:00
(5/8): epel/x86_64/primary_db | 6.8 MB 00:00:00
(6/8): epel-debuginfo/x86_64/primary_db | 802 kB 00:00:00
(7/8): extras/7/x86_64/primary_db | 190 kB 00:00:00
(8/8): base/7/x86_64/primary_db | 6.1 MB 00:00:06
No package bvi available.
Error: Nothing to do
[root@saperp ~]# pwd
/root
[root@saperp ~]# wget https://jaist.dl.sourceforge.net/project/bvi/bvi/1.4.1/bvi-1.4.1.src.tar.gz
--2020-04-29 17:28:51-- https://jaist.dl.sourceforge.net/project/bvi/bvi/1.4.1/bvi-1.4.1.src.tar.gz
Resolving jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)... 150.65.7.130, 2001:df0:2ed:feed::feed
Connecting to jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)|150.65.7.130|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 143181 (140K) [application/x-gzip]
Saving to: 鈥榖vi-1.4.1.src.tar.gz鈥?
40% [====================================> ] 57,344 3.09KB/s eta 8m 30s ^C
[root@saperp ~]# ls
anaconda-ks.cfg bvi-1.4.1.src.tar.gz
[root@saperp ~]# rm bvi-1.4.1.src.tar.gz
rm: remove regular file 鈥榖vi-1.4.1.src.tar.gz鈥? y
[root@saperp ~]# pwd
/root
[root@saperp ~]# cd /home/soft
[root@saperp soft]# ls
bvi-1.4.1.src.tar.gz database p13390677_112040_Linux-x86-64_1of7.zip p13390677_112040_Linux-x86-64_2of7.zip patch
[root@saperp soft]# tar -zxvf bvi-1.4.1.src.tar.gz
bvi-1.4.1/
bvi-1.4.1/CHANGES
bvi-1.4.1/COPYING
bvi-1.4.1/CREDITS
bvi-1.4.1/Makefile.in
bvi-1.4.1/README
bvi-1.4.1/acconfig.h
bvi-1.4.1/bm_dos.c
bvi-1.4.1/bm_unix.c
bvi-1.4.1/bmore.1
bvi-1.4.1/bmore.c
bvi-1.4.1/bmore.h
bvi-1.4.1/bmore.help
bvi-1.4.1/bmore.hlp
bvi-1.4.1/bvi.1
bvi-1.4.1/bvi.c
bvi-1.4.1/bvi.h
bvi-1.4.1/comm.c
bvi-1.4.1/config.guess
bvi-1.4.1/config.h.in
bvi-1.4.1/config.sub
bvi-1.4.1/configure
bvi-1.4.1/configure.ac
bvi-1.4.1/dosconf.h
bvi-1.4.1/doscur.h
bvi-1.4.1/dosio.c
bvi-1.4.1/edit.c
bvi-1.4.1/install-sh
bvi-1.4.1/io.c
bvi-1.4.1/mkinstalldirs
bvi-1.4.1/patchlevel.h
bvi-1.4.1/re.c
bvi-1.4.1/recomp.c
bvi-1.4.1/script
bvi-1.4.1/set.c
bvi-1.4.1/set.h
bvi-1.4.1/tags
bvi-1.4.1/testfile
bvi-1.4.1/tmp
[root@saperp soft]# cd bvi-1.4.1
[root@saperp bvi-1.4.1]# ls
acconfig.h bmore.h bvi.1 comm.c configure dosconf.h install-sh patchlevel.h script testfile
bm_dos.c bmore.help bvi.c config.guess configure.ac doscur.h io.c README set.c tmp
bmore.1 bmore.hlp bvi.h config.h.in COPYING dosio.c Makefile.in re.c set.h
bmore.c bm_unix.c CHANGES config.sub CREDITS edit.c mkinstalldirs recomp.c tags
[root@saperp bvi-1.4.1]# more README
BVI - Binary visual editor
==========================
http://bvi.sourceforge.net/
This editor for binary files was written by Gerhard Buergmann
and is distributed under the GPL (GNU Public License).
How to compile
==============
You need the curses (ncurses) library for cursor movement on your system.
https://www.cyberciti.biz/faq/linux-install-ncurses-library-headers-on-debian-ubuntu-centos-fedora/
gunzip -c bvi-1.4.1.src.tar.gz | tar xvf -
cd bvi-1.4.1
./configure
make
make install
MAC OS X
========
Looks like the curses implementation in Darwin is really limited.
You should install and use ncurses instead. You can download it from
ftp.gnu.org; install it and then use
./configure --with-ncurses=/usr/local/ncurses-5.2
The Control-y key sequence suspends bvi and send it to the background.
To avoid this behaviour use:
stty dsusp undef
---------------------------------------------------------------------------
Subscribe to the bvi mailing for support, updates and other news:
Send a blank email to bvi-subscribe@yahoogroups.com. You will receive a
subscription confirmation message. Simply reply this message and your
subscription will be complete.
---------------------------------------------------------------------------
PLEASE send any bug reports (and fixes), code for new features,
comments, questions, etc. (even flames) to:
Gerhard Buergmann
Vienna, Austria
E-mail: gerhard@puon.at
[root@saperp bvi-1.4.1]# ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking size of void *... 8
checking for size_t... yes
checking for off_t... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking termcap.h usability... yes
checking termcap.h presence... yes
checking for termcap.h... yes
checking termio.h usability... yes
checking termio.h presence... yes
checking for termio.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking term.h usability... yes
checking term.h presence... yes
checking for term.h... yes
checking ncurses/term.h usability... yes
checking ncurses/term.h presence... yes
checking for ncurses/term.h... yes
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for library containing initscr... -lncurses
checking for library containing tputs... none required
checking for strdup... yes
checking for strtol... yes
checking for strtoll... yes
checking for strerror... yes
checking for memmove... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
[root@saperp bvi-1.4.1]# make
gcc -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_CONFIG_H -c bvi.c
gcc -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_CONFIG_H -c comm.c
gcc -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_CONFIG_H -c set.c
gcc -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_CONFIG_H -c re.c
gcc -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_CONFIG_H -c io.c
gcc -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_CONFIG_H -c edit.c
gcc -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_CONFIG_H -c recomp.c
gcc -o bvi bvi.o comm.o set.o re.o io.o edit.o recomp.o -lncurses
gcc -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_CONFIG_H -DHELPFILE=\"/usr/local/share/bvi/bmore.help\" -c bmore.c
gcc -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_CONFIG_H -c bm_unix.c
gcc -o bmore bmore.o bm_unix.o recomp.o -lncurses
[root@saperp bvi-1.4.1]# make install
/bin/sh ./mkinstalldirs /usr/local/bin /usr/local/share/bvi /usr/local/share/man/man1
mkdir -p -- /usr/local/share/bvi /usr/local/share/man/man1
Installing bvi
[root@saperp bvi-1.4.1]# pwd
/home/soft/bvi-1.4.1
[root@saperp bvi-1.4.1]# bvi
:q!
bvi version 1.4.1 (C) GPL 1996-2019 by Gerhard Buergmann
[root@saperp bvi-1.4.1]# pwd
/home/soft/bvi-1.4.1
[root@saperp bvi-1.4.1]# bvi 1
:wq!
bvi version 1.4.1 (C) GPL 1996-2019 by Gerhard Buergmann
[root@saperp bvi-1.4.1]# string 1
-bash: string: command not found
[root@saperp bvi-1.4.1]# ls
1 bmore.c bm_unix.c bvi.h config.guess config.sub dosconf.h install-sh mkinstalldirs recomp.o set.o
acconfig.h bmore.h bm_unix.o bvi.o config.h configure doscur.h io.c patchlevel.h re.o tags
bm_dos.c bmore.help bvi CHANGES config.h.in configure.ac dosio.c io.o README script testfile
bmore bmore.hlp bvi.1 comm.c config.log COPYING edit.c Makefile re.c set.c tmp
bmore.1 bmore.o bvi.c comm.o config.status CREDITS edit.o Makefile.in recomp.c set.h
[root@saperp bvi-1.4.1]# pwd
/home/soft/bvi-1.4.1
[root@saperp bvi-1.4.1]# strings 1
[root@saperp bvi-1.4.1]# more 1
[root@saperp bvi-1.4.1]# cat 1
[root@saperp bvi-1.4.1]# bvi 1
:q!
bvi version 1.4.1 (C) GPL 1996-2019 by Gerhard Buergmann
[root@saperp bvi-1.4.1]# su - oracle
Last login: Wed Apr 29 16:08:06 CST 2020 on pts/0
[oracle@saperp ~]$ cd bbed/
[oracle@saperp bbed]$ bbed parfile=par.txt
BBED: Release 2.0.0.0.0 - Limited Production on Wed Apr 29 17:52:36 2020
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
************* !!! For Oracle Internal Use only !!! ***************
BBED> info
File# Name Size(blks)
----- ---- ----------
1 /home/db/oracle/oradata/erp/system01.dbf 62720
2 /home/db/oracle/oradata/erp/sysaux01.dbf 67840
3 /home/db/oracle/oradata/erp/undotbs1.dbf 42240
4 /home/db/oracle/oradata/erp/PARTTBS103.dbf 640
5 /home/db/oracle/oradata/erp/PARTTBS102.dbf 640
6 /home/db/oracle/oradata/erp/PARTTBS101.dbf 640
7 /home/db/oracle/oradata/erp/USERS01.dbf 640
8 /home/db/oracle/oradata/erp/JYCTBS03.dbf 64
9 /home/db/oracle/oradata/erp/JYCTBS02.dbf 16
10 /home/db/oracle/oradata/erp/JYCTBS01.dbf 16
11 /home/db/oracle/oradata/erp/TESTTBS103.dbf 88
12 /home/db/oracle/oradata/erp/TESTTBS102.dbf 72
13 /home/db/oracle/oradata/erp/TESTTBS101.dbf 104
14 /home/db/oracle/oradata/erp/TESTTBS202.dbf 32
15 /home/db/oracle/oradata/erp/TESTTBS201.dbf 40
16 /home/db/oracle/oradata/erp/APEX_1301369653334498.dbf 1288
17 /home/db/oracle/oradata/erp/APEX_1706321139930175.dbf 2568
BBED> dump /v file 4 block 0 count 48 offset 0
File: /home/db/oracle/oradata/erp/PARTTBS103.dbf (4)
Block: 0 Offsets: 0 to 47 Dba:0x01000000
-------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 l ................
e6f80000 00200000 80020000 7d7c7b7a l ..... ......}|{z
a0810000 00000000 00000000 00000000 l ................
<16 bytes per line>
BBED> dump /v file 5 block 0 count 48 offset 0
File: /home/db/oracle/oradata/erp/PARTTBS102.dbf (5)
Block: 0 Offsets: 0 to 47 Dba:0x01400000
-------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 l ................
e6f80000 00200000 80020000 7d7c7b7a l ..... ......}|{z
a0810000 00000000 00000000 00000000 l ................
<16 bytes per line>
BBED> dump /v file 7 block 0 count 48 offset 0
File: /home/db/oracle/oradata/erp/USERS01.dbf (7)
Block: 0 Offsets: 0 to 47 Dba:0x01c00000
-------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 l ................
e6f80000 00200000 80020000 7d7c7b7a l ..... ......}|{z
a0810000 00000000 00000000 00000000 l ................
<16 bytes per line>
BBED> copy file 7 block 0 to file 4 block 0
File: /home/db/oracle/oradata/erp/PARTTBS103.dbf (4)
Block: 0 Offsets: 0 to 47 Dba:0x01000000
------------------------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 e6f80000 00200000 80020000 7d7c7b7a
a0810000 00000000 00000000 00000000
<32 bytes per line>
BBED> dump /v file 4 block 0 count 48 offset 0
File: /home/db/oracle/oradata/erp/PARTTBS103.dbf (4)
Block: 0 Offsets: 0 to 47 Dba:0x01000000
-------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 l ................
e6f80000 00200000 80020000 7d7c7b7a l ..... ......}|{z
a0810000 00000000 00000000 00000000 l ................
<16 bytes per line>
BBED> set file 4
FILE# 4
BBED> set block 0
BLOCK# 0
BBED> dump /v count 48
File: /home/db/oracle/oradata/erp/PARTTBS103.dbf (4)
Block: 0 Offsets: 0 to 47 Dba:0x01000000
-------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 l ................
e6f80000 00200000 80020000 7d7c7b7a l ..... ......}|{z
a0810000 00000000 00000000 00000000 l ................
<16 bytes per line>
BBED> exit
[oracle@saperp bbed]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.4.0 Production on Wed Apr 29 17:56:13 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
SQL> conn /as sysdba
Connected.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 1252663296 bytes
Fixed Size 2252824 bytes
Variable Size 436211688 bytes
Database Buffers 805306368 bytes
Redo Buffers 8892416 bytes
Database mounted.
Database opened.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@saperp bbed]$ bbed parfile=par.txt
BBED: Release 2.0.0.0.0 - Limited Production on Wed Apr 29 17:58:09 2020
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
************* !!! For Oracle Internal Use only !!! ***************
BBED> info
File# Name Size(blks)
----- ---- ----------
1 /home/db/oracle/oradata/erp/system01.dbf 62720
2 /home/db/oracle/oradata/erp/sysaux01.dbf 67840
3 /home/db/oracle/oradata/erp/undotbs1.dbf 42240
4 /home/db/oracle/oradata/erp/PARTTBS103.dbf 640
5 /home/db/oracle/oradata/erp/PARTTBS102.dbf 640
6 /home/db/oracle/oradata/erp/PARTTBS101.dbf 640
7 /home/db/oracle/oradata/erp/USERS01.dbf 640
8 /home/db/oracle/oradata/erp/JYCTBS03.dbf 64
9 /home/db/oracle/oradata/erp/JYCTBS02.dbf 16
10 /home/db/oracle/oradata/erp/JYCTBS01.dbf 16
11 /home/db/oracle/oradata/erp/TESTTBS103.dbf 88
12 /home/db/oracle/oradata/erp/TESTTBS102.dbf 72
13 /home/db/oracle/oradata/erp/TESTTBS101.dbf 104
14 /home/db/oracle/oradata/erp/TESTTBS202.dbf 32
15 /home/db/oracle/oradata/erp/TESTTBS201.dbf 40
16 /home/db/oracle/oradata/erp/APEX_1301369653334498.dbf 1288
17 /home/db/oracle/oradata/erp/APEX_1706321139930175.dbf 2568
BBED> dump /v file 4 block 0 count 48 offset 0
File: /home/db/oracle/oradata/erp/PARTTBS103.dbf (4)
Block: 0 Offsets: 0 to 47 Dba:0x01000000
-------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 l ................
e6f80000 00200000 80020000 7d7c7b7a l ..... ......}|{z
a0810000 00000000 00000000 00000000 l ................
<16 bytes per line>
BBED> exit
[oracle@saperp bbed]$ cp /home/db/oracle/oradata/erp/PARTTBS103.dbf /home/db/oracle/oradata/erp/PARTTBS103.dbfbak
[oracle@saperp bbed]$ bvi -b 0 -s 8192 /home/db/oracle/oradata/erp/PARTTBS103.dbf
Usage: bvi [-R] [-c cmd | +cmd] [-f script]
[-s skip] [-e end] [-n length] file ...
file offset/size: 10k, 20m, 1g, 0x1000 hex, 0200 octal
[oracle@saperp bbed]$ bvi /home/db/oracle/oradata/erp/PARTTBS103.dbf
:wq!
bvi version 1.4.1 (C) GPL 1996-2019 by Gerhard Buergmann
[oracle@saperp bbed]$ bbed parfile=par.txt
BBED: Release 2.0.0.0.0 - Limited Production on Wed Apr 29 18:02:13 2020
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
************* !!! For Oracle Internal Use only !!! ***************
BBED> info
File# Name Size(blks)
----- ---- ----------
1 /home/db/oracle/oradata/erp/system01.dbf 62720
2 /home/db/oracle/oradata/erp/sysaux01.dbf 67840
3 /home/db/oracle/oradata/erp/undotbs1.dbf 42240
4 /home/db/oracle/oradata/erp/PARTTBS103.dbf 640
5 /home/db/oracle/oradata/erp/PARTTBS102.dbf 640
6 /home/db/oracle/oradata/erp/PARTTBS101.dbf 640
7 /home/db/oracle/oradata/erp/USERS01.dbf 640
8 /home/db/oracle/oradata/erp/JYCTBS03.dbf 64
9 /home/db/oracle/oradata/erp/JYCTBS02.dbf 16
10 /home/db/oracle/oradata/erp/JYCTBS01.dbf 16
11 /home/db/oracle/oradata/erp/TESTTBS103.dbf 88
12 /home/db/oracle/oradata/erp/TESTTBS102.dbf 72
13 /home/db/oracle/oradata/erp/TESTTBS101.dbf 104
14 /home/db/oracle/oradata/erp/TESTTBS202.dbf 32
15 /home/db/oracle/oradata/erp/TESTTBS201.dbf 40
16 /home/db/oracle/oradata/erp/APEX_1301369653334498.dbf 1288
17 /home/db/oracle/oradata/erp/APEX_1706321139930175.dbf 2568
BBED> dump /v file 4 block 0 count 48 offset 0
BBED-00309: out of range block number (0)
BBED> copy file 7 block 0 to file 4 block 0
BBED-00309: out of range block number (0)
BBED> dump /v file 7 block 0 count 48 offset 0
File: /home/db/oracle/oradata/erp/USERS01.dbf (7)
Block: 0 Offsets: 0 to 47 Dba:0x01c00000
-------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 l ................
e6f80000 00200000 80020000 7d7c7b7a l ..... ......}|{z
a0810000 00000000 00000000 00000000 l ................
<16 bytes per line>
BBED> exit
[oracle@saperp bbed]$ bvi /home/db/oracle/oradata/erp/PARTTBS103.dbf
:wq!
bvi version 1.4.1 (C) GPL 1996-2019 by Gerhard Buergmann
[oracle@saperp bbed]$ bvi /home/db/oracle/oradata/erp/PARTTBS103.dbf
:q!
bvi version 1.4.1 (C) GPL 1996-2019 by Gerhard Buergmann
[oracle@saperp bbed]$ bvi -b 0 -s 8192 /home/db/oracle/oradata/erp/PARTTBS103.dbf
Usage: bvi [-R] [-c cmd | +cmd] [-f script]
[-s skip] [-e end] [-n length] file ...
file offset/size: 10k, 20m, 1g, 0x1000 hex, 0200 octal
[oracle@saperp bbed]$ bvi -n 32 /home/db/oracle/oradata/erp/PARTTBS103.dbf
:q!
bvi version 1.4.1 (C) GPL 1996-2019 by Gerhard Buergmann
[oracle@saperp bbed]$ bbed parfile=par.txt
BBED: Release 2.0.0.0.0 - Limited Production on Wed Apr 29 18:06:34 2020
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
************* !!! For Oracle Internal Use only !!! ***************
BBED> info
File# Name Size(blks)
----- ---- ----------
1 /home/db/oracle/oradata/erp/system01.dbf 62720
2 /home/db/oracle/oradata/erp/sysaux01.dbf 67840
3 /home/db/oracle/oradata/erp/undotbs1.dbf 42240
4 /home/db/oracle/oradata/erp/PARTTBS103.dbf 640
5 /home/db/oracle/oradata/erp/PARTTBS102.dbf 640
6 /home/db/oracle/oradata/erp/PARTTBS101.dbf 640
7 /home/db/oracle/oradata/erp/USERS01.dbf 640
8 /home/db/oracle/oradata/erp/JYCTBS03.dbf 64
9 /home/db/oracle/oradata/erp/JYCTBS02.dbf 16
10 /home/db/oracle/oradata/erp/JYCTBS01.dbf 16
11 /home/db/oracle/oradata/erp/TESTTBS103.dbf 88
12 /home/db/oracle/oradata/erp/TESTTBS102.dbf 72
13 /home/db/oracle/oradata/erp/TESTTBS101.dbf 104
14 /home/db/oracle/oradata/erp/TESTTBS202.dbf 32
15 /home/db/oracle/oradata/erp/TESTTBS201.dbf 40
16 /home/db/oracle/oradata/erp/APEX_1301369653334498.dbf 1288
17 /home/db/oracle/oradata/erp/APEX_1706321139930175.dbf 2568
BBED> dump /v file 4 block 0 count 48 offset 0
File: /home/db/oracle/oradata/erp/PARTTBS103.dbf (4)
Block: 0 Offsets: 0 to 47 Dba:0x01000000
-------------------------------------------------------
00a20000 0000c0ff 00000000 00000000 l ................
e6f80000 00200000 80020000 7d7c7b7a l ..... ......}|{z
a0810000 00000000 00000000 00000000 l ................
<16 bytes per line>
BBED> exit
[oracle@saperp bbed]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.4.0 Production on Wed Apr 29 18:07:06 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
SQL> conn /as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 1252663296 bytes
Fixed Size 2252824 bytes
Variable Size 436211688 bytes
Database Buffers 805306368 bytes
Redo Buffers 8892416 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
oracle文件头0号块损坏的处理相关推荐
- oracle dbms_repair,oracle实验-使用dbms_repair修复块损坏
使用dbms_repair修复块损坏的例子 dbms_repair是从oracle8i开始提供的. 我们可以用设置event的方法来处理坏块: 但是当数据量很大,或7*24的系统时,这样的方法就不是很 ...
- 如何在Oracle中检测和修复块损坏
在本文中,我们将看到数据文件上存在块损坏时如何修复块损坏. 如果索引上存在"块损坏",则可以通过删除并重新创建索引来解决问题. 在某些情况下,块损坏也可以出现在空闲页面上. 检测损 ...
- oracle 文件头格式,ORACLE 11G 数据文件头格式
11G版本 BBED> print kcvfh struct kcvfh, 860 bytes @0 struct kcvfhbfh, 20 bytes @0 ub1 type_kcbh @0 ...
- media recovery oracle,oracle 数据块损坏 Oracle 数据块损坏与恢复详解
本文主要对RMAN块级别介质恢复进行解释并举例,以帮助大家理解相应概念并灵活使用 块级别介质恢复(Block-Level Media Recovery) 注意: 此恢复无法对数据文件块头(第一个块)进 ...
- 04 bbed修复system文件头损坏
04 bbed修复system文件头损坏 1 启动数据库,查看trace,在mount到open, SQL> startup mount; ORACLE instance started.Tot ...
- 修改oracle的表空间文件scn,分享:bbed修改数据文件头推进scn与其他数据文件相同...
场景简介: 物理copy表空间数据文件,数据库发生完全检查点,删除该表空间下的数据文件,使该表空间数据文件头的scn与其他数据文件不一致. 场景构造: 1.创建测试表空间 SYS@orser> ...
- 使用BBED恢复数据文件头
转载请注明出处:http://blog.csdn.net/guoyjoe/article/details/31018075 @@@@@@@利用BBED模拟损坏5文件1号块(文件头) BBED> ...
- oracle scn与数据恢复,Oracle数据恢复:数据文件头的SCN与时间校验
Oracle数据恢复:数据文件头的SCN与时间校验 SQL> alter database open; alter database open * ERROR at line 1: ORA-01 ...
- 数据文件头块保留大小、ROWID、数据文件最大大小等数据库限制的说明
学习自EYGLE循序渐进ORACLE及官方文档. 本地管理表空间中设置不同大小的db_block_size时数据文件头保留空间对应如下: db_block_size=2KB,文件头保留32个数据块,即 ...
最新文章
- 纯内存linux,7、内存知识和Linux基本原则
- FORTRAN学习记录(持续更新)
- 帆软报表(finereport)单元格函数,OP参数
- SpringCloud Greenwich(六)集成dubbo与openfeign的feignTargeter报错,cannot access its superinterface Targeter
- idea报“Usage of API documented as @since 1.7”这一问题的解决方法
- Shell脚本中date的用法小结
- 串口转以太网口--模块研发过程
- sharepoint如何解锁被用户锁定的文件?
- tinyXml解析XML文件
- 简单的网页在线咨询代码
- ajax上传图片 java_Java+ajax+图片上传
- 微信小程序数据库关于openId的坑
- 实验一:VLAN实验
- Crout分解法 | matlab
- table maker's delimma
- 名片互赞软件(安卓版)
- HDFS开启HA后,Hbase的REGIONSERVERS启动错误(Operation category READ is not supported in state standby)
- BeiJing2006 狼抓兔子
- 如果你是我眼中一滴泪,那么我永远不会哭
- 碰到数学归纳法,一点感受
热门文章
- 计算机现在发展状况,浅谈计算机的发展状况
- 计算机硬件未来发展前景,计算机硬件发展现状
- SUSCTF Ez_Pager_Tiper
- 51Nod 1278 相离的圆(好题)
- python微博热点_50行Python代码,一键获取微博热点
- 模板编程:模板特例化以及特例化inline的做用
- 牛客网、赛码网javascript在线编程的输入输出
- 运放:运放+TL431+MOS 构成的恒流电路
- 使用docx4j生成指定页码的带水印的空白word文档
- 操作数据库方法总结1——JDBC、连接池与JDBCTemplate