摘要: 优化一个sql,就是有A,B两个表,要利用b表的字段更新a表对应的字段。形如Sql代码 update A set A.a=(select B.b from B where A.id=B.id); 原SQLupdatepntmall_rptpoint_detail a set a.scrm... 阅读全文
posted @ 2016-08-19 17:13 岁伏 阅读(1335) 评论(0) 推荐(0) 编辑
摘要: INSERT INTO `ftms_active_dealer`(dealer_code,dealer_name,active_id,dealer_state)VALUES('415A1','贺磊'10023','1'),('31042','魏小彬'10023','1');[Err] 1064 -... 阅读全文
posted @ 2016-08-19 17:13 岁伏 阅读(621) 评论(0) 推荐(0) 编辑
摘要: 记一次expdp导出失败,报错如下ORA-39002: invalid operationORA-39070: Unable to open the log file.ORA-29283: invalid file operationORA-06512: at "SYS.UTL_FILE", li... 阅读全文
posted @ 2016-08-19 17:13 岁伏 阅读(1084) 评论(0) 推荐(0) 编辑
摘要: insert into pntmall_point_detail(PNTMALL_PNT_ID,PNTMALL_PNT_DT,PNTMALL_VALIDITY,PNTMALL_LASTUPDATEDT, PNTMALL_RPTPNT_ID,PNT... 阅读全文
posted @ 2016-08-19 17:13 岁伏 阅读(386) 评论(0) 推荐(0) 编辑
摘要: [root@HE1 ~]# catconvert_Storage_Engine.sh#/bin/bash#FileName:Convert_Storage_Engine.sh#Desc:Conversion ofa MySQL tables to other storage engines#Cre... 阅读全文
posted @ 2016-08-19 17:13 岁伏 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 如果迫于预算,可采用在一台服务器上安装多个mysql的方式,但生产库中并不推荐这么做[root@HE1 scripts]#cat /etc/my.cnf[client]#port =3306#socket =/tmp/mysql.sock#default-charact... 阅读全文
posted @ 2016-08-19 17:13 岁伏 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 如果有一天你忘记了root的密码,我们可以利用 --skip-grant-tables这个参数,具体实施如下:[root@HE1 bin]# mysql -uroot -pEnter password:ERROR 1045 (28000):Access denied for user 'root'... 阅读全文
posted @ 2016-08-19 17:13 岁伏 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 一般我们安装mysql采用二进制安装的方式就足以满足我们的生产环境了,不过需要我们配置my.cnf文件从官网下载二进制MySQL,选择Linux-Generic,最后这两个是二进制包http://downloads.mysql.com/archives/community/650) this.wi... 阅读全文
posted @ 2016-08-19 17:13 岁伏 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Oracle 11g RAC中,发现oc4j以及gsd服务都处于offline状态,这是Oracle 11g RAC默认情形。即便如此,并不影响数据库的使用,因为 oc4j 是用于WLM 的一个资源, WLM在 11.2.0.2 才可用。GSD则是用于支持dbca,srvctl,oem等的交互工具... 阅读全文
posted @ 2016-08-19 17:13 岁伏 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 集群时间同步服务在集群中的两个 Oracle RAC 节点上执行以下集群时间同步服务配置。Oracle Clusterware 11g 第 2 版及更高版本要求在部署了 Oracle RAC 的集群的所有节点上实现时间同步。Oracle 提供了两种方法来实现时间同步:一种方法是配置了网络时间协议 ... 阅读全文
posted @ 2016-08-19 17:13 岁伏 阅读(1003) 评论(0) 推荐(0) 编辑