I want to know one thing. In this,SQLPLUS /@%DBNAME% -What credentials (username and password) does oracle takes to logon Oracle DB.
the currently logged on OS user.
And if you are connecting to a database on the same machine (as implied by connecting as an os authenticated user) you don't need the "@%DBNAME%". All you need to do is make sure ORACLE_SID is set correctly.