常用的数据同步的几种方法
之前整理的常用的数据同步的几种方法1.使用trigger方式
Data Graud 一主两备数据不同步处理过程
<p class="MsoNormal">分享一下处理过程。<o:p></o:p></p><p class="MsoNormal"> </p><p class="MsoNormal">新上的业务发现在备库查询时,数据不同步,然后我去查询不同步的原因,数据库版本是11.2.0.4。<o:p></o:p></p><p class="MsoNormal">首先查看DG状态<o:p></o:p></p><p class="MsoNormal">DG...
ASM使用外部冗余的安装
我们在使用asm的时候,选择的外部冗余,也就是使用raid10,不使用asm的二路,三路镜像。<br /><br />大概记录一下安装步骤<br /><br />1.磁盘做raid5,在做raid5的时候可以将整个raid虎头划分为几个逻辑盘<br />[root@statg2 ~]# MegaCli -CfgDsply -a0<br />  ...
spa for 10g升级到11g 步骤
<span style="font-size:14px;">1.creater user</span><br /><span style="font-size:14px;">create user spa identified by spa default tablespace HERO2_TABLESPACE_DATA;</span><br /><span style="font-size:14px;">grant dba to spa;</span><br /><br /><span style="font-size:14px;">2.create sts</span><br /...
rman_trun_arch.sh
<span style="font-family:宋体;line-height:normal;orphans:2;text-align:-webkit-auto;white-space:normal;widows:2;font-size:medium;"><br />#!/bin/bash</span><br style="font-family:宋体;line-height:normal;orphans:2;text-align:-webkit-auto;white-space:normal;widows:2;font-size:medium;" /><span style="f...
Oracle oerr
<p style="line-height:normal;orphans:2;text-align:-webkit-auto;white-space:normal;widows:2;font-size:13px;font-family:Verdana, 宋体;"><span style="font-family:微软雅黑;">1.查询该命令的位置</span></p><p style="line-height:normal;orphans:2;text-align:-webkit-auto;white-space:normal;widows:2;font-s...
Bug 12919564 - ORA-600 [ktbesc_plugged]
在执行物化视图同步时,发生以下错误
ORA-39142
<div style="line-height:normal;orphans:2;text-align:-webkit-auto;white-space:normal;widows:2;font-size:medium;font-family:Simsun;"><span style="background-color:#CCE8CF;"><br />在使用expdp/impdp进行数据迁移时遇到ORA-39142错误,这个错误产生的原因是因为在Oracle高版本中导出,导入到低的版本内,这次就...
duplicate from asm to filesystem
<br /><br /><span style="font-family:宋体;line-height:normal;orphans:2;text-align:-webkit-auto;white-space:normal;widows:2;font-size:medium;">run {</span><br style="font-family:宋体;line-height:normal;orphans:2;text-align:-webkit-auto;white-space:normal;widows:2;font-size:medium;" /><span style=...
archive_log_size_group_by_day
--每天产生的archive_log_sizeselect trunc(completion_time), sum(G)
redo_log_switch_date
select sequence#, to_char(first_time, 'yyyy-mm-dd hh24:mi') || ' ' || to_char(nexttime, 'hh24:mi'), round(((first_time - nexttime) * 24) * 60, 2) diff from (select sequence#, ...
手机监控平台
<span style="font-size:14px;"> 随着智能手机的普及,现在越来越多的人都离不开手机,而运维工作也是一样,当你外出,在坐地铁,在坐公交,没有带电脑时,如何处理公司紧急业务?<br />个人利用春节假期,开发了一款iphoneapp(服务器端使用java开发,app使用 OC语言),只需要一部ios设备就可以对服务器主机进行性能...
测试execute grant statement SQL plan is INVALIDATIONS
Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit ProductionWith the Partitioning, Automatic Storage Management, OLAP, Data Miningand Real Applicat...
执行 grant statement 命令, DB hang
<div><span style="font-size:14px;">当时执行的sql:grant select on xxx_user.xxx_table to xxx_user;</span></div><div><br /></div><div><span style="font-size:14px;">执行以上grant statement的时候db响应特别慢(hang),发现db出现大量的等待(latch: library cache,cursor: pin S wait on X,library ...
搭建物理DataGuard
<span style="font-size:14px;">1.主库<br />1.1Primary 设置force logging<br />SQL> alter database force logging;<br />Database altered.<br />SQL> select force_logging from v$database;<br />FOR<br />---<br />YES<br />1.2设置归档模式<br />SQL> shutdown immediate<br />Database closed....
使用sample优化SQL
<span style="font-size:14px;">开发同学想使用以下的SQL随机取出状态为0的一条CODE用于业务上发奖品ID,但又事先不知道这个code,只能从这个cord表中找状态为0的记录。<br />select *<br /> from bb.b_card<br /> where code in (select code<br />  ...
传输表空间在分区表上的应用
<span style="font-family:verdana, arial, helvetica;white-space:normal;background-color:#DFDFDF;font-size:small;">传输表空间在分区表上的应用条件如下<br />1.分区放在不同的表空间上<br />2.建立与分区表结构(字段、索引)一样的非分区普通表<br />3.通过使用exchange partition功能将表分区与非分区表交换<br ...
JOIN连接的3种模式
连接(join)<br />如果有主键的列连接,将带主键和唯一键约束的表放在连接的第一个位置,再考虑其它表连接<br />如果有外键连接,则将该表放在连接的最后。<br /><br /><br />Nested Loop Joins(嵌套循环连接)<br />外部表的每一行都和内部表的所有行连接。<br />当表的行较少的时候,数据库会选择这种连接。<br /...
索引的几种使用模式
索引的使用对数据库的性能有巨大的影响。共有五类不同的使用模式。1。INDEX UNIQUE SCAN 效率最高,主键或唯一索引2。I...
linux下不解压查看tar.gz压缩包的文件列表
<p style="line-height:normal;orphans:2;text-align:-webkit-auto;white-space:normal;widows:2;font-size:medium;font-family:Simsun;">如下两种命令均可:</p><p style="line-height:normal;orphans:2;text-align:-webkit-auto;white-space:normal;widows:2;font-size:medium;font-family:Simsun;">gunzip <a.t...