12
返回列表 发新帖
楼主: Rick1998

为什么我用密码文件验证,不用密码也可以CONNECT

[复制链接]
论坛徽章:
3
ITPUB元老
日期:2005-02-28 12:57:00授权会员
日期:2005-10-30 17:05:33BLOG每日发帖之星
日期:2009-05-30 01:01:03
11#
发表于 2001-11-14 17:25 | 只看该作者
关于更改internal 的密码Meta上如此解释:

Resetting/changing the password of the user internal:
   ----------------------------------------------------

There are 3 common ways to change to password of internal:

1) Recreate the passwordfile (Read Warning 1 & 2):

You can recreate the password file using the ORAPWDxx command by which you can
specify the password for internal.  Before running this command to create the
new password file, make sure to delete the old password file.  Otherwise, the
ORAPWDxx utility will give an error message.

     D:\> ORAPWD file=D:\ORANT\DATABASE\PWDORCL.ORA password=<password>
          entries=5

     Verify if the new file has been created.

The passwordfile might be hidden. Hidden files can be seen:
on the DOS-prompt by type :
        c:\> dir /A:H
in Windows NT explorer :
        use the Windows Explorer View/Option 'show all files' to see the
        file.


Remark:
-------

If the value of the "remote_login_passwordfile" parameter in the "init.ora" is
EXCLUSIVE then you must shutdown your database before recreating the password
file.

Failure to do so will result in being unable to connect as internal as long as
you don't stop the database by for example stopping services.

2) Alter the password of the user 'SYS' (Read Warning 1)

  a) Verify the values of the "remote_login_passwordfile" in the
     "init.ora" parameter file.

If its values is exclusive continue with e) if Shared continue with b)

  b) Stop the database if it is started

  c) Change the "remote_login_passwordfile" in the Init<SID>.ora to  
       "exclusive".

  d) Startup the database.

  e) Alter the user SYS to a new password, now also the password for
     internal.

3) Use ORADIMxx (Read Warning 2)

You could drop the instance and recreate it with a new password.

   Suppose the SID in question is ORCL:
       
   a) You shutdown the database and stop the services.

   b) D:\> ORADIMxx -delete -sid ORCL
  
   c) D:\> ORADIMxx -new -sid ORCL -intpwd <new password> -startmode
            auto -pfile D:\ORANT\DATABASE\INITORCL.ORA

-----------
  WARNING
-----------

1) (Methods 1 and 2) Changing the password of the internal might prevent
   your database from starting up automatically in Oracle7 7.3.x and Oracle8
   8.0.x. . When you create your instance with the instance manager and
   configure it to startup automatically.

    (ORADIMxx -new -sid ORCL -intpwd ORACLE -startmode AUTO -pfile
            D:\ORANT\DATABASE\INITORCL.ORA),

a file <ORACLE_HOME>\DATABASE\strt<sid>.cmd is generated. That file contains
(hardcoded) the password of internal. If the password in there does not match
the actual password of internal, the instance will fail to startup
automatically.

When you change the password of internal in one of the above described ways and
if you still want your database to start up automatically, you need to adjust
the password manually.

2) Methods 1 and 3 can result in loosing all previously registered sysdba
   and sysoper-users. If you had granted specific users those privileges again,
   you will need to grant it again.


g) Updating Windows NT registry when password file moved or renamed
   ----------------------------------------------------------------

You either renamed or moved your password file. The Registry has an
entry to denote the password file.  When the file is moved or renamed
the Registry must be updated.


Solution Description:
=====================

CAUTION:  
Editing the REGISTRY could cause severe damage to Windows NT.
If you are not familiar with the Registry, please consult with your System
Administrator.  A damaged registry could require a complete reload of the NT
Operating System.

1.  Run REGEDT32.EXE to open the Registry.

2.  Click on the HKEY_LOCAL_MACHINE on Local Machine hive.

3.  Click on the SOFTWARE folder.

4.  Click on the ORACLE folder.

If the database is created in the default home, skipt step 5.

5.  If the database is not created in the default home, but in HomeXX
    (XX is a number from 1 to the number of homes installed on your Server)
    Click on the HomeXX folder.

6.  Update or Create ORA_<SID>_PWFILE (where <SID> is the database SID).
    String with the correct name and path of the password file.
After changing the registry entry, the OracleService<SID> service will
need to be stopped and restarted for the change to take affect.


Solution Explanation:
=====================

The HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\ORA_<SID>_PWFILE or
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HomeXX\ORA_<SID>_PWFILE
registry entry is used to store the name and location of the password file.

使用道具 举报

回复
论坛徽章:
3
ITPUB元老
日期:2005-02-28 12:57:00授权会员
日期:2005-10-30 17:05:33会员2006贡献徽章
日期:2006-04-17 13:46:34
12#
发表于 2001-11-22 21:48 | 只看该作者
如果你登陆操作系统时用的用户就是建立ORACLE数据库时使用的操作系统用户,就不用输PASSWORD

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表