oracle10g:startup出现ORA-12514(10g)的解决

安装完oracle10g后,在sqlplus模式下关闭数据库,然后startup打开后,出现ora-12514错误,操作如下:

 

SQL> shutdown immediate

数据库已经关闭。

已经卸载数据库。

ORACLE 例程已经关闭。

SQL> startup

ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务。

 

利用tnsping和lsnrctl status命令检查,listener一切正常,进入linstener.ora发现未设置对服务名的监听(Oracle10g默认安装后不自动设置监听)。修改listener。ora:

修改前为:

SID_LIST_LISTENER =

(SID_LIST =

    (SID_DESC =

      (PROGRAM = extproc)

      (SID_NAME = PLSExtProc)

      (ORACLE_HOME = d:/oracle/product/10.2.0/db_1)
    )
)


LISTENER =

(DESCRIPTION_LIST =

    (DESCRIPTION =

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

    )

    (DESCRIPTION =

      (ADDRESS = (PROTOCOL = TCP)(HOST = hdsb-dell)(PORT = 1521))
    )
)

2.3.2修改后为:

SID_LIST_LISTENER =

(SID_LIST =

    (SID_DESC =

      (GLOBAL_DBNAME = orcl)

      (ORACLE_HOME = d:/oracle/product/10.2.0/db_1)

      (SID_NAME = ORCL)

    )

    (SID_DESC =

      (PROGRAM = extproc)

      (SID_NAME = PLSExtProc)

      (ORACLE_HOME = d:/oracle/product/10.2.0/db_1)
    )
)


LISTENER =
(DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    )
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = hdsb-dell)(PORT = 1521))
    )
)

 

重启listener后,问题解决!

你可能感兴趣的:(oracle10g:startup出现ORA-12514(10g)的解决)