最佳实践(保持、清理ORACLE alert日志)
Please modify the script variables below to your specifics.LOGFILE_DIRRETENTION_DAYSRETENTION_SIZE RUEI has a script called clean.sh--------------------------------#!/bin/bash## Automatically clean the Automatic Diagnostics Repository (ADR) directories.#source /etc/ruei.conf &>/dev/nul...
auto_unlock_stats.sh
#############主程序##########################################!/usr/sbin## Get run environment. /oracle/.profile## Get the base directory and other directoriesDIR_HOME=$(cd "$(dirname "$0")"; pwd)## Get the configuration. $DIR_HOME/auto_unlock_stats.ini## Generate need unlock and lock sc...
root script (root.sh or rootupgrade.sh) Failed to start resource ora.ons
11GR2 Grid安装或升级时,在执行/root.sh或rootupgrade.sh 时由于ora.ons 不能开启而失败,失败开启有多种情况; 现象:$GRID_HOME/cfgtoollogs/crsconfig/rootcrs_$HOSTNAME.log2010-10-11 19:10:51: J2EE (OC4J) Container Resource Add ... passed ...2010-10-11 19:10:51: starting nodeapps....
oracle ons(OracleNotificationService)
OnsctlOnsctl这个命令是用来管理ONS(Oracle Notification Service)是OracleClustser实现FAN Event Push模型的基础。Oracle Notification Service (ONS)--A publish and subscribe service for communicating Fast Application Notification (FAN) events.在RAC环境下,需要使用$CRS...
startup migrate、startup upgrade区别以及Oracle打补丁集文档(转)
startup migrate、startup upgrade区别以及Oracle打补丁集文档(转) startup migrate=> Used to upgrade a database till 9i.See the step 11 from the 9.2 manual upgrade guide :http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96530/upgrade.htm#1009472...
Oracle11g 统计信息-----统计信息自动收集任务
11g中统计信息自动收集任务的名称是auto optimizer stats collection。11g中自动任务默认的执行时间窗口为: 周一到周五是晚上10点开始到2点结束 周末是早上六点,持续20个小时。1、查看自动收集任务及状态select client_name,status from Dba_Autotask_Clien...
oracle 创建或重建索引时收集统计信息不自动收集(_optimizer_compute_index_stats)
如下隐含参数强制创建过引时自动收集统计信息NAME VALUE PDESC------------------------------ ---------- --------------------------------------------------_optimizer_compute_index_stats TRUE...
shell 脚本常用 oracle 环境变量set 设置
ORACLE本文主要介绍使用sqlplus工具将数据库字段导出成TXT文本格式文件。一、文本导出原理Oracle 文本导出的原理就是把SELECT输出结果直接输出到文本文件中。使用spool文件名方式制定输出结果二、spool常用的设置对于SPOOL数据的SQL,最好要自己定义格式,以方便程序直接导入,SQL语句如:select taskindex||'|'||co...
oracle hint简述
使用Hint时的注意事项 在使用Hint时需要注意的一点是,并非任何时刻Hint都起作用。 导致HINT 失效的原因有如下2点:(1) 如果CBO 认为使用Hint 会导致错误的结果时,Hint将被忽略。如索引中的记录因为空值而和表的记录不一致时,结果就是错误的,会忽略h...
oracle 统计信息
收集oracle统计信息优化器统计范围:表统计; --行数,块数,行平均长度;all_tables:NUM_ROWS,BLOCKS,AVG_ROW_LEN;列统计; --列中唯一值的数量(NDV),NULL值的数量,数据分布; --DBA_TAB_COLUMNS:NUM_DISTINCT,NUM_NUL...
oracle cache缓存
1.使用caching table 的原因 在通常的情况下,应用程序访问在cache中的数据块将按照LRU算法来进行处理。然而对于小表的访问,当使用全表扫描时,则该表 中的块会放置LRU列表最近最少使用尾部的(LRU端),因此很快就被淘汰出局。然而使用基于成本优化的方法,对于小表进行查询以及...
清理linux内存
清理linux内存 /proc/sys/vm/drop_caches 文件默认是0sync;sync;echo 1 > /proc/sys/vm/drop_cachesecho 2 > /proc/sys/vm/drop_cachesecho 3 > /proc/sys/vm/drop_cachesecho 0 > /proc/sys/vm/drop_caches
ORA-27102 IPCRM无法清除共享内存
SQL> startupORA-27102: out of memoryLinux-x86_64 Error: 28: No space left on device1.查看共享内存:可以看到ORACLE共享内存并没有释放,且KEY为0;出现这种情况往往是由于ORACLE进程未中断,或权限问题)oracle@TLCJS1:[/oracle] ipcs -m------ Shared Memory Segments --------key &nb...
AIX配置NFS注意事项
1. server端和client端都要配置/etc/hosts, 互相加入#server9.125.13.23 gssvm23.cn.com9.123.100.159 directorForNpiv#client9.125.13.23 gssvm23.cn.com9.123.100.159 directorForNpiv2. 确认nfs服务正常运行, lssrc -g nfs,/#lssrc -g nfsSubsystem ...
客户端通过SCAN TNS无法连接ORA-12545
[oracle@c4yybcv3] /oracle/app/oracle/product/11.2.0/dbhome_1/network/admin> sqlplus hurp/hurp@toyy3_scanSQL*Plus: Release 11.2.0.3.0 Production on Tue May 26 09:48:27 2015Copyright (c) 1982, 2011, Oracle. All rights reserved.ERROR:ORA-12545: Connect failed because target host or obje...
TNS-12533: TNS:illegal ADDRESS parameters
[oracle@c4yybcv3] /oracle/app/oracle/product/11.2.0/dbhome_1/network/admin> tnsping toyy3_scanTNS Ping Utility for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production on 26-MAY-2015 09:36:51Copyright (c) 1997, 2011, Oracle. All rights reserved.Used parameter files:Used TNSNAMES adapt...
aix 修改系统时间
linux下用date -s "20111231 21:30:25"把时间设为2011年12月31日21点30分25秒。而aix呢?它不认-s这个参数,上网查了一下,原来是:date -n mmddHHMMYY,mm表示月分,dd表示日期,HH表示小时,MM表示分钟,YY表示年份。如:date -n 1231213011表示把当前时间设为2011年12月31日21点30分。...
ORA-38754: FLASHBACK DATABASE NOT STARTED时请求的归档无效
参考文档:ORA-38754: FLASHBACK DATABASE NOT STARTED - REQUIRED REDO LOG IS NOT AVAILABLE (文档 ID 560686.1)版本:Oracle Database - Enterprise Edition - Version 10.1.0.2 and laterInformation in this document applies to any platform.***Checked for relevance on 29-Apr-2013***问题现象:When try...
CRS-4640
[root@toyy3a_cs] /grid/product/11.2.0/gridhome_1/bin> ./crsctl start crsCRS-4640: Oracle High Availability Services is already activeCRS-4000: Command Start failed, or completed with errors.
Oracle Real Application Testing之DB Replay实践案例
一.使用DB Replay前期需要1.可以使用DB Replay的数据版本及PATCH包的需要参考文档:Using Real Application Testing Functionality in Earlier Releases (文档 ID 560977.1)在11g 之前安装Real Application testing,Opatch 工具应该被使用,如果你想要使用DB replay或SQL Performance Analyzer 仅打上对应的补丁即可;...