Oracle lsnrctl Tracing Listener Connections

gcc/g++ 链接库的编译与链接 gcc/g++ 链接库的编译与链接 surgewong@gmail.com http://blog.csdn.net/surgewong       程序编译一般需要经预处理、编译、汇编和链接几个步骤。在实际应用中,有些公共代码需要反复使用,就把这些代码编译成为“库”文件。在链接步骤中,连接器将从库文件取得所需的代码,复制到生成的可执行文件中,这种库称为静态(链接)库,其特点是可 阅读详情

Tracing Listener Connections
 


Network connections are traced to provide a detailed description of the operations performed by Oracle's internal components. The trace data is stored in an output trace file that can then be analyzed.

The following four steps can be performed to trace listener connections:

1. Enable tracing for the appropriate period of time needed to capture enough data.
 


LSNRCTL> set trc_level ADMIN

2. Disable tracing.



LSNRCTL> set trc_level OFF

3. View trace file (optional) - the trace file can be viewed although it is very cryptic. The file can be located by using the show command along with trc_directory and again with trc_file. The following is an example of the raw trace file.



nsdo: cid=6, opcode=65, *bl=0, *what=0, uflgs=0x0, cflgs=0x2
nsdo: rank=64, nsctxrnk=0
nsdo: nsctx: state=7, flg=0x4200, mvd=0
nsdo: nsctxrnk=0
nsanswer: deferring connect attempt; at stage 5
nsevreg: begin registration process for 6
nsevreg: sgt=0, evn=4, evt[2]=0x0
nsevreg: begin notification process for 6
nsrah: setting transport read mode (2)
nsevreg: rdm=2, sgt=0, evt[0]=0x20, [1]=0x20, [2]=0x0, nrg=0
nsevreg: registering for 0x20
nsrah: reading (asynchronously) from transport...
nsrah: ...into overflow area...
ntnrd: failed to read 8208 bytes
ntn2err: entry
ntn2err: error: handle=396, op=5, nt[0]=524, nt[1]=997


4. Format Trace File with the trcasst utility. Oracle9i Release 2 introduces the Oracle Net Trace assistant to help administrators decipher information contained in the trace files. The trcasst command can be used to provide a more readable trace. This is very helpful when advanced diagnosis is required for problem debugging.
The trcasst utility provides the following command line options:

• -o – Displays services and TTC (Two Task Common) information. Valid options to use with –o include:

• c – Summary of connection information.

• d – Detailed connection information.

• u – Summary of TTC information.

• t – Detailed TTC information.

• q – SQL commands (used in combination with u).

• -e – Displays error information. Valid options to use with –e include:

• 0 – translates NS error numbers.

• 1 – Displays only error translation.

• 2 – Displays error numbers without translation.

• -l – Displays services and TTC information. Valid options to use with –l include:

• a – Displays data for all connections in trace file.

• i – Displays the trace data for a particular ID from the –la option.

• -s – Displays a summary of statistics. This includes total bytes sent and received, maximum open cursors, total calls, parse counts, and more.
If no options are specified on the command line, the default will be:

trcasst –odt –e0 –s

Sample output generated by the trcasst utility is below.

C:/oracle9i/network/trace>trcasst listener.trc

Trace Assistant Utility: Version 9.2.0.1.0 Production on February 6, 2003 9:12:
2 PM

(c) Copyright 2002 Oracle Corporation. All rights reserved.


*************************************************************************
* Trace Assistant *
*************************************************************************

///////////////////////////////////////////////////////////////
Error found. Error Stack follows:
id:6
Operation code:68
NS Error 1:12537
NS Error 2:12560
NT Generic Error:507
Protocol Error:109
OS Error:0
NS & NT Errors Translation
12537, 00000 "TNS:connection closed"
// *Cause: "End of file" condition has been reached; partner has disconnected.

// *Action: None needed; this is an information message.
/
12560, 00000 "TNS:protocol adapter error"
// *Cause: A generic protocol adapter error occurred.
// *Action: Check addresses used for proper protocol specification. Before
// reporting this error, look at the error stack and check for lower level
// transport errors.For further details, turn on tracing and reexecute the
// operation. Turn off tracing when the operation is complete.
/
00507, 00000 "Connection closed"
// *Cause: Normal "end of file" condition has been reached; partner has
// disconnected.
// *Action: None needed; this is an information message.
/
///////////////////////////////////////////////////////////////


----------------------
Trace File Statistics:
----------------------
Total number of Sessions: 0

DATABASE:
Operation Count: 0 OPENS, 0 PARSES, 0 EXECUTES, 0 FETCHES


ORACLE NET SERVICES:
Total Calls : 0 sent, 0 received, 0 oci
Total Bytes : 0 sent, 0 received
Average Bytes: sent per packet, received per packet
Maximum Bytes: 0 sent, 0 received

Grand Total Packets: 0 sent, 0 received


*************************************************************************
* Trace Assistant has completed *
*************************************************************************


The raw trace file is not nearly as helpful as the results from the trcasst utility.

Due to the resources required, tracing the listener activity should be reserved only for debugging connectivity problems. The amount of trace information generated by the tool can be enormous.

Windows 本地 PostgreSQL 忘记 postgres 密码后,如何重置密码并给 root 用户最高权限 <think>我们只需要根据内容生成摘要,不超过150字。摘要应该简明扼要概括主要问题和解决步骤。注意是中文摘要。</think>在Windows本地开发中,因root数据库账号无CREATEDB权限且忘记postgres超级管理员密码,通过临时修改pg_hba.conf为trust认证重置密码,并重启PostgreSQL服务进行登录,最后授予root用户SUPERUSER等权限,完成数据库创建。 阅读详情

相关推荐

把个人化的 SQVI 报表变成可维护、可共享、可传输的 ABAP Query:从定位来源到转换落地的完整路线图

本文针对SAP系统中业务用户常用但难以维护的SQVI临时报表问题,提供了一套完整的解决方案。文章首先区分了SQVI(个人临时报表)和ABAP Query(团队可维护报表)的关键差异,重点介绍了如何通过函数模块RSAQ_DECODE_REPORT_NAME反查报表来源。对于SQVI报表,详细说明了定位创建人和转换为团队可维护的ABAP Query的具体步骤,包括Query Area切换、转换操作和后续维护方法。最后总结了常见问题的解决方案,如字段调整、口径固化和生成程序名反查等,为现场实施提供了可直接操作的完

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 257

Oracle数据库ORA-12560错误问题的解决办法

官网中关于ORA-12560的解释: ORA-12560: TNS:protocol adapter error Cause: A generic protocol adapter error occurred. Action: Check addresses used for proper protocol specification. Before reporting this error, look at the error stack and check for lower level transport errors. For further details, turn on tra

程序_51单片机智能药盒_

智能药盒 keil5源码功能:红外,语音播报,LED显示

DeepPlant-EAP vs 传统工具:为什么它能将基因调控预测效率提升300%

DeepPlant-EAP是一款基于深度学习的植物基因调控预测工具,属于HuggingFace镜像项目Addaoud/DeepPlant-EAP的一部分。该工具专为植物基因组学研究设计,通过先进的生物信息学算法,为科研人员提供高效、准确的基因调控预测服务,显著超越传统分析工具的性能表现。 ## 传统基因调控预测工具的局限性 传统基因调控预测工具在处理植物基因组数据时面临诸多挑战。这些工具通常依

gitblog_01088的博客 347

oracle报609,ORA-609 错误分析及解决方法

某个客户数据库在巡检的时候发现alert日志里不定期会出现ORA-609错误,由于ORA-609的缘故,ospid(xxxx)进程被aborting了,同时还某个客户数据库在巡检的时候发现alert日志里不定期会出现ORA-609错误,大致内容如下:***********************************************************************Fata...

weixin_30624835的博客 890

追踪监听(TraceListener

使用 Trace、Debug 和 TraceSource时,必须具有用于收集和记录发送的消息的机制。 跟踪消息可由侦听器接收。 侦听器的用途是收集、存储和路由跟踪消息。 侦听器会将跟踪输出定向到适当的目标,如日志、窗口或文本文件。 侦听器可供 Debug、Trace 和 TraceSource 类使用,其中每个类都可以将其输出发送到多种侦听器对象。 以下是常用的预定义侦听器:

流浪若相惜的专栏 5348

Tracing Listener Connections

...[@more@]trc_level:跟踪的级别,可取值off,user,admin和support 默认是off 的.trc_directory:跟踪产生的trace文件所在目录 trc_file:跟踪产生的trace文件...

clare0807的博客 148

How to enable Oracle listener tracing

How to enable Oracle listener tracing

爱肯的专栏 761

oracle监听做trace

参考:http://docs.oracle.com/cd/B19306_01/network.102/b14212/troublestng.htm#sthref1710 SQL> select * from V$version; BANNER ---------------------------------------------------------------- Oracle

DATA 2112

oracle 增加tns,TNS-01184频繁出现(增加了TRACE)

环境: Windows 2003 专用服务器模式Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - ProdPL/SQL Release 10.2.0.1.0 - ProductionCORE 10.2.0.1.0 ProductionTNS for 32-bit Windows: Version 10...

weixin_34416909的博客 728

PostgreSQL 并发约束实战(第 1 篇):排他约束如何挡住并发重复预约

两个用户同时预订会议室 A 的 10:00—11:00。两个请求都先查询“没有冲突”,随后各自插入一条预约,两个事务也都成功提交。SQL 没报错,唯一键没有重复,会议室却被卖了两次。PostgreSQL 真正形成差异的地方,不是比另一种数据库多几个数据类型,而是能把“同一资源的时间段不得重叠”变成提交时持续成立的数据库约束。这篇文章只证明这一个判断。它不证明 PostgreSQL 在所有 OLTP 场景都优于 MySQL,也不证明所有业务规则都应该塞进数据库。

weixin_42426485的博客 504

单文件部署的MQTT轻量级物联网数据平台

变量 `value` 为设备上报的原始值,支持 `+ - * / % **` 及 `abs round min max pow int float sqrt`,如 `value / 10 - 40`。- **全局**:点击左侧导航「**报警信息**」,可直接查看当前账号可见范围内**未消除的报警**,每条显示时间、设备、产品、属性、报警类型(超上限 / 低于下限)、当前值与阈值。删除 `iot.db`(和 `db.key`)会重置为默认账号 admin/admin123,但**会清空所有数据,慎用**。

u012320127的博客 311

Oracle】一次ORA-12514错误解决总结

整个过程的核心是从磁盘空间满问题入手,清理临时文件,启动数据库,重建缺失文件,最后强制注册监听器。为临时表空间文件,大小 28GB,数据库关闭时内容无效,可安全删除。:监听器运行正常,但未注册任何服务,判断数据库实例未启动或未注册。:数据库挂载(MOUNTED)成功,但因缺少临时文件未自动打开。:查看 PMON 进程是否存在,确认数据库是否已启动。:立即让监听器识别到数据库服务,无需等待自动注册周期。:无 PMON 进程,数据库实例处于关闭状态。:释放足够的磁盘空间,使数据库能正常启动。

姜太小白的博客 178

MySQL数据库与SQL语言:从数据类型到DQL查询核心

本笔记系统讲解MySQL数据库核心知识。数据库是有组织的文件系统,分关系型与NoSQL。数据类型选型关键:decimal存金额,char存手机号,varchar存可变文本,text存大文本。约束保数据完整性,主键唯一标识每行。SQL分DDL(结构)、DML(增删改)、DQL(查询)。查询重点:WHERE条件过滤、ORDER BY排序、LIMIT分页(索引从0)、GROUP BY分组、聚合函数(MAX/COUNT等),COUNT(*)统计全行,COUNT(字段)跳过NULL。子句顺序固定。

既然你都点开这里了,那可以给我点个关注吗?可以吗?可以吗? 418

Oracle迁移到PostgreSQL数据库-FGOracle2PG工具

FGOracle2PG 是一款高性能、高可靠的 Oracle 数据库到 PostgreSQL 数据库迁移工具。它由风哥基于多年数据库运维与迁移实战经验开发。工具采用纯 Python 实现,支持命令行(CLI)与可视化 Web 控制台两种操作方式,能够覆盖从开发测试到生产环境的全场景数据库迁移需求。

风哥oracle/mysql/pg技术教程 191

【基于GO的Web开发20】GORM 查询操作

查询不到数据时,才使用 Attrs 里面的值初始化结构体;把查询结果扫描到结构体,复用查询逻辑,不一定绑定 model。Map 会把所有 key-value 全部作为查询条件,可以把条件不断拼接,最后调用立即执行方法执行 SQL。无论是否查询到数据,都会把参数赋值给结构体变量。抽取通用查询逻辑,封装成函数,实现查询逻辑复用。,会查询单条记录,需要传入模型指针接收结果。,直接提取到切片,不需要完整模型结构体。链式调用中,如果写多个立即执行方法,只查询需要的列,避免查询全部字段。直接传入主键切片,等价于。

2503_92676540的博客 227

格式化掩码 FM999999999999999999999.00 是 Oracle 数据库中 TO_CHAR 函数的数字格式模型

永洪报表中ROUND()后数值显示为十六进制,实为数字过大时引擎用了科学计数法(如1.6E9),字母E被误认。解决方法是使用TO_CHAR配合格式掩码FM999999999999999999999.00,强制转为无科学计数法、保留两位小数的字符串。注意FM去除空格,9为整数占位,0强制小数位;需预留足够位数,否则返回###。

Irene1991的博客 148

FastAPI + SQLAlchemy 异步会话(AsyncSession)核心方法

result = await db.execute(select(News).where(...)) # 执行查询,返回 Result 对象。items = result.scalars().all() # 提取 Python 对象列表。await db.refresh(new_news) # 将生成的ID加载到本地对象。await db.commit() # 自动检测到对象变更,生成UPDATE发送。# ① 标记操作(内存中记录,未发SQL)

m0_52302665的博客 306

MySQL 派生表(Derived Table)与物化(Materialization)详解

<think>Draft concise ≤150字 Chinese abstract covering derived table, materialization cost, cause, identify, solutions, version.</think>派生表是FROM子句中的子查询,MySQL常将其“物化”为临时表。若派生表含GROUP BY/聚合且基于大表,优化器会先全表聚合,外层过滤条件无法下推,导致主表很小查询却极慢。可用EXPLAIN中的DERIVED、<derivedN>、Usin

BADAO_LIUMANG_QIZHI的博客 309

# Text2SQL 工程实战:用 Qdrant 向量库让系统理解数据库结构

<think>我们根据要求,需要根据提供的内容生成≤150字的文章摘要。用户说“根据以下内容,生成≤150字的文章摘要”,内容是一篇关于Text2SQL工程实战的文章,讲用Qdrant向量库让系统理解数据库结构。我们需要写一个摘要,概括文章主旨、主要内容、亮点(比如10个踩坑点、完整代码、架构等)。要控制在150字以内。 注意是“文章摘要”,不是“导读”。应该用简洁的语言概括。我们输出摘要即可。 先思考内容:文章主要解决Text2SQL系统中大模型理解数据库结构的问题,提出用向量库(Qdrant)对Sche

l125865的博客 433
上一篇: 如何重命名数据文件
下一篇: PLSQL_OPTIMIZE_LEVEL
firefoxboy
博客等级 码龄18年 15粉丝 140原创
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值