亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標題: 請教一個網絡連接的問題 [打印本頁]

作者: bitao    時間: 2006-08-08 22:59
標題: 請教一個網絡連接的問題
hostnameramain IP:210.35.207.32  SID:stby 在這臺機上連本地庫或連IP為33的庫都成功
hostnamerastanby IP:210.35.207.33  SID:tt 在這臺機上連本地庫成功,但連IP為32的庫卻不成功
下面給出了兩臺的listener.ora 和tnsnames.ora文件
33上的數據庫版本是9.2.0.2
32上的數據庫版本是9.2.0.4
請問是什么原因連接不上呢?????

[oracle@oramain admin]$ more listener.ora
STENER.ORA Network Configuration File: /opt/oracle/product/9.2.0.4/network/admin/listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /opt/oracle/product/9.2.0.4)
      (PROGRAM = extproc)
    )
  )
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = stby)
      (ORACLE_HOME = /opt/oracle/product/9.2.0.4)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 210.35.207.32)(PORT = 1521))
      )
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
      )
    )
  )


[oracle@oramain admin]$ more tnsnames.ora
# TNSNAMES.ORA Network Configuration File: /opt/oracle/product/9.2.0.4/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

oramain =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = tcp)
                 (HOST=210.35.207.32)
                 (PORT=1521)
      )
    )
    (CONNECT_DATA =
      (SID = stby)
    )
  )

orastanby =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = tcp)
                 (HOST=210.35.207.33)
                 (PORT=1521)
      )
    )
    (CONNECT_DATA =
      (SID = tt)
    )
  )
[oracle@oramain admin]$


[oracle@oramain admin]$ sqlplus "sys/oracle@oramain as sysdba"

SQL*Plus: Release 9.2.0.2.0 - Production on Tue Aug 8 22:41:48 2006

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


Connected to:
Oracle9i Enterprise Edition Release 9.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.2.0 - Production

SQL> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.2.0 - Production
[oracle@oramain admin]$ sqlplus "sys/change_on_install@orastanby as sysdba"

SQL*Plus: Release 9.2.0.2.0 - Production on Tue Aug 8 22:42:46 2006

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


Connected to:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production

SQL> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production



[oracle@orastanby admin]$ more listener.ora
# LISTENER.ORA Network Configuration File: /opt/oracle/product/9.2.0.4/network/admin/listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /opt/oracle/product/9.2.0.4)
      (PROGRAM = extproc)
    )
  )
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = tt)
      (ORACLE_HOME = /opt/oracle/product/9.2.0.4)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 210.35.207.33)(PORT = 1521))
      )
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
      )
    )
  )

[oracle@orastanby admin]$ more tnsnames.ora

orastanby=
    (DESCRIPTION =
       (ADDRESS_LIST =
         (ADDRESS=
            (PROTOCOL=tcp)(HOST=210.35.207.33) (PORT=1521)
         )
       )
       (CONNECT_DATA =
         (SID = tt)
       )
    )

oramain =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = tcp)
                 (HOST=210.35.207.32)
                 (PORT=1521)
      )
    )
    (CONNECT_DATA =
      (SID = stby)
    )
  )
[oracle@orastanby admin]$ sqlplus "sys/change_on_install@orastanby as sysdba"

SQL*Plus: Release 9.2.0.4.0 - Production on Tue Aug 8 22:50:03 2006

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


Connected to:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production

SQL> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
[oracle@orastanby admin]$ sqlplus "sys/oracle@oramain as sysdba"

SQL*Plus: Release 9.2.0.4.0 - Production on Tue Aug 8 22:50:09 2006

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

ERROR:
ORA-12560: TNS:protocol adapter error


Enter user-name:
ERROR:
ORA-01017: invalid username/password; logon denied


Enter user-name:
ERROR:
ORA-01017: invalid username/password; logon denied


SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
[oracle@orastanby admin]$
作者: numenhuang    時間: 2006-08-08 23:23
本機連接走的是IPC,還有其他客戶端能否正常連到32的機器上?
作者: netzh    時間: 2006-08-08 23:33
把oramain的tnsnames.ora復制到orastandy上
在兩個節(jié)點上都用下面命令試一下
tnsping oramain
tnsping orastanby
作者: bitao    時間: 2006-08-08 23:50
oramain都通
orastanby TNSPING到ORAMAIN上不通


[oracle@oramain ~]$ tnsping orastandby

TNS Ping Utility for Linux IA64: Version 9.2.0.2.0 - Production on 08-AUG-2006 23:46:33

Copyright (c) 1997 Oracle Corporation.  All rights reserved.

Used parameter files:
/opt/oracle/product/9.2.0.4/network/admin/sqlnet.ora

TNS-03505: Failed to resolve name
[oracle@oramain ~]$ tnsping orastanby

TNS Ping Utility for Linux IA64: Version 9.2.0.2.0 - Production on 08-AUG-2006 23:46:41

Copyright (c) 1997 Oracle Corporation.  All rights reserved.

Used parameter files:
/opt/oracle/product/9.2.0.4/network/admin/sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = tcp) (HOST=210.35.207.33) (PORT=1521))) (CONNECT_DATA = (SID = tt)))
OK (0 msec)
[oracle@oramain ~]$



[oracle@orastanby oracle]$ tnsping orastanby

TNS Ping Utility for Linux: Version 9.2.0.4.0 - Production on 08-AUG-2006 23:47:48

Copyright (c) 1997 Oracle Corporation.  All rights reserved.

Used parameter files:


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS= (PROTOCOL=tcp)(HOST=210.35.207.33) (PORT=1521))) (CONNECT_DATA = (SID = tt)))
OK (0 msec)
[oracle@orastanby oracle]$ tnsping oramain

TNS Ping Utility for Linux: Version 9.2.0.4.0 - Production on 08-AUG-2006 23:47:57

Copyright (c) 1997 Oracle Corporation.  All rights reserved.

Used parameter files:


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = tcp) (HOST=210.35.207.32) (PORT=1521))) (CONNECT_DATA = (SID = stby)))
TNS-12560: TNS:protocol adapter error
[oracle@orastanby oracle]$
作者: bitao    時間: 2006-08-09 00:17
[size=-1]暈死,,我的剛才問題解決了,,原來 是沒把ORAMAIN這臺機的防火墻給關掉

已經第二次了,,記性不好


謝啦,,各位





歡迎光臨 Chinaunix (http://72891.cn/) Powered by Discuz! X3.2