DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: passing query result to script

  1. #1
    Join Date
    Oct 2000
    Posts
    80
    This is probably pretty basic, but it defies me.
    I want to write a script which selects the segment ID of the active rollback segment based on:
    select usn from v$rollstat where xacts >0
    and then pass the result on to the following query:
    select * from dba_rollback_segs where segment_id = (result from above query).
    What are my options here?

    Many thanks in advance.

    Johnny D.

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    select * from dba_rollback_segs where segment_id in (select usn from v$rollstat where xacts >0 )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width