今天运行一个备份脚本backup.sql的时候出现如下错误提示:
[oracle@localhost scripts]$ ./backup.sql
-bash: ./backup.sql: Permission denied
这实际上是权限问题,只需进行如下操作即可:
[oracle@localhost scripts]$ su
Password:
[root@localhost scripts]# chmod u+x *.sql
之后,脚本就可以顺利运行了。
[oracle@localhost scripts]$ ./backup.sql
-bash: ./backup.sql: Permission denied
这实际上是权限问题,只需进行如下操作即可:
[oracle@localhost scripts]$ su
Password:
[root@localhost scripts]# chmod u+x *.sql
之后,脚本就可以顺利运行了。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29800581/viewspace-1304802/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29800581/viewspace-1304802/