Remove Duplicates from Sorted ArrayGiven a
sorted array, remove the duplicates in place such that each element appear only
once and return the new len...
分类:
其他好文 时间:
2014-05-25 19:08:31
阅读次数:
203
Originated
from:http://www.csdn.net/article/a/2014-03-03/15818079Python 版本说明Python 是由 Guido
van Rossum 开发的、可免费获得的、非常高级的解释型语言。其语法简单易懂,而其面向对象的语义功能强大(但又灵...
分类:
编程语言 时间:
2014-05-25 18:50:39
阅读次数:
531
declare test_Cursor cursor scroll global for select
* from fktable --声明一个游标,加上scroll支持游标向任何方向移动declare test_Cursor cursor
forward_only global for sele...
分类:
数据库 时间:
2014-05-25 18:48:34
阅读次数:
327
执行SELECT dbms_sqltune.report_tuning_task(:tuning_task) FROM dual; 报错信息如下:
ORA-00600: internal error code, arguments: [kesqsMakeBindValue:obj], [], [],
[], [], [], [], []
ORA-06512: at "SYS.PRVT_...
分类:
数据库 时间:
2014-05-25 16:22:29
阅读次数:
506
昨天同事在做主从时,从库报如下错误:Got fatal error 1236 from master when reading data from binary log: 'Misconfigured master - server id was not set'粗粗看好像是master的server-id没有设置,但同事做如下查询:备库采集:
root@localhost Fri May 23 ...
分类:
数据库 时间:
2014-05-25 09:57:24
阅读次数:
330
select 10 + 10 + 10 from dual
结果是30,完全没问题。
select null + 10 + 10 from dual
结果是空串,但期望的结果是20.
select nvl(null,0) + 10 + 10 from dual
这样处理结果为20。若查询有空值的情况需利用nvl处理,否则运算有误。...
分类:
数据库 时间:
2014-05-25 09:43:07
阅读次数:
277
ADDM 通过检查和分析AWR获取的数据来判断Oracle数据库中可能的问题,并给出优化建议。
获取ADDM的方法如下:
@?/rdbms/admin/addmrpt.sql下面可以看一个例子:
--第一步:创建测试用的表
drop table t cascade constraints purge;
create table t AS SELECT * FROM dba_objects...
分类:
数据库 时间:
2014-05-25 08:56:34
阅读次数:
472
Kuriyama Mirai has killed many monsters and got many (namely n) stones. She numbers the stones from 1 to n.
The cost of the i-th stone is vi.
Kuriyama Mirai wants to know something about these sto...
分类:
其他好文 时间:
2014-05-25 07:24:48
阅读次数:
315
【题目】
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.
For example,
Given n = 3,
You should return the following matrix:
[
[ 1, 2, 3 ],
[ 8, 9, 4 ],
[ 7, 6, 5 ]
]
【题意】
给定整数n, 将1,2,3...nxn个数按螺旋旋转的方式填入n...
分类:
其他好文 时间:
2014-05-25 07:08:17
阅读次数:
235
AWR快照
默认情况下,Oracle每隔一小时会自动产生一个快照,保存最近8天的快照。
我们可以通过如下语句获得产生快照的时间间隔和保存的天数:
SYS@orcl(lx15)> select SNAP_INTERVAL,RETENTION from dba_hist_wr_control;
SNAP_INTERVAL ...
分类:
数据库 时间:
2014-05-25 06:24:48
阅读次数:
348