表中的id 值自動按順序增長
CREATE OR REPLACE TRIGGER DMP1.TRI_cr_n31_ID BEFORE INSERT ON DMP1.CR_N31 FOR EACH ROWBEGIN SELECT DMP1.SEQ_cr_n31_ID.nextval INTO :new.ID FROM dual; END;/CREATE SEQUENCE DMP1.SEQ_CR...
init sys
#!/bin/bash002#003# Script. Name: oracle_install.sh004# Description: This program is used for helping you install oracle10g automatically.Be used in Redhat 5 enterprise.005#006# Statment: Before inst...
Oracle SQL 调优健康检查脚本(转)
我们关注数据库系统的性能,进行数据库调优的主要工作就是进行SQL的优化。良好的数据架构设计、配合应用系统中间件和写一手漂亮的SQL,是未来系统上线后不出现致命性能问题的有力保证。 在CBO时代,一个SQL的执...
inux 双网卡绑定(bonding)实现负载均衡或故障转移(转)
linux 双网卡绑定(bonding)实现负载均衡或故障转移以太网, linux我们在这介绍的Linux双网卡绑定实现就是使用两块网卡虚拟成为一块网卡,这个聚合起来的设备看起来是一个单独的以太网接口设备,通俗点讲就是两块网卡...
veritas cfs for oracle rac安裝過程。
Disk /dev/sdb: 8589 MB, 8589934592 bytesDisk /dev/sdc: 5368 MB, 5368709120 bytesDisk /dev/sdd: 214 MB, 214748160 bytesDisk /dev/sde: 214 MB, 214748160 bytesDisk /dev/sdf: 214 MB, 214748160 byte...
Oracle数据恢复 - Linux / Unix 误删除的文件恢复(转)
今天有客户的数据库意外被删除了整个目录中的数据文件,操作系统级别的删除,然而幸运的是这个数据库没有崩溃,仍然处于open状态的时候,客户就发现了问题,求助到我们,最终完整地恢复了所有数据文件。在Linux...
Flashback Query恢复误删除数据(转)
先确认数据库的SCN变化: SQL> col fscn for 9999999999999999999SQL> col nscn for 9999999999999999999SQL> select name,FIRST_CHANGE# fscn,NEXT_CHANGE# nscn,FIRST_TIME from v$archived_log;................
HA維護要收集的日誌
VRTS_SF_HA_Solutions_5.1_SP1_RHEL.tar.gz 要收集的日誌 &n...
veritas 磁盘组和卷划分(mirror) HA
vxdisk listsystool -c fc_host -vmultipath -ll/etc/init.d/multipathd status/etc/init.d/multipathd startvi /etc/multipath.conf #blacklist {# devnode "*"#...
linux參數修改
/etc/rc.d/rc.local route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.8.72.1 dev eth0 modprobe hangcheck-timer hangcheck_tick=30 hangcheck_margin=180##########Active VG#####################...
ORACLE 数据类型占用的字节数(转)
查看( 0 ) / 评论( 0 ) / 评分( 0 / 0 )数据库类型如下: 字段类型 中文说明 限制条件 其它说明...
OpenLDAP集中管理用户帐号学习笔记 (转)
OpenLDAP集中管理用户帐号学习笔记 本文使用Redhat Enterprice Linux 4.0版本测试,并成功实现。 经过2年多的测试和使用,在CentOS 5.x/Cent OS4.x/RHEL4.x/RH...
How to configure password openldap server in Red Hat Enterprise Linux 5?
Article ID: 48288 - Created on: Feb 28, 2009 8:43 AM - Last Modified: Jul 11, 2011 11:28 AM Issue Although it is possible to apply password policies using "shadow" attributes like (shadow...
oracle临时表的用法(转)
1、前言 目前所有使用Oracle作为数据库支撑平台的应用,大部分数据量比较庞大的系统,即表的数据量一般情况下都是在百万级以上的数据量。 当然在Oracle中创建分...
用 test[test001]用户登录到 test001用户
alter user test001 grant connect through test;
Buffer Busy Wait小结
当进程需要存取SGA中的buffer的时候,它会依次执行如下步骤的操作:1.获得cache buffers chains latch,遍历那条buffer chain直到找到需要的buffer header2.根据需要进行的操作类型(读或写),它需要在buffer heade...
Buffer Busy Waits
Buffer Busy WaitsDefinitionThis wait happens when a session tries to access a block in the buffer cache but it cannot because the buffer is busy, i.e. another session is modifying the block and the ...
latch
Note: This is INTERNAL ONLY research. No action should be taken by the customer on this information.This is research only, and may NOT be applicable to your specific situation.KNOWLEDGE--------...
一次修改share pool参数的过程
WARNING: inbound connection timed out (ORA-3136)经awr报告分析,发现出问题时间段share pool中的sql area每次都在做不等量的调整,幅度较大,share pool总量也在调整,top 5事件里面都是latch: library cache和l...
大于500M 的表
select owner,segment_name,bytes/1024/1024 from dba_segments where segment_type='TABLE' and bytes/1024/1024>500group by owner,segment_name,bytes/1024/1024order by 3 desc;