[RAC] Oracle11g RAC禁止DB自动启动
RAC里面有时候需要禁止DB自动启动。禁止自动启动DB命令crsctl modify resource ora.clusdb.db -attr "AUTO_START=never"启用自动启动DB命令crsctl modify resource ora.clusdb.db -attr "AUTO_START=always"禁止crs自动启动命令crsctl disable crs
[Oracle] Error in invoking target 'agent nmhs' of makefile
Centos7安装oracle11g时报Error in invoking target 'agent nmhs' of makefile解决方法 vi $ORACLE_HOME/sysman/lib/ins_emagent.mk Search for the line $(MK_EMAGENT_NMECTL) Cha...
[Oracle] Oracle收集统计信息的采样比例
Oracle收集统计信息的采样比例: SELECT owner, segment_name, ROUND (SUM (bytes) / 1024 / 1024) size_mb, case when sum(bytes)/1024/1024 = 1 ...
[Oracle] Append hint(insert sql) will lead a TM LOCK
添加了append提示,会对test1表加上6级TM锁,此时该表上的其他DML事物会被全部阻塞sessioin 1:SQL> insert /*+append*/ into test1 select * from test;session 2:SQL> insert /*+append*/ into test1 select * from test;SQL> select inst_id,sid,serial#,machine from gv$session where username='SCOTT'; ...
[Oracle] 统计listener.log中IP的几种方法
如下是统计oracle11g listener.log中IP的几种方法cat listener.log | awk -F"HOST=" '{print $3}' | awk -F")" '{print $1}' | sort | uniq -c (89s)cat listener.log | awk -F"HOST=" '{print $3}' | awk -F")" '{a[$1]++}END{for(i in a) printf "%-30s%.f\n",i,a[i]}' (68...
[Oracle] Partition table exchange Heap table
SQL> create table part_tab1(id int,owner varchar2(30),name varchar2(30),type varchar2(30),created date) 2 partition by range(id) 3 (partition p1 values less than(10000) tablespace users, 4 partition p2 values less than(50000) tablespace users, 5&nb...
[20120918]理解v$sql的exact_matching_signature与force_matching_signature.txt
[20120918]理解v$sql的exact_matching_signature与force_matching_signature.txt 理解v$sql的exact_matching_signature与force_matching_signature,对于使用sql profile以及SPM有重要意义,自己对...
[Oracle] Oracle 11g 关闭listener产生xml log方法
Oracle 11g 关闭listener产生xml log方法1.in sqlnet.ora添加 DIAG_ADR_ENABLED=OFF 2.in listener.ora 添加 DIAG_ADR_ENABLED_LISTENER=OFF (因为listener名字为LISTENER,所以为DIAG_ADR_ENABLED_LISTENER。如果listener名字为LISTENER2,修改为DIAG_...
[Oracle] Oracle11g listener.log清除步骤
Oracle listener.log超过4G之后就不回再往里面写数据,所以需要定期备份和清除listener.log中的数据.如下为oracle11g listener.log清除步骤1. ps -ef | grep tns 查看DB是否使用了多个listener.2. lsnrctl status listenerx 查看listener.log在哪个位置(路径)3. lsnrctlLSNRCTL> showThe foll...