上一页 1 ··· 160 161 162 163 164 165 166 167 168 ··· 177 下一页
摘要: update b set b.object_name=(select a.object_name from a where a.object_id=b.object_id);create table a as (select * from (select * from dba_objects ord... 阅读全文
posted @ 2014-03-09 21:19 czcb 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 如何启用并行? 可以用hint、alter session或者设置对象并行属性三种方式设置启用并行。三种方式任意一种就可以使并行生效,如果多种方式同时存在的话,则优先级顺序是:hint -> alter session -> table/index degree。 hint alter ses... 阅读全文
posted @ 2014-03-09 20:32 czcb 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 如果排序需要的内存大于sort_area_size, 那么ORACLE就会把排序操作分成2个块, 典型的ONE-PASS Sort run 1第一块排序 在内存里排序 排完后把排序结果放到TEMP表空间 Sort run 2 先临时放到temp segment里,等到第一块排序完后,把第一块排序的结... 阅读全文
posted @ 2014-03-08 18:26 czcb 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 如果你有两个会话,每个会话都持有另一个会话想要的资源,此时就会出现死锁(deadlock)。例如,如果我的数据库中有两个A和B,每个表都只有一行,就可以很容易地展示什么是死锁。我要做的知识打开两个回话(例如,两个SQL*PLUS会话).在会话A中更更新A表,在会话B中更新B。现在,如果我想在会话... 阅读全文
posted @ 2014-03-07 16:08 czcb 阅读(147) 评论(0) 推荐(0) 编辑
摘要: SQL> create table t2(id int,name char(10));Table created.SQL> create unique index te_idx1 on t2(id);Index created.SQL> select * from v$mystat where r... 阅读全文
posted @ 2014-03-07 16:07 czcb 阅读(579) 评论(0) 推荐(0) 编辑
摘要: 有两种方法:1.查看v$asm_diskgroup视图SQL> select group_number,name,total_mb,free_mb from v$asm_diskgroup;GROUP_NUMBER NAME TOTAL_MB ... 阅读全文
posted @ 2014-03-07 11:09 czcb 阅读(1408) 评论(0) 推荐(0) 编辑
摘要: SQL> select * from v$mystat where rownum update t1 set id=100 where id=1;1 row updated.SQL> select * from v$lock where sid=25;ADDR KADDR SID TY ... 阅读全文
posted @ 2014-03-07 10:57 czcb 阅读(154) 评论(0) 推荐(0) 编辑
摘要: ----------------------------------------------------------------------SQL> begin 2 for i in 1 .. 50000 3 loop 4 insert into t1 values(i,'a'); 5... 阅读全文
posted @ 2014-03-06 10:24 czcb 阅读(173) 评论(0) 推荐(0) 编辑
摘要: CentOS Linux解决Device eth0 does not seem to be present一,问题描述在VMware里克隆出来的CentOS Linux。。ifconfig...没有看到eth0.。然后重启网卡又报下面错误。故障现象:service network restartSh... 阅读全文
posted @ 2014-03-05 14:13 czcb 阅读(172) 评论(0) 推荐(0) 编辑
摘要: [ ERROR ] Content Manager is unable to process your request because an unexpected event occurred in the contentstore database subsystemsolution:删除dw c... 阅读全文
posted @ 2014-03-05 11:47 czcb 阅读(374) 评论(0) 推荐(0) 编辑
上一页 1 ··· 160 161 162 163 164 165 166 167 168 ··· 177 下一页