免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1305 | 回复: 6
打印 上一主题 下一主题

如何优化我的这台服务器? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-11-05 10:35 |只看该作者 |倒序浏览
我有这样一台服务器:
双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))"

论坛徽章:
0
2 [报告]
发表于 2003-11-05 11:23 |只看该作者

如何优化我的这台服务器?

advice:
increase your rollback segments tablespace according your application.

论坛徽章:
0
3 [报告]
发表于 2003-11-05 11:52 |只看该作者

如何优化我的这台服务器?

已经加大回滚段的表空间了!还是不行!
注:在旧服务器上的回滚段的表空间更小都不会出错,为什么整个数据库原原本本拷到新服务器上会出错呢?!

论坛徽章:
0
4 [报告]
发表于 2003-11-05 12:32 |只看该作者

如何优化我的这台服务器?

所有的参数都是一样的么

论坛徽章:
0
5 [报告]
发表于 2003-11-05 12:34 |只看该作者

如何优化我的这台服务器?

oracle和数据库文件都是拷贝过来的,参数都是一样的!

论坛徽章:
0
6 [报告]
发表于 2003-11-05 12:42 |只看该作者

如何优化我的这台服务器?

ORA-01562failed to extend rollback segment (ID = num)

Cause:A failure occurred while trying to extend the rollback segment. The problem is usually lack of space in the database to extend the rollback segment.

Action:This is usually followed by another message stating the cause of the failure. Shut down and take appropriate action for the error that caused the failure. If no other messages follow this message, the cause is probably lack of space in the database.
建议你将会滚段中的optimal去掉再看看。
另外是
select tablespace_name,bytes/1024/1024  total_M from dba_data_files;看看各个回滚段的表空间大小

论坛徽章:
0
7 [报告]
发表于 2003-11-05 12:44 |只看该作者

如何优化我的这台服务器?

每个回滚段的大小最好一样大
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP