• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

Executing shell script from java

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am trying to execute shell script from java, the shell script interns call the sql file.
When shell script is called it connect to database sucessfully but when sql file is called it is giving below error.
SP2-0310: unable to open file ".sql".
When I run the line explicitly in cygwin it works fine.
sqlplus -s $DBConnect @test.sql. I even given the read/write/execute permission to the sql file still it is not working.
I know this query is not related to Java instead to shell scripting, but i didnt find the correct forum to post.

Thanks,
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic