Print Thread
A problem with query output
#25465 03/23/07 01:07 AM
Joined: Jul 2003
Posts: 1,140
Virginia, USA
Member
OP Offline
Member
Joined: Jul 2003
Posts: 1,140
Virginia, USA
Under sql/plus the query below produces something like

me@here ( SID=1 ) is blocking you@here ( SID=2 )

In fact, on one system PL/SQL Dev does also, but on some new PCs on a new system it only produces

me@here

In the actual system me@here equates to 23 characters. And this happens in Command and SQL windows

I have looked and looked and can not find a setting that might effect this. If I put a length() around the output it says 83.

Code
-- from http://orafaq.com/node/854
select s1.username || '@' || s1.machine || ' ( SID=' || s1.sid ||
       ' )  is blocking ' || s2.username || '@' || s2.machine || ' ( SID=' ||
       s2.sid || ' ) ' AS blocking_status
  from v$lock l1, v$session s1, v$lock l2, v$session s2
 where s1.sid = l1.sid
   and s2.sid = l2.sid
   and l1.BLOCK = 1
   and l2.request > 0
   and l1.id1 = l2.id1
   and l2.id2 = l2.id2;
Does anyone have an idea about why this might be?


Scott Mattes
Re: A problem with query output
#25466 03/23/07 03:39 AM
Joined: Feb 2006
Posts: 14
Plano, Texas USA
C
Member
Offline
Member
C
Joined: Feb 2006
Posts: 14
Plano, Texas USA
Works as expected for me. Might be a RDBMS version issue. I am using 10.2

Re: A problem with query output
#25467 03/23/07 04:36 PM
Joined: Jul 2003
Posts: 1,140
Virginia, USA
Member
OP Offline
Member
Joined: Jul 2003
Posts: 1,140
Virginia, USA
both the system where it works correctly and the one where it doesn't are 9.0.2 and pl/sql dev on all the PCs is 7.0.3

It seems strange that wrapping the length() around the field says that there are 80+ characters, but the display is only slightly over 20 in length.


Scott Mattes

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.046s Queries: 14 (0.010s) Memory: 2.5039 MB (Peak: 3.0395 MB) Data Comp: Off Server Time: 2024-04-29 02:10:46 UTC
Valid HTML 5 and Valid CSS