Results 1 to 5 of 5
  1. #1
    mario_tim is offline Member
    Join Date
    Mar 2011
    Posts
    8
    Rep Power
    0

    Default using RMAN commands in Java

    I tried to launch thow Runtime processor RMAN commands, but after execution "RMAN" next commands cannot be executed, here is my code, what is the problem?
    ArrayList<String> cmd=new ArrayList<String>();
    cmd.add("rman");
    cmd.add("connect target/");
    cmd.add("exit");

    for (int i=0;i<cmd.size();i++){
    Process proc=rt.getRuntime().exec(cmd.get(i).toString());
    BufferedReader br=new BufferedReader(new InputStreamReader(proc.getInputStream()));
    String line=br.readLine();
    while(line!=null)
    {
    line=br.readLine();
    System.out.println(line);
    }

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default

    Go through all the sections of this article and implement ALL the recommendations.
    When Runtime.exec() won't - JavaWorld

    db

  3. #3
    mario_tim is offline Member
    Join Date
    Mar 2011
    Posts
    8
    Rep Power
    0

    Default

    unfortunately your link cannot be open, there is 403 Error, could you give me another one, thank you

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default

    Opens fine for me. Try again.

    db

  5. #5
    mario_tim is offline Member
    Join Date
    Mar 2011
    Posts
    8
    Rep Power
    0

Similar Threads

  1. Commands on java.
    By Slithice in forum New To Java
    Replies: 15
    Last Post: 11-15-2012, 11:06 AM
  2. At commands in java
    By strictlydivine.elite in forum Advanced Java
    Replies: 1
    Last Post: 11-22-2010, 10:55 AM
  3. Run Unix commands from Java
    By yahyaaa in forum New To Java
    Replies: 13
    Last Post: 06-18-2010, 12:50 AM
  4. Help file for Java commands?
    By tyang in forum New To Java
    Replies: 2
    Last Post: 01-31-2010, 06:09 AM
  5. Low-level java commands
    By artemff in forum New To Java
    Replies: 8
    Last Post: 01-01-2010, 07:23 AM

Tags for this Thread

Posting Permissions

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