随笔分类 - oracle
摘要:环境:oracle 11.2.04问题描述: 在使用hr用户启用set autot trace时报错 set">HR@test>set autot trace; Error ORA-942 while gathering statistics SP2-0611: Error enab...
阅读全文
摘要:1 环境配置参考官方文档《Grid Infrastructure Installation Guide for Linux》1.1 软件环境操作系统:[root@howe1 ~]# cat /etc/redhat-releaseRed Hat Enterprise Linux Server rele...
阅读全文
摘要:1 升级crs 至10.2.0.5.21) 升级opatch 程序,PSU对opatch的版本有要求,详见readme文件,此步操作共涉及到每个节点的ORACLE_HOME和ORA_CRS_HOME下的OPatch目录,首先查看当前的opatch 版本,在每个OPatch目录下执行./opatch ...
阅读全文
摘要:1.get_alert_log 获取alert文件的路径和名称set serveroutput on --设置输出,让sqlplus在屏幕上可以输出。(要加入到login.sql中!)create or replace procedure get_alert_log is alert...
阅读全文
摘要:环境准备:SCOTT@test>select * from v$version;BANNER-----------------------------------------------------------------------------------------Oracle Database...
阅读全文
摘要: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...
阅读全文
摘要:Enabling Automatic Memory Managementalter system set memory_max_target=50G scope=spfile;alter system set memory_target=50G scope=spfile;alter system s...
阅读全文
摘要:--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...
阅读全文
摘要:描述:将表trans_new转换成分区表,分区字段为data_date。一、准备SQL> select /*+ parallel(t,8)*/ count(*) from trans_new t; COUNT(*) ---------- 445600483SQL> select /*+ par...
阅读全文
摘要: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...
阅读全文
摘要:环境:RAC 4节点、oracle 11.2.0.4、redhat 5.9 64bit问题描述:1.alert.log每隔一段时间就会报如下错误:Transaction recovery: lock conflict caught and ignored Transaction recovery: ...
阅读全文
摘要:一、修改密码alter user hr identified by hr;password/passw hr;SYS@test>password hr Changing password for hr New password: Retype new password: ...
阅读全文
摘要:1 单值函数1.1 日期函数1.1.1 Round[舍入到最接近的日期](day:舍入到最接近的星期日) select sysdate S1, round(sysdate) S2 , round(sysdate,'year') YEAR, round(sysdate,'mont...
阅读全文
摘要:环境:源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数据库的...
阅读全文

浙公网安备 33010602011771号