remote_listener 设置问题导致数据库不能打开



remote_listener 设置问题导致数据库不能打开

alert 日志如下:

Starting up:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options.
Using parameter settings in server-side pfile /u01/app/oracle/product/11.2.0/db_home/dbs/inittest1.ora
System parameters with non-default values:
  processes                = 150
  spfile                   = "+CRS/test/spfiletest.ora"
  sga_target               = 604M
  control_files            = "+CRS/test/controlfile/current.266.823515685"
  control_files            = "+ARCH/test/controlfile/current.257.823515685"
  db_block_size            = 8192
  compatible               = "11.2.0.0.0"
  cluster_database         = TRUE
  db_create_file_dest      = "+CRS"
  db_recovery_file_dest    = "+ARCH"
  db_recovery_file_dest_size= 4032M
  thread                   = 1
  undo_tablespace          = "UNDOTBS2"
  instance_number          = 1
  remote_login_passwordfile= "EXCLUSIVE"
  db_domain                = ""
  dispatchers              = "(PROTOCOL=TCP) (SERVICE=testXDB)"
  remote_listener          = "racdb-scan.rac.cn.oracle.com:1521"
  job_queue_processes      = 0
  audit_file_dest          = "/u01/app/oracle/admin/test/adump"
  audit_trail              = "DB"
  db_name                  = "test"
  open_cursors             = 300
  pga_aggregate_target     = 200M
  diagnostic_dest          = "/u01/app/oracle"
Cluster communication is configured to use the following interface(s) for this instance
  169.254.40.103
cluster interconnect IPC version:Oracle UDP/IP (generic)
IPC Vendor 1 proto 2
Thu Dec 05 14:47:24 2013
USER (ospid: 10931): terminating the instance due to error 119
Instance terminated by USER, pid = 10931


----起数据库是的报错:

SQL> startup force  
ORA-00119: invalid specification for system parameter REMOTE_LISTENER
ORA-00132: syntax error or unresolved network name 'racdb-scan.rac.cn.oracle.com:1521'
SQL>


关于remote_listener


tnsnams.ora配置:

。。。

racscan =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = racdb-scan.rac.cn.oracle.com)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = oradb)
    )
  )

ASM =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.80.18.137)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SID = +ASM1)
    )
  )

。。。。。


hosts 配置:

[root@vmrac1 ~]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               vmrac1 localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
10.80.18.135    vmrac1
10.80.18.136    vmrac2

10.0.0.1     vmrac1-priv
10.0.0.2     vmrac2-priv

10.80.18.137    vmrac1-vip
10.80.18.138    vmrac2-vip

~


这里已经问题已经很明了,解决方法如下:

[root@vmrac1 ~]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               vmrac1 localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
10.80.18.135    vmrac1
10.80.18.136    vmrac2

10.0.0.1     vmrac1-priv
10.0.0.2     vmrac2-priv

10.80.18.137    vmrac1-vip  racdb-scan.rac.cn.oracle.com
10.80.18.138    vmrac2-vip racdb-scan.rac.cn.oracle.com  

~





  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值