ORACLE-基础十七(Oracle Net Server Dide Configuration)

本文详细介绍了Oracle数据库中Listener的工作原理及配置方法。包括连接请求处理流程、动态与静态服务注册的区别,以及如何通过LSNRCTL命令进行管理。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The Listener Process

The Listener Process


ConnectionMethods

When a connection  request is made by a client to a server, the listener performs one of the following:

 1.Spawns a server process and bequeaths(passes)the connection to it

 2. Hands off the connectin to a dispatcher in an oracle Shared Server configuration

 3. Redirects the connection to a dispatcher or server process.


Spawn and Bequeath Conn.



Direct Hand-Off Connections



Redirection Session


Service  Config & Register

The listener can ben configured in two sway:

  1.Dynamic service registration

    Does not require configuration in listener.ora file

    The listener relies on the PMON process

  2.Static service configuration

   a.Used for Oracle8 and earlier releases

   b.Requires listener.ora configuration

   c.Required for Oracle Enterprise Manger and other services


Static Registration

 Default settings for the listener.ora file with Oracle software installation:

1. Listener name LISTENER

2.Port 1521

3. Prtocols TCP/IP and IPC

4. SID name Default instance

5 Host name Default host name

listener.ora


Dynamic Registration

Dynamic service registration is configured in the database initailization file , It does nt require any configuration in the listener.ora file. However , listener configuration must be synchronized with the information in the database initailization file.

The listener uses the dynamic service information about the database and instance it has received through service registration before using statically configured information in the listener.ora file.

Static configuration is also required for other services, such as extenal procedures,

To ensure that service registrantion is functional , the following initailization parameters must be configured:

1.SERVICE_NAMES

2.INSTANCE_NAME

The value for the SERVICE_NAMES PARAMETER defaults to the global database name, a name comprising the DB_NAME and DB_DOMAIN parameters int the initialization parameter file, entered during installatin r database creation, The value for the INSTANCE_NAME parameter defaults to the SID entered durin installation r database creation.

LSNRCTL里使用的命令:

start service_name

stop service_name

set trc_level admin

show trc_directory



构建进程终止异常: D:\sjk\jdk\bin\java.exe -Xmx700m -Djava.awt.headless=true "-Djna.boot.library.path=D:\wjgl\IntelliJ IDEA 2025.1/lib/jna/amd64" -Djna.nosys=true -Djna.noclasspath=true -Dexternal.project.config=C:\Users\admin\AppData\Local\JetBrains\IntelliJIdea2025.1\projects\hskj-demo.5a3607cd\external_build_system -Dcompile.parallel=true -Drebuild.on.dependency.change=true -Didea.IntToIntBtree.page.size=32768 -Djdt.compiler.useSingleThread=true -Daether.connector.resumeDownloads=false -Dio.netty.initialSeedUniquifier=3891490328191442739 -Djps.use.dependency.graph=true -Dfile.encoding=UTF-8 -Duser.language=zh -Duser.country=CN -Didea.paths.selector=IntelliJIdea2025.1 "-Djps.language.bundle=D:/wjgl/IntelliJ IDEA 2025.1/plugins/localization-zh/lib/localization-zh.jar" "-Didea.home.path=D:/wjgl/IntelliJ IDEA 2025.1" -Didea.config.path=C:/Users/admin/AppData/Roaming/JetBrains/IntelliJIdea2025.1 -Didea.plugins.path=C:/Users/admin/AppData/Roaming/JetBrains/IntelliJIdea2025.1/plugins -Djps.log.dir=C:\Users\admin\AppData\Local\JetBrains\IntelliJIdea2025.1\log\build-log "-Djps.fallback.jdk.home=D:/wjgl/IntelliJ IDEA 2025.1/jbr" -Djps.fallback.jdk.version=21.0.6 -Dio.netty.noUnsafe=true -Djava.io.tmpdir=C:/Users/admin/AppData/Local/JetBrains/IntelliJIdea2025.1/compile-server/hskj-demo_480d8b89/_temp_ -Djps.backward.ref.index.builder=true -Djps.backward.ref.index.builder.fs.case.sensitive=false -Dcompilation.charts=false "-Djps.kotlin.home=D:\wjgl\IntelliJ IDEA 2025.1\plugins\Kotlin\kotlinc" -Dkotlin.incremental.compilation=true -Dkotlin.jps.dumb.mode=true -Dkotlin.jps.enable.lookups.in.dumb.mode=true -Dkotlin.incremental.compilation.js=true -Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path=C:\Users\admin\AppData\Local\Temp\kotlin-idea-12667506331318852199-is-running -Dide.compiler.maven.path.to.home=C:\Users\admin\.m2\repository -Dide.propagate.context=false -Dintellij.platform.log.sync=true -classpath "D:/wjgl/IntelliJ IDEA 2025.1/plugins/java/lib/jps-launcher.jar" org.je
05-13
构建进程终止异常: C:\Users\liangh\.jdks\corretto-11.0.24\bin\java.exe -Xmx700m -Djava.awt.headless=true "-Djna.boot.library.path=D:\Idea2024\IntelliJ IDEA Community Edition 2024.1/lib/jna/amd64" -Djna.nosys=true -Djna.noclasspath=true -Dexternal.project.config=C:\Users\liangh\AppData\Local\JetBrains\IdeaIC2024.1\projects\gywycode.2a47e16a\external_build_system -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Didea.IntToIntBtree.page.size=32768 -Djdt.compiler.useSingleThread=true -Daether.connector.resumeDownloads=false -Dio.netty.initialSeedUniquifier=-7772580090291254657 -Dfile.encoding=GBK -Duser.language=zh -Duser.country=CN -Didea.paths.selector=IdeaIC2024.1 -Djps.language.bundle=C:/Users/liangh/AppData/Roaming/JetBrains/IdeaIC2024.1/plugins/zh.241.271/lib/zh.241.271.jar "-Didea.home.path=D:/Idea2024/IntelliJ IDEA Community Edition 2024.1" -Didea.config.path=C:/Users/liangh/AppData/Roaming/JetBrains/IdeaIC2024.1 -Didea.plugins.path=C:/Users/liangh/AppData/Roaming/JetBrains/IdeaIC2024.1/plugins -Djps.log.dir=C:/Users/liangh/AppData/Local/JetBrains/IdeaIC2024.1/log/build-log "-Djps.fallback.jdk.home=D:/Idea2024/IntelliJ IDEA Community Edition 2024.1/jbr" -Djps.fallback.jdk.version=17.0.11 -Dio.netty.noUnsafe=true -Djava.io.tmpdir=C:/Users/liangh/AppData/Local/JetBrains/IdeaIC2024.1/compile-server/gywycode_af3c8cba/_temp_ -Djps.backward.ref.index.builder=true -Djps.backward.ref.index.builder.fs.case.sensitive=false "-Djps.kotlin.home=D:\Idea2024\IntelliJ IDEA Community Edition 2024.1\plugins\Kotlin\kotlinc" -Dkotlin.incremental.compilation=true -Dkotlin.incremental.compilation.js=true -Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path=\"C:\Windows\Temp\kotlin-idea-11626471297649951508-is-running\" -Dide.propagate.context=false -classpath "D:/Idea2024/IntelliJ IDEA Community Edition 2024.1/plugins/java/lib/jps-launcher.jar" org.jetbrains.jps.cmdline.Launcher "D:/Idea2024/IntelliJ IDEA Community Edition 2024.1/plugins/java/lib/jps-builders.jar;D:/Idea202
最新发布
08-07
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值