3

'hello

I am trying to login locally installed oracle 11g database from my windows machine using

system / as sysdba 

Its asking for username and password , but In my knowledge its using default windows account and will login without any prompt . why its prompting here and the current account is indeed a memeber of oradba group .

2) I tried to connect using

conn /as sysdba

its logging inside sqlplus without any prompt

Whats happening in both cases , can someone give me a quick heads up ?

thanks

Update 1

enter image description here

Saikat
  • 14,222
  • 20
  • 104
  • 125
Bodhi
  • 548
  • 4
  • 14
  • 26

3 Answers3

3

connecting by $ sqlplus / as sysdba or SQL> conn / as sysdba mean connecting to the SYS schema implicitly.

That's the most privileged schema of Oracle, and because of this the Operating System of the machine where Oracle installed, trusts and accepts the main administration schema and no needs a password and a username.

Barbaros Özhan
  • 59,113
  • 10
  • 31
  • 55
1

On windows for / AS SYSDBA you need

  • the user to be part of the dba group, check using NET USERS YOUR_NAME_HERE
  • sqlnet.ora contains the line SQLNET.AUTHENTICATION_SERVICES = (NTS)
  • the dos session is started "AS ADMINISTRATOR"

The last one catches me out all the time.

0

I tried using the same creating sqlnet.ora in the below file location as follows, and it worked. hope this helps!

file location: /u01/app/oracle/product/12.1.0.2/dbhome_1/network/admin

vi sqlnet.ora

NAMES.DIRECTORY_PATH=(ezconnect)

PasanJ
  • 1
  • 2
  • this environment is on Oracle Linux Server release 7.9 NAME="Oracle Linux Server" VERSION="7.9" – PasanJ May 19 '22 at 11:11