摘要: SQL> drop table t1 purge;表已删除。SQL> create table t1 as select * from emp;表已创建。SQL> insert into t1 select * from t1;已创建 14 行。SQL> /已创建 28 行。SQL> /已创建 56... 阅读全文
posted @ 2014-10-31 21:04 afx1007 阅读(625) 评论(0) 推荐(0) 编辑
摘要: 环境:RAC 4节点、oracle 11.2.0.4、redhat 5.9 64bit问题描述:1.alert.log每隔一段时间就会报如下错误:Transaction recovery: lock conflict caught and ignored Transaction recovery: ... 阅读全文
posted @ 2014-10-31 21:03 afx1007 阅读(2547) 评论(0) 推荐(0) 编辑
摘要: 一、修改密码alter user hr identified by hr;password/passw hr;SYS@test>password hr Changing password for hr New password: Retype new password: ... 阅读全文
posted @ 2014-10-31 20:56 afx1007 阅读(753) 评论(0) 推荐(0) 编辑
摘要: 1 单值函数1.1 日期函数1.1.1 Round[舍入到最接近的日期](day:舍入到最接近的星期日) select sysdate S1, round(sysdate) S2 , round(sysdate,'year') YEAR, round(sysdate,'mont... 阅读全文
posted @ 2014-10-30 09:45 afx1007 阅读(1415) 评论(1) 推荐(0) 编辑
摘要: ip地址使用int类型存储,用INET_NTOA()和INET_ATON()转换mysql> select inet_ntoa('2130706433'),inet_aton('127.0.0.1'); +-------------------------+---------------------... 阅读全文
posted @ 2014-10-29 21:29 afx1007 阅读(1106) 评论(0) 推荐(0) 编辑
摘要: 环境:源A: dell 服务器 linux 5.4 oracle 11.1.0.6目标B: dell 服务器 linux 5.4 oracle 11.1.0.6 oracle 10.2.0.4 由于源A服务器性能不足,在主库宕掉之后,无法承载业务的运行。目标B服务器上已经存在其他10G数据库的... 阅读全文
posted @ 2012-12-05 15:34 afx1007 阅读(409) 评论(0) 推荐(0) 编辑