zoukankan      html  css  js  c++  java
  • oracle初始化参数设置

    来源:网海拾贝




    ALTER DATABASE DATAFILE'd:ORANTDATABASEUSER1ORCL.ORA' RESIZE 1000M;
    CREATE TABLESPACE INDEX_DATA DATAFILE'd:ORANTDATABASEINDEX_DATA' SIZE 500M;
    ALTER DATABASE DATAFILE'd:ORANTDATABASERBS1ORCL.ORA' RESIZE 300M;
    ALTER DATABASE DATAFILE'd:ORANTDASTABASETMP1ORCL.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:orantdatabaselog1.ora' size 10m;
    alter database add logfile 'c:orantdatabaselog2.ora' size 10m;
    alter database add logfile 'c:orantdatabaselog3.ora' size 10m;
    alter database add logfile 'c:orantdatabaselog4.ora' size 10m;
    alter database drop logfile 'c:orantdatabaselog1orcl.ora';
    alter database drop logfile 'c:orantdatabaselog2orcl.ora';
    alter database drop logfile 'c:orantdatabaselog3orcl.ora';
    alter database drop logfile 'c:orantdatabaselog4orcl.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




    版权声明: 原创作品,应许转载,转载时请务必以超链接情势标明文章 原始来因 、作者信息和本声明。不然将穷究功令责任。

  • 相关阅读:
    C#单纯的字母数字ASCII码转换
    解析类型后加问号和双问号
    【转】composer autoload 自动加载性能优化指南
    【转】Laravel 三种中间件作用讲解
    【转】Laravel belongsTo 详解
    【转】docker-compose详解
    【转】laravel之Artisan命令操作Artisan Console
    【转】Shell中>/dev/null 2>&1 详解
    【转】docker-entrypoint.sh 文件的用处
    【转】解决Debian下sudo命令unable to initialize PAM问题
  • 原文地址:https://www.cnblogs.com/zgqjymx/p/1975895.html
Copyright © 2011-2022 走看看