ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 关于一个oracle侦听的问题和awr监控

关于一个oracle侦听的问题和awr监控

原创 Linux操作系统 作者:lixingping1985 时间:2010-11-18 17:08:11 0 删除 编辑

oracle报ORA-12515的问题

$cd /u01/oracle/app/product/10.2.0/db_1/network/admin

SQL> select * from global_name;

GLOBAL_NAME
--------------------------------------------------------------------------------
ORCL02.REGRESS.RDBMS.DEV.US.ORACLE.COM


$vi listener.ora
# listener.ora Network Configuration File: /u01/oracle/app/product/10.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /u01/oracle/app/product/10.2.0/db_1)
      (PROGRAM = extproc)
    )
 
   (SID_DESC   =                                                             #加入以下的
            (GOLBAL_DBNAME=ORCL02)
            (ORACLE_HOME   =   /u01/oracle/app/product/10.2.0/db_1)
            (SID_NAME=orcl02)
   )


)

 

 

-----------------------------------------------------------------------------------------------------

oracle 中的awr工具的使用

sqlplus / as sysdba

>@/u01/app/product/10.2.0/db_1/rdbms/admin/awrrpt.sql

 Enter value for report_type: html     输入html   (文件的格式)

 Enter value for num_days: 2      输入监控的天数 如: 2   #代表2天

                                                       Snap
Instance     DB Name        Snap Id    Snap Started    Level
------------ ------------ --------- ------------------ -----
orcl         ORCL               976 17 11月 2010 00:00     1
                                977 17 11月 2010 01:00     1
                                978 17 11月 2010 02:00     1
                                979 17 11月 2010 03:00     1
                                980 17 11月 2010 04:00     1
                                981 17 11月 2010 05:00     1
                                982 17 11月 2010 06:00     1
                                983 17 11月 2010 07:00     1
                                984 17 11月 2010 08:00     1
                                985 17 11月 2010 09:00     1
                                986 17 11月 2010 10:00     1
                                987 17 11月 2010 11:01     1
                                988 17 11月 2010 12:01     1
                                989 17 11月 2010 13:00     1

 Enter value for begin_snap: 986    输入  上面出现的快照号


Enter value for end_snap: 1017    输入  上面出现的快照号

Enter value for report_name: /home/oracle/awrrpt.html     输入保存的地方和文件名

SQL>quit

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/16111659/viewspace-678457/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-12-16

  • 博文量
    35
  • 访问量
    66619