6 数据库的启动与关闭.ppt
《6 数据库的启动与关闭.ppt》由会员分享,可在线阅读,更多相关《6 数据库的启动与关闭.ppt(25页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、数据库的数据库的启动与关闭启动与关闭数据库的体系结构DatabaseInstanceSGARedo logbufferData buffercacheShared poolData dict.cacheLibrarycache PMON DBW0SMON LGWRCKPTOthersUserprocessServerprocessPGAControl filesData files Redo logfilesArchived log filesParameterfilePasswordfile TheInitializationParameterTheInitializationParamet
2、erFileFileControl_files参数与SGA设置有关的参数initU15.oraSQL CONNECT/AS SYSDBASQL STARTUP PFILE=/DISK1/initU15.oraInstanceSGARedo logbufferData buffercacheShared poolData dict.cacheLibrarycache PMON DBWRSMON LGWRCKPTARCHUNIX和NT下的定位及默认名DefaultNameinitSID.oratextfileUNIX$ORACLE_HOME/dbsNT%ORACLE_HOMEora81databa
3、seandPointto%ORACLE_HOMEadminsidpfile控制文件控制文件:二进制文件,存储有关 数据库状态的信息。包括:数据库名表空间信息所有数据文件的名字和位置所有日志文件的名字和位置当前的日志序列号检查点信息等注意注意:不能用操作系统命令更改控制文件 内容,只能用ORACLE命令!Initialization Parameter FileslEntries are specific to the instance being startedlTwo types of parameters:lExplicit:Having an entry in the filelImpl
4、icit:No entry within the file,but assuming the Oracle default valueslMultiple initialization parameter files can existlChanges to entries in the file take effect based on the type of initialization parameter file used:lStatic parameter file,PFILE lPersistent server parameter file,SPFILEPFILEinitSID.
5、oralText filelModified with an operating system editorlModifications made manuallylChanges take effect on the next start uplOnly opened during instance start uplDefault location is$ORACLE_HOME/dbs$ORACLE_HOME/DATABASECreating a PFILElCreated from a sample init.ora filelSample installed by the Oracle
6、 Universal InstallerlCopy sample using operating system copy commandlUniquely identified by database SIDlModify the initSID.oralEdit the parameterslSpecific to database needscp init.ora$ORACLE_HOME/dbs/initdba01.oraPFILE Example#Initialization Parameter File:initdba01.oradb_name =dba01instance_name
7、=dba01control_files =(/home/dba01/ORADATA/u01/control01dba01.ctl,/home/dba01/ORADATA/u02/control01dba02.ctl)db_block_size =4096db_cache_size =4Mshared_pool_size =50000000java_pool_size =50000000 max_dump_file_size =10240background_dump_dest=/home/dba01/ADMIN/BDUMPuser_dump_dest =/home/dba01/ADMIN/UD
8、UMPcore_dump_dest =/home/dba01/ADMIN/CDUMPundo_management =AUTOundo_tablespace =UNDOTBS.SPFILEspfileSID.oralBinary filelMaintained by the Oracle serverlAlways resides on the server sidelAbility to make changes persistent across shut down and start uplCan self-tune parameter valueslCan have Recovery
9、Manager support backing up to the initialization parameter fileCreating an SPFILElCreated from a PFILE filewherelSPFILE-NAME:SPFILE to be createdlPFILE-NAME:PFILE creating the SPFILElCan be executed before or after instance start upCREATE SPFILE=$ORACLE_HOME/dbs/spfileDBA01.oraFROM PFILE=$ORACLE_HOM
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 数据库的启动与关闭 数据库 启动 关闭
限制150内