学习笔记-nologging与logging对DML操作的影响
目的:测试表的nologging与logging属性的区别。试验1:logging模式下,插入数据时产生的redo日志量。SQL> create table t as select * from sys.dba_objects; Table created. SQL> @mystat...
模拟试验之-外键未加索引导致死锁
session 1:scott@TEST>create table p(x int primary key); Table created. scott@TEST>create table c(x references p); Table created. scott@TEST>insert into p values(1); 1 r...
一个自动生成spreport的shell--by rollingpig(转)
#!/bin/ksh#Script. to auto genarate statspack report# Coding by Serol Luo, rollingpig@163.comusername=perfstatpass=perfstattargetdb=testdbfunction snap_id_list {sqlplus -S $username/$pass@$targetdb <...
裸设备上创建数据文件与删除表空间的某一个数据文件测试
一。 裸设备上创建数据文件测试 今天做一个在裸设备上创建数据文件的测试,裸设备大小为200m,尝试添加这个裸设备为数据文件:SQL> alter tablespace users add datafile '/dev/raw/raw1' size 200m;a...
学习索引-1
1.测试表demo;SQL> desc demo; Name  ...
group by 子句学习
SQL> alter table demo add (no int); Table altered. SQL> desc demo; Name ...
查找数据库中未加索引的外键脚本
column columns format a30 word_wrappedcolumn tablename format a15 word_wrappedcolumn constraint_name format a15 word_wrappedselect table_name, constraint_name, cname1 || nvl2(c...