自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(390)
  • 资源 (46)
  • 收藏
  • 关注

原创 mysql+haproxy+keepalive实现读在salve的负载均衡

 Keepalive 安装下载地址:http://www.keepalived.org/download.html(1)解压缩软件[root@plvskygis01 tmp]# tar zxf keepalived-2.0.6.tar.gz[root@plvskygis01 tmp]# cd keepalived-2.0.6[root@plvskygis01 keepali...

2018-11-02 11:31:52 350

转载 Technical Architecture of 11g R2 RAC primary to RAC standby DataGuard Configuration:

Technical Architecture of 11g R2 RAC primary to RAC standby DataGuard Configuration:         PRIMARY STANDBY Clusterware 11g R2 Grid Infrast...

2018-10-16 12:34:06 297

原创 查看操作系统是oracle linux 还是redhat or centos的方式

(1) /etc/issue查看,是系统安装时默认的发行版本信息,通常安装好系统后文件内容不会发生变化[root@test~]# cat  /etc/issueCentOS release 6.8 (Final)Kernel \r on an \m[root@test~]# cat /etc/issueOracle Linux Server release 6.8Kernel \r...

2018-10-11 11:26:01 7961

原创 mysql 时间函数

(root@33306) [(none)]> select  sysdate();+---------------------+| sysdate()           |+---------------------+| 2018-09-28 16:27:50 |+---------------------+1 row in set (0.00 sec)(root@3330...

2018-09-28 16:47:04 90

原创 mongo 集群的配置信息

连接路由节点 mongos> show databases;admin     0.000GBconfig    0.326GBcsms    122.412GB切换到config 数据库,里面是我们mongo的配置信息mongos> use configmongos> show tables;actionlogchangelogchunkscollec...

2018-09-14 10:51:35 1174

原创 mysql 5.7 note 信息

 今天搭建mysql 主从队列,延迟时间比较长        Seconds_Behind_Master: 47776Master_SSL_Verify_Server_Cert: No                Last_IO_Errno: 0                Last_IO_Error:                Last_SQL_Errno: 0    ...

2018-09-13 11:16:53 893

原创 XtraBackup 搭建主从关系

主库 192.168.100.4 3307从库 192.168.100.4 3308  需要搭建的从库备份数据文件innobackupex --defaults-file=/mnt/mysql5641/etc/my_3307.cnf   --user=root --password=qwe123    --parallel=4 /backup/[root@anedbtest01 b...

2018-09-06 13:44:00 428

原创 mycat 表分片

分表分库虽然能解决大表对数据库系统的压力,但它并不是万能的,也有一些不利之处,因此首要问题是,分不分库,分哪些库,什么规则分,分多少分片。原则一:能不分就不分,1000 万以内的表,不建议分片,通过合适的索引,读写分离等方式,可以很好的解决性能问题。原则二:分片数量尽量少,分片尽量均匀分布在多个DataHost 上,因为一个查询SQL 跨分片越多,则总体性能越差,虽然要好于所有数据在一个分...

2018-09-05 19:36:34 365

原创 mycat 读写分离测试

测试读写分离:[root@anedbtest01 conf]# cat schema.xml <?xml version="1.0"?><!DOCTYPE mycat:schema SYSTEM "schema.dtd"><mycat:schema xmlns:mycat="http://io.mycat/">    <schema na

2018-09-05 17:30:16 1983

转载 MyCat配置详解

server.xml Mycat的配置文件,设置账号、参数等schema.xml Mycat对应的物理数据库和数据库表的配置rule.xml Mycat分片(分库分表)规则一 :wrapper.conf--配置jdkwrapper.java.command=D:/Program Files/Java/jdk1.8.0_131/bin/java.exe二:server.xml1、...

2018-09-04 18:57:21 735

原创 初学mycat ,非分片表使用mycat

数据库层面配置非分片表mysql> use db1Database changedmysql> CREATE TABLE `travelrecord` (       `id` bigint(20) NOT NULL AUTO_INCREMENT,       `name` varchar(255) CHARACTER SET latin1 DEFAULT NULL,  ...

2018-09-04 18:49:28 1860

转载 mysql 不使用not null 理由

Null 貌似在哪里都是个头疼的问题,比如 Java 里让人头疼的 NullPointerException,为了避免猝不及防的空指针异常,千百年来程序猿们不得不在代码里小心翼翼的各种 if 判断,麻烦而又臃肿,为此 java8 引入了 Optional 来避免这一问题。下面咱们要聊的是 MySQL 里的 null,在大量的 MySQL 优化文章和书籍里都提到了字段尽可能用NOT NULL,而...

2018-08-13 17:29:27 9348

原创 问题反思

 需求:同事需要导出我所管理生产数据库中的几张表,同步到测试库中 经过:通过对几个表导出,发现 ORA-39181: Only partial table data may be exported due to fine grain access control通过网上寻找答案:解决方法是: 给予用户权限EXEMPT ACCESS POLICY,本来是想先给用户加权限,然后...

2018-08-11 17:25:02 422

转载 shell 提取文件名和目录名

 在写shell脚本中,经常会有需要对路径和文件名做处理。有时候犯不着用sed命令来操作。bash提供的变量操作和一些外部命令都能很好的处理。一、使用变量操作符 ${}1、${var##*/}该方式是从左开始最大化匹配到字符"/",然后截掉左边内容(包括字符"/"),返回余下右侧部分。$ var=/dir1/dir2/file.txt$ echo ${var##*/}file.txt在shell脚...

2018-07-07 17:27:48 38200

转载 GoldenGate 传统抽取进程的 ADG 模式下,RAC切换单机,ogg的转换

GoldenGate 传统抽取进程的 ADG 模式 GoldenGate 传统抽取进程的 ADG 模式简介:GoldenGate 传统抽取进程的 ADG 模式可实现对 DataGuard 备库的抽取。与传统方式不同,其不再由联机在线 Redo 日志抽取,而抽取由主库投递而来的日志(归档日志及 standby redo logs)。 GoldenGate 传统抽取进程的 ADG 模式原理:1.抽取的...

2018-06-25 14:11:51 1044

转载 Steps to create a new standby from an existing ADG standby (文档 ID 2305009.1)

Some customer want to know if we can create a new standby from an existing ADG standby, because we can reduce the overhead workload on primary when creating new standby by using this way.SOLUTIONExist...

2018-06-21 18:44:16 218

转载 How to remove a Data Guard Configuration from Primary Database (Doc ID 733794.1)

How to Remove a Single Standby Database from a Data Guard ConfigurationIn this Example, We have 3 standby databases in the Data Guard configuration.  We want to remove 1 standby database from the Data...

2018-06-12 09:16:27 664

转载 Step by Step Guide on Creating Physical Standby Using RMAN DUPLICATE...FROM ACTIVE DATABASE (文档 ID 1

1. Make the necessary changes to the primary database.     a. Enable force logging.    b. Creating the password file if one does not exist.    c. Create standby redologs.    d. Modify the parameter fi...

2018-05-12 10:24:10 276

原创 mongo oplog的修改

一、 在mongo 3.4版本之前修改oplog的大小的方式---关闭节点mongod --dbpath /srv/mongodb --shutdown如果这个节点是primary ,那么会出发一个failover,另外一个节点的replication会成为主节点。---用单实例重启关闭的节点,换一个端口和去掉shard,用单实例启动mongod --port 37

2018-05-07 14:13:11 718

转载 Steps to Recreate ASM Diskgroups and Restore the Database (文档 ID 268481.1)

Oracle Database - Enterprise Edition - Version 10.1.0.2 to 11.2.0.4 [Release 10.1 to 11.2]Oracle Database - Enterprise Edition - Version 12.1.0.2 to 12.1.0.2 [Release 12.1]Information in this docu

2018-04-23 10:16:51 197

转载 After Re-Creating the ASM Instance, Old Diskgroup Information Remains (文档 ID 266078.1)

APPLIES TO:Oracle Server - Enterprise Edition - Version: 10.1This problem can occur on any platform.SYMPTOMSFollowing the removal and re-creation of an ASM instance, you may see old data lef

2018-04-23 10:14:29 159

转载 Complete Checklist for Manual Upgrade to Oracle Database 11gR2 (11.2) (文档 ID 837570.1)

In this Document Purpose Ask Questions, Get Help, And Share Your Experiences With This Article Scope Details ReferencesAPPLIES TO:Oracle Database - Enterprise Edition - Version 9.2.0.7 to 9.2.0.7 [Rel...

2018-03-09 22:42:21 1383

转载 Cloning An Existing Oracle10g Release 2 (10.2.0.x) RDBMS Installation Using OUI (文档 ID 559304.1)

Cloning An Existing Oracle10g Release 2 (10.2.0.x) RDBMS Installation Using OUI (文档 ID 559304.1)转到底部In this DocumentAPPLIES TO:Oracle Universal Installer - Version 10.2.0.1 to 10.2.0.5 [Release 10.2]O...

2018-03-09 22:38:19 252

原创 undo表空间爆了,导致ogg append

收到 短信,发现ogg进程挂了,通过查看ogg进程的日志文件,可以看到如下报错OCI Error ORA-30036: unable to extend segment by 4 in undo tablespace 'UNDOTBS1' (status = 30036). INSERT INTO "Acc_VS1"."PR_GOODS_D" ("ID","PR_GOODS_D","L

2018-01-04 09:37:18 499

原创 mongo集合以_id作为分片键的,不能在其他列上创建唯一索引

mongos> db.createCollection("a");{ "ok" : 1 }mongos> sh.shardCollection("edijsp.a", { "_id": "hashed" } ){ "collectionsharded" : "edijsp.a", "ok" : 1 }mongos> db.a.createIndex({"poc":1},{u

2017-12-27 09:02:00 2606

转载 What is Split Brain in Oracle Clusterware and Real Application Cluster (文档 ID 1425586.1)

What is Split Brain in Oracle Clusterware and Real Application Cluster (文档 ID 1425586.1)In this Document Purpose Scope Details 1. Cl

2017-12-14 21:54:19 210

转载 Highly Available IP (HAIP) FAQ for Release 11.2

Highly Available IP (HAIP) FAQ for Release 11.2 (文档 ID 1664291.1)转到底部In this DocumentPurpose Questions and Answers

2017-12-09 17:28:34 565

转载 Oracle Grid Infrastructure: Understanding Split-Brain Node Eviction (文档 ID 1546004.1)

In this Document Purpose Scope Details What does "split brain" mean? Why is this a problem? How does the clu

2017-12-08 22:08:01 265

转载 mongoDB及Driver 版本号

MongoDB 版本号(比如2.4.1)    2.4 表示发行版系列,1表示修改版本。    发行版代号(2.4)中的第一个数(2)表示主版本号,第二个数(4)表示发行版的类型,如果是偶数,表示稳定    版和准备用于生产环境,若是奇数,则表示仅用于开发和测试。    通常发行版代号的改变意味着新特性的产生,也可能破坏向后兼容性。修改版代号的改变,则意味着修正

2017-12-01 09:14:12 4218

转载 查看用户的连接信息

select SYS_CONTEXT('USERENV','TERMINAL') terminal,SYS_CONTEXT('USERENV','LANGUAGE') language,SYS_CONTEXT('USERENV','SESSIONID') sessionid,SYS_CONTEXT('USERENV','INSTANCE') instance,SYS_CONTEXT('U

2017-11-30 15:45:11 1041

转载 晶晶实验六自己动手构造CR块

一、查询魔术步1:在会话17中发布如下声明:17> var x refcursor17> exec open :x for select substr(c,1,5),id from t8;PL/SQL 过程已成功完成。步2:在会话13删除T8的所有记录且提交:13> delete t8 ;已删除 10 行。13> commit;提交完成。步3:在会话17中输

2017-11-29 22:12:20 406

转载 11gR2 Clusterware and Grid Home - What You Need to Know (文档 ID 1053147.1)

9876文档 ID …  11gR2 Clusterware and Grid Home - What You Need to

2017-11-28 14:30:31 208

转载 如何读懂awr

转载:http://www.askmaclean.com/?s=awr啥是AWR?===================================================================================================== AWR (Automatic Workload Repository)

2017-11-22 17:08:01 3203

转载 ORACLE的LNNVL函数使用

LNNVL官方解释LNNVL provides a concise way to evaluate a condition when one or both operands of the condition may be null. The function can be used only in the WHERE clause of a query. It takes as an

2017-11-22 15:59:32 895

原创 sql monitor 实践

1、sql  monitor 捕捉sql的前提    (1)、sql monitor只能捕捉到并行执行的sql语句,或者单次执行sql语句消耗cpu、io 5s以上     (2)、 statistics_level级别必须是TYPICAL 或者ALL            SQL> show parameter STATISTICS_LEVEL NAME

2017-11-21 09:04:34 4631

原创 DBMS_MEDATA.get_ddl查看表,索引,表空间 定义

查看表定义SQL> SELECT DBMS_METADATA.GET_DDL('TABLE','DEPT1','BOSWLL')FROM DUAL; DBMS_METADATA.GET_DDL('TABLE',-------------------------------------------------------------------------------- CREATE

2017-11-20 21:36:20 881

转载 Monitoring SQL Statements with Real-Time SQL Monitoring (文档 ID 1380492.1)

In this Document Purpose Scope Details DBMS_SQLTUNE.REPORT_SQL_MONITOR REPORT_SQL_MONITOR_LISTAPPLIES TO:Ora

2017-11-20 19:41:00 304

原创 12c undo 表空间的管理

1、查看undo 表空间打开所有pdbSYS@cdb1211> show pdbs CON_ID CON_NAME OPEN MODE RESTRICTED---------- ------------------------------ ---------- ---------- 2 PDB$SEED READ ONLY NO 3 PRODPDB

2017-11-16 20:39:21 2295

转载 8种状语从句

状语从句主要用来修饰主句或主句的谓语。一般可分为九大类,分别表示时间、地点、原因、目的、结果、条件、让步、比较和方式。尽管种类较多,但由于状语从句与汉语结构和用法相似,所以理解和掌握它并不难。状语从句的关键是要掌握引导不同状语从句的常用连接词和特殊的连接词即考点。 现分别列举如下:  1、时间状语从句  常用引导词:when, as, while, as soon as, whil

2017-11-16 07:48:04 19970

原创 12c 表空间的管理

查看 CDB 中所有容器表空间信息 查看当前默认表空间SYS@cdb1211>  select PROPERTY_NAME,PROPERTY_VALUE from database_properties where PROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';PROPERTY_NAME        PROPERTY_VALUE-----

2017-11-14 20:26:19 547

MYSQL OCP 5.6

MYSQL OCP 5.6 MYSQL OCP 5.6 MYSQL OCP 5.6

2017-06-12

rman-xttconvert_2.0.zip

rman-xttconvert_2.0.zip

2017-03-16

bbed需要的文件

从oracle10g的$ORACLE_HOME/rdbms/lib中,拷贝ssbbded.o, sbbdpt.o $ORACLE_HOME/rdbms/msg中,拷贝bbedus.msb

2017-02-27

undrop-for-innodb

yum install make gcc flex bison cd /root/undrop-for-innodb-master make 会产生三个文件c_parser innochecksum_changer stream_parser

2017-02-22

数据库常见问题解决及诊断技巧集锦

数据库常见问题解决及诊断技巧集锦

2016-04-06

linux shell 脚本攻略

linux shell 脚本攻略

2016-03-09

inotify-tools-3.14.tar.gz

inotify-tools-3.14.tar.gz

2016-01-20

extundelete

extundelete .bz2

2016-01-12

mysql explain

mysql explain

2015-04-27

mysql 客户端

mysql 客户端

2015-04-09

eclipse Maven 插件 丢到plugins下就可以用

eclipse Maven 插件 丢到plugins下就可以用 eclipse Maven 插件 丢到plugins下就可以用

2015-01-26

mysql 中文手册

mysql 中文手册

2014-09-02

ttfonts-zh_CN-2.14-6.noarch.rpm

ttfonts-zh_CN-2.14-6.noarch.rpm

2014-03-15

dbvis.zip

dbvis.zip

2014-01-15

c#连接oracle数据库(不安装oracle客户端).pdf )

c#连接oracle数据库(不安装oracle客户端).pdf )

2013-12-19

rac+dg+aix

rac+dg+aix

2013-07-18

mongo mongo

mongodb

2013-07-11

readblockread

readblock 查看块的一些信息包括scn 先要按照软件 [root@rac1 Server]# rpm -ivh strace-4.5.18-5.el5_4.1.x86_64.rpm [oracle@rac1 rac]$ /u01/readblock users01.dbf 8192 1

2013-06-11

GoldenGate企业级运维实战

GoldenGate企业级运维实战

2013-06-09

unix_in_a_nutshell_fourth_edition

unix_in_a_nutshell_fourth_edition

2013-06-09

rlwrap 源码包

alias sql='rlwrap sqlplus' alias sqlplus='rlwrap sqlplus' alias lsnrctl='rlwrap lsnrctl' alias rman='rlwrap rman' 在bashrc中输入

2013-05-24

oracle容易犯的错误

我们在用一些命令或者hints时,会犯一些,错误,总结的错误

2013-05-22

系统hang住

如果系统hang住,应该收集的信息,诊断是否确实被hang住

2013-05-16

goldengate

goldengate

2013-05-08

Oracle+Database10g性能调整与优化.PDF

Oracle+Database10g性能调整与优化.PDF

2013-03-17

mysql_cluster

mysql 集群

2012-09-11

oracle11G数据字典.pdf

oracle11G数据字典.pdf

2012-08-17

GoldenGate_Troubleshooting_v0.1

GoldenGate_Troubleshooting_v0.1

2012-08-15

oracleasm-support-2.1.3-1.el5.x86_64.rpm

oracleasm-support-2.1.3-1.el5.x86_64.rpm

2012-05-11

oracleasmlib-2.0.4-1.el5.x86_64.rpmgz

oracleasmlib-2.0.4-1.el5.x86_64.rpm

2012-05-11

oracleasm-2.0.5.tar.gz

源码包 oracleasm-2.0.5.tar.gz

2012-05-11

ggs_windows_ora11g_32.iso

1 ggs_windows_ora11g_32.iso

2012-05-11

SecureCRT7.0bate.rar

1 SecureCRT7.0bate.rar

2012-05-11

PLSQL 8.rar

s oracle的一个工具

2012-05-11

FileZilla_3.5.2.0.exe

用来在 linux等操作系统上,ftp上传下载东西

2012-05-11

notecase-1.9.8_setup.exe

它是一个按照树状结构来组织文档内容的笔记管理程序

2012-05-11

rlwrap-0.37-1.el5.x86_64.rpm

oracle 数据库的一个软件

2012-05-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除