转至:https://blog.csdn.net/u010098331/article/details/50729896/ 查看oracle归档日志路径 1.修改归档日志的格式 默认格式是:" %t_%s_%r.dbf",我们尝试将格式修改为"%t_%s_%r.arch",这是一个静态参数,需要重新启动数据库才生效. sys@ora10g> show parameter log_archive_format NAME TYPE
adrci ADRCI: Release 12.2.0.1.0 - Production on Tue Oct 9 16:14:35 2018 Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved. ADR base = "/u01/app/grid"adrci> help HELP [topic] Available Topics: CREATE REPORT ECHO ESTIM
Oracle日志文件管理与查看 from:http://hi.baidu.com/shuker/item/25ee611ee960c7426826bb1f 1.查询系统使用的是哪一组日志文件: select * from v$log; 2.查询正在使用的组所对应的日志文件: select * from v$logfile; 3.强制日志切换: alter system switch logfile; 4.查询历史日志: select * from v$log_history; 5.查询日志的归档
1.Oracle log 每次切换会记录到告警日志中 设想写个方案来查看log切换频率来判断Oracle log是否应该更改大小. 2.sql a.查看redo日志信息 select * from v$log b.查看日志切换频率 )*,) and b.THREAD#= order by a.SEQUENCE# desc; 或者 )*,) diff ) order by sequence# desc;
一.第一种方法 1.切换到oracle用户 su - oracle 2.进入sqlplus窗口 sqlplus / as sysdba 3.执行sql命令,查看trace文件位置:background_dump_dest就是后台日志 show parameter dump; 4.切换到trace目录下 cd /u01/app/oracle/diag/rdbms/prod/PROD/trace 5.查看带有alert关键字的文件,alert_INSTANCENAME.ora即是alert日志的名字
SQL> select count(*) from v$session #当前的连接数SQL> Select count(*) from v$session where status='ACTIVE' #并发连接数SQL> select value from v$parameter where name = 'processes' --数据库允许的最大连接数SQL> show parameter processes #最大连接 SQL> select username,cou
SQL> select count(*) from v$session #当前的连接数SQL> Select count(*) from v$session where status='ACTIVE' #并发连接数SQL> select value from v$parameter where name = 'processes' --数据库允许的最大连接数SQL> show parameter processes #最大连接 SQL> select username,cou
SQL> select count(*) from v$session #当前的连接数 SQL> Select count(*) from v$session where status='ACTIVE' #并发连接数 SQL> select value from v$parameter where name = 'processes' --数据库允许的最大连接数 SQL> select value from v$parameter where name ='processes' #