Posted By: ScottMattes A problem with query output - 03/23/07 01:07 AM
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?
Works as expected for me. Might be a RDBMS version issue. I am using 10.2
Posted By: ScottMattes Re: A problem with query output - 03/23/07 04:36 PM
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.
© Allround Automations forums