科技行者

行者学院 转型私董会 科技行者专题报道 网红大战科技行者

知识库

知识库 安全导航

至顶网软件频道Oracle诊断案例 -SGA与Swap

Oracle诊断案例 -SGA与Swap

  • 扫一扫
    分享文章到微信

  • 扫一扫
    关注官方公众号
    至顶头条

  案例描述:   用户报告,服务器启动一段时间以后,无法建立数据库连接   重新启动几分钟以后。

作者:中国IT实验室 来源:中国IT实验室 2007年10月7日

关键字: 优化 数据库 ORACLE

  • 评论
  • 分享微博
  • 分享邮件

在本页阅读全文(共2页)


  案例描述:
  用户报告,服务器启动一段时间以后,无法建立数据库连接
  重新启动几分钟以后,再次无法连接
  
  系统无法正常使用.
  
  1.登陆系统
  SunOS 5.8
  
  login: root
  Password:
  Last login: Tue Mar 23 13:56:59 from 172.16.31.41
  Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
  You have new mail.
  
  2.su 为Oracle用户
  检查启动的Oracle进程
  
  发现后台进程正常,有一定量的用户连接
  
  wapplatform:/>su - oracle
  Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
  You have new mail.
  /export/home1/oracle>ls
  admin codesyndealt31 exp.sh local.cshrc local.profile oraclebak oui v6_database
  app exp.log jre local.login nsmail oradata swan
  export/home1/oracle>cd admin
  /export/home1/oracle/admin>ps -ef|grep ora
  oracle 25269 25258 0 13:58:36 pts/3 0:00 grep ora
  oracle 25257 24906 0 13:58:31 pts/4 0:00 vi alert_HSWAPDB.log
  oracle 25267 1 1 13:58:34 ? 0:00 oracleHSWAPDB (LOCAL=NO)
  oracle 25184 1 0 13:56:57 ? 0:00 ora_p007_HSWAPDB
  oracle 25182 1 0 13:56:57 ? 0:00 ora_p006_HSWAPDB
  oracle 25193 1 0 13:57:03 ? 0:01 oracleHSWAPDB (LOCAL=NO)
  oracle 25209 1 0 13:57:09 ? 0:00 oracleHSWAPDB (LOCAL=NO)
  oracle 25176 1 0 13:56:57 ? 0:00 ora_p003_HSWAPDB
  oracle 25180 1 0 13:56:57 ? 0:00 ora_p005_HSWAPDB
  oracle 25172 1 0 13:56:56 ? 0:00 ora_p001_HSWAPDB
  oracle 25178 1 0 13:56:57 ? 0:00 ora_p004_HSWAPDB
  oracle 25170 1 0 13:56:56 ? 0:00 ora_p000_HSWAPDB
  oracle 24254 24240 0 12:08:25 pts/2 0:00 -ksh
  oracle 25174 1 0 13:56:56 ? 0:00 ora_p002_HSWAPDB
  oracle 25244 1 1 13:58:23 ? 0:00 oracleHSWAPDB (LOCAL=NO)
  oracle 25218 1 0 13:57:23 ? 0:00 oracleHSWAPDB (LOCAL=NO)
  oracle 25159 1 0 13:56:42 ? 0:02 ora_qmn0_HSWAPDB
  oracle 25230 1 0 13:57:40 ? 0:01 oracleHSWAPDB (LOCAL=NO)
  oracle 25161 1 0 13:56:42 ? 0:00 ora_s000_HSWAPDB
  oracle 25149 1 0 13:56:41 ? 0:01 ora_lgwr_HSWAPDB
  oracle 25157 1 0 13:56:42 ? 0:00 ora_cjq0_HSWAPDB
  oracle 24906 3698 0 13:47:47 pts/4 0:00 -ksh
  oracle 25153 1 0 13:56:42 ? 0:01 ora_smon_HSWAPDB
  oracle 25058 7464 0 13:55:14 pts/1 0:00 -ksh
  oracle 25163 1 0 13:56:42 ? 0:00 ora_d000_HSWAPDB
  oracle 25155 1 0 13:56:42 ? 0:00 ora_reco_HSWAPDB
  oracle 25151 1 0 13:56:41 ? 0:00 ora_ckpt_HSWAPDB
  oracle 25145 1 0 13:56:41 ? 0:00 ora_dbw0_HSWAPDB
  oracle 25199 1 15 13:57:04 ? 0:49 ora_j000_HSWAPDB
  oracle 4149 4146 0 12:05:11 pts/5 0:00 -ksh
  oracle 25232 1 0 13:57:41 ? 0:00 oracleHSWAPDB (LOCAL=NO)
  oracle 25119 1 0 13:56:29 ? 0:00 oraclehswapdb (LOCAL=NO)
  oracle 25075 1 0 13:55:34 ? 0:00 /export/home1/oracle/app/bin/tnslsnr LISTENER -inherit
  oracle 24374 4149 0 12:21:56 pts/5 0:00 sqlplus /nolog
  oracle 25143 1 0 13:56:41 ? 0:00 ora_pmon_HSWAPDB
  oracle 25258 25242 0 13:58:31 pts/3 0:00 -ksh
  /export/home1/oracle/admin>ps -ef|grep ora_
  oracle 25275 25258 0 13:58:42 pts/3 0:00 grep ora_
  oracle 25184 1 0 13:56:57 ? 0:00 ora_p007_HSWAPDB
  oracle 25182 1 0 13:56:57 ? 0:00 ora_p006_HSWAPDB
  oracle 25176 1 0 13:56:57 ? 0:00 ora_p003_HSWAPDB
  oracle 25180 1 0 13:56:57 ? 0:00 ora_p005_HSWAPDB
  oracle 25172 1 0 13:56:56 ? 0:00 ora_p001_HSWAPDB
  oracle 25178 1 0 13:56:57 ? 0:00 ora_p004_HSWAPDB
  oracle 25170 1 0 13:56:56 ? 0:00 ora_p000_HSWAPDB
  oracle 25174 1 0 13:56:56 ? 0:00 ora_p002_HSWAPDB
  oracle 25159 1 0 13:56:42 ? 0:02 ora_qmn0_HSWAPDB
  oracle 25161 1 0 13:56:42 ? 0:00 ora_s000_HSWAPDB
  oracle 25149 1 0 13:56:41 ? 0:01 ora_lgwr_HSWAPDB
  oracle 25157 1 0 13:56:42 ? 0:00 ora_cjq0_HSWAPDB
  oracle 25153 1 0 13:56:42 ? 0:01 ora_smon_HSWAPDB
  oracle 25163 1 0 13:56:42 ? 0:00 ora_d000_HSWAPDB
  oracle 25155 1 0 13:56:42 ? 0:00 ora_reco_HSWAPDB
  oracle 25151 1 0 13:56:41 ? 0:00 ora_ckpt_HSWAPDB
  oracle 25145 1 0 13:56:41 ? 0:00 ora_dbw0_HSWAPDB
  oracle 25199 1 13 13:57:04 ? 0:51 ora_j000_HSWAPDB
  oracle 25143 1 0 13:56:41 ? 0:00 ora_pmon_HSWAPDB
  
  3.检查Alert.log警报日志文件
  /export/home1/oracle/admin>ls
  hswapdb
  /export/home1/oracle/admin>cd *
  /export/home1/oracle/admin/hswapdb>ls
  bdump cdump create pfile udump
  /export/home1/oracle/admin/hswapdb>cd bdump
  /export/home1/oracle/admin/hswapdb/bdump>
  
  /export/home1/oracle/admin/hswapdb/bdump>ls -l *.log
  
  -rw-r--r-- 1 oracle dba 813396 Mar 23 13:57 alert_HSWAPDB.log
  /export/home1/oracle/admin/hswapdb/bdump>vi *.log
  "alert_HSWAPDB.log" 18888 lines, 813396 characters (115 null)
  Tue Jun 24 21:17:14 2003
  Starting ORACLE instance (normal)
  LICENSE_MAX_SESSION = 0
  LICENSE_SESSIONS_WARNING = 0
  SCN scheme 3
  Using log_archive_dest parameter default value
  LICENSE_MAX_USERS = 0
  SYS auditing is disabled
  Starting up ORACLE RDBMS Version: 9.2.0.3.0.
  System parameters with non-default values:
  processes = 400
  timed_statistics = TRUE
  shared_pool_size = 117440512
  large_pool_size = 83886080
  java_pool_size = 33554432
  control_files = /export/home1/oracle/oradata/hswapdb/control01.ctl,
  
  /export/home1/oracle/oradata/hswapdb/control02.ctl,
  /export/home1/oracle/oradata/hswapdb/control03.ctl
  db_block_size = 8192
  db_cache_size = 352321536
  compatible = 9.2.0.0.0
  db_file_multiblock_read_count= 16
  fast_start_mttr_target = 300
  undo_management = AUTO
  undo_tablespace = UNDOTBS1
  undo_retention = 10800
  remote_login_passwordfile= EXCLUSIVE
  db_domain = eygle.com
  instance_name = hswapdb
  dispatchers = (PROTOCOL=TCP) (SERVICE=hswapdbXDB)
  job_queue_processes = 10
  hash_join_enabled = TRUE
  background_dump_dest = /export/home1/oracle/admin/hswapdb/bdump
  user_dump_dest = /export/home1/oracle/admin/hswapdb/udump
  core_dump_dest = /export/home1/oracle/admin/hswapdb/cdump
  sort_area_size = 524288
  db_name = hswapdb
  open_cursors = 300
  star_transformation_enabled= FALSE
  query_rewrite_enabled = FALSE
  pga_aggregate_target = 154140672
  aq_tm_processes = 1
  
  .................
  
  Tue Mar 23 13:40:45 2004
  skgpspawn failed:category = 27142, depinfo = 12, op = fork, loc = skgpspawn3
  skgpspawn failed:category = 27142, depinfo = 12, op = fork, loc = skgpspawn3
  skgpspawn failed:category = 27142, depinfo = 12, op = fork, loc = skgpspawn3
  skgpspawn failed:category = 27142, depinfo = 12, op = fork, loc = skgpspawn3
  skgpspawn failed:category = 27142, depinfo = 12, op = fork, loc = skgpspawn3
  skgpspawn failed:category = 27142, depinfo = 12, op = fork, loc = skgpspawn3
  skgpspawn failed:category = 27142, depinfo = 11, op = fork, loc = skgpspawn5
  skgpspawn failed:category = 27142, depinfo = 12, op = fork, loc = skgpspawn3
  skgpspawn failed:category = 27142, depinfo = 12, op = fork, loc = skgpspawn3
  Tue Mar 23 13:42:02 2004
  skgpspawn failed:category = 27142, depinfo = 12, op = fork, loc = skgpspawn3
  skgpspawn failed:category = 27142, depinfo = 12, op = fork, loc = skgpspawn3
  skgpspawn failed:category = 27142, depinfo = 12, op = fork, loc = skgpspawn3
  skgpspawn failed:category = 27142, depinfo = 12, op = fork, loc = skgpspawn3
  Tue Mar 23 13:55:38 2004
  Starting ORACLE instance (normal)
  Shutting down instance: further logons disabled
  Tue Mar 23 13:56:20 2004
  Shutting down instance (abort)
  License high water mark = 26
  Instance terminated by USER, pid = 25112
  Tue Mar 23 1

查看本文来源

    • 评论
    • 分享微博
    • 分享邮件
    邮件订阅

    如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。

    重磅专题
    往期文章
    最新文章