Help for this page

Select Code to Download


  1. or download this
    if ( grep $_ == $xpid, @procs ) {
       print "Pid is in use : $xpid\n";
    }
    
  2. or download this
    $procs = $dbh->selectall_arrayref("select spid from v\$process");
    if ( grep $_ == $xpid, @$procs ) {
       print "Pid is in use : $xpid\n";
    }
    
  3. or download this
    $procs = $dbh->selectall_arrayref("select spid from v\$process");
    my $found;
    ...
    if ($found) {
       print "Pid is in use : $xpid\n";
    }
    
  4. or download this
    $procs = $dbh->selectall_arrayref('select spid from v$process');