- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Oracle SQLPLUS - permission denied on "/dev/null"
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
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
тАО07-10-2002 03:58 AM
тАО07-10-2002 03:58 AM
SQLPLUS
>select 'abc'
2 from dual
;
'AB
---
abc
>edit
Wrote file afiedt.buf
/dev/null: Permission denied
>exit
>ls -l afiedt.buf
-rwxrwxrwx
>ls -l /dev/null
crw-rw-rw-
>cat >/dev/null
abc
Cntrl-d
>
>cat login.sql
...
define _editor=vi
...
Any ideas, suggestions welcome
Steve
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2002 04:10 AM
тАО07-10-2002 04:10 AM
Re: Oracle SQLPLUS - permission denied on "/dev/null"
crw-rw-rw- 1 bin bin 3 0x000002 Jul 10 17:49 /dev/null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2002 04:14 AM
тАО07-10-2002 04:14 AM
Re: Oracle SQLPLUS - permission denied on "/dev/null"
The output from ls -l /dev/null is given in my original posting
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2002 04:32 AM
тАО07-10-2002 04:32 AM
Re: Oracle SQLPLUS - permission denied on "/dev/null"
hmmmm funny thing going on ...
"edit" in SQL*Plus saves the commands to your editfile (default is afiedt.buf), then uses the defined editor to edit this file and afterwards reads the editfile into the command buffer.
- the save seems to work
- start of the editor probably gives the "Permission denied" error.
Things to check:
- which editor is being used
- editor executable linked to /dev/null??
Have a look in that direction.
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2002 05:09 AM
тАО07-10-2002 05:09 AM
Re: Oracle SQLPLUS - permission denied on "/dev/null"
EDITOR=vi
export EDITOR
check your permissions of vi
-r-xr-xr-t 6 bin bin 249856 Jan 16 1998 /usr/bin/vi
afiedt.buf is owned by user oracle.
Try also re-creating your /dev/null file
#rm -f /dev/null
#insf -d mm
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2002 06:03 AM
тАО07-10-2002 06:03 AM
Re: Oracle SQLPLUS - permission denied on "/dev/null"
/home/ke1716>echo $EDITOR
vi
/home/ke1716>ls -l /usr/bin/vi
-r-xr-xr-t root bin
/home/ke1716>ls -l afiedt.buf
-rwxrwxrwx ke1716 other
/home/ke1716>cat login.sql
...
define _editor=vi
...
set sqlprompt '&gname> '
I know the file login.sql is used as my sqlplus prompt is set correctly
I am just a humble User on this machine ( ke1716 ), I don't have the permissions to recreate /dev/null. But if thats what is required I will get it done. But, what about this ...
sqlplus system/manager
>host date
/dev/null: Permission denied
Thanks
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2002 06:14 AM
тАО07-10-2002 06:14 AM
SolutionCheck your SHELL variable! It is set to /dev/null, probably to prevent users to execute OS commands from within an application.
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2002 06:47 AM
тАО07-10-2002 06:47 AM
Re: Oracle SQLPLUS - permission denied on "/dev/null"
Yes, you are right, my SHELL is /dev/null
>/home/ke1716>echo $SHELL
/dev/null
>/home/ke1716>export SHELL=/usr/bin/ksh
SHELL is read only
As you suggest, this is some kind of security restriction I was not aware of. I will take this up with our Unix security people.
Points will be awarded, many thanks to all who have helped me today.
Steve