• 17.08.03


    oracle管理

    体系结构

    SGA:    大的缓冲区

    $ sqlplus / as sysdba

    SQL> show sga              显示sga的设置

    SQL> show parameter sga_max_size    查看系统里面初始化参数

    SQL> select * from V$SGAINFO;      动态性能视图,描述系统里面组件的信息

    oem:浏览器中 服务器-->内存指导(https://192.168.0.1:1158/em)

    shared pool:      最近执行过的SQL语句的执行计划

    SQL> show parameter shared_pool_size

    SQL> select component, current_size from V$SGA_DYNAMIC_COMPONENTS where component='shared pool';

    SQL> select * from v$SGAINFO;

    db buffer cache:

    SQL> show parameter db_block_size

    SQL> show parameter db_cache_size

    SQL> select * from v$SGAINFO;

    SQL> select component, current_size from V$SGA_DYNAMIC_COMPONENTS where component='DEFAULT buffer cache';

    redo log buffer:

    SQL> show parameter log_buffer

    SQL> select * from v$sgainfo;

    PGA:

    SQL> show parameter pga_aggregate_target

    SQL> select * from V$PGASTAT where NAME='total PGA allocated';

    后台进程:

    SQL> select name from v$bgprocess where paddr<>'00';

    SQL> ! ps -ef | grep ora_

    SQL> show parameter db_writer_processes

    数据文件:

    $ ll /u01/app/oracle/oradata/orcl/*.dbf

    SQL> select name from v$datafile;

    SQL> select name from v$tempfile;

    控制文件:

    $ find /u01 -name 'control0[12].ctl'

    SQL> select name from v$controlfile;

    SQL> select TYPE, RECORD_SIZE, RECORDS_TOTAL, RECORDS_USED from v$controlfile_record_section;

    重做日志:

    $ ll /u01/app/oracle/oradata/orcl/*.log

    SQL> select group#, member from v$logfile;

    参数文件:

    $ ll $ORACLE_HOME/dbs/spfile*.ora

    $ strings $ORACLE_HOME/dbs/spfileorcl.ora

    SQL> show parameter spfile;

    SQL> show parameter

    密码文件:

    $ ll $ORACLE_HOME/dbs/orapw*

    归档日志:

    SQL> select name from v$archived_log;

    警告日志:

    $ find /u01 -name 'alert_*.log'

  • 相关阅读:
    软件测试人员的年终绩效考核怎么应对
    收藏
    顶踩组件 前后两版
    订阅组件
    hdu 1963 Investment 完全背包
    hdu 4939 Stupid Tower Defense 动态规划
    hdu 4405 Aeroplane chess 动态规划
    cf 414B Mashmokh and ACM 动态规划
    BUPT 202 Chocolate Machine 动态规划
    hdu 3853 LOOPS 动态规划
  • 原文地址:https://www.cnblogs.com/Zhang-x/p/7395005.html
Copyright © 2020-2023  润新知