摘要: mysql 主从复制是异步复制由主从之间的3个线程完成 master I/O --主库 slave I/O --备库 slave SQL --备库 必须打开主库的binlog 1.slave I/O连上master,从指定binlog位置开始传输日志(master.i... 阅读全文
posted @ 2015-03-06 12:53 afx1007 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 环境:oracle 11.2.04问题描述: 在使用hr用户启用set autot trace时报错 set">HR@test>set autot trace; Error ORA-942 while gathering statistics SP2-0611: Error enab... 阅读全文
posted @ 2014-10-31 21:18 afx1007 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 1 环境配置参考官方文档《Grid Infrastructure Installation Guide for Linux》1.1 软件环境操作系统:[root@howe1 ~]# cat /etc/redhat-releaseRed Hat Enterprise Linux Server rele... 阅读全文
posted @ 2014-10-31 21:17 afx1007 阅读(2875) 评论(0) 推荐(0) 编辑
摘要: 1 升级crs 至10.2.0.5.21) 升级opatch 程序,PSU对opatch的版本有要求,详见readme文件,此步操作共涉及到每个节点的ORACLE_HOME和ORA_CRS_HOME下的OPatch目录,首先查看当前的opatch 版本,在每个OPatch目录下执行./opatch ... 阅读全文
posted @ 2014-10-31 21:15 afx1007 阅读(793) 评论(0) 推荐(0) 编辑
摘要: 1.get_alert_log 获取alert文件的路径和名称set serveroutput on --设置输出,让sqlplus在屏幕上可以输出。(要加入到login.sql中!)create or replace procedure get_alert_log is alert... 阅读全文
posted @ 2014-10-31 21:14 afx1007 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 环境准备:SCOTT@test>select * from v$version;BANNER-----------------------------------------------------------------------------------------Oracle Database... 阅读全文
posted @ 2014-10-31 21:13 afx1007 阅读(308) 评论(0) 推荐(0) 编辑
摘要: SQL:SELECT/*+ parallel(a,32) */ a.id ,a.data_date ,a.mobile_num ,a.mobile_code ,b.prov AS mobile_prov ,b.city AS mobile_city ,b.mobile_oper ,a.psam ,a... 阅读全文
posted @ 2014-10-31 21:12 afx1007 阅读(2380) 评论(0) 推荐(0) 编辑
摘要: Enabling Automatic Memory Managementalter system set memory_max_target=50G scope=spfile;alter system set memory_target=50G scope=spfile;alter system s... 阅读全文
posted @ 2014-10-31 21:11 afx1007 阅读(150) 评论(0) 推荐(0) 编辑
摘要: --1.实验环境SQL> conn scott/tiger Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 Connected as scott@howe SQL> drop table rec... 阅读全文
posted @ 2014-10-31 21:10 afx1007 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 描述:将表trans_new转换成分区表,分区字段为data_date。一、准备SQL> select /*+ parallel(t,8)*/ count(*) from trans_new t; COUNT(*) ---------- 445600483SQL> select /*+ par... 阅读全文
posted @ 2014-10-31 21:05 afx1007 阅读(345) 评论(0) 推荐(0) 编辑