首页 测试 体会 查看内容

用户验证-OS认证和口令认证测试

2014-4-24 22:33| 发布者: tianzc| 查看: 615| 评论: 0

摘要:   验证用户  验证指的是对要使用数据、资源或应用程序的用户、设备或其它实体的身份进行验证。通过对该身份进行验证可建立一种信任关系,从而可进一步执行交互。通过验证可将访问和操作与特定的身份联系起来,从 ...
[oracle@tygeradmin]$ pwd/u01/app/oracle/product/10.2.0/db_1/network/admin[oracle@tyger admin]$ lslistener.ora  samples  shrept.lst  sqlnet.ora  tnsnames.ora[oracle@tyger admin]$ vim sqlnet.oraNAME.DIRECTORY_PATH=(tnsnames,ezconnect)SQLNET.AUTHENTICATION_SERVICES=(BEQ)[oracle@tyger admin]$ lsnrctl statusLSNRCTL for Linux: Version 10.2.0.1.0 - Production on 28-FEB-2014 09:52:19Copyright (c) 1991, 2005, Oracle.  All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=tyger )(PORT=1521)))STATUS of the LISTENER------------------------Alias                     LISTENERVersion                   TNSLSNR for Linux: Version 10.2.0.1.0 - ProductionStart Date                28-FEB-2014 09:48:44Uptime                    0 days 0 hr. 3 min. 34 secTrace Level               offSecurity                  ON: Local OS AuthenticationSNMP                      OFFListener Parameter File   /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.oraListener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener.logListening Endpoints Summary...(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=tyger )(PORT=1521)))(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))Services Summary...Service "ORCL" has 1 instance(s).Instance "ORCL", status READY, has 1 handler(s) for this service...Service "ORCLXDB" has 1 instance(s).Instance "ORCL", status READY, has 1 handler(s) for this service...Service "ORCL_XPT" has 1 instance(s).Instance "ORCL", status READY, has 1 handler(s) for this service...Service "PLSExtProc" has 1 instance(s).Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...The command completed successfully[oracle@whgg admin]$ sqlplus / as sysdbaSQL*Plus: Release 10.2.0.1.0 - Production on Fri Feb 28 09:52:50 2014Copyright (c) 1982, 2005, Oracle.  All rights reserved.Connected to:Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - ProductionWith the Partitioning, OLAP and Data Mining optionsSYS@ORCL>exitDisconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - ProductionWith the Partitioning, OLAP and Data Mining options[oracle@tyger admin]$ cd /u01/app/oracle/product/10.2.0/db_1/dbs/[oracle@tyger dbs]$ lshc_ORCL.dat  initdw.ora  init.ora  lkORCL  orapwORCL  spfileORCL.ora[oracle@tyger dbs]$ sqlplus sys/oracle@ORCL as sysdbaSQL*Plus: Release 10.2.0.1.0 - Production on Fri Feb 28 09:53:51 2014Copyright (c) 1982, 2005, Oracle.  All rights reserved.Connected to:Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - ProductionWith the Partitioning, OLAP and Data Mining optionsSYS@ORCL>  第二种情况:  参数SQLNET.AUTHENTICATION_SERVICES设置为 all  -----------------------屏蔽口令认证都启用操作系统认证[oracle@tyger admin]$ pwd/u01/app/oracle/product/10.2.0/db_1/network/admin[oracle@tyger admin]$ vim sqlnet.oraNAME.DIRECTORY_PATH=(tnsnames,ezconnect)SQLNET.AUTHENTICATION_SERVICES=(ALL)[oracle@tyger admin]$ sqlplus / as sysdbaSQL*Plus: Release 10.2.0.1.0 - Production on Fri Feb 28 09:59:20 2014Copyright (c) 1982, 2005, Oracle.  All rights reserved.Connected to:Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - ProductionWith the Partitioning, OLAP and Data Mining optionsSYS@ORCL>exitDisconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - ProductionWith the Partitioning, OLAP and Data Mining options[oracle@tyger admin]$ sqlplus sys/oracle@ORCL as sysdbaSQL*Plus: Release 10.2.0.1.0 - Production on Fri Feb 28 09:59:39 2014Copyright (c) 1982, 2005, Oracle.  All rights reserved.ERROR:ORA-12641: Authentication service failed to initializeEnter user-name:
  SQLNET.AUTHENTICATION_SERVICES参数在SQLNET.ORA(位于$ORACLE_HOME/network/admin目录中) 文件中对于不同的操作系统SQLNET.AUTHENTICATION_SERVICES的取值会有些不一样,通常我们会用到下面的一些设置值:  linux下: none  all nts 不设置或BEQ 四种情况  第一种情况:  参数SQLNET.AUTHENTICATION_SERVICES不设置或设置为BEQ---------口令认证和操作系统认证都启动

鲜花

握手

雷人

路过

鸡蛋

扫一扫关注最新动态

毒镜头:老镜头、摄影器材资料库、老镜头样片、摄影
爱评测 aipingce.com  
返回顶部