摘要: 环境: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) 编辑
摘要: 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) 编辑