在win2008中的oracle11g下 sqlnet.ora文件配置有感

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 = (NONE)
SQLNET.AUTHENTICATION_SERVICES = (NTS)

注意NONE和NTS的区别

这个认证方法是WINDOWS系列操作系统特有的,UNIX/LINUX不需要,或者根本不能设为NTS,

1.SQLNET.AUTHENTICATION_SERVICES =(NTS)       --基于操作系统验证

2.SQLNET.AUTHENTICATION_SERVICES =(NONE)      --基于Oraclepassword文件验证

3.SQLNET.AUTHENTICATION_SERVICES =(NONE,NTS)  --基于操作系统验证(前后顺序颠倒也一样)

4.用(NONE)数据库身份验证以后。system用户被禁止使用RMAN了。仅仅有拥有数据库最高权限的sys用户,才干登陆RMAN,并且必须是输入password的方式登陆

在实际测试中:

NONE模式

本地:

C:\Users\Administrator>sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on 星期五 6月 22 10:52:15 2018

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

SQL> conn sys/oracle as sysdba
已连接。
SQL> exit
从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断
开

C:\Users\Administrator>rman target /

恢复管理器: Release 11.2.0.1.0 - Production on 星期五 6月 22 10:52:51 2018

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

RMAN-00571: ==========================================
RMAN-00569: ==== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ========================================
RMAN-00554: 内部恢复管理器程序包初始化失败
RMAN-04005: 目标数据库中存在错误:
ORA-01031: 权限不足

C:\Users\Administrator>rman
RMAN> connect target sys/oracle

连接到目标数据库: ORCL (DBID=1484815994)

远程

C:\WINDOWS\system32>sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 6月 22 10:55:07 2018

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL> conn sys/oracle@orcl as sysdba
已连接。

C:\WINDOWS\system32>rman target sys/oracle@orcl

恢复管理器: Release 10.2.0.1.0 - Production on 星期五 6月 22 10:56:01 2018

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

连接到目标数据库: ORCL (DBID=1484815994)

NTS模式

本地


C:\Users\Administrator>sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on 星期五 6月 22 11:02:03 2018

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

SQL> conn sys/oracle as sysdba
已连接。

C:\Users\Administrator>rman target /

恢复管理器: Release 11.2.0.1.0 - Production on 星期五 6月 22 11:03:14 2018

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

连接到目标数据库: ORCL (DBID=1484815994)

RMAN> exit


恢复管理器完成。

C:\Users\Administrator>rman

恢复管理器: Release 11.2.0.1.0 - Production on 星期五 6月 22 11:03:21 2018

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

RMAN> connect target

连接到目标数据库: ORCL (DBID=1484815994)

远程

C:\WINDOWS\system32>sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 6月 22 11:01:22 2018

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL> conn sys/oracle@orcl
ERROR:
ORA-12638: 身份证明检索失败

C:\WINDOWS\system32>rman target sys/oracle@orcl

恢复管理器: Release 10.2.0.1.0 - Production on 星期五 6月 22 11:00:37 2018

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

RMAN-00571: =================================
RMAN-00569: == ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ==========================================
RMAN-00554: 内部恢复管理器程序包初始化失败
RMAN-04005: 目标数据库中存在错误:
ORA-12638: 身份证明检索失败



你可能感兴趣的:(oracle,oracle,rman,sqlnet.ora)