欢迎投稿

今日深度:

aul 学习测试(测),aul学习测试

aul 学习测试(测),aul学习测试


-------------------aul5 ----------test0-------------------------
select file#,rfile#,name from v$datafile


rac1-> ./...bin 
Register Code: VDTL-ZSMR-RBBL-ATFV-JBKK
AUL : AnySQL UnLoader(MyDUL) for Oracle 8/8i/9i/10g/11g, release 5.1.2


(C) Copyright Lou Fangxin 2005-2010 (AnySQL.net), all rights reserved.


AUL> UNLOAD TABLE USER$;
2011-10-12 23:39:04
2011-10-12 23:39:04
AUL> UNLOAD TABLE OBJ$;
2011-10-12 23:39:14
2011-10-12 23:39:14                   --这个时候查询txt文件 你会发现 里面是空的
AUL> open db10g.cfg                   --而且必须先执行这条命令 才可以真正吧内容给搞出来
*  ts#  fno  rfn ver bsize     blocks filename
- ---- ---- ---- --- ----- ---------- -----------------------------------
Y    0    1    1 a2   8192      64000 /u01/app/oracle/oradata/test/system01.dbf
Y    1    2    2 a2   8192       3200 /u01/app/oracle/oradata/test/undotbs01.dbf
Y    2    3    3 a2   8192      29440 /u01/app/oracle/oradata/test/sysaux01.dbf
Y    4    4    4 a2   8192      64000 /u01/app/oracle/oradata/test/users01.dbf
AUL> UNLOAD TABLE USER$;              --这样文件就有内容了
2011-10-12 23:39:40
2011-10-12 23:39:40
-----------------------------aul5 ----------test1--------------------
--1 conn  sys/ as sysdba 
create table lihj as select * from user_tables
--
select * from user_tables where table_name='LIHJ'
select * from all_users 


AUL>  LIST TABLE SCOTT
 UNLOAD TABLE SCOTT.DEPT TO DEPT.txt;
 UNLOAD TABLE SCOTT.EMP TO EMP.txt;
 UNLOAD TABLE SCOTT.BONUS TO BONUS.txt;
 UNLOAD TABLE SCOTT.SALGRADE TO SALGRADE.txt;
AUL> UNLOAD TABLE SCOTT.DEPT ;
2011-10-12 23:52:29
Unload OBJD=51146 FILE=4 BLOCK=11 CLUSTER=0 ...
10|ACCOUNTING|NEW YORK
20|RESEARCH|DALLAS
30|SALES|CHICAGO
40|OPERATIONS|BOSTON
Sucessfully unload 4 rows ...
2011-10-12 23:52:29
-------------------------------aul5-----------test2---------------------------
--下面的实验证明了一个小问题:先要unload字典,system的用户创建的可能unload不出来
AUL> UNLOAD TABLE USER$;
2011-10-12 23:51:02
2011-10-12 23:51:02
AUL> UNLOAD TABLE OBJ$;
2011-10-12 23:51:08
2011-10-12 23:51:08
AUL> UNLOAD TABLE TAB$;
2011-10-12 23:51:13
2011-10-12 23:51:13
AUL> UNLOAD TABLE COL$;
2011-10-12 23:51:18
2011-10-12 23:51:19
AUL> UNLOAD TABLE LIHJ
   2 ;
AUL>  LIST TABLE SCOTT
-------------------------------------------注意这些步骤的顺序,刚刚checkpoint的数据要重新加载
 UNLOAD TABLE SCOTT.DEPT TO DEPT.txt;
 UNLOAD TABLE SCOTT.EMP TO EMP.txt;
 UNLOAD TABLE SCOTT.BONUS TO BONUS.txt;
 UNLOAD TABLE SCOTT.SALGRADE TO SALGRADE.txt;
AUL> UNLOAD TABLE SCOTT.DEPT ;
2011-10-12 23:52:29
Unload OBJD=51146 FILE=4 BLOCK=11 CLUSTER=0 ...
10|ACCOUNTING|NEW YORK
20|RESEARCH|DALLAS
30|SALES|CHICAGO
40|OPERATIONS|BOSTON
Sucessfully unload 4 rows ...
2011-10-12 23:52:29
AUL>  LIST TABLE SCOTT;
 UNLOAD TABLE SCOTT.DEPT TO DEPT.txt;
 UNLOAD TABLE SCOTT.EMP TO EMP.txt;
 UNLOAD TABLE SCOTT.BONUS TO BONUS.txt;
 UNLOAD TABLE SCOTT.SALGRADE TO SALGRADE.txt;
AUL> UNLOAD TABLE USER$;
2011-10-12 23:57:47
2011-10-12 23:57:47
AUL> UNLOAD TABLE OBJ$;
2011-10-12 23:57:47
UNLOAD TABLE TAB$;
UNLOAD TABLE COL$;
LIST TABLE SCOTT 
2011-10-12 23:57:47
AUL> 2011-10-12 23:57:47
2011-10-12 23:57:47
AUL> 2011-10-12 23:57:47
2011-10-12 23:57:47
AUL> 
 UNLOAD TABLE SCOTT.DEPT TO DEPT.txt;
 UNLOAD TABLE SCOTT.EMP TO EMP.txt;
 UNLOAD TABLE SCOTT.BONUS TO BONUS.txt;
 UNLOAD TABLE SCOTT.SALGRADE TO SALGRADE.txt;
 UNLOAD TABLE SCOTT.LIHJ TO LIHJ.txt;
AUL> UNLOAD TABLE LIHJ
   2 ;
AUL>  UNLOAD TABLE SCOTT.LIHJ;
2011-10-12 23:58:25
Unload OBJD=51626 FILE=4 BLOCK=1387 CLUSTER=0 ...
DEPT|USERS|||VALID|10||1|255|65536||1|2147483645||||YES|N|||||||||         1|         1|    N|ENABLED|||NO||N|N|NO|DEFAULT|DISABLED|NO|NO||DISABLED|YES||DISABLED|DISABLED|NO
EMP|USERS|||VALID|10||1|255|65536||1|2147483645||||YES|N|||||||||         1|         1|    N|ENABLED|||NO||N|N|NO|DEFAULT|DISABLED|NO|NO||DISABLED|YES||DISABLED|DISABLED|NO
BONUS|USERS|||VALID|10||1|255|65536||1|2147483645||||YES|N|||||||||         1|         1|    N|ENABLED|||NO||N|N|NO|DEFAULT|DISABLED|NO|NO||DISABLED|YES||DISABLED|DISABLED|NO
SALGRADE|USERS|||VALID|10||1|255|65536||1|2147483645||||YES|N|||||||||         1|         1|    N|ENABLED|||NO||N|N|NO|DEFAULT|DISABLED|NO|NO||DISABLED|YES||DISABLED|DISABLED|NO
Sucessfully unload 4 rows ...
2011-10-12 23:58:25
---------------------------------------------------------------------------------------------
open db10g.cfg 
unload table USER$ 
unload table OBJ$ 
unload table TAB$  
unload table COL$  --以上四个步骤好像都需要的
--刚刚开始的时候 前面不能添加
SET FIELD_TAG \x07
SET RECORD_TAG \x06unload table sys.view$ to sys_view2.txt;
 --视图可以搞出来 牛
--关键是数据
---------------------------------以下的顺序算是比较成功的------------------------------------
open db10g.cfg               --这个文件需要上传的
unload table USER$;
unload table OBJ$; 
unload table TAB$; 
unload table COL$; 
set field_tag \x07
set record_tag \x06
---以下的命令可以同时生成ctl文件和sql文件,,以后用这个顺序做
unload table sys.source$ to sys_source.txt; 
unload table scott.dept to scott_dept.txt; 
-----系统生成的文件
rac1-> ll
total 32460
-rw-r--r--  1 oracle oinstall  2328529 Oct 13 00:31 AULCOL.TXT
-rw-r--r--  1 oracle oinstall  1868268 Oct 13 00:29 AULOBJ.TXT
-rw-r--r--  1 oracle oinstall    84655 Oct 13 00:31 AULTAB.TXT
-rw-r--r--  1 oracle oinstall      874 Oct 13 00:29 AULUSR.TXT
-rw-r--r--  1 oracle oinstall      293 Oct 13 00:34 DEPT_sqlldr.ctl
-rw-r--r--  1 oracle oinstall      108 Oct 13 00:34 DEPT_syntax.sql
-rw-r--r--  1 oracle oinstall      295 Oct 13 00:31 SOURCE__sqlldr.ctl
-rw-r--r--  1 oracle oinstall      112 Oct 13 00:31 SOURCE__syntax.sql
-rwxr-xr-x  1 oracle oinstall   352196 Jun 28 15:23 aul5b_linux.bin
-rw-r--r--  1 oracle oinstall      185 Oct 12 23:34 db10g.cfg
-rw-r--r--  1 oracle oinstall       80 Oct 13 00:34 scott_dept.txt
-rw-r--r--  1 oracle oinstall 28532163 Oct 13 00:31 sys_source.txt




---如果是删除的数据该怎么恢复呢!否则只能恢复现有的重要的数据,工具的局限性大的工具由大牛编写,局限性很强,做好备份,非常重要:

相比之下该文章更有借鉴性(偷梁换柱——极端情况下的数据拯救)

http://www.hellodba.com/reader.php?ID=210&lang=CN


软件测试学习推荐几本书

1、J.Mers 《计算机软件测试技巧》
[:S0清华大学出版社 1985 51Testing软件测试网)51Testing软件测试
2、郑人杰 《计算机软件测试技术》 清华大学出版社 1992
朱鸿 《软件质量保障与测试》 科学出版社 1997
《客户机/服务器系统测试》
机械工业出版社 1998
周涛 《航天型号软件测试》 宇航出版社 1999

6、Rex Black 《测试流程管理》
北京大学出版社 1999

7、Mark Fewster 《软件测试自动化技术与实例详解》 电子工业出版社

《面向对象系统的测试》
人民邮电出版社 2001

9、Rakitin,S.K. 《软件验证与确认的最佳管理办法》
电子工业出版社 2002

10、麦格雷戈 《面向对象的软件测试》
机械工业出版社 2002
 

软件测试需要学习些什技可以?

1.测试环境(网络环境,windows环境等)
2.数据库管理
3.编程技巧(java编程设计,脚本语言,设计工具,XML编程)
4.软件测试技术(测试理论,方法,流程,文档写作,测试工具,自动测试)
5.测试技术实践
 

www.htsjk.Com true http://www.htsjk.com/shujukunews/2184.html NewsArticle aul 学习测试(测),aul学习测试 -------------------aul5 ----------test0------------------------- select file#,rfile#,name from v$datafile rac1- ./...bin Register Code: VDTL-ZSMR-RBBL-ATFV-JBKK AUL : AnySQL UnLoader(MyDUL) for Or...
相关文章
    暂无相关文章
评论暂时关闭