Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from smtp-aa.freelists.org (smtp-aa.freelists.org [23.23.80.81])
 by malta2546.startdedicated.com (Postfix) with ESMTPS id 3DEBA1002E4865
 for <oracle-l@orafaq.com>; Fri,  3 Mar 2023 12:49:51 +0100 (CET)
Received: from turing.freelists.org (turing [10.0.0.164])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
 (No client certificate requested)
 by smtp-aa.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 33C4B41967;
 Fri,  3 Mar 2023 11:49:50 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 11E9A3F7EE;
 Fri,  3 Mar 2023 11:49:50 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1677844190;
 bh=mgCP6LWBYRRXC0PTs914zPl4J4dIwARivBjC02Lz90s=;
 h=From:Sender:Sender:From;
 b=lJZs1jDEVpLMQY0A9n27/cIGeFc33F6BwbwJpkT+x7bSbLoHL0t7pGT6P908FI3xl
	 JQ8TzUyB1PYkNum73Y2lq7aMmZFhFDBO9ObNO0c+NSbIQemlAYLiIKW8iFUDNbZ2xT
	 aHfsia421RmhL5RQ+AIpV7RP3mZeZS3LvYemXSHw=
X-Virus-Scanned: by FreeLists at turing.freelists.org
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 3yPg_wMILn-4; Fri,  3 Mar 2023 11:49:49 +0000 (UTC)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 4DB5A3F952;
 Fri,  3 Mar 2023 11:49:04 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1677844188;
 bh=mgCP6LWBYRRXC0PTs914zPl4J4dIwARivBjC02Lz90s=;
 h=From:Sender:Sender:From;
 b=v2o9hJ63P07XEYKLGEnCbzrvjJdoeqLS84nTWL0Ow/VHIZNd8DBxhlX4kDZe/YP9F
	 ipGc7eT6WkPhF9kiWuriPrePC6/2LvxlaA5+A255gIxwb+oEy21hv86ww4ut0+cNS4
	 c/+bYDwzUg/5WAnHkuQbxiPhN0PxOSwxBYTzuqEs=
Received: with ECARTIS (v1.0.0; list oracle-l); Fri, 03 Mar 2023 11:48:19 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 4B6E83F7CB
 for <oracle-l@freelists.org>; Fri,  3 Mar 2023 11:48:19 +0000 (UTC)
Authentication-Results: turing.freelists.org;
 dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=ESucGFFC;
 dkim-atps=neutral
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id b46m73-KIbgT for <oracle-l@freelists.org>;
 Fri,  3 Mar 2023 11:48:19 +0000 (UTC)
Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51])
 (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by turing.freelists.org (Postfix) with ESMTPS id 11FD53F790
 for <oracle-l@freelists.org>; Fri,  3 Mar 2023 11:48:18 +0000 (UTC)
Received: by mail-qv1-f51.google.com with SMTP id m4so1533902qvq.3
        for <oracle-l@freelists.org>; Fri, 03 Mar 2023 03:48:18 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20210112; t=1677844098;
        h=to:subject:message-id:date:from:mime-version:x-gm-message-state
         :from:to:cc:subject:date:message-id:reply-to;
        bh=TvToQi6VMr+RnNnRz3ylVlU+xV0OZsvacltRmnK5u4g=;
        b=qdjOXeX9vYAxiEjxUjY5UOrIh9dDeGXgAARlM6CPnp45O3LV20JNH5yFtcihzGDMnh
         dEv1MqrJE5FcRRonmctCDObdASQ3UgZMXxhQnUd0Ywr2ZhUwcSJ2tMKHOYsvifdeRfcn
         aR8mBU4PYvIPIfV48sPw0tiO1vQy+EehX7NKPb94C6bujsB1F6mUcNjIIZ/sIDWbMBWA
         2GpH3fUpLhQ7oJ3PiTK1QeFfhhtt7V8zpQhztRmApDXMNx1qvlYwoZmXmFu2vCw/TNvy
         mFEE23AMb8VR9SjDrXRcqCUAQnmqt3P6lYJ7DXXobiBu3msardod1fdPcEeGDuKO0m/2
         qdkg==
X-Gm-Message-State: AO0yUKXHV7fcoE+0kX4a6HIubBrtCbcVRILUvfVEoNaVp0kZfwltnee2
 7k347MbSjjzhfLkdR6vv6HlTTOzPNeh1nKyciCRFYopV
X-Google-Smtp-Source: AK7set/sHP2aepkhR4xrhrIJ2JjeWr+V9qXMMgEF4OB5S6y7LE+NEHiOgF50ruHK9i/sc/V5iwtv8MU/Fp9UaOo+tD0=
X-Received: by 2002:a05:6214:bc1:b0:56e:b401:ee3f with SMTP id
 ff1-20020a0562140bc100b0056eb401ee3fmr404275qvb.7.1677844098308; Fri, 03 Mar
 2023 03:48:18 -0800 (PST)
MIME-Version: 1.0
From: yudhi s <learnerdatabase99@gmail.com>
Date: Fri, 3 Mar 2023 17:18:06 +0530
Message-ID: <CAEzWdqd-kK4Z3XokcxDxjy_aSD8V=4fu=Fz=yRuapK3wZ3sbww@mail.gmail.com>
Subject: Dash_wait_chain script resulting into ORA-01489
To: Oracle L <oracle-l@freelists.org>
Content-Type: multipart/alternative; boundary="00000000000077dde205f5fd85f4"
X-archive-position: 83624
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: learnerdatabase99@gmail.com
Precedence: normal
Reply-To: learnerdatabase99@gmail.com
List-Help: <mailto:ecartis@freelists.org?Subject=help>
List-Unsubscribe: <mailto:oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-Subscribe: <mailto:oracle-l-request@freelists.org?Subject=subscribe>
List-Owner: <mailto:>
List-post: <mailto:oracle-l@freelists.org>
List-Archive: <https://www.freelists.org/archive/oracle-l>
X-list: oracle-l
--00000000000077dde205f5fd85f4
Content-Type: text/plain; charset="UTF-8"

Hello Listers,

While trying to run Tanels below script for investigating one of the issue
I am seeing error "ORA-01489: result of string concatenation is too long".
The issue was basically the database almost come to freeze for about
~1minute duration. So anybody saw this error while running the
dash_wait_chain script?

https://github.com/tanelpoder/tpt-oracle/blob/master/ash/dash_wait_chains.sql

Is it because we have too many blocking session coming and below part of
the script is throwing that error? How can i handle this error?

,substr(REPLACE(SYS_CONNECT_BY_PATH(/*&1*/ program2||event2, '->'), '->', '
-> ')||CASE WHEN CONNECT_BY_ISLEAF = 1 AND d.blocking_session IS NOT NULL
THEN ' -> [idle blocker
'||d.blocking_inst_id||','||d.blocking_session||','||d.blocking_session_serial#||(SELECT
' ('||s.program||')' FROM gv$session s WHERE (s.inst_id, s.sid , s.serial#)
=
((d.blocking_inst_id,d.blocking_session,d.blocking_session_serial#)))||']'
ELSE NULL END , 1,3999) path

[Error] Execution (64: 296): ORA-01489: result of string concatenation is
too long

--00000000000077dde205f5fd85f4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">Hello Listers,=C2=A0<div dir=3D"auto"><br></div><div dir=
=3D"auto">While trying to run Tanels below script for investigating one of =
the issue I am seeing error &quot;ORA-01489: result of string concatenation=
 is too long&quot;. The issue was basically the database almost come to fre=
eze for about ~1minute duration. So anybody saw this error while running th=
e dash_wait_chain script?<div dir=3D"auto"><br></div><div dir=3D"auto"><a h=
ref=3D"https://github.com/tanelpoder/tpt-oracle/blob/master/ash/dash_wait_c=
hains.sql">https://github.com/tanelpoder/tpt-oracle/blob/master/ash/dash_wa=
it_chains.sql</a></div><div dir=3D"auto"><br></div><div dir=3D"auto">Is it =
because we have too many blocking session coming and below part of the scri=
pt is throwing that error? How can i handle this error?</div><div dir=3D"au=
to"><br></div><div dir=3D"auto">,substr(REPLACE(SYS_CONNECT_BY_PATH(/*&amp;=
1*/ program2||event2, &#39;-&gt;&#39;), &#39;-&gt;&#39;, &#39; -&gt; &#39;)=
||CASE WHEN CONNECT_BY_ISLEAF =3D 1 AND d.blocking_session IS NOT NULL THEN=
 &#39; -&gt; [idle blocker &#39;||d.blocking_inst_id||&#39;,&#39;||d.blocki=
ng_session||&#39;,&#39;||d.blocking_session_serial#||(SELECT &#39; (&#39;||=
s.program||&#39;)&#39; FROM gv$session s WHERE (s.inst_id, s.sid , s.serial=
#) =3D ((d.blocking_inst_id,d.blocking_session,d.blocking_session_serial#))=
)||&#39;]&#39; ELSE NULL END  , 1,3999) path</div><div dir=3D"auto"><br></d=
iv><div dir=3D"auto">[Error] Execution (64: 296): ORA-01489: result of stri=
ng concatenation is too long</div><div dir=3D"auto"><br></div></div></div>

--00000000000077dde205f5fd85f4--
--
http://www.freelists.org/webpage/oracle-l


