1Z0-031.3 - 1. Parameters & Parameter files (PFILE & SPFILE)

kinds of parameters:

--- Explicit: Having an entry in the file

--- Implicit: No entry within the file, but assuming the Oracle default values

types of initialization parameter file:

--- Static parameter file, PFILE,commonly referred to as initSID.ora

--- Persistent parameter file, SPFILE,commonly referred to as spfileSID.ora

[@more@]

Parameter File Contents

--- A list of instance parameters

--- The name of the database the instance is associated with

--- Allocations for memory structures of the System Global Area (SGA)

--- What to do with filled online redo log files

--- The names and locations of control files

--- Information on undo segments

PFILE : initSID.ora

--- a text file that can be modified with an operating system editor.

--- Modifications to the file are made manually.

--- Changes to the file take effect on the next startup.

--- Its default location is $ORACLE_HOME/dbs.

Rules for Specifying Parameters in PFILE:

--- Specify the values in the following format: keyword=value.

--- All parameters are optional.

--- Parameters can be specified in any order.

--- Comment lines begin with the # symbol.

--- Multiple values are enclosed in parentheses and separated by commas.

--- Enclose parameters in double quotation marks to include character literals.

--- Additional files can be included with the keyword IFILE.

--- If case is significant for the operating system, then it is also significant in filenames.

--- The server has a default value for each parameter. This value may be operating system dependent, depending on the parameter.

SPFILE : spfileSID.ora:

--- Binary file with the ability to make changes persistent across shutdown and startup

--- Maintained by the Oracle server

--- Records parameter value changes made with the ALTER SYSTEM command

--- Can specify whether the change being made is temporary or persistent

--- Values can be deleted or reset to allow an instance to revert to the default value

eg:ALTER SYSTEM SET undo_tablespace = 'UNDO2';

Change parameter in spfile

Syntax:ALTER SYSTEM SET parameter=value ;

Create a spfile:

Syntax:CREATE SPFILE [='SPFILE---NAME'] FROM PFILE[='PFILE---NAME']

Where:

--- SPFILE---NAME: Name of the SPFILE to be created: if not specified, the default SPFILE name is assumed.

--- PFILE---NAME: Name of a PFILE, must be available on the server side.

The CREATE SPFILE command requires the SYSDBA role to execute.

Create a pfile:

Syntax:CREATE PFILE [='PFILE---NAME'] FROM SPFILE[='SPFILE---NAME']

The CREATE PFILE command requires the SYSDBA role to execute.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8633028/viewspace-909538/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8633028/viewspace-909538/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值