刷新环境冲突解决
刷新环境冲突解决 execute dbms_refresh.refresh('repadmin.refresh_ro');execute dbms_refresh.refresh('repadmin.refresh_rw');commit;ORA-23402:在NDC库上做:select * from deferror;--delete from sys...
rman 删除归档日志
rman>crosscheck archivelog all 清除控制文件中由于rm后不存在的归档文件信息rman>delete archivelog all completed before 'sysdate-n';
AIX使用裸设备扩展表空间
SC_HDB1:oracle:/dev>lsvg rootvgarchvglogvgbakvgdatavgtempvgSC_HDB1:oracle:/dev>lsvg -l datavg |grep dbdb_system01 jfs &nb...
大乐透八等奖4个中奖情况
****************************最终版三个过程,一个临时存储表 一个日志表 #drop procedure p_stats_dlt_8levels_test; --测试用#drop procedure p_stats_dlt_child_8levels_test;--测试drop table dlt...
oracle 阶乘 组合 求两个字符串相同字符个数
组合create or replace function collocate(m number, n number) return number is --C(n,m)=n!/(n-m)!*m! v_result number;begin if m > n then return 0; end if; ...
AIX逻辑卷管理【转】
在AIX环境为Oracle表空间增加裸设备(逻辑卷)[日期:2011-01-21]来源:Linux社区 作者:Linux</SCRIPT.</SCRIPT.</SCRIPT.</SCRIPT.</SCRIPT.</SCRIPT.</SCRIPT.google_protectAndRun("rend...
使用dbms_profiler来观察每一行PLSQL程序的执行时间
使用dbms_profiler来观察每一行PLSQL程序的执行时间有时候我们在执行一段比较长的plsql程序的时候,发现执行过程比较慢,但又不知道是哪部分出现了性能问题,这时候应该如何快速找到最耗费时间的部分呢?当然有很多...
sqlplus 多样化输出
盖老师的链接http://www.eygle.com/archives/2005/04/eoasqlplusieaae.html
oracle 分析函数中 keep关键字的使用
语法min | max(column1) keep (dense_rank first | last order by column2) over (partion by column3); 另外firstlast还可以结合avg sum等使用。解释:返回按照column3分组后...
imp 导入又一个实例
exp导出文件dmp来历不明(具体原因就是曲折复杂) 我在client 10.2.0版本导入到server 10.1.0时报错IMP-00032: SQL 语句超过缓冲区长度后查看dmp文件内容第一行TEXPORT:V10.02.01 发现导出版本为10.2.1...
rman 全备与恢复
虚拟机上oracle 11.2一个RMAN模拟过程。STEP1,[oracle@localhost ~]$ sqlplus / as sysdba SQL> create table tx1 as select * from dba_objects where rownum<2; STEP2,[oracle@localhost...
insert all 操作 减少扫描次数
create table tx1 (id1 int ,id2 int);create table tx2 (id1 int, id2 int);create table tx3 (id1 int, id2 int);create table tx (id1 int, id2 int);insert into tx values(1,1);insert into tx values(2,2);in...
修改数据库名
1 【参考资料】http://www.itpub.net/viewthread.php?tid=210292&extra=&page=1http://vecentli.itpub.net/post/14011/3857252 【环境参数】 ...
oracle hint 常用
usual used 1 index ,no_index,index(tablename1 col1,tablename2 col2) 2 ordered 3 parallel,no_parallel 4 first_rows,first_rows(n)  ...
oracle install
一、安装Linux:序列号:2515dd4e215225dd二、安装Oracle:1.关闭SElinux# vi /etc/selinux/config #SELINUX=enforcingSELINUX=disabled2.# vi /etc/pam.d/login # Add content for oracle installsessio...
oracle 分区技术综合记录
oracle 分区索引的设计。1、在使用global index时,除要考虑功能以外,还需要考虑是否在日后维护中,有delete分区数据的操作,如果有,考虑delete代价是否可以承受,因为如果drop partition的话,会是global ...
install oracle on rhel4 的一些问题
sth met while install oracle in rhel4 1:how to use the iso file in linux ? A:mount -t iso9660 -o loop /tmp/Mandrake80-inst.iso /mnt/iso (take care here ) cd-row&nb...
【转】oracle 10g 行列转换的写法
11g中有更好的解决方式,有个pivot函数 1 Oracle一个典型行列转换的几种实现方法 假如有如下表,其中各个i值对应的行数是不定的SQL> select * from t;I A D———- —...
【记】延迟清除
在分析select 的执行计划时,redo size不为0引发的一系列问题。alter system dump database/logfile延迟清除udump文件的阅读。等。
【转】ORA-01779 update写法另一种写法
ORA-01779的处理方法 =========================================================== : http://rainbowbridg.itpub.net/post/23663/295750--------------------------------------------------------------- Orac...