
连接Oracle数据库经常报错?关于listener.ora和tnsnames.ora文件的配置
Locate the installation path for Oracle 11g on your system. For example, it might be: The Listener.ora file is essential for configuring the Oracle Net Listener, which manages database connections. Open the Listener.ora file located in the NETWORK\ADMIN directory: Add or modify the following entries to configure the listener properly: Save the changes to the Listener.ora file after configuring. The Tnsnames.ora file defines how clients connect to your Oracle database. Locate it in the same directory: Add or modify the following entry for the database connection: Ensure the host name and port number match your server settings. Open Control Panel > System and Security > System Check the "Computer name" field to confirm the hostname
发布日期:2021-05-10 23:54:13
浏览次数:5
分类:精选文章
本文共 2104 字,大约阅读时间需要 7 分钟。
Oracle 11g Installation Guide
Follow these steps to ensure a smooth installation and configuration of your Oracle 11g database
Step 1: Access the Oracle 11g Administrative Directory
F:\Oracle\Oracle11g\product\11.2.0\dbhome_1\NETWORK\ADMIN
2..Navigate to the ADMIN directory within this path. This directory contains crucial configuration files for your database setup.Step 2: Configure the Listener.ora File
F:\Oracle\Oracle11g\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
- For CLRExtProc:
SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = CLRExtProc) (ORACLE_HOME = F:\Oracle\Oracle11g\product\11.2.0\dbhome_1) (PROGRAM = extproc) (ENVS = "EXTPROC_DLLS=ONLY:F:\Oracle\Oracle11g\product\11.2.0\dbhome_1\bin\oraclr11.dll") ) )
- For the database instance:
LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = computer_name)(PORT = 1521)) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) )
Step 3: Configure the Tnsnames.ora File
F:\Oracle\Oracle11g\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora
LISTENER_ORCL = (ADDRESS = (PROTOCOL = TCP)(HOST = computer_name)(PORT = 1521))
Step 4: Verify Your Computer Name
To ensure your configuration works correctly, verify the computer name:
By following these steps, you can successfully install and configure Oracle 11g on your system.
发表评论
最新留言
路过,博主的博客真漂亮。。
[***.116.15.85]2025年04月23日 20时55分32秒
关于作者

喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
Python——11面向对象编程基础
2021-05-11
Python——5函数
2021-05-11
C++中如何对单向链表操作
2021-05-11
C++走向远洋——63(项目二2、两个成员的类模板)
2021-05-11
6——PHP顺序结构&&字符串连接符
2021-05-11
C++走向远洋——42(项目二,我的数组类,深复制,构造函数)
2021-05-11
C++走向远洋——23(项目一,三角形,类)
2021-05-11
C++扬帆远航——2
2021-05-11
C++扬帆远航——1
2021-05-11
上周热点回顾(5.3-5.9)
2021-05-11
测试网络联接状况常用命令 ping 使用方法介绍
2021-05-11