程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> Oracle數據庫 >> Oracle教程 >> OracleEnterpriseLinux64-bit下Oracle11g的監聽配置修改及測試步驟

OracleEnterpriseLinux64-bit下Oracle11g的監聽配置修改及測試步驟

編輯:Oracle教程

測試環境:Oracle Enterprise Linux 64-bit (5.8版本) + Oracle 11g 64位

相關說明: Oracle11g64位軟件的安裝位置為/u01/app/oracle/product/11.2.0/dbhome_1 ,數據庫名為默認的orcl,Linux虛擬機的IP設置為192.168.1.121

一、修改listener.ora文件內容

命令:[oracle@gpdb ~]$ vi /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

LISTENER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.121)(PORT=1521)))

命令:[oracle@gpdb ~]$ vi /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora

命令:[oracle@gpdb ~]$ lsnrctl start

Copyright (c) 1991, 2009, Oracle. All rights reserved.

Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.121)(PORT=1521)))

命令:[oracle@gpdb ~]$ sqlplus / as sysdba

Copyright (c) 1991, 2009, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.121)(PORT=1521)))

\

四、Windows下的測試步驟

命令:C:\Documents and Settings\Administrator>tnsping 192.168.1.121

Copyright (c) 1997, 2008, Oracle. All rights reserved.

Used parameter files:

Used EZCONNECT adapter to resolve the alias

C:\Documents and Settings\Administrator>

\

2>使用plsqldev.exe測試,修改C:\Program Files\Oracle\Instant Client\bin\tnsnames.ora文件,新增到虛擬機Oracle的連接內容

GPDB =

\

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved