The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Probably an easy SMIT question- "Unable to open temp file" jeffpas AIX 6 02-29-2008 03:06 PM
unable to open a .log(4MB) file in vi venkatramana SUN Solaris 18 11-29-2007 06:45 AM
Unable to open .sql file Ananth.p UNIX for Dummies Questions & Answers 2 10-23-2007 12:56 AM
Unable to open thread dangral Post Here to Contact Site Administrators and Moderators 2 04-07-2005 08:31 AM
PCC-F-NOERRFILE, unable to open error message file, facility PR2 asutoshch UNIX for Advanced & Expert Users 1 03-11-2005 10:59 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-28-2007
Registered User
 

Join Date: Jun 2007
Posts: 2
SP2-0310 unable to open file

Hi ,

We are running Oracle 8.1.7 on HP-UX B.11.00. Recently we have upgraded Oracle from 8.0.6. to 8.1.7. Almost all the shell script we use has the Sqlplus as sqlplus -s @/apps/prod/sql/xxxx.sql > /apps/prod/log/xxxx.out .

However we receive the error
SP2-0310: unable to open file "/apps/prod/sql/xxxx.sql " .


We dont have any problem with sqlplus.


I do not have much knowledge on Unix Shell Script. Could any one help?
Reply With Quote
Forum Sponsor
  #2  
Old 06-28-2007
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,275
SP2-310 is sqlplus complaining about not having permissions to open a file.

In this case, the user running the script has to have execute access to all the directories in the path, (apps prod sql ) and read+execute access to the .sql file
Reply With Quote
  #3  
Old 06-28-2007
Registered User
 

Join Date: Jun 2007
Posts: 2
Hi ,

Thanks for the reply,
I have given all the permission but still the problem exists. If I do copy and pate the same script on command prompt it works, problem occurs only from Script. Could you suggest some solution to this problem.

Thanks .
Guru.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0