Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

SYS user connectivity issue - ORA-01031

Dev_SQLApr 1 2020 — edited Apr 2 2020

Hi All,

While connecting as SYS user through TNS Alias, I get "ORA-01031: insufficient privileges" error, when I issue give "sqlplus / as sysdba", it works fine.

[oracle@rac2 admin]$ sqlplus sys@testdb as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Wed Apr 1 18:11:44 2020

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Enter password:

ERROR:

ORA-01031: insufficient privileges

When I connect to other users through TNS Alias, it works fine,I face this issue only with SYS account. I get this issue in SQL Developer as well only for SYS user, here I'm using the BASIC connect method, giving the host name, port and SID, not through TNS Alias, still get the "ORA-01031" error.

[oracle@rac2 admin]$ sqlplus test/test@testdb

SQL*Plus: Release 11.2.0.1.0 Production on Wed Apr 1 18:15:07 2020

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, Real Application Clusters, OLAP, Data Mining

and Real Application Testing options

TEST@testdb >

In Linux, the "oracle" user is already a part of "dba" group, could you please let me know, what could be the issue and what I'm missing? Thank you so much!!

[oracle@rac2 etc]$ groups

oinstall dba asmdba asmadmin

[oracle@rac2 etc]$ id

uid=500(oracle) gid=501(oinstall) groups=500(dba),501(oinstall),502(asmdba),503(asmadmin)

This post has been answered by Tubby on Apr 1 2020
Jump to Answer

Comments

Post Details

Added on Apr 1 2020
3 comments
98 views