当手工创建一个新的数据库时,需要去编写一个初始化参数文件,此时,可以参照Oracle提供的样本初始化参数文件 initsmpl.ora,此文件位于%ORACLE_HOME%admin/sample/pfile目录下。
[@more@]#
# Copyright (c) 1991, 1997, 1998 by Oracle Corporation
#
##############################################################################
# Example INIT.ORA file
#
# This file is provided by Oracle Corporation to help you customize
# your RDBMS installation for your site. Important system parameters
# are discussed, and example settings given.
#
# Some parameter settings are generic to any size installation.
# For parameters that require different values in different size
# installations, three scenarios have been provided: SMALL, MEDIUM
# and LARGE. Any parameter that needs to be tuned according to
# installation size will have three settings, each one commented
# according to installation size.
#
对于不同规模的安装 ,有些参数可以通用,但有些参数应该赋予不同的值 。
假定把安装分为三类:小型,中型 和 大型。
与此对应,有些参数就应该有三个不同的值。
# Use the following table to approximate the SGA size needed for the
# three scenarious provided in this file:
#
下表列出了 中小大 各种类型安装的 SGA 的大小。
# -------Installation/Database Size------
# SMALL MEDIUM LARGE
# Block 2K 4500K 6800K 17000K
# Size 4K 5500K 8800K 21000K
#
# To set up a database that multiple instances will be using, place
# all instance-specific parameters in one file, and then have all
# of these files point to a master file using the IFILE command.
# This way, when you change a public
# parameter, it will automatically change on all instances. This is
# necessary, since all instances must run with the same value for many
# parameters. For example, if you choose to use private rollback segments,
# these must be specified in different files, but since all gc_*
# parameters must be the same on all instances, they should be in one file.
#
在一个数据库中,如果包含多个实例,应该只创建一个初始化参数文件,然后用
IFILE 命令把所有实例都指向这个文件,这样,当你修改其中的参数,
将影响到所有实例。这样设计是对的,因为不同实例的某些参数取值应该保持一致。
假如:你想不同的实例的回滚段大小不一致,就会为每个实例单独创建初始化参数
文件,但是 gc_* 参数在不同的实例的取值应该一致,则使用同一个初始化参数文件是合理的。
# INSTRUCTIONS: Edit this file and the other INIT files it calls for
# your site, either by using the values provided here or by providing
# your own. Then place an IFILE= line into each instance-specific
# INIT file that points at this file.
#
说明:为你的数据库编辑一个初始化参数文件,要么用这里提供的建议值,要么自行取值,
然后用 IFILE= 命令 把每个实例都指定这个文件。
# NOTE: Parameter values suggested in this file are based on conservative
# estimates for computer memory availability. You should adjust values upward
# for modern machines.
#
提示:这里提供的参数值都是比较保守的,应该根据现今高速的计算机处理能力来合理取值。
# You may also consider using Database Configuration Assistant tool (DBCA)
# to create INIT file and to size your initial set of tablespaces based
# on the user input.
#
你也可以使用Database Configuration Assistant tool (DBCA)工具来创建初始化参数文件,并根据
用户的需求来合理分配表空间。
###############################################################################
# replace "%AVAILABLE_SID%" with your database name
db_name=%AVAILABLE_SID%
db_files = 80 # INITIAL
# db_files = 80 # SMALL
# db_files = 400 # MEDIUM
# db_files = 1500 # LARGE
%seed_control%
db_file_multiblock_read_count = 8 # INITIAL
# db_file_multiblock_read_count = 8 # SMALL
# db_file_multiblock_read_count = 16 # MEDIUM
# db_file_multiblock_read_count = 32 # LARGE
db_block_buffers = 1000 # INITIAL
# db_block_buffers = 100 # SMALL
# db_block_buffers = 550 # MEDIUM
# db_block_buffers = 3200 # LARGE
shared_pool_size = 10000000 # INITIAL
# shared_pool_size = 3500000 # SMALL
# shared_pool_size = 5000000 # MEDIUM
# shared_pool_size = 9000000 # LARGE
log_checkpoint_interval = 10000
log_checkpoint_timeout = 0
processes = 59 # INITIAL
# processes = 50 # SMALL
# processes = 100 # MEDIUM
# processes = 200 # LARGE
parallel_max_servers = 5 # SMALL
# parallel_max_servers = 4 x (number of CPUs) # MEDIUM
# parallel_max_servers = 4 x (number of CPUs) # LARGE
dml_locks = 200
log_buffer = 8192 # INITIAL
# log_buffer = 32768 # SMALL
# log_buffer = 32768 # MEDIUM
# log_buffer = 163840 # LARGE
# sequence_cache_entries made obsolete
# sequence_cache_entries = 10 # INITIAL
# sequence_cache_entries = 10 # SMALL
# sequence_cache_entries = 30 # MEDIUM
# sequence_cache_entries = 100 # LARGE
# sequence_cache_hash_buckets made obsolete
# sequence_cache_hash_buckets = 10 # INITIAL
# sequence_cache_hash_buckets = 10 # SMALL
# sequence_cache_hash_buckets = 23 # MEDIUM
# sequence_cache_hash_buckets = 89 # LARGE
# audit_trail = true # if you want auditing
# timed_statistics = true # if you want timed statistics
max_dump_file_size = 10240 # limit trace file size to 5 Meg each
# Uncommenting the line below will cause automatic archiving if archiving has
# been enabled using ALTER DATABASE ARCHIVELOG.
如果用'ALTER DATABASE ARCHIVELOG'开启了归档,下面的命令将实现自动归档。
# log_archive_start = true
# log_archive_dest = %ORACLE_HOME%database%%ORACLE_SID%%archive
# log_archive_format = "%%%ORACLE_SID%%%T%TS%S.ARC"
# If using private rollback segments, place lines of the following
# form in each of your instance-specific init.ora files:
# rollback_segments = (r01, r02, r03, r04)
# If using public rollback segments, define how many
# rollback segments each instance will pick up, using the formula
# # of rollback segments = transactions / transactions_per_rollback_segment
# In this example each instance will grab 40/5 = 8:
# transactions = 40
# transactions_per_rollback_segment = 5
# Global Naming -- enforce that a dblink has same name as the db it connects to
global_names = TRUE
# Edit and uncomment the following line to provide the suffix that will be
# appended to the db_name parameter (separated with a dot) and stored as the
# global database name when a database is created. If your site uses
# Internet Domain names for e-mail, then the part of your e-mail address after
# the '@' is a good candidate for this parameter value.
# db_domain = us.acme.com # global database name is db_name.db_domain
# Uncomment the following line if you wish to enable the Oracle Trace product
# to trace server activity. This enables scheduling of server collections
# from the Oracle Enterprise Manager Console.
# Also, if the oracle_trace_collection_name parameter is non-null,
# every session will write to the named collection, as well as enabling you
# to schedule future collections from the console.
# oracle_trace_enable = TRUE
# define directories to store trace and alert files
background_dump_dest=%ORACLE_HOME%RDBMStrace
user_dump_dest=%ORACLE_HOME%RDBMStrace
db_block_size = 2048
remote_login_passwordfile = shared
text_enable = TRUE
# The following parameters are needed for the Advanced Replication Option
job_queue_processes = 2
job_queue_interval = 10
# The following is obsolete on 8.1.x and above
# job_queue_keep_connections = false
# DISTRIBUTED_LOCK_TIMEOUT parameter has been made obsolete
# distributed_lock_timeout = 300
distributed_transactions = 5
open_links = 4
# The following parameter is set to use some of the new 8.1 features.
# Please remember that using them may require some downgrade
# actions if you later decide to move back to 8.0.
compatible = 8.1.5.0.0
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/14758327/viewspace-1028348/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/14758327/viewspace-1028348/