Use the area above the neck to solve the problem (1): Sqlplus Landing Report No permissions error

Source: Internet
Author: User
Tags file permissions sqlplus

For a variety of reasons, for a long time did not come here to publish their articles. Some time ago encountered an interesting question, embarrassed me a whole afternoon, here write to share with you.

When you use the Sqlplus tool to log in to an Oracle database as a SYSDBA, you suddenly encounter an issue with no permissions. It felt very strange at that time, this machine landing command: Sqlplus/as sysdba I understand is the most insurance of a landing method. How does it report no permissions? A little sweating on the head. After half an afternoon of fiddling still without fruit, now think of it was a mess! There is no way to infer the problem from the principle, just a random test, no result is reasonable. Calm down after thinking, finally cleared up the idea, this way of landing is to walk the operating system certification, you can eliminate the impact of monitoring failure. Verify that the Sqlplus sys/xxx as SYSDBA command is logged in normally, eliminating the possibility of a password file exception. Then the requirements of the operating system certification is the UID and GID and user name Group name correctness, I will use the ID command to look at, sure enough, the Oracle User ID and user name corresponding to normal, can GID and group name does not correspond, only show the GID does not display the group name. What is this for? Curious Strange! Think of the UNIX system GID and group name corresponding relationship from where, the answer in front of the/etc/group file, right! That's him! Check his permissions found that, in addition to the root user and the root group has read permissions, other users are not, how can this? Prove that Oracle users cannot read the contents of the file at all! No wonder the Oracle user under the Execute ID command cannot see the group name of the GID. Modify the file permissions correctly, chmod a+r/etc/group. Again into the Oracle user view, the ID command appears normal. Through the Sqlplus/as SYSDBA can log in normally, and no longer prompt no permission.

That's it! Anything that is not inferred from the principle will not be solved, but may make things worse!


This article is from the "cultural Rogue dba Life" blog, reprint please contact the author!

Use the area above the neck to solve the problem (1): Sqlplus Landing Report No permissions error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.