今天装oracle弄半天没有装上,前后共装了5次;系统配置:两个四核心的cpu,16GB内存,64位 windows 2003系统;oracle 版本是 oracle 92  ,我装的企业版; 最后创建数据库时出现 12546:tns 许可被拒绝  的错误; 不知道是为什么?最后无功而反;

解决方案 »

  1.   

    貼一下 tnsnames.ora文件看看,應該是網絡配置不正確。
      

  2.   

    小写的tnsnames.ora# TNSNAMES.ORA Network Configuration File: c:\oracle\ora92\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
        )
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
        )
      )
      

  3.   

    大写的; TNSNAMES.ORA
    # This file contains the syntax information for 
    # the entries to be put in any tnsnames.ora file
    # The entries in this file are need based. 
    # There are no defaults for entries in this file
    # that Sqlnet/Net3 use that need to be overridden 
    #
    # Typically you could have two tnsnames.ora files
    # in the system, one that is set for the entire system
    # and is called the system tnsnames.ora file, and a
    # second file that is used by each user locally so that
    # he can override the definitions dictated by the system
    # tnsnames.ora file.# The entries in tnsnames.ora are an alternative to using
    # the names server with the onames adapter.
    # They are a collection of aliases for the addresses that 
    # the listener(s) is(are) listening for a database or 
    # several databases.# The following is the general syntax for any entry in 
    # a tnsnames.ora file. There could be several such entries 
    # tailored to the user's needs.<alias>= [ (DESCRIPTION_LIST =  # Optional depending on whether u have 
    # one or more descriptions
    # If there is just one description, unnecessary ]
      (DESCRIPTION=
        [ (SDU=2048) ] # Optional, defaults to 2048
    # Can take values between 512 and 32K
        [ (ADDRESS_LIST=    # Optional depending on whether u have
    # one or more addresses
    # If there is just one address, unnecessary ]
          (ADDRESS=
    [ (COMMUNITY=<community_name>) ] 
    (PROTOCOL=tcp)
    (HOST=<hostname>)
    (PORT=<portnumber (1521 is a standard port used)>)
          )
          [ (ADDRESS=
      (PROTOCOL=ipc)
      (KEY=<ipckey (PNPKEY is a standard key used)>)
    )
          ]
          [ (ADDRESS=
      [ (COMMUNITY=<community_name>) ]
      (PROTOCOL=decnet)
      (NODE=<nodename>)
      (OBJECT=<objectname>)
    )
          ]
                  ... # More addresses
        [ ) ] # Optional depending on whether ADDRESS_LIST is used or not 
        [ (CONNECT_DATA=
    (SID=<oracle_sid>)
    [ (GLOBAL_NAME=<global_database_name>) ]
          )
        ]
        [ (SOURCE_ROUTE=yes) ]  
      )
      (DESCRIPTION=     
        [ (SDU=2048) ] # Optional, defaults to 2048
    # Can take values between 512 and 32K
        [ (ADDRESS_LIST= ] # Optional depending on whether u have more
    # than one address or not
    # If there is just one address, unnecessary
          (ADDRESS
    [ (COMMUNITY=<community_name>) ]
    (PROTOCOL=tcp)
    (HOST=<hostname>)
    (PORT=<portnumber (1521 is a standard port used)>)
          )
          [ (ADDRESS=
      (PROTOCOL=ipc)
      (KEY=<ipckey (PNPKEY is a standard key used)>)
             )
          ]
          ...  # More addresses
        [ ) ]  # Optional depending on whether ADDRESS_LIST  
    # is being used
        [ (CONNECT_DATA=
    (SID=<oracle_sid>)
    [ (GLOBAL_NAME=<global_database_name>) ]
          )
        ]
        [ (SOURCE_ROUTE=yes) ]
      )
      [ (CONNECT_DATA=
          (SID=<oracle_sid>)
          [ (GLOBAL_NAME=<global_database_name>) ]
        )
      ]
      ...   # More descriptions 
    [ ) ] # Optional depending on whether DESCRIPTION_LIST is used or not
      

  4.   

    是安装的时候同时创建db,还是安装后通过dbca来创建db?建议安装的时候不要创建db。