完整的listener.ora,tnsname.ora和sqlnet.ora

hky87發表於2011-04-27

listener.ora

# LISTENER =

# (DESCRIPTION =

#    (ADDRESS = (PROTOCOL = TCP)(HOST = computerName)(PORT = 1521))

#  )

 

SID_LIST_LISTENER =

  (SID_LIST =

    (SID_DESC =

      (SID_NAME = PLSExtProc)

      (ORACLE_HOME = c:\oracle\product\10.2.0\db_1)

      (PROGRAM = extproc)

    )

    (SID_DESC =

      (GLOBAL_DBNAME = ORADB)

      (ORACLE_HOME = c:\oracle\product\10.2.0\db_1)

      (SID_NAME = ORADB)

    )

    (SID_DESC =

      (GLOBAL_DBNAME = TESTDB)

      (ORACLE_HOME = c:\oracle\product\10.2.0\db_1)

      (SID_NAME = TESTDB)

    )

  )

 

LISTENER =

  (DESCRIPTION_LIST =

    (DESCRIPTION =

      (ADDRESS = (PROTOCOL = TCP)(HOST = IP)(PORT = 1521))

    )

  )

++++++++++++++++++++++++++++++++++++++++++++++++++

tnsname.ora

ORADB =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = TCP)(HOST = IP)(PORT = 1521))

    )

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = oradb)

    )

  )

TESTDB =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = TCP)(HOST = IP)(PORT = 1521))

    )

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = testdb)

    )

  )

EXTPROC_CONNECTION_DATA =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))

    )

    (CONNECT_DATA =

      (SID = PLSExtProc)

      (PRESENTATION = RO)

    )

  )

+++++++++++++++++++++++++++

sqlnet.ora

 

SQLNET.AUTHENTICATION_SERVICES= (NTS)

 

NAMES.DIRECTORY_PATH= (TNSNAMES,HOSTNAME, ONAMES, EZCONNECT)

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10314474/viewspace-693888/,如需轉載,請註明出處,否則將追究法律責任。

相關文章