sqlserver查询结果中添加自动编号
往往经常有这样的需求,我需要在查询的结果中添加一列类似于Identity的数字,虽然在Client编程中并不难实现,但是有时我想留用现有的Class,不希望在Client side做额外的coding,那么就只有在Sql里面想办法了首先介...
cursor: pin S wait on X
BTW, things get more fun in 10.2, you can pin cursors without getting library cache pin latch, using KGX mutexes. Mutexes are new in 10.2 and they enable shared access to objects in somewhat similar m...
library cache pin和library cache lock (zt)
http://m77m78.itpub.net/post/125/287710 一、概述一个实例中的library cache包括了不同类型对象的描述,如:游标,索引,表,视图,过程,等等.这些对象不能在他们被使用的时候改变,他们在被使用的时候会被...
Oracle's Parallel Execution Features(zt)
Using Oracle's Parallel Execution Features [@more@] Parallel Features The full list of Oracle parallel execution features currently includes the following Parallel Query Parallel DML Parallel DDL Parallel Data Loading Parallel Recovery Parallel Replication How Parallel Execution Works Operations That Can Be Parallelized Oracle can parallelize operations that involve processing an entire table or an entire partition. These operations include: SQL queries requiring at least one full table sca
stored procedure 收集session wait 信息(转)
OWI --用 stored procedure 收集session wait 信息包括对象如下:event_seq: 序列,用于唯一标识每一条记录dc_event_data: 表,用于存储session wait信息dc_collect:存储过程,用于定期收集各个session wait信息,并...
library cache pin(转)
分析解决因”library cache pin”等待 =========================================================== 作者: tolywang(http://tolywang.itpub.net)发表于:2006.04.20 14:45分类: Oracle数据库管理 出处:http://toly...
删除前一天的备份的一个简单批处理
删除前一天的备份的一个简单批处理: 说明一下:备份文件的文件名中含有YYYYMMDD字样。目前暂时无法执行该数据库的netbackup,先临时用该批处理闪出前一天的增量和日志备份。if "%date:~8,2%"=="01" (set /A dt=%dat...
ORA-15041 IN A DISKGROUP ALTHOUGH FREE_MB REPORTS SUFFICIENT SPACE
ORA-15041 IN A DISKGROUP ALTHOUGH FREE_MB REPORTS SUFFICIENT SPACE [ID 460155.1] 修改时间 31-JUL-2011 类型 BULLETIN &n...
find the replications and articles from distribution server
--according old upatedb replication, you may check the publication, then use the fllowing sql to find out these articles.select * from MSpublications --check the publication--according to publication,...
dbms_stats(转)
PurposeGathering statistics is essential for the CBO to do his work. Procedures/Functionsalter_database_tab_monitoringprocedure alter_database_tab_monitoring ( monitoring in boolean default, sysobjs in boolean default ); alter_schema_tab_monitoringprocedure alter_schema_tab_monitoring ( ownname in varchar2 default, monitoring in
ORACLE备份&恢复案例三(转)
第五章 其它恢复案例5.1 损坏联机日志的恢复方法5.1.1 损坏非当前联机日志大家都清楚,联机日志分为当前联机日志和非当前联机日志,非当前联机日志的损坏是比较简单的,一般通过clear命令就可以解决问题。1、启动数...
restart oracle stream
由于oracle10R1的stream复制的bug---leak of memory,在升级到10R2以前临时写个job,重新启动由于memory leak停止的stream。http://www.itpub.net/853849.html保留足够的归档日志15,45 * * * * . /.../admin/bin/.or...
查询SQLSERVER版本号
SQLSERVER2000SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')SQLSERVER2005SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel')...
about oracle10g rac(转)
Q1. How to configure "listener.ora" and "tnsnames.ora"A1. Usually, NETCA will launch automatically during the DBCA. IF you have encountered some errors or want to reconfig them later, please do the fo...
AIX+ORACLE10G安装手册(zt)
AIX+ORACLE10G安装手册1 AIX系统的安装使用AIX 5300L5的介质,根据系统提示进行安装这一步很简单,不详细说明安装完成后需要设置好系统时区、时间和网路。2 调整文件系统初步装好的系统,其文件系统如下:# df -kFile...
mysql5.5.20复制配置
#从库grant all on *.* to'root'@'172.28.14.114'identified by '123456';#修改my.cnf[client]#password = your_passwordport  ...
What is the Impact on the Database When Modifying the OS Date
一个简单文档,记录下。 What is the Impact on the Database When Modifying the OS Date? [ID 559660.1] 修改时间 01-MAY-2008 类型 HOWTO 状态 PUBLISHED In this Document ...
How to get ORACLE_HOME from data dictionary
SQL> set autopri onSQL> var oracle_home varchar2(255)SQL> exec dbms_system.get_env('ORACLE_HOME',:ORACLE_HOME)PL/SQL procedure successfully completed.ORACLE_HOME--------------------------------...
Oracle Tuning的一些总结2(zt)
接上一篇: 2.2.3 等待事件分析接下来,statspack报告中描述的是等待事件(Wait Events),这是Oracle中比较复杂难懂的概念。Oracle 的等待事件是衡量Oracle 运行状况的重要依据及指标。等待事件的概念是在Oracle7....
checkpoint是什么(zt)
checkpoint是什么?checkpoint是数据库的一个内部事件,这个事件激活以后会触发数据库写进程(DBWR)将数据缓冲(DATA BUFFER CACHE)中的脏数据块写出到数据文件中。checkpoint的作用是什么?checkpoint主要2个作用:1...