oracle行链接的检测和处理(转)
1、测试行链接SQL> create table tt(a char(2000),b char(2000),c char(2000),d char(2000),e char(2000)) ;SQL> insert into tt values('a','b','c','d','e');SQL> commit;--分析SQL> @?\RDBMS\ADMIN\utl...
Perl的一些重要模块使用介绍
1) use Cwd;my $directory = cwd;2) use Fatal qw/ open chdir/;chdir '/home/merlyn'; # "or die" is now supplied automatically3) use File::Basename;for (@ARGV){my $basename = basename $_;m...
使用sprintf 输出"money number"
sub big_money{1my $number = sprintf "%.2f", shift @_;2#add one comma each time through the do-nothing loop31 while $number =~ s/^(-?\d+)(\d\d\d)/$1,$2/;4# Put the dollar sign in the right ...
Non-Greedy and Greedy Quantifier In Perl
比较以下两个正则匹配:$_ = "fred and barney went bowling last night ";1)贪心/fred.+barney/过程:首先匹配成功fred,然后.+匹配之后尽量多的信息,即:and barney went bowling last night,随后barne...
Default copy constructor does not call correct base(转) constructor
Section 12.8.8 of the C++ standard specifies that a default generated copy constructor should call the copy constructors of its base members.However, as can be seen by running the following codestruct...
C++箴言:理解typename的两个含义(转)
问题:在下面的 template declarations(模板声明)中 class 和 typename 有什么不同? template<class T> class Widget; // uses "class"template<typename T> class Widget; // uses "typename" 答案:没...
oracle性能awr报告
首先说一下什么是awr报告,它能给我们带来什么。 * 定义:awr报告是oracle 10g下提供的一种性能收集和分析工具,它能提供一个时间段内整个系统资源使用情况的报告,通过这个报告,我们就可...
淘宝海量数据库之三:事务的ACID(转)
每个事务使得数据库从一个一致的永久状态原子地转移到一个新的一致的永久状态,可以说,事务的ACID(the transactional properties of Atomicity, Consistency, Isolation and Durability)属性是数据库事务的灵魂 ...
淘宝海量数据库之二:一致性选择(转)
众所周知,一致性是数据最关键的属性之一。2000年,Eric Brewer教授在ACM分布式计算年会上指出了著名的CAP理论: Brewer, E. A. 2000. Towards robust distributed systems. In Proceedings of the 19th Annual A...
通过在Oracle子表外键上建立索引提高性能
根据我的经验,导致死锁的头号原因是外键未加索引(第二号原因是表上的位图索引遭到并发更新)。在以下两种情况下,Oracle在修改父表后会对子表加一个全表锁:1)如果更新了父表的主键(倘若遵循关系...
数据库新趋势MoreSQL/NewSQL挑战NoSQL
早在去年十一月份的时候,Zynx Health的软件工程师Alex Tatiyants写了一篇文章“NoSQL No More: Let's double down with MoreSQL”介绍了MoreSQL,并呼吁大家: 今天,我呼吁所有开发者加入MoreSQL,关系型数据库...
数据库新趋势MoreSQL/NewSQL挑战NoSQL
早在去年十一月份的时候,Zynx Health的软件工程师Alex Tatiyants写了一篇文章“NoSQL No More: Let's double down with MoreSQL”介绍了MoreSQL,并呼吁大家: 今天,我呼吁所有开发者加入MoreSQL,关系型数据库...
视图创建时的权限问题
阅读tom的书时,实验环境需要建立一个收集状态信息的视图。test@ORCL> create or replace view stats as2 select 'STAT...' || a.name name,b.value3 from v$statname a,v$mystat b4 where a.STATISTIC#=b.STATISTIC...
Oracle rowid 详解
本文讨论的是关于oracle从8i开始引进object的概念后的rowid,即扩展(extended)的rowid:1. rowid的介绍先对rowid有个感官认识:SQL> select ROWID from Bruce_test where rown...
Inserting Data with DML Error Logging(转)
进行dml时,如果有任何违反约束的记录出现,整个dml操作会终止并开始回滚,这对于大批量的数据处理,不管是从时间还是系统性能消耗上来说,都是相当大的代价。我曾经有过因为几条数据主键冲突而导致几千万的数据导入...
Oracle 10g, Export problem through OEM(转)
ubject: Export/Import DataPump - Submitting DataPump Job via OEM Database Control Fails with ORA-20204 in SYSMAN.MGMT_USERDoc ID: Note:294680.1 Type: PROBLEMLast Revision Date: 29-DEC-2004 Status: PUB...
oracle profile(转)
1.为什么使用profile?oracle中的profile类似于操作系统的profile,是一组资源使用的限制定义,指定给用户就限定了这个用户所能使用的资源。比如你想限制一个用户登录的时候密码输入连续失败六次则锁定该账...
star schema
数据仓库这么多年来发展的成果,我认为恐怕最重要的要算star schema了,可以说它是整个数据仓库的基石。star schema主要的思想在于将我们关心的数据和用于描述数据的属性分隔开来。实际的数据存放于Fact table中,从...
About Oracle Lock
1)A modified row is always locked exclusively so that other transactions cannot modify the row until the transaction holding the lock is committed or rolled back. However, if the tr...
在LINUX平台上手动创建数据库(oracle 10g)
在LINUX平台上手动创建数据库(oracle 10g)1.首先设置要创建的ORACLE的SID,如果在.bash_profile文件里设置里该变量,就不用设置了。$echo $ORACEL_SIDmdy如果没有设置,就手动设置,如果一个服务器上要运...