x$bh
select owner,object_name,object_type from dba_objects where data_object_id in (select obj from x$bh where hladdr in (select addr from (select addr from v$latch_children where name='cache b...
调整sar 取样时间
编辑文件/etc/cron.d编辑sysstat[root@slave-report1 cron.d]# more sysstat# run system activity accounting tool every 10 minutes*/1 * * * * root /usr/lib64/sa/sa1 1 1
查看临时表空间使用情况
select (sum (blocks))*8/1000 "MB",sql_id from v$sort_usage group by sql_id; 根据sql_id select sql_text from v$sqltext where sql_id='xxxx' group by piece;
通过trace文件判断锁的对象
数据库遇相关锁的报错DUMP LOCAL BLOCKER/HOLDER: block level 5 res [0x5120013][0x3cd2],[TX]----------resource 0x0xbc4c96528----------------------resname : [0x5120013...
不同路径创建dg注意问题
1,spfile 里的*.log_file_name_convert='+DATA/oradata/jiebin/','/u02/oradata/jiebin/'2 create standby controlfile as 'xxx'3将standby control file 传过来后,从库的控制文件mount后,将会自动改变数据文件...
基于scn 增量
基于scn 的增量备份:rman 读当前系统数据块的scn ,假如当前系统的scn 大于或等于设定scn ,则备份。 关于基于scn 的增量,可以做from scn 即备份大于或等于设定scn 的...
rman 基于scn 的增量
使用rman 基于scn 的增量可以恢复归档日志断点的physical dataguard步骤:1 在从库上查出当前从库的scn 号select current_scn from v$database;2 在主库上做基于该scn的增量备份backup incremental ...
此图一出,天下无贼
oracle 查看隐含参数是否可以在线更改
v$parameter 视图可以查看参数是否可以动态更改(没有隐含参数) 通过v$fixed_view_defination 查看v$parameter 的来源v$parameter 来自于GV$PARAMETER 所以直接查看 select vie...
将dump文件xid转化为v$transaction xid
select to_number('000a','XXXXX') ,to_number('02d','XXXXX'),to_number('00000687','XXXXXXXXX') from dual; TO_NUMBER('000A','XXXXX') TO_NUMBER('02D','XXXXX') TO_NUMBER('00000687','XXXXXXXX----------...
mysql 升级
最近准备mysql的升级,老版本为5.126 属于非GA版本老板本是源码安装的,于是最新的GA版本5.145也准备使用源码安装。安装完成后,打开数据库,没有问题将mysql 5.145的数据库文件全部删除,将5.126的所有数据文件...
使用flashback 同步logical dataguard数据库
我们在使用logical dataguard 时候,standby 机器容易出现问题我们经常采用insert into test1 select * from test1@db_link as of scn xxx;这个xxx是applied_scn 还是applied_scn+1 呢大部分情况applied_s...
oracle 锁的研究二
从V$LOCK里面看到的lmode就是我们能从数据字典里,能看到的所有的锁类型一共有6种数字越大,锁的级别就越高0:none1:null 空2:Row-S 行共享(RS):共享表锁,sub share 3:Row-X 行独占(RX):用于行的修改,sub ex...
oracle 锁的研究一
acle 的锁从种类上分为2种 共享锁(share) ,排它锁(exclusive).从锁定的内容上,可以分为三大类:dml锁,ddl锁,内存锁(latch)其中dml 锁包括TM锁和TX锁,其中TM锁称为表级锁,TX锁称为事务锁或行级锁。在对数...
OCR integrity results are inconsistent amongst the nodes.
osLinux tsrac02 2.6.9-42.0.0.0.1.ELsmp #1 SMP Sun Oct 15 15:13:57 PDT 2006 x86_64 x86_64 x86_64 GNU/Linuxdb:oracle 10201安装rac 中间过程没有问题,到了最后一步检查没有通过,根据提示运行configToolAl...
CRS-0184: Cannot communicate with the CRS daemon.
问题描述:/oracle/crs/bin/crs_stat -t CRS-0184: Cannot communicate with the CRS daemon.方法/etc/init.d/init.crs stop Shutting down Oracle Cluster Ready Services (CRS):Stopping resources.Error ...
ges和gcs
GES and GCS have the memory structures associated with global resources. It is distributed across all instances in a cluster. This area is located in the variable or shared pool section of the SGA. As...
rac进程的学习1
LMS—Global Cache Service ProcessTo ensure that each Oracle RAC database instance obtains the block that it needs to satisfy a query or transaction, Oracle RAC instances use two processes, the Globa...
rac 资源分配问题
现在有个双节点的rac (rac1 ,rac2)没有设置parallel_instance_group 参数我在rac2节点上面,做任何操作,都会占用大量的rac1的cpurac2节点的资源占用却很少比如我在节点2上做一个查询,只消耗很少的节点2 的cpu...
orainstRoot.sh
在安装rac过程中,安装ocr 和voting device的检查除了报内存不足,什么错误也没有可是在最后安装完成 要执行两个脚本1orainstRoot.sh2root.sh第一个脚本只提示我在node1上执行我看了很多文挡在两个node上是都...