Sqlplus -S interrupt !!!!

Discussion in 'Perl' started by Gianni, Jun 17, 2004.

  1. Gianni

    Gianni Guest

    Im trying to use perl to launch some sql and it works fine

    $command = "sqlplus -S " . $usr . "/" . $pwrd . " \@mccci060.sql";
    print "$command";
    $status = system ($command);
    print "status" . $status;


    the problem is that if I give the above line the wrong user and
    password Im not able to intercept the error , perl just stops and cant
    write logs.
    Consider that I don't see the result of $status as the program stops
    just before it !
    Thanks
    Gianni
    Gianni, Jun 17, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tony
    Replies:
    0
    Views:
    1,032
  2. Gianni

    Sqlplus - S stops ...sigh !

    Gianni, Jun 17, 2004, in forum: Perl
    Replies:
    4
    Views:
    6,392
    Karel Kubat
    Jul 1, 2004
  3. Replies:
    1
    Views:
    757
    Martin v. Löwis
    Jan 24, 2008
  4. Daniel Berger

    Driving Oracle sqlplus with open3

    Daniel Berger, Jul 26, 2006, in forum: Ruby
    Replies:
    11
    Views:
    267
    Pra Bhandar
    Mar 3, 2009
  5. The alMIGHTY N

    SQLPlus with Perl

    The alMIGHTY N, Nov 2, 2006, in forum: Perl Misc
    Replies:
    7
    Views:
    1,572
    Peter Scott
    Nov 3, 2006
Loading...

Share This Page