OS Authentication
A guide to configuring OS authentication on UNIX/Linux and Windows servers.
oracle miscconfigurationintermediate
by OracleDba
28 views
A guide to configuring OS authentication on UNIX/Linux and Windows servers.
12345678910
sqlplus /
sqlplus /@service
# useradd tim_hall
# passwd tim_hall
Changing password for tim_hall.
New password:
Retype new password:
#1234567891011121314151617181920212223
# su - tim_hall
$ export ORACLE_HOME=/u01/app/oracle/product/10.1.0/db_1
$ export PATH=$PATH:$ORACLE_HOME/bin
$ export ORACLE_SID=DEV1
$ sqlplus /
SQL*Plus: Release 10.1.0.3.0 - Production on Wed Jun 7 08:43:30 2006
Copyright (c) 1982, 2004, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
C:\> set ORACLE_SID=DB10G
C:\> sqlplus /
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Oct 17 11:17:55 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied1234567891011121314
SQL> SHOW PARAMETER os_authent_prefix
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
os_authent_prefix string ops$
SQL>
-- UNIX
CREATE USER ops$tim_hall IDENTIFIED EXTERNALLY;
GRANT CREATE SESSION TO ops$tim_hall;
-- Windows
CREATE USER "OPS$ORACLE-BASE.COM\TIM_HALL" IDENTIFIED EXTERNALLY;
GRANT CREATE SESSION TO "OPS$ORACLE-BASE.COM\TIM_HALL";123456789101112131415161718192021222324252627282930313233
SQLNET.AUTHENTICATION_SERVICES= (NTS)
su - tim_hall
export ORACLE_HOME=/u01/app/oracle/product/10.1.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_SID=DEV1
sqlplus /
SQL*Plus: Release 10.1.0.3.0 - Production on Wed Jun 7 08:41:15 2006
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining options
SQL>
C:\> set ORACLE_SID=DB10G
C:\> sqlplus /
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Oct 17 11:47:01 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL>1234
create pfile='/tmp/pfile.txt' from spfile;
shutdown immediate;
os_authent_prefix=''123456789
sqlplus / as sysdba
create spfile from pfile='/tmp/pfile.txt';
startup
show parameter os_authent_prefix
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
os_authent_prefix string
SQL>Please to add comments
No comments yet. Be the first to comment!