追溯生活 笑~笑

生活随笔 技术点滴

RSS Feed

Hello, Welcome to my blog,Thank you!

Tag Archives: Exp

EXP 采用文件方式导出

0 Comments

exp 昨天才发现可以使用文件写参数的方式,每行一个参数 exp parfile=e:\expfile.par 注意query参数中,如果出现’需要以”进行替代 log=C:\DOCUME~1\Admin\LOCALS~1\Temp\plsexp.log file=E:\reader_200912221733.dmp buffer=4096 query=’where strapprovedocunid in (select tt.strapprovedocunid from con

Filed under DataBase
三 29, 2010

第二十一章 备份与恢复相关工具

0 Comments

这章的内容以前试验过,不过原理可能不清楚。 1.logminer 需要建立字典文件,如果在建立过字典文件以后,增加里表,要分析新增加的对象就要重新建立字典文件。数据字典的作用是将对象的ID转变为可以识别的对象名 2.DVB 验证数据文件 DBV FILE=E:\ORACLE\PRODUCT\10.2.0\ORADATA\ROOT\USERS01.DBF 验证部分块 dbv file=e:

Filed under PKManager
二 24, 2009

第二十章 使用flashback

0 Comments

1.select * from test as of timestamp(scn) to _timestamp(’2009-02-24 09:30:00′,’yyyy-mm-dd hh24:mi:ss’) where id beween 6 and 8; 查询闪回时间点中表的数据 insert into test select * from test as of timestamp to_timestamp(’2009-02-24 09:30:00′,’yyyy-mm-d

Filed under PKManager
二 24, 2009

第十八章 物理备用数据库

0 Comments

1.在同一台机器上建立备用数据库 mkdir e:\standby1 mkdir e:\standby1\bdump mkdir e:\stabdby1\udump mkdir e:\standby1\archive oradim -new -sid standby1 -intpwd oracle 290页  

Filed under PKManager
二 23, 2009

第十六章 表空间时间点恢复

0 Comments

阅读一遍,没记录。

Filed under PKManager
二 23, 2009

第十七章 管理复制数据库

0 Comments

阅读一遍,没记录。

Filed under PKManager
二 23, 2009

第十五章 EXP和IMP

0 Comments

1.imp system/system@root file=test.dmp tables=t_po,t_bin ; 导入表T_PO,T_BIN imp system/system@root file=test.dmp table=t_po,t_bin fromuser=scott touser=system 将scott对象中的T_PO,T_BIn数据导入system 2.imp system/system file=test.dmp fromuser=scott touser=system 将scott所有对象导入system

Filed under PKManager
二 23, 2009

第十三章 管理恢复目录

0 Comments

1.create tablespace rman_ts datafile ‘%oracle_base%\oradata\test\rman_ts.dbf’ size 30MB 建表空间 create user rman identified by rman default tablespace rman_ts; 建用户用于恢复 grant connect ,resource,recovery_catalog_owner to rman; 授权权限给rman用户 一个目标数据库一年大约用15M的空间存

Filed under PKManager
二 20, 2009

第十一章 RMAN恢复综述

0 Comments

1.restore database 只能用在mount状态下 2.restore tablespace 只能用在open下使用 3.restore datafile 可以在open和mount状态下使用 4.restore controlfile 只能在nomount状态下使用 5.restore archivelog  可以在mount和open状态使用 6.restore spfile   只能在nomount下使用 7.recover database

Filed under PKManager
二 19, 2009

第十章 RMAN备份

0 Comments

1.configure exclude for tablespace users;  排除备份users表空间 backup database format=’e:\backup\%d_%s.dbf’;  备份数据库 sql’alter system archive log current’ 2.backup datafile 5 format format=’e:\backup\%N_%f_%s.dbf’;备份数据文件 3.backup current co

Filed under PKManager
二 18, 2009