【澳门金沙vip】Solaris 和linux 之oracle 数据库的安装

谈到ora-12154主题材料,互连网有一大堆化解方法,原因基本统一:tns或listener配置不正确。对于listener配置不允许确的貌似非常少发生,大好些个人都以遵照默许配置一路“下一步”过来的,基本都以orcl的劳动名,即使说当地能够连通orcl,其他电话就连不通那应该跟listener关系超小。大部分都以tns配置不科学。笔者碰着的风貌是:在本机建了贰个贰零零肆的虚构机,设想机里面装了oracle10g,暗中同意配置。本机只装了oracle10g的客商端,当小编原先用本机连接局域网内数据库的orcl服务时并没反常,可是在一而再三回九转虚构机中的orcl服务却连不通,总是报ora-12154错误。而虚构机内,plsql却能够延续设想机oracle,可是不能三回九转本机所在局域网内的oracle。

配置好rac后,多少个节点用tnsping都得以ping通,但用sqlplus连接都现身以下错误,不明了哪儿出了难题[澳门金沙vip,oracle@rac2
admin]$ lsnrctl statusLSNRCTL for Linux: Version 9.2.0.4.0 – Production
on 04-MAR-2008 08:32:26Copyright 1991, 2002, Oracle Corporation. All
rights reserved.Connecting to (DESCRIPTION=(ADDRESS=))STATUS of the
LISTENER————————Alias LISTENERVersion TNSLSNR for Linux:
Version 9.2.0.4.0 – ProductionStart Date 04-MAR-2008 08:29:03Uptime 0
days 0 hr. 3 min. 22 secTrace Level offSecurity OFFSNMP OFFListener
Parameter File /home/oracle/9.2.0.4/network/admin/listener.oraListener
Log File /home/oracle/9.2.0.4/network/log/listener.logListening
Endpoints Summary… (DESCRIPTION=(ADDRESS=))Services Summary…Service
“PLSExtProc” has 1 instance. Instance “PLSExtProc”, status UNKNOWN, has
1 handler for this service…Service “esal” has 2 instance. Instance
“rac1”, status READY, has 1 handler for this service… Instance “rac2”,
status READY, has 1 handler for this service…The command completed
successfully[oracle@rac2 admin]$ lsnrctl serviceLSNRCTL for Linux:
Version 9.2.0.4.0 – Production on 04-MAR-2008 08:32:32Copyright 1991,
2002, Oracle Corporation. All rights reserved.Connecting to
(DESCRIPTION=(ADDRESS=))Services Summary…Service “PLSExtProc” has 1
instance. Instance “PLSExtProc”, status UNKNOWN, has 1 handler for this
service… Handler: “DEDICATED” established:0 refused:0 LOCAL
SERVERService “esal” has 2 instance. Instance “rac1”, status READY, has
1 handler for this service… Handler: “DEDICATED” established:0
refused:0 state:ready REMOTE SERVER (address=) Instance “rac2”, status
READY, has 1 handler for this service… Handler: “DEDICATED”
established:0 refused:0 state:ready LOCAL SERVERThe command completed
successfully[oracle@rac2 admin]$ sqlplus cy/zh@esalSQL*Plus: Release
9.2.0.4.0 – Production on Tue Mar 4 08:32:45 2008Copyright 1982, 2002,
Oracle Corporation. All rights reserved.ERROR:ORA-12154: TNS:could not
resolve service name

本篇博文前边是有的基本功知识介绍,后边才是总计篇。

安分守纪如下进程,平日都能解决:

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

一、在solaris上面装oracle 10g教程

在虚构机内开cmd,用lsnrctl status查看监听器监听的劳务
如见到监听服务“orcl”,那在本机的tns配置中必需写orcl;假若想要自定义,则在虚构机内的listener配置中将在加盟自定义服务名,记得要重启监听服务:lsnrctl
reload 最终产生的配备文件如下

Enter user-name: cy/zh@rac1ERROR:ORA-12154: TNS:could not resolve
service name

如今官方网址已经远非31人的oracle11g了,代替他的都是64人的oracle11g,为了能在三十一位的solaris系统上设置oracle,前段时间只好设置oracle
10g。

虚拟机listener:

SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting
SQL*Plus[oracle@rac2 admin]$ sqlplus cy/zh@rac2SQL*Plus: Release
9.2.0.4.0 – Production on Tue Mar 4 08:32:59 2008Copyright 1982, 2002,
Oracle Corporation. All rights reserved.ERROR:ORA-12154: TNS:could not
resolve service name

1)为solaris增加硬盘

SID_LIST_LISTENER = (SID_LIST = (SID_DESC =  自定义服务名 (ORACLE_HOME = E:\oracle\product\10.2.0\db_1) db_home  (SID_DESC =  (SID_NAME = PLSExtProc) (ORACLE_HOME = E:\oracle\product\10.2.0\db_1) ##这个服务保证你可以使用外部过程,如C程序 ) )

ORCL_XNJ = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS =  (CONNECT_DATA =  与自定义服务名对应 ) )

Enter user-name:

2)安装oracle10g

记住,一定从最简便的来由找起,不要后生可畏上去就来看网络的什么改process数、注册表之类的,要出主意本机能连为何通过网络就那一个,照旧定位难题。

依照如下进度,通常都能减轻:在虚构机内开cmd,用lsnrctl
status查看监听器监听的劳动
如看见监听服务“orcl”,那在本机的tns配置中必需写orcl;假使想要自定义,则在虚构机内的listener配置中就要加盟自定义服务名,记得要重启监听服务:lsnrctl
reload 最后产生的陈设文件如下 设想机listener:

参照他事他说加以调查资料:
Solaris加多新硬盘