易截截图软件、单文件、免安装、纯绿色、仅160KB

oracle RAC 底层进程介绍

 1.GSD global services daemon 
oracle官方文档的描述 
The Global Services Daemon (GSD) runs on each node with one GSD process per node. The GSD coordinates with the cluster manager to receive requests from clients such as the DBCA, EM, and the SRVCTL utility to execute administrative job tasks such as instance startup or shutdown. The GSD is not an Oracle instance background process and is therefore not started with the Oracle instance. 
GSD与rac的管理工具dbca srvctl oem进行交互,用来完成实例的启动关闭等管理任务。 
为了保证这些管理工具运行正常必须在所有的节点上先start gsd,并且一个GSD进程支持在 
一个节点的多个rac.gsd进程位于$ORACLE_HOME/bin目录下,其log文件为$oracle_home 
/srvm/log/gsdaemon.log 
例如: 
假设使用oem工具来启动一个实例,oem把该任务传递给相应的智能引擎,该智能引擎生成 
一个包含SRVCTL命令的脚本文件,GSD进程读取该脚本文件并且执行该脚本,最后GSD把 
执行结果返回给智能引擎,近而智能引擎返回给OEM. 
又例如假设使用srvctl工具关闭所有的实例,GSD进程接受来自SRVCTL工具发出的请求,并 
在本地节点上执行该请求,然后把执行结果返回给SRVCTL会话。 
2.LMON: Global Enqueue Service Monitor 
oracle官方文档的描述 
Global Enqueue Service Monitor (LMON) 
The background LMON process monitors the entire cluster to manage global resources. LMON manages instance deaths and the associated recovery for any failed instance. In particular, LMON handles the part of recovery associated with global resources. LMON-provided services are also known as Cluster Group Services. 
LMON主要监测群集内的全局队列和全局资源,管理实例和处理异常并相应的群集队列进行恢复操作。 
3.LMD: Global Enqueue Service Daemon 
oracle官方文档的描述 
Global Enqueue Service Daemon (LMD) 
The resource agent process that manages requests for resources to control access to blocks. The LMD process also handles deadlock detection and remote resource requests. Remote resource requests are requests ori


相关文档:

ORACLE 使用DBMS_METADATA.GET_DDL获取DDL语句

Oracle 在9i以后,可以利用DBMS_METADATA.GET_DDL包得到数据库的对象的ddl脚本。如下(SQLPLUS中执行):
1. 获取单个的建表、视图和建索引的语法
set pagesize 0
set long 90000
set feedback off
set echo off
spool DEPT.sql
select dbms_metadata. ......

oracle grant connect,resource to user包括的权限

http://hi.baidu.com/aku88168/blog/item/fa727454ec008553564e00e8.html
CONNECT角色:    --是授予最终用户的典型权利,最基本的   
    
   ALTER    SESSION    --修改会话   
   CREATE&nbs ......

Oracle Shrink Table

今天在戴明明同学的一个回帖里给了个关于Shrink命令的帖子,转过来学习学习~
=============================================================================================
从10g开始,oracle开始提供Shrink的命令,假如我们的表空间中支持自动段空间管理 (ASSM),就可以使用这个特性缩小段,即降低HWM。这里需要强调 ......

SQL Server和Oracle常用函数对比


数学函数
1.绝对值
S:select abs(-1) value
O:select abs(-1) value from dual
2.取整(大)
S:select ceiling(-1.001) value
O:select ceil(-1.001) value from dual
3.取整(小)
S:select floor(-1.001) value
O:select floor(-1.001) value from dual
4.取整(截取)
S:select cast(-1.002 as in ......

oracle数据类型number

Oracle使用标准、可变长度的内部格式来存储数字。这个内部格式精度可以高达38位。
    NUMBER数据类型可以有两个限定符,如:
    column NUMBER ( precision, scale)
    precision表示数字中的有效位。如果没有指定precision的话,Oracle将使用38作为精度。
&nb ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号