Help for this page

Select Code to Download


  1. or download this
    system(<<EOF) and die "couldn't run listener control: $?";
    echo "set password 'oracle'
    set current_listener 'LISTENER'
    status" | lsnrctl
    EOF
    
  2. or download this
    open my $fh, "|-", "lsnrctl" or die "can't run listener control: $?";
    print $fh <<EOF;
    ...
    status
    EOF
    close $fh;