- 博客(7)
- 资源 (10)
- 收藏
- 关注
转载 oracle中LAG()和LEAD()等分析统计函数的用法(统计月增长率)
LAG()和LEAD()统计函数可以在一次查询中取出同一字段的前N行的数据和后N行的值。这种操作可以使用对相同表的表连接来实现,不过使用LAG和 LEAD有更高的效率。以下整理的LAG()和LEAD()例子:LAG(EXPRESSION,,)SQL> select year,region,profit ,lag (profit,1) over (order by year) as 5
2011-12-27 10:52:28 44735
转载 Oracle中恢复被DROP掉表的方法
以前只知道Windows有个回收站,今天听说Oracle也有个回收站! 在Oracle中可能不小心会DROP掉一个表,如果没有定期做备份的话,将会带来很大的麻烦。如果有的情况下,每天的数据都很重要,而定期备份的周期又稍长,情况恐怕也不容乐观! 不过还好Oracle有个回收站,概念就跟Windows里的回收站一模一样。 比如有以下误操作:DROP TABLE d
2011-12-30 09:50:18 704
转载 根据 dba_errors 制定 数据库报警邮件
一. dba_errors 表 官网对这个表的说明如下: ALL_ERRORS:describes the current errors on the stored objects accessible to the current user.DBA_ERRORS:describes the current errors on all stored objects in th
2011-12-29 09:44:39 1294
转载 Oracle 发送邮件
调用执行代码begin procsendemail('hello', '新的邮件1', '[email protected]', '[email protected]', 'smtp.163.com',
2011-12-29 09:35:57 9736 4
转载 Oracle用户被锁定解决方法
1、用dba角色的用户登陆,进行解锁,先设置具体时间格式,以便查看具体时间SQL> alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';Session altered.2、查看具体的被锁时间SQL> select username,lock_date from dba_users where username='TES
2011-12-27 11:18:32 28355 1
转载 DBA常用的一些SQL和视图
alterindex&index_name monitoring usage;alter index &index_name nomonitoring usage;select * from v$object_usage where index_name = &index_name;--求数据文件的I/O分布select df.name,phyrds,phywrts,phyblkr
2011-12-21 11:39:46 1141
转载 Delphi与Oracle中BLOB字段的操作
首先:先了解一下Oracle中的clob与blob字段Oracle将LOB分为两种:内部LOB和外部LOB。内部LOB包括CLOB,BLOB和NCLOB三种类型,它们的数据存储在数据库中,并且支持事务操作(提交,回滚,保存点);外部LOB只有BFILE一种类型,该类型的数据被存储在操作系统(OS)文件中,并且不支持事务操作。其中,CLOB/NCLOB用于存储大批量字符数据,BLOB用于存储
2011-12-20 15:37:16 8436 4
TMS.Component.Pack.v4.4.Full.Source.D5-11.C5-11.ccrun.599528.rar
2007-07-31
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人