- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem running scrip in unix at sqlplus
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2003 04:02 AM
тАО11-07-2003 04:02 AM
problem running scrip in unix at sqlplus
I already had changed the permissions
However i added the location of my script with in the script and still I get the same error
and script looks like this (just for test)
name of the script whoami
cd /home/kchinsky/scripts
show user
select * from global_name
exit
I logon to sqlplus
user/pasword
@whoami
and I get
SP2-0310: unable to open file "whoami.sql"
any help is appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2003 04:52 AM
тАО11-07-2003 04:52 AM
Re: problem running scrip in unix at sqlplus
To not have to specify whole path, put your script path in your PATH env.
Also, mixing UNIX commands in your SQL will generate errors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2003 05:12 AM
тАО11-07-2003 05:12 AM
Re: problem running scrip in unix at sqlplus
also make sure that the script name is whoami.sql
can you post the output of:
SQL> ! ls -al w*.sql
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2003 08:15 PM
тАО11-09-2003 08:15 PM
Re: problem running scrip in unix at sqlplus
and I suggest you to change
cd ....
with
!cd ....
to avoid any error.
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2003 08:26 PM
тАО11-09-2003 08:26 PM
Re: problem running scrip in unix at sqlplus
#mv whoami to whoami.sql
$sqlplus
sql@whoami
REvert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 12:37 AM
тАО11-10-2003 12:37 AM
Re: problem running scrip in unix at sqlplus
(with the solution but ... no rabbit)
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=246948
Rgds,
JL