os authentication issue [message #523184] |
Fri, 16 September 2011 01:13 |
andy huang
Messages: 498 Registered: July 2011
|
Senior Member |
|
|
Dear all,
How can i use os authentication to login db?
SQL> connect / as sysdba
ERROR:
ORA-01031: insufficient privileges
sqlnet.ora text:
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
#SQLNET.AUTHENTICATION_SERVICES = (NTS)
SQLNET.INBOUND_CONNECT_TIMEOUT=1
|
|
|
|
|
|
Re: os authentication issue [message #523199 is a reply to message #523197] |
Fri, 16 September 2011 03:45 |
andy huang
Messages: 498 Registered: July 2011
|
Senior Member |
|
|
hi,
I have checked my user belong to ORA_DBA group.
C:\Documents and Settings\huangxl>set oracle_home=D:\oracle\product\11.2.0\dbhome_1\
C:\Documents and Settings\huangxl>set oracle_sid=orcl
C:\Documents and Settings\huangxl>sqlplus /nolog
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> connect / as sysdba
ERROR:
ORA-01031: insufficient privileges
|
|
|
|
Re: os authentication issue [message #523443 is a reply to message #523229] |
Sun, 18 September 2011 20:05 |
andy huang
Messages: 498 Registered: July 2011
|
Senior Member |
|
|
hi,
"D:\oracle\product\11.2.0\dbhome_1\network\admin\sqlnet.ora"
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
#SQLNET.AUTHENTICATION_SERVICES = (NTS)
SQLNET.INBOUND_CONNECT_TIMEOUT=1
|
|
|
|
Re: os authentication issue [message #523459 is a reply to message #523456] |
Mon, 19 September 2011 00:42 |
andy huang
Messages: 498 Registered: July 2011
|
Senior Member |
|
|
hi,
C:\Documents and Settings\huangxl>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users.WINDOWS
APPDATA=C:\Documents and Settings\huangxl\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=HUANGXUELIANG
ComSpec=C:\WINDOWS\system32\cmd.exe
DSPackagePath=E:\Ascential\DataStage\Package
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\huangxl
JAVA_HOME=C:\Program Files\Java\jdk1.6.0
LOGONSERVER=\\HUANGXUELIANG
NUMBER_OF_PROCESSORS=2
ORACLE_HOME=D:\oracle\product\11.2.0\dbhome_1
ORACLE_UNQNAME=orcl
OS=Windows_NT
Path=C:\Program Files\Oracle\jre\1.1.8\bin;C:\Program Files\PC Connectivity Solution\;D:\oracle\product\11.2.0\dbhome_1\bin;C:\Pyt
hon26\Scripts;C:\Python26\;D:\oracle\oracle\product\11.2.0\dbhome_1\bin;C:\Program Files\Java\jdk1.6.0\bin;C:\WINDOWS\system32;C:\
WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;C:\P
rogram Files\IDM Computer Solutions\UltraEdit-32;;C:\Program Files\SinoVoice\jTTS 5.0 Desktop\Bin;C:\Program Files\Java\jdk1.6.0\b
in;%APPDATA%\Python\Scripts;D:\oracle\product\10.1.0;C:\Program Files\IDM Computer Solutions\UltraCompare;C:\Program Files\OpenVPN
\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.py;.pyw
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0f0d
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\huangxl\LOCALS~1\Temp
TMP=C:\DOCUME~1\huangxl\LOCALS~1\Temp
USERDOMAIN=HUANGXUELIANG
USERNAME=huangxl
USERPROFILE=C:\Documents and Settings\huangxl
windir=C:\WINDOWS
|
|
|
Re: os authentication issue [message #523460 is a reply to message #523459] |
Mon, 19 September 2011 00:44 |
andy huang
Messages: 498 Registered: July 2011
|
Senior Member |
|
|
hi,
C:\Documents and Settings\huangxl>type D:\oracle\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
#SQLNET.AUTHENTICATION_SERVICES = (NTS)
SQLNET.INBOUND_CONNECT_TIMEOUT=1
C:\Documents and Settings\huangxl>
|
|
|
|
Re: os authentication issue [message #523468 is a reply to message #523461] |
Mon, 19 September 2011 01:23 |
andy huang
Messages: 498 Registered: July 2011
|
Senior Member |
|
|
hi,
C:\Documents and Settings\huangxl>set oracle_sid=orcl
C:\Documents and Settings\huangxl>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users.WINDOWS
APPDATA=C:\Documents and Settings\huangxl\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=HUANGXUELIANG
ComSpec=C:\WINDOWS\system32\cmd.exe
DSPackagePath=E:\Ascential\DataStage\Package
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\huangxl
JAVA_HOME=C:\Program Files\Java\jdk1.6.0
LOGONSERVER=\\HUANGXUELIANG
NUMBER_OF_PROCESSORS=2
ORACLE_HOME=D:\oracle\product\11.2.0\dbhome_1
oracle_sid=orcl
ORACLE_UNQNAME=orcl
OS=Windows_NT
Path=C:\Program Files\Oracle\jre\1.1.8\bin;C:\Program Files\PC Connectivity Solution\;D:\oracle\product\11.2.0\dbhome_1\bin;C:\Py
hon26\Scripts;C:\Python26\;D:\oracle\oracle\product\11.2.0\dbhome_1\bin;C:\Program Files\Java\jdk1.6.0\bin;C:\WINDOWS\system32;C:
WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;C:\
rogram Files\IDM Computer Solutions\UltraEdit-32;;C:\Program Files\SinoVoice\jTTS 5.0 Desktop\Bin;C:\Program Files\Java\jdk1.6.0\
in;%APPDATA%\Python\Scripts;D:\oracle\product\10.1.0;C:\Program Files\IDM Computer Solutions\UltraCompare;C:\Program Files\OpenVP
\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.py;.pyw
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0f0d
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\huangxl\LOCALS~1\Temp
TMP=C:\DOCUME~1\huangxl\LOCALS~1\Temp
USERDOMAIN=HUANGXUELIANG
USERNAME=huangxl
USERPROFILE=C:\Documents and Settings\huangxl
windir=C:\WINDOWS
C:\Documents and Settings\huangxl>sqlplus /nolog
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> connect / as sysdba
ERROR:
ORA-01031: insufficient privileges
SQL>
[Updated on: Mon, 19 September 2011 01:24] Report message to a moderator
|
|
|
|
Re: os authentication issue [message #524192 is a reply to message #523485] |
Thu, 22 September 2011 03:24 |
andy huang
Messages: 498 Registered: July 2011
|
Senior Member |
|
|
hi,
I change the variable to upper case,the problem is also apper.
C:\Documents and Settings\huangxl>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users.WINDOWS
APPDATA=C:\Documents and Settings\huangxl\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=HUANGXUELIANG
ComSpec=C:\WINDOWS\system32\cmd.exe
DSPackagePath=E:\Ascential\DataStage\Package
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\huangxl
JAVA_HOME=C:\Program Files\Java\jdk1.6.0
LOGONSERVER=\\HUANGXUELIANG
NUMBER_OF_PROCESSORS=2
ORACLE_HOME=d:\oracle\product\11.2.0\dbhome_1
ORACLE_SID=ORCL
ORACLE_UNQNAME=ORCL
OS=Windows_NT
Path=C:\Program Files\Oracle\jre\1.1.8\bin;C:\Program Files\PC Connectivity Solution\;D:\oracle\product\11.2.0\dbhome_1\bin;C:\Pyt
hon26\Scripts;C:\Python26\;D:\oracle\oracle\product\11.2.0\dbhome_1\bin;C:\Program Files\Java\jdk1.6.0\bin;C:\WINDOWS\system32;C:\
WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;C:\P
rogram Files\IDM Computer Solutions\UltraEdit-32;;C:\Program Files\SinoVoice\jTTS 5.0 Desktop\Bin;C:\Program Files\Java\jdk1.6.0\b
in;%APPDATA%\Python\Scripts;D:\oracle\product\10.1.0;C:\Program Files\IDM Computer Solutions\UltraCompare;C:\Program Files\OpenVPN
\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.py;.pyw
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0f0d
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\huangxl\LOCALS~1\Temp
TMP=C:\DOCUME~1\huangxl\LOCALS~1\Temp
USERDOMAIN=HUANGXUELIANG
USERNAME=huangxl
USERPROFILE=C:\Documents and Settings\huangxl
windir=C:\WINDOWS
C:\Documents and Settings\huangxl>sqlplus /nolog
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> connect / as sysdba
ERROR:
ORA-01031: insufficient privileges
|
|
|
|
Re: os authentication issue [message #524514 is a reply to message #524214] |
Sat, 24 September 2011 09:05 |
andy huang
Messages: 498 Registered: July 2011
|
Senior Member |
|
|
hi,
I Uncomment "SQLNET.AUTHENTICATION_SERVICES = (NTS)",it success,why?
C:\Documents and Settings\huangxl>type D:\oracle\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES = (NTS)
SQLNET.INBOUND_CONNECT_TIMEOUT=1
SQL> connect / as sysdba
connected.
|
|
|
|
|
|