I have two oracle test nodes. On node 2 as root I am able to connect without credential with the command,
su - oraabc -c "/oracle/ABC/12102/bin/sqlplus / as sysdba"
Output:
SQL*Plus: Release 12.1.0.2.0 Production on Tue Jan 15 12:18:20 2019
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL>
I'm trying to connect from node 1. Passwordless login is already established using keys between node 1 and 2.
Command:
ssh root@node2 su - oraabc -c "/oracle/ABC/12102/bin/sqlplus / as sysdba"
But it prompts for credentials,
Output:
SQL*Plus: Release 12.1.0.2.0 Production on Tue Jan 15 12:23:07 2019
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Enter user-name:
Why does it prompt for credentials if oraabc is already a part of the dba group? Is there a configuration missing in order enable remote connection as oracle user without credentials?