local stream与logical standby不能共存导致ORA-16255
本来还想在新的计费上一起玩玩的。。。[@more@]做实验在2台机器上配置了2个local stream和一个logical standby。先配置的logical standby,启用了real-time apply后开始配置其它2个流复制环境,等配置好流发现logical standby停止同步了,查询logical standby的logminer信息:select sid,type,status_code,status from v$logstdby_process;发现什么东西都没有。。。察看alter或者在logical standby上使用发现:ORA-16255: Log Auto Delete conflicts with another LogMiner sessionORA-06512: at "SYS.DBMS_INTERNAL_LOGSTDBY",
创建Oracle 10gR2的local stream和downstream real-time apply 流复制
简单的流复制实验,bug还不是一般的多,10.2.0.1到10.2.0.4都试过了。一共碰上7个bug,看来只能在小应用上玩玩了,patch需要尽量打全,有的人可能找不到opatch在哪里,其实现在opatch不需要下载,都是自带的,就在$ORACLE_HOME下的OPatch[@more@]使用local捕捉的话,虽然可以减少网络流量,但是增加了解析的消耗,加大了主库负担,同时在配置失败或者出问题时,维护比较麻烦,所以综合来说(不考虑bug因素)还是使用downstream要好。首先2个库必须配置tnsnames,保证互相可以连接,主库必须启用归档,辅库如果使用arch传输的非real-time app
Oracle 10g RAC advanced replication同步问题解决
架构复杂了问题就是多。。。[@more@]早上一看,北京和上海的数据不同步了,查询DBA_REPCATLOG没有问题,把注意转移到JOB上,但是DBA_JOBS里的job没有broken的,但是发现一个push的job时间是昨天。。。。那就一定是被阻塞了。查询repadmin的session信息发现等待在enq PS - contention上,就是parallel slave sync。目前原因还不清楚,基本不是bug就是10g定时收集表信息的job造成的,用exec dbms_scheduler.disable('SYS.GATHER_STATS_JOB');停掉任务,查到被卡住的进程的pid,kill掉。然后手工运行下push的job,解决。
装oracle 10g的RAC问题真多。。。。。
装oracle 10g的RAC问题真多[@more@]Linux AS4U4 X86_64,ORACLE 10.2.0.3一开始SA为了偷懒装的AS5,单实例没问题,可是要用ASM,去oracle网站一找,内核太高级。。。。没有对应的ASMLIB,其实也可以装就是不要asmlib了,但是欧想稳定第一,忽悠SA重装了AS4U4。初始化裸设备的时候执行裸设备绑定重启完服务发现绑不上,重启os搞定,ASMlib安装时因为内存有64G必须打ELlargesmp,不然asm configure失败。。。之后安装软件时第三个节点遇到:Error while copying directory /u01/app/oracle/product/crs with exclude file list 'null' t
安装oracle 10g 88%卡住的问题
别人遇到,这个问题也是/etc/hosts的问题[@more@]具体症状为安装软件直到操作系统预检查完毕,开始在右上角检测各个组件时,卡在百分之88的isqlplus的地方,猜想是不是因为isqlplus需要检测dns,所以看了下主机的/etc/hosts发现ping hostname 不通,这下文件解决就简单了吧hostname加入到/etc/hosts中,解决
Selecting a RAID level and tuning performance
Disk arrays are used to improve performance and reliability. The amount of improvement depends on the application programs that you run on the server and the RAID levels that you assign to the logical drive.Each RAID level provides different levels of fault-tolerance (data redundancy), utilization of physical drive capacity, and read and write performance. In addition, the RAID levels differ in regard to the minimum and maximum number of physical drives that are supported.When selecting a RAID l
RAID levels that can use a hot-spare or standby hot-spare drive
Hot-spare and standby hot-spare drives supply additional protection to a RAID configuration. When you select the RAID level for your configuration, consider the following:[@more@]RAID level Can use a hot spare? Can use a standby hot spare? 0NoNo1YesYes1EYesYes5YesYes5E *YesYes5EE *YesYes6YesNo00NoNo10YesYes1E0YesYes50YesYes60YesNo* RAID level-5E and RAID level-5EE integrate a distributed hot-spare drive, but also can use traditional hot-spare and standby hot-spare drives. If a physical drive fai
ORACLE_DB2_SQL SERVER_MYSQL中运行os命令
总结一下,还是shell比较方便- -[@more@]Microsoft SQL ServerEven if you don't know much about Microsoft's SQL Server, you will probably have heard of the extended stored procedure xp_cmdshell. Normally, only those with sysadmin privileges can run xp_cmdshell , but over the past few years, several vulnerabilities have come to light that allow low-privileged users to use it. xp_cmdshell takes one parameter—the command to execute. This command typically executes using the security context of the a
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
使用root直接登录,发现上面的失败信息[root@nh109-12 ~]# mysqlERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)检查root的home目录下,发现没有.my.cnf,添加完毕,重新登录ok[root@nh109-12 ~]# more .my.cnf[mysqladmin]password = 'pVRRD9uJC'user= root[client]password = 'pVRRD9uJC'port = 3306socket = /tmp/mysql.sock[@more@]
STREAMS: HIGH CPU USAGE BY QMNC PROCESS
RAC的bug还真多,早上刚和taobao的弟兄说完,下午就中招[@more@]根据测试的需求修改了process,然后重起了各个节点,结果重起完发现一个节点上n多吃cpu的process,看了下都是QMNC相关的.pstack和oradebug看了内容,查了下metalink,bug。。。要到10204修正,好在问题不大可以通过重起解决,开发的偶bs乃,改啥参数。。。
Oracle 10g RAC vip 漂移问题
具体版本为10203,发现一台当机后,vip漂移到别的节点上,但是telnet该vip地址1521端口不通,netstat -nl| grep 1521发现oracle只监听了本结点实际ip和vip的1521端口,没有对漂移过来的vip的1521监听。[oracle@NHDB4 orcl]$ netstat -nl | grep 1521tcp 0 0 222.73.121.6:1521 0.0.0.0:* LISTEN tcp 0 0 192.168.0.6:1521 0.0.0.0:* LISTEN 检查listener.ora文件发现oracle生成listener.ora可能发生问题原来文件:# listener.ora.nhdb1 Network Configuration File: /u01/app/product/10.2.0/db_1/network/admin/listener.ora.nhdb1# Generate
ASM+RMAN使用delete input备份日志的问题
如果在asm中新建一个名为arch的归档目录,在RMAN中使用BACKUP ARCHIVELOG ALL FORMAT=‘X’ DELETE INPUT的话会导致asm自动删除这个目录(同样的使用asmcmd删除某个目录中所有文件也会导致自动删除该目录)接下来的归档就会挂起。要注意这点,可以在这个目录中添加一个空目录来防止[@more@]