小布老师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
相关文档:
我在http://zhidao.baidu.com/question/123262452.html?fr=msg 提的问题,整理到这里 非常感谢 zjwssg
的回答
排序内存涉及到PGA。
什么时候使用自动PGA内存管理?什么时候使用手动PGA内存管理?
白天系统正常运行时适合使用自动PGA内存管理,让Oracle根据当前负载自动管理、分配PGA内存。
夜里用户数 ......
原帖: http://blog.chinaunix.net/u2/66903/showart_2082884.html
Oracle使用大量不同的审计方法来监控使用何种权限,以及访问哪些对象。审计不会防止使用这些权限,但可以提供有用的信息,用于揭示权限的滥用和误用。
下表中总结了Oracle数据库中不同类型的审计。
审 计 类 型
说 明
语句审计 ......
CREATE OR REPLACE PROCEDURE sendemailtest
(mailmsg IN Varchar2)
IS
--using mail server to send email.
mailconn UTL_SMTP.connection;
mailhost & ......
1.得到一个表的ddl语句:
SET SERVEROUTPUT ON
SET LINESIZE 1000
SET FEEDBACK OFF
set long 999999 ------显示不完整
SET PAGESIZE 1000 ----分页
EXECUTE DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.S ......
记得以前上OCP课程的时候那个老师教我们使用PROFILE来限制用户的一些操作,那个时候估计是老师偷懒吧,所有实验都是通过OEM的形式来操作,根本不会涉及到命令行。
平时在学习ORACLE的过程中好像也很少碰到关于PROFILE的问题,今天逛一个朋友的BLOG的时候发现这篇文章,觉得挺好的,内容不多,简洁明了,好歹也算是个命令行 ......