ORACLE中一个UPDATE的操作流程
前阵子看到一篇关于DELETE操作的具体的流程,今天无意间又看到一个UPDATE的操作流程,挺有趣的,转过来学习学习!
================================================================================
1,用户提交一个update语句
2,server process检查内存缓存
i 如果没有有效内存空间,启动DBWR,将缓存中未写入磁盘的脏数据块写入
ii 如果有有效空间,从磁盘读入数据
3,在缓存内更新数据
i 申请一个回滚段入口,将旧数据写入回滚段
ii 加锁更新数据
iii 并同时将修改记录在Redo log buffer 中
4,用户提交一个Commit
i SCN增加
ii 将Redo log buffer 写入Redo log file
iii 告诉用户 Commit完成
相关文档:
下面是CMD命令窗口下的操作,看看是怎么导入的。
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\oeg2006>imp
Import: Release 9.2.0.1.0 - Production on 星期三 11月 25 19:24:12 2009
Copyright (c) 1982, 2002, Oracle Corporation. A ......
一、ORACLE的启动和关闭
1、在单机环境下要想启动或关闭ORACLE系统必须首先切换到ORACLE用户,如下
su - oracle
a、启动ORACLE系统
oracle>svrmgrl
SVRMGR>connect internal
SVRMGR>startup
SVRMGR>quit
b、关闭ORACLE系统
oracle>svrmgrl
SVRMGR>connect internal
SVRMGR>shutdow ......
对日常工作中用到的感觉有用的sql语句做个归纳,用于今后温故知新。
*复制表:
create table tablename as select * from table_src;
create table tablename as select * from table_src where 1 <> 1; --只复制表结构 ......
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 ......
1.流程如下
用户可以使用Oracle安装程序从Windows NT框中删除所需要的产品,但是这可能有点费劲。
若不想保留任何N T的Oracle产品,可以按以下指令删除所有的Oracle产品:
1) 首先,用控制面板上的 Services 应用程序停止所有的Oracle服务。
所有的Oracle服务都应有一个包含“O R C L”、“Oracle&rdqu ......