Tuning “Backup:sbtbackup” Event

A few days ago a friend ask me to see a awr issue. In the TOP 5 Times Events, as you see, Obviously,database has relatively high sbtbackup wait event, Backup:sbtbackup falls under the administrative category also realted to the RMAN. These wait events will occur when there is RMAN backup running on the server. Backup: … Read more

一次expdp/impdp迁移案例

因一次硬件原因导致了服务器异常停机,防止蝴蝶效应及时进行了数据迁移,一周发现了这个决定正确的。 申请了2小时的停机时间。因数据不大且表空间开始使用不规范决定用expdp数据泵方式迁移。 在新设备 1, raid10+安装OS 2,安装oracle 10.2.0.1(single instance)+ 3,升级oracle 10.2.0.5 4,建库, 5, 调整INSTANCE参数,调整temp tbs、redo file size、undo tbs大小 6,创建app schema、创建data\index tablespace 用时1小时左右 stop web app+挂通知 stop listener sys@TOPBOX>select object_type,count(*) cnt from dba_objects where owner=’TOPBOX’ GROUP BY OBJECT_TYPE; OBJECT_TYPE CNT ——————- ——————– SEQUENCE 802 PROCEDURE 25 DATABASE LINK 2 LOB 3 TRIGGER 3 MATERIALIZED VIEW 2 TABLE … Read more

力挺一下sqluldr

客户要求导出大量的数据(约800万记录),开始为了格式上的好看生成的是ACCESS数据库文件,用Toad 11导出成生ACCESS,本地域名网的DB,生成700W生成的文件有1G多点,都用了约三个小时,更悲惨的是三个小时后,弹出的一个错误窗口,提示无空间,莫名其妙,硬盘空间很充足,当时的心情可真是”唯有长江水无语东流…” 变通一下800万的记录在ACCESS也没有可读性,无非是数据导入,所以考虑生成flat file,文本文件的形式。 想到了老楼的小工具sqluldr,free命令行操作方便。 下面是真实的操作,早知如此何必加那三小时班。 [oracle@dev-db ~]$ ./sqluldr2 user=icme6/icme6 query=”select /*+parallel(t 8)*/* from sdscore t” file=sd_score.txt field=0x09 record=0x0d0x0a 0 rows exported at 2013-04-12 19:59:18, size 0 MB. 1000000 rows exported at 2013-04-12 19:59:21, size 200 MB. 2000000 rows exported at 2013-04-12 19:59:24, size 320 MB. 3000000 rows exported at 2013-04-12 19:59:27, size 420 MB. … Read more

More about ITL in oracle

ITL(Interested Transaction List ),The Oracle database engine locks the data modified by a transaction at the row level. To implement this feature every data block contains a list of all transactions that are modifying it. This list is commonly called interested transaction list (ITL).

oracle forall instructs must be followed by DML

Oracle BULK COLLECT and Oracle FORALL are the new features in Oracle 8i, 9i and 10g PL/SQL that can really make a different to you PL/SQL performance. The keyword FORALL instructs the PL/SQL engine to bulk-bind input collections before sending them to the SQL engine. Although the FORALL statement contains an iteration scheme, it is … Read more