oracle小知识点12--传输表空间通过rman
传输表空间可通过rman,imp/exp或impdp/expdp去实现,以下通过rman实现.os: centos 6.6db version:11.2.0.4.0以下测试:##方便测试,源库和目标库为同一个库##源库 [oracle@ct6605 ct66]$ sqlplus / as sysdba ##建立要传输的test表空间 SQL> create tables...
oracle小知识点11--传输表空间通过impdp/expdp
传输表空间可能过rman,imp/exp或impdp/expdp去实现,以下通过impdp/expdp实现.os: centos 6.6db version:11.2.0.4.0以下测试:##方便测试,源库和目标库为同一个库##源库 [oracle@ct6605 ct66]$ sqlplus / as sysdba ##建立要传输的test表空间 SQL> creat...
oracle小知识点10--表空间时间点恢复(TSPITR)
表空间时间点恢复(TSPITR)是从10g开始有的一个功能,它通过rman脚本自动创建辅助实例的方法,实现基于表空间时间点的自动化恢复.以下测试:db:11.2.0.4os:centos 6.6#建测试表空间test及表scott.tb01[oracle@ct6605 ~]$ sqlplus / as sysdbaSQL> create tablespace test datafile '/u02/oradata/ct6604sb/test01.dbf'...
mysql memory引擎引起的主从 1032 错误
客户mysql的从库上报Last_SQL_Error: Could not execute Update_rows event on table xxx.xxx; Can't find record in 'xxx', Error_code: 1032;handler error HA_ERR_KEY_NOT_FOUND; the event's master log mysql-bin.xxxx, end_log_pos xxxx. 以前遇到的error 10...
postgresql 9.4 流复制简单配置
#环境postgersql:9.4.5 http://get.enterprisedb.com/postgresql/postgresql-9.4.5-3-linux-x64.runhost:ct6606 192.108.56.122 master ct6607 192.108.56.123 slave#安装postgresql #在ct6606,ct6607分别执行以下 [root@ct6606 ~]# ll p...
mongodb 3.0.3 sharded cluster 配置
mongodb:mongodb 3.0.3host: ct6601 192.108.56.117 ct6602 192.108.56.119 ct6604 192.108.56.120mongodb shard server: shard1:192.108.5...
mongodb 3.0 replica set 配置
mongodb:mongodb 3.0.3host: ct6601 192.108.56.117 ct6602 192.108.56.119 ct6604 192.108.56.120mongodb primary:192.108.56.117:27017mongodb secondary:192.108.56.119:27017 ...
redis cluster 配置
测试redis在三台主机上配置clusterredis:3.0.5os:centos 6.6host:192.108.56.117 ct6601 192.108.56.119 ct6602 192.108.56.120 ct6604所需文件:redis-3.0.5.tar.gz,ruby-2.2.3.tar.gz,rubygems-2.5.0.tgz,redis-3.2.2.gem以下是下载地址:redis-3.0.5.tar.gz http://downlo...
redis sentinel 配置
1.环境信息 在三台主机上,ct6601为redis master,ct6602为redis slave, ct6601,ct6602,ct6604各装一个sentinel hsot:ct6601 192.108.56.117 ct6602 192.108.56.119 ct6604 1...
redis 3.0 参数说明
来源:https://raw.githubusercontent.com/antirez/redis/3.0/redis.conf################################## INCLUDES #################################### Include one or more other config files here. This is useful if you# have a standard template that goes to all Redis servers but also need# to cust...
redis 命令整理
整理自Stephen_Liu的http://www.cnblogs.com/stephen-liu74/archive/2012/04/16/2370212.html命令类型命令描述返回值String类型APPEND key value如果该Key已经存在,APPEND命令将参数Value的数据追加到已存在Value的...
用pl/sql解决芬兰数学家因卡拉设计的最难数独
最近看朋友在玩消灭星星(pop start),想起当年还不是彩屏手机的时候,我喜欢玩数独游戏.数独(Sudoku)又称九宫格,据说来头很大,起源于河图洛书,相信大家都有玩过.百度九宫格,百度百科最后有提到芬兰数学家因卡拉花费3个月设计出了世界上迄今难度最大的九宫格游戏,而且它只有一个答案,就想挑...
oracle impdp 导入大表报告显示 out of rows
客户在oracle 10.2.0.5中使用impdp导入一个大表时,导入完成后,显示.. imported "owner"."tablename" 1108GB -1841748971 out of 6748185611 rows,没有报其它的错误,本以为是设有过滤条件,客户反应没有对表进行过滤.查找metalink,感觉和Bug 9470999很相似,bug的版本是10.2.0.4...
oracle 11gr2 活动数据库复制(active database duplication)
oracle 11gr2 活动数据库复制(active database dumplication)oracle的自动化程度越来越高,在oracle 11g中,可以直接在网络上复制一个数据库而不必备份和提供源数据库文件到目的库.?测试中发现和以往的duplicate在细节上有此不同,容易出一些小错误,下面测试并对错误说明RMAN-05537 ORA-17627 ORA-17629 RMAN-06217 RMAN-04006
内网通过ntpdate同步时间
OS:centos 6.6 问题:ntpdate同步服务器时间时报:ntpdate[xxx]: the NTP socket is in use, exiting原因:由于ntpd服务开启解决:关闭ntpd服务service ntpd stopchkconfig ntpd off内网同步服务器时间,具有内外网双网卡的192.108.56.101做ntp服务器,ntp服务器自身通过外网同步时间.service ntpd startchkconfig ntpd...
oracle 11g r2 cluster启动顺序及启动异常可能原因
本文整理自刘炳林http://blog.itpub.net/23135684/的<构建最高可用oracle数据库系统>启动顺序:ohasd启动orarootagent,oraagent,cssdagent,cssdmonitor orarootagent启动crsd,ctssd,diskmon,acfs drivers oraagent启动mdnsd,evmd,asm,gipcd,gpnpd cssdagent启...
oracle 11g rac 共享存储坏掉后数据库恢复
共享存储坏掉,存在共享存储的OCR,votedisk,ASM,database数据全部丢失.本地主机保存有数据库的备份.两个主机的软件是没有问题,所以此时只需要重新配置gi,然后恢复数据库.以下模拟:host:ct66rac01,ct66rac02os:centos 6.6db:11.2.0.4GRID_HOME=/u01/app/11.2.0/gridORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1...
oracle小知识点9--cluvfy
CVU主要提供了基于阶段stage的验证和基于组件comp的验证.它在安装盘中,$GRID_HOME/bin和$ORACLE_HOME/bin下都存在.1.基于阶段stage的验证提供对第个阶段安装之前pre或安装之后post的验证.并且11g可以使用-fixup参数,生成相应的修正脚本.cluvfy stage -listUSAGE:cluvfy stage {-pre|-post}
oracle小知识点8--10g/11g 日志目录
日志是检查和诊断oracle问题的重要手段,10g/11g的日志目录有一些变化,以下对两个版本的日志目录进行说明:10g:CRS:位于$CRS_HOME/log/下,$CRS_HOME/log//alert.log相当于数据库的alert.log,是诊断cluster问题的开始.$CRS_HOME/log//crsd/目录下是crsd守护进程的跟踪诊断日志,...
oracle中create directory建在/home/oracle下可能存在的风险
<span style="font-size:14px;">impdp/expdp等是需要建目录进行导入导出的,如果oracle中建一个driectory在/home/oracle下,这样只要有对这个directory进行write权限的数据库用户,<br />再加上默认就有对utl_file包的execute权限,就可以做很多事情.</span><br /><span style="font-size:14px;"><br /><strong></strong><st...