When a non-Oracle user runs sqlplus on this computer, the following error is reported:
[Email protected] ~]$ Sqlplus cpdds_pdata/cpdds_pdata
Sql*plus:release 10.2.0.4.0-production on Fri April 13:43:16 2012Copyright (c) 1982, Oracle. All rights reserved.error:ora-01034:oracle not availableora-27123:unable to attach to shared memory segmentlinux-x86_64 Error:13:permissiondenied
Check environment variables: oracle_sid, oracle_base, Oracle_home are normal.
Workaround:
Log in with an Oracle user to the $oracle_home/bin directory and execute chmod +s Oracle. Http://blog.sina.com.cn/s/blog_537b196801011zzj.html
Syntax: chmod [who] [+ |-| =] [mode] File name
The meanings of the options in the command are:
Action object who is either or a combination of the following letters: U means "user", that is, the owner of the file or directory. G means "same group user", that is, all users who have the same group ID as the file owner. O means "other (others) users". A means "all users". It is the system default value. The action symbol can be: + Add a permission. -Cancels a permission. = gives the given permission and cancels all other permissions, if any. Setting the permissions represented by mode can be any combination of the following letters: R is readable. W writable. X executable. x append the x attribute only if the destination file is executable to some users, or if the target file is a directory. S is the owner of the file in which the owner or group ID of the process is placed when the file is executed. The way "U+s" sets the user ID bit of the file, "G+s" sets the group ID bit. T save the program's text to the swap device. You have the same permissions as the owner of the file. G has the same permissions as a user with the same group as the file owner. o have the same permissions as other users. File name: A list of files separated by spaces to change permissions, and wildcard characters are supported.
U+susers 7192 4 14:22 a.out and this executable file is to use a text file shiyan1.c, the file access permission is "–RW-------", that is, the file only its owner has read and write permissions. When other users execute a.out This program, his identity is temporarily changed to Inindue to this program (because the S option is used in the chmod command),
So he was able to read shiyan1.c this file (although the file was set to someone else without any permissions), that's the function of S . Therefore, in the whole system, especially the root itself, it is best not to set too much of this type of file (unless necessary) to ensure the security of the system, to avoid the bug of some programs to make the system compromised.
http://blog.csdn.net/shaobingj126/article/details/7031221