zoukankan      html  css  js  c++  java
  • 【练习】修改参数

    1.用户进程数(修改process=300,重启库后查询)满足300个并发会话

    SQL> alter system set processes=300 scope=spfile;
    
    System altered.
    
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    
    Total System Global Area  830930944 bytes
    Fixed Size                  2257800 bytes
    Variable Size             591400056 bytes
    Database Buffers          230686720 bytes
    Redo Buffers                6586368 bytes
    Database mounted.
    Database opened.
    SQL> show parameter process;
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    aq_tm_processes                      integer     1
    cell_offload_processing              boolean     TRUE
    db_writer_processes                  integer     1
    gcs_server_processes                 integer     0
    global_txn_processes                 integer     1
    job_queue_processes                  integer     1000
    log_archive_max_processes            integer     4
    processes                            integer     300
    processor_group_name                 string

    2.诊断目录位置 (diagnostic_dest)在/u01/app/oracle。

    SQL> show parameter diagnostic_dest;
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    diagnostic_dest                      string      /u01/app/oracle

     3.关闭内存自动管理,设置SGA,PGA分别自动管理,SGA=500,PGA=200

    SQL> alter system set sga_target=500M scope=spfile;
    
    System altered.
    SQL>alter system set pga_aggregate_target=200 scope=spfile;
    
    System altered.
    
    SQL> alter system set memory_target=0 scope=spfile;
    
    System altered.

    4.修改参数db_domain为us.oracle.cn

    SQL> show parameter domain 
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    db_domain                            string
    SQL> alter system set db_domain='us.oracle.cn' scope=spfile;
    
    System altered.

    5.90分钟内,避免出现ORA-01555错误

    SQL> show parameter undo
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    undo_management                      string      AUTO
    undo_retention                       integer     900
    undo_tablespace                      string      UNDOTBS1
    SQL> alter system set undo_retention = 5400;
    
    System altered.
    
    SQL> show parameter undo;
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    undo_management                      string      AUTO
    undo_retention                       integer     5400
    undo_tablespace                      string      UNDOTBS1

    6.开启审计,OS

    SQL> show parameter audit_trail
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    audit_trail                          string      DB
    SQL> alter system set audit_trail = os scope=spfile;
    
    System altered.
  • 相关阅读:
    OSGI简介
    公司僵尸帐号引发了一系列的入侵事件-细说密码强度验证的重要性
    为其他对象提供一种代理以控制对这个对象的访问-代理模式
    运用共享技术有效地支持大量细粒度的对象-享元模式
    移动APP为什么要开发两套Android和IOS-桥接模式
    非法疫苗引发的思考 -外观模式
    你们还记得张江男、张江女两张图片吗?-装饰模式
    一个程序员的蜕变(我是如何成为架构师的)
    公司新加了一台友宝自动售货机引发的思考-适配器模式
    程序员如何应对北上广高房价示例解说-建造者模式
  • 原文地址:https://www.cnblogs.com/tomatoes-/p/6040788.html
Copyright © 2011-2022 走看看