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

小布老师oracle视频讲座笔记(二)

Oracle Process Structure
Oracle takes advantage of various types of processes:
 —User process: Started at the time a database user requests connection to the Oracle server
  —Server process: Connects to the Oracle instance and is started when a user establishes a session
—Background processes: Started when an Oracle instance is started
User Process: A progrm that requests interaction with the Oracle server, Must first establish a connection, Does not interact directly with the Oracle server.
Server Process: A program that directly interacts with the Oracle Server
  —Fulfills calls generated and returns results
—Can be deficated or shared server
IPC: Inter Process Communication, 包括共享内存、队列、信号量等几种形式。
Background Process
Maintains and enforces relationships between physical and memory structures:
   —Mandatory background processes
      DBWn PMON CKPT LGWR SMON
   —Optional background processes
ARCn  LMDn  QMNn  CJQ0  LMON  RECO  Dnnn   LMS  Snnn
LCKn  Pnnn
DBWn(Database Writer), DBWn writes when:
   —Checkpoint occurs
   —Dirty buffers reach threshold
   —There are no free buffers
   —Timeout occurs
   —RAC ping request is made
   —Tablespace OFFLINE
   —Tablespace READ ONLY
   —Table DROP or TRUNCATE
   —Tablespace BEGIN BACKUP
Log Witer(LGWN), LGWR writes:
   —At commit
   —When one-third full
   —When there is 1MB of redo
   --Every three seconds
   --Before DBWn writes
System Monitor(SMON)
Responsibilities
   —Instance recovery
   —Rolls forward changes in noline redo log files
   —Opens database fo


相关文档:

oracle 排序内存

我在http://zhidao.baidu.com/question/123262452.html?fr=msg 提的问题,整理到这里 非常感谢 zjwssg
的回答
排序内存涉及到PGA。
什么时候使用自动PGA内存管理?什么时候使用手动PGA内存管理?
  白天系统正常运行时适合使用自动PGA内存管理,让Oracle根据当前负载自动管理、分配PGA内存。
  夜里用户数 ......

Oracle 批量导入Sequence

 select 'create sequence '||sequence_name||  
       ' minvalue '||min_value||  
       ' maxvalue '||max_value||  
       ' start with '||last_number||  
&n ......

Oracle 数字函数用法

 1. round(Num,n) :  四舍五入数字Num,保留n位小数,不写N默认不要小数,四舍五入到整数个位
 select ROUND(21.237,2) from dual; 
 结果: 21.24
 2. trunc(Num,n) : 截取数字Num,保留n位小数,不写N默认是0,即不要小数
 select TRUNC(21.237,2) from dual;
 结果:21.2 ......

ORACLE SAVE EXCEPTION 子句

今天在一个帖子里看到shiyiwan的回帖中提及到了两个自己以前没见过的概念,save exception和dml error logging。上网搜了搜相关内容,看了看大概明白意思,不过在实际运用中还是没怎么用过。保存下来,以后用的到的话方便查阅。
这一篇是关于save exception的,另外一篇dml error logging的参见如下链接
http://blog.csdn ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号