raid 5基本创建过程
我的机器硬盘分区情况[root@centos ~]# fdisk -lDisk /dev/sda: 79.9 GB, 79949722112 bytes255 heads, 63 sectors/track, 9720 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boo...
转: oracle 按拼音 比划排序
找了相关的一些资料,都说的不是很清楚,自己也研究了下,终于搞明白了,希望对大家有帮助。 需要说明的是下面的方法需要ORACLE9i和以上的版本才支持。 Oracle9i之前,中文是按照二进制编码进行排序的。 在oracle9i...
plsql调用者权限与定义者权限
一个简单的例子:SQL> conn / as sysdba已连接。SQL> create user naruto identified by naruto;用户已创建。SQL> grant dba to naruto;授权成功。SQL> conn naruto/naruto已连接。SQL> create or replace p...
JSP中获取PLSQL返回的游标
SQL> desc test Name &...
utl_file.fremove
utl_file包中的fremove过程可以删除某个目录下的文件[oracle@centos tmp]$ touch haha[oracle@centos tmp]$ ll haha -rw-r--r-- 1 oracle oinstall 0 Aug 14 20:12 hahaSQL> exec utl_file.fremove('/tmp','haha');...
PL/SQL包可以打破依赖链
做一下实验:创建过程p1、p2create or replace procedure p1isbegin null;end;/create or replace procedure p2isbegin p1;end;/select object_name, status from user_objects where...
Linux下QT调用TUXEDO函数
#include "Buttons.moc"#include <qbuttongroup.h>#include <qpushbutton.h>#include <qapplication.h>#include <qlabel.h>#include <iostream>#include <qlayout.h>#include <stdio.h>#include "atmi.h"Buttons::Bu...
create any procedure,execute any procedure不该同时授权给普通用户
如果管理员把create any procedure和execute any procedure系统权限授权给一个普通用户,普通用户可以通过一个过程把DBA角色非法授权给自己,演示如下:SQL> create user naruto identified by naruto;用户...
什么情况下索引会重用空间
naruto@ORCL>create table t 2 as 3 select * from all_objects 4 /表已创建。naruto@ORCL>select count(*) from t 2 / COUNT(*)---------- &n...
索引可以重用空间吗?
以下内容来自《oracle9i10g编程艺术》create table t ( x int, constraint t_pk primary key(x));insert into t values (1);insert into t values (2);insert into t values (9999999999);naruto@ORCL>analyze ind...
在多列上创建索引时列的顺序对索引大小的影响
一下内容来自《oracle9i&10g编程艺术》create table tasselect * from all_objects;在owner、object_type、object_name这三列上创建索引,这三列基数大小关系为object_name > object_type > ownercreate index t_...
位图索引影响并发性的原因
位图索引在读密集的环境中能很好的工作,但是在写密集的环境不是非常出色,原因很明确:一个位图索引键条目指向多行。即一个会话更改了索引键指向的一条数据,那么在这个索引键的其它行也会被锁,可做一下实验。先...
oracle进行update时对行加锁的测试
最近正好学习到锁,网上都说在更新一些行之前要把这些行全部锁起来后在更新。比如说,要更新10000行,就会先把这10000行加行锁,然后更新。本人进行了一下实验session 1:created table p (id int);insert into p va...