oracle初始化参数设置

来源:asp之家 时间:2010-07-31 12:47:00 

 ALTER DATABASE DATAFILEd:\ORANT\DATABASE\USER1ORCL.ORA RESIZE 1000M;
CREATE TABLESPACE INDEX_DATA DATAFILEd:\ORANT\DATABASE\INDEX_DATA SIZE 500M;
ALTER DATABASE DATAFILEd:\ORANT\DATABASE\RBS1ORCL.ORA RESIZE 300M;
ALTER DATABASE DATAFILEd:\ORANT\DASTABASE\TMP1ORCL.ORA RESIZE 300M;


alter rollback segment "RB1" offline;
alter rollback segment "RB2" offline;
alter rollback segment "RB3" offline;
alter rollback segment "RB4" offline;
alter rollback segment "RB5" offline;
alter rollback segment "RB6" offline;
alter rollback segment "RB7" offline;
alter rollback segment "RB8" offline;
alter rollback segment "RB9" offline;
alter rollback segment "RB10" offline;
alter rollback segment "RB11" offline;
alter rollback segment "RB12" offline;
alter rollback segment "RB13" offline;
alter rollback segment "RB14" offline;
alter rollback segment "RB15" offline;
alter rollback segment "RB16" offline;

drop rollback segment "RB1";
drop rollback segment "RB2";
drop rollback segment "RB3";
drop rollback segment "RB4";
drop rollback segment "RB5";
drop rollback segment "RB6";
drop rollback segment "RB7";
drop rollback segment "RB8";
drop rollback segment "RB9";
drop rollback segment "RB10";
drop rollback segment "RB11";
drop rollback segment "RB12";
drop rollback segment "RB13";
drop rollback segment "RB14";
drop rollback segment "RB15";
drop rollback segment "RB16";

create rollback segment "RB1" tablespace "ROLLBACK_DATA" storage (initial 1m next 1m);
create rollback segment "RB2" tablespace "ROLLBACK_DATA" storage (initial 1m next 1m);
create rollback segment "RB3" tablespace "ROLLBACK_DATA" storage (initial 1m next 1m);
create rollback segment "RB4" tablespace "ROLLBACK_DATA" storage (initial 1m next 1m);
create rollback segment "RB5" tablespace "ROLLBACK_DATA" storage (initial 1m next 1m);
create rollback segment "RB6" tablespace "ROLLBACK_DATA" storage (initial 1m next 1m);


alter rollback segment "RB1" online;
alter rollback segment "RB2" online;
alter rollback segment "RB3" online;
alter rollback segment "RB4" online;
alter rollback segment "RB5" online;
alter rollback segment "RB6" online;


alter database add logfile c:\orant\database\log1.ora size 10m;
alter database add logfile c:\orant\database\log2.ora size 10m;
alter database add logfile c:\orant\database\log3.ora size 10m;
alter database add logfile c:\orant\database\log4.ora size 10m;
alter database drop logfile c:\orant\database\log1orcl.ora;
alter database drop logfile c:\orant\database\log2orcl.ora;
alter database drop logfile c:\orant\database\log3orcl.ora;
alter database drop logfile c:\orant\database\log4orcl.ora;


INITORAL.ORA配置:
SGA=db_block_buffers*db_block_size+share_pool_size+log_buffers+sort_arer_size+1m
=1/3--1/2
以128M为例:


DB_BLOCK_BUFFERS=16000(db_block_size=2k)
SHARE_POOL_SIZE=30720000(服务器要增大10倍)
LOG_BUFFERS=655360
SORT_AREA_SIZE=327680(服务器要增大100倍)----------添加
GLOBAL_NAME=FALSE
ROLLBACK_SEGEMENTS=(RB1,RB2)//一般大型数据库要建立6-8个回滚段

添加:
DML_LOCKS=1000
OPEN_CURSORS=200<

标签:oracle,参数
0
投稿

猜你喜欢

  • python使用配置文件过程详解

    2023-12-12 12:57:17
  • Numpy随机抽样的实现

    2022-06-24 07:18:02
  • Python 实现任意区域文字识别(OCR)操作

    2021-04-23 03:52:37
  • 解析PyCharm集成GitLab代码仓的问题

    2022-06-08 07:36:15
  • mysql installer community 8.0.16.0安装配置图文教程

    2024-01-14 00:30:55
  • Python多线程即相关理念详解

    2021-12-07 12:04:47
  • SQLserver 2005文件和文件组的作用说明

    2024-01-26 09:45:57
  • Linux下彻底卸载mysql详解

    2024-01-13 11:31:50
  • ie和火狐兼容问题

    2010-07-02 12:50:00
  • vue混入mixin流程与优缺点详解

    2024-05-02 16:35:12
  • Echarts.js无法引入问题解决方案

    2023-08-12 22:57:26
  • 宝塔面板成功部署Django项目流程(图文)

    2022-07-29 13:11:19
  • 关于“简单,可依赖”

    2008-10-22 13:33:00
  • MYSQL数据库常用命令集合

    2009-02-26 16:01:00
  • PHP生成静态页面详解

    2023-11-21 06:50:43
  • 详解python metaclass(元类)

    2023-08-21 10:09:04
  • python实现图片九宫格分割的示例

    2021-02-08 22:19:38
  • python计算日期之间的放假日期

    2021-08-14 00:02:42
  • Asp中Scripting.TextStream 对象介绍

    2007-11-02 12:19:00
  • python使用pytest接口自动化测试的使用

    2022-06-15 05:23:48
  • asp之家 网络编程 m.aspxhome.com