- 论坛徽章:
- 0
|
我有这样一台服务器:
双CPU P3 1G,
两条512M 1G内存,
操作系统:NCR MP-RAS SVR4 UNIX System V Release 4.0
数据库:Oracle7 Server Release 7.2.3.0.0
(数据库安装是采用拷贝其他旧服务器的形式安装的!)
有三个回滚段表空间 rollback 500M (非自动扩展)
large_trans 300M(非自动扩展)
RBS 600M(非自动扩展)
我建了几个回段如下:(除system回滚段取系统默认的以外)
CREATE public ROLLBACK SEGMENT large_trans
TABLESPACE large_trans
STORAGE (
INITIAL 50M
NEXT 50M
MINEXTENTS 2
MAXEXTENTS 121
OPTIMAL 100M);
CREATE public ROLLBACK SEGMENT new
TABLESPACE rollback
STORAGE (
INITIAL 50M
NEXT 50M
MINEXTENTS 2
MAXEXTENTS 121
OPTIMAL 100M);
CREATE ROLLBACK SEGMENT r01
TABLESPACE RBS
STORAGE (
INITIAL 5M
NEXT 5M
MINEXTENTS 2
MAXEXTENTS 121
OPTIMAL 10M)
/
CREATE ROLLBACK SEGMENT r02
TABLESPACE RBS
STORAGE (
INITIAL 5M
NEXT 5M
MINEXTENTS 2
MAXEXTENTS 121
OPTIMAL 10M)
/
CREATE ROLLBACK SEGMENT r03
TABLESPACE RBS
STORAGE (
INITIAL 5M
NEXT 5M
MINEXTENTS 2
MAXEXTENTS 121
OPTIMAL 10M)
/
CREATE ROLLBACK SEGMENT r04
TABLESPACE RBS
STORAGE (
INITIAL 5M
NEXT 5M
MINEXTENTS 2
MAXEXTENTS 121
OPTIMAL 10M)
/
CREATE ROLLBACK SEGMENT r05
TABLESPACE RBS
STORAGE (
INITIAL 5M
NEXT 5M
MINEXTENTS 2
MAXEXTENTS 121
OPTIMAL 10M)
/
CREATE ROLLBACK SEGMENT r06
TABLESPACE RBS
STORAGE (
INITIAL 5M
NEXT 5M
MINEXTENTS 2
MAXEXTENTS 121
OPTIMAL 10M)
/
但在执行一个删除多个表(每个表记录在60000条左右)的C程序时,出现以下错误:
Stat:
Error: ORA-01562: failed to extend rollback segment (id = 5)
ORA-00604: error
请问各位大侠,我的服务器应如何优化?
我建的回滚段的storage参数是否合理?
(注:每天/每次约有50-100个线程和应用)
initora7.ora 如下
#
# $Header: initx.orc 1.1 95/02/27 12:14:56 wyim Osd<unix>; $ Copyr (c) 1992 Oracle
#
# include database configuration parameters
ifile = /home1/oracle/dbs/configora7.ora
rollback_segments = (new,r01,r02,r03,r04,r05,r06,large_trans)
##############################################################################
# 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:
#
# -------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.
#
# 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.
###############################################################################
# tuning parameters
db_files = 20
#db_file_multiblock_read_count = 8 # SMALL
db_file_multiblock_read_count = 16 # MEDIUM
# db_file_multiblock_read_count = 32 # LARGE
#db_block_buffers = 200 # SMALL
#db_block_buffers = 2550 # MEDIUM
#db_block_buffers = 3200 # LARGE
db_block_buffers = 31200 # LARGE
#shared_pool_size = 3500000 # SMALL
#shared_pool_size = 6000000 # MEDIUM
#shared_pool_size = 9000000 # LARGE
shared_pool_size = 23000000 # LARGE
log_checkpoint_interval = 10000
#processes = 50 # SMALL
processes = 100 # MEDIUM
# processes = 200 # LARGE
#dml_locks = 100 # SMALL
dml_locks = 200 # MEDIUM
# dml_locks = 500 # LARGE
#log_buffer = 8192 # SMALL
#log_buffer = 32768 # MEDIUM
#log_buffer = 163840 # LARGE
log_buffer = 327680 # LARGE
sequence_cache_entries = 10 # SMALL
# sequence_cache_entries = 30 # MEDIUM
# sequence_cache_entries = 100 # LARGE
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
log_archive_start = true # if you want automatic archiving
compatible = 7.2.0.0
# global_names = TRUE
# mts_dispatchers="ipc,1"
# mts_max_dispatchers=10
# mts_servers=1
# mts_max_servers=10
# mts_service=ora7
# mts_listener_address="(ADDRESS=(PROTOCOL=ipc)(KEY=ora7))" |
|