ITeye博客

dbua

libin123 · 共 529 篇文章

oracle 并行学习 (四)

并行DDL语句 并行DDL语句支持表和索引。下面是有代表性的可以被并行化的操作: CREATE TABLE AS SELECT (CTAS) 语句; 创建和重建索引; 创建和校验约束。 另外,对分区表和分区索引来讲,诸如SLIP和MOVE这类分区管理操作也可以被并行化。通常,那些可以利用并行处理的DDL语句可以通过提供PARALLEL子句来指定是否使用并行处理,以及如果被使用,其并行度为多大。无法利用提示来指定并行度。 并行DDL语句默认是启用的。可以使用下面的SQL语句在绘画级别启用或禁用它们: ALTER SESSION ENABLE PARALLEL DDL ALTER SESSION…

2010-05-25 13:10 · 评论(0)

oracle 并行学习 (三)

并行DML 1.以下DML语句可以被并行地执行: DELETE 包含子查询的INSERT MERGE UPDATE 2.DML语句不能在以下情况下并行执行 当表上有触发器时; 当表上有自引用的外键约束,或支持迭代删除的外键约束,或延迟的约束时; 当对象类型字段被修改的时候; 当聚簇表或临时表被修改的时候; 默认情况下并行DML是被禁止的。在会话级别,可以使用下面的SQL语句启用或禁用它们。 ALTER SESSION ENABLE PARALLEL DML ALTER SESSION DISABLE PARALLEL DML 另外,也可以使用下面的SQL语句来强制按照指定的并行度进行并行处理…

2010-05-25 09:55 · oracle 学习 · 评论(0)

通过xmanager远程连接redhat linux as 5

通过xmanager远程连接redhat linux as 5 rhel5与rhel4不同的地方是,rhel5里没有/etc/X11/gdm/这个目录,rhel5的gdm的配置文件放在这里/usr/share/gdm/defaults.conf。 需要修改的地方如下: 修改/usr/share/gdm/defaults.conf文件,确保里面有以下几行: Enable=true DisplaysPerHost=10 Port=177 再修改/etc/inittab文件,把默认级别改为5,再加入以下行: x:5:respawn:/usr/sbin/gdm 这样修改后,root用户还不能登录,还…

2010-05-24 23:16 · linux学习 · 评论(0)

oracle 并行学习 ( 二)

并行查询 下面的操作不管是在查询中还是在子查询中都可以并行的执行: 1.全表扫描、全分区扫描以及快速全索引扫描 2.索引完全或范围扫描,但只是在索引被分区的情况下 3.表连接 4.集合操作符 5.排序操作 6.聚合操作 以上操作:全表扫描、全分区扫描和快速全索引扫描在并行执行时是使用直接读(direct read)操作,从而可以避开高速缓存。然而,索引完全和范围扫描还是使用普通的物理读。 并行查询默认是启用的。在绘画级别,可以使用下面的SQL语句启用或禁用并行查询: ALTER SESSION ENABLE PARALLEL QUERY ALTER SESSION DISABLE PARAL…

2010-05-24 15:52 · oracle 学习 · 评论(0)

oracle 并行学习 (一)

1 . 参数讲解: parallel_min_servers 为实例启动时创建的从属进程数量。这些从属进程始终是可用的,当服务器进程请求的时候就不需要再创建了。这个初始化参数的默认值为0,这意味着在实例启动的时候是不会创建从属进程的。建议:只有在一些SQL语句花费太长时间来等待从属进程的情况下,才来修改这个参数值,与这个操作相关的等待事件为 os thread startup. parallel_max_servers 为池中从属进程的最大可用数量。一般将它的值设为核的8到10倍是一个不错的起点。它的默认值依赖于多个其他的初始化参数,以及版本和平台。 parallel_automaitc_t…

2010-05-24 15:25 · oracle 学习 · 评论(0)

xmanage用root不能登陆solaris10,报Not on system console,root login rejected

描述:xmanage用root不能登陆solaris10,报Not on system console,root login rejected. 释掉/etc/default/login文件中的这一行 #CONSOLE=/dev/console

2010-05-23 20:07 · solaris · 评论(0)

solaris 网络配置学习

主机名为sampdt,ip 10.1.1.1 1 /etc/hosts 主机名解析 # # Internet host table # 127.0.0.1 localhost 10.1.1.1 sampdt loghost 10.1.1.46 test.china.org 10.1.1.3 sidemo 2 /etc/hostname.hme0 网络接口名 sampdt 3 /etc/netmasks 网络掩码 4 /etc/inetd.conf 服务项目定义 5 /etc/defaultroot 设定路由 6 /etc/nsswitch.files 设定名字搜索顺序 7 /etc/defa…

2010-05-23 18:50 · solaris · 评论(0)

solaris 10操作系统静态ip设置

新安装了solaris 10操作系统,安装成功之后,发现不能上网,其实在安装操作系统的过程中,已经设置了静态的IP地址,但要使机器能上网,还得配置一些网络设置,具体如下: 假如想设置的网络配置信息 为:hostname:mysolaris IP:192.168.0.12 子网掩码:255.255.255.0 网关:192.168.0.1 dns(假设的):192.168.0.1 设置IP需要修改三个文件,个体的操作步骤如下: 1)、修改/etc/hosts文件,添加要设置的IP地址. #vi /etc/hosts 添加IP,具体内容:192.168.0.12 mysolaris loghos…

2010-05-23 18:33 · solaris · 评论(0)

ORA-17502 与 ORA-15173 错误解决

用rman恢复spfile时,报错误如下: RMAN> restore spfile from '+FLASHBACKDATA1/ORAC/AUTOBACKUP/2010_05_16/s_719137976.308.719137979'; Starting restore at 17-MAY-10 allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=33 devtype=DISK channel ORA_DISK_1: autobackup found: +FLASHBACKDATA1/ORAC/AUTOBACKUP/2010_05_1…

2010-05-21 17:27 · oracle 案例 · 评论(0)

Dropping A Disk From ASM Diskgroup Does Not Remove It From v$ASM_DISK

Applies to: Oracle Server - Enterprise Edition - Version: 10.2.0.3 Information in this document applies to any platform. Symptoms -- Problem Statement: After removing the ASM disks from ASM diskgroup and overwrite them using dd command, the disks still appear in the v$ASM_DISK dynamic performance v…

2010-05-21 10:42 · oracle 案例 · 评论(0)

Clustering Factor [ID 39836.1]

Applies to: Oracle Server - Enterprise Edition - Version: 8.0.3.0 to 11.2.0.2 - Release: 8.0.3 to 11.2 Information in this document applies to any platform. Purpose This article outlines the meaning of the Clustering Factor Statistic Scope and Application This article provides developers and DBAs m…

2010-05-19 09:51 · oracle 学习 · 评论(0)

How To Partition Existing Table Using DBMS_Redefinition [ID 472449.1]来自Metalink

Applies to: Oracle Server - Standard Edition - Version: 9.2.0.4 Information in this document applies to any platform. Goal The purpose of this document is to provide step by step instructions on how to convert unpartitioned table to partitioned one using dbms_redefinition package. Solution 1) Creat…

2010-05-17 23:27 · oracle 学习 · 评论(0)

各种UNIX平台下vmstat与iostat输出结果详解

各种UNIX平台下vmstat与iostat输出结果详解 Linux下vmstat输出释疑: Vmstat procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 100152 2436 97200 289740 0 1 34 45 99 33 0 0 99 0 procs r 列表示运行和等待cpu时间片的进程数,如果长期大于CPU的数目,说明cpu不足,需要增加cpu。 …

2010-05-17 11:45 · linux学习 · 评论(0)

RMAN: RAC Backup and Recovery using RMAN [ID 243760.1] Metalink

"Checked for relevance on 21-Dec-2008" RAC Backup and Recovery using RMAN Objectives: =========== 1. Verify the database mode and archive destination. 2. Verify connectivity using sqlnet for target and catalog. 3. Determine your backup device 4. Understand how to create an RMAN persistent configura…

2010-05-14 16:19 · oracle备份与恢复 · 评论(0)

How to cleanup ASM installation (RAC and Non-RAC) [ID 311350.1]

Applies to: Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 10.2.0.3 Information in this document applies to any platform. "Checked for relevance on 05-Feb-2008" Goal How to drop the ASM instance installed in a seperate Oracle Home for both RAC and non-RAC installations. Solution The outl…

2010-05-14 15:18 · oracle 学习 · 评论(0)