Oracle Tips 1 (Oracle Architectural Components)

本文详细介绍了Oracle数据库的组成结构,包括Oracle实例的内存结构和后台进程,以及数据库的数据文件、日志文件和控制文件等内容。同时,还探讨了数据库的各种操作如关闭、启动等,并列举了一些常用的SQL查询语句来查看数据库的状态。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


Oracle Server consists of an Oracle instance and an Oracle database

instance: memory structure, background process

database: datafile, log file, control file


shutdown immediate

startup nomount

alter database mount;

alter database open;

show sga;

select * from v$bgprocess

select * from v$logfile

select * from v$controlfile

show parameter shared


SGA is dynamic and sized using SGA_MAX_SIZE

show parameter sga;

 alter system set db_cache_size=640m;


Shared pool is used to store the most recently executed SQL statements and the most recently used datadefinitions.

Database Writer(DBWn) writes when: CheckPoint, Dirty buffers threshold reached, No free buffers, Timeout, RAC ping request, Tablespace read only, Table DROP OR TRUNCATE, Tablespace BEGIN BACKUP.

Log Writer(LGWR) writes when: write commit, one-third full, there is 1 MB of redo, every 3 secods, before DBWn writes.

System Monitor(SMON) Responsibilities: instance recovery, Coalesces free space ever 3 sec, Deallocates temporary segments.

Process Monitor(PMON) cleans up after failed processes by: rolling back the transaction, releasing locks, releasing other resource, restarts dead dispatchers.

Checkpoint(CKPT) Responsible for: Singanlling DBWn at checkpoints, Updating datafier headers with checkpoint information, Updating control file with  checkpoint information.

Archiever(ARCn) Optional background process, Automatically carchieves online redo logs when ARCHIVELOG  mode is set, Preserves the record of all change made to the database.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值