Oracle密码文件学习心得
创建Oracle密码文件的命令
orapwd file=<> password=<> entries=最大数目
这里的file命名规则在unix/linux下 orapw<ORACLE_SID>,在windows下为 pwd<SID>.ora 具体资料看下面的描述(这是pub中一个网友的总结)
1. unix 环境:
查了Administrator‘s Reference 10g Release 2 (10.2) for UNIX-Based Operating Systems.
1. Log in as the Oracle software owner. (以Oracle管理员身份登入)
2. Use the orapwd utility to create the password file as follows(使用orapwd功能创建密码文件): $ $ORACLE_HOME/bin/orapwd file=filename password=password entries=max_users……
filename The name of the file in which password information is written(filename指密码信息保存文件的文件名)
The name of the file must be orapwsid, and you must supply the full path name. Its contents are encrypted. Typically, the password file is created in the $ORACLE_HOME/dbs directory.(文件名必须为orapwsid,并需要提供完整路径。内容是加密的。通常情况下,密码文件被创建在$ORACLE_HOME/dbs路径下。)
请注意黑体字, 所以unix环境中, password file 一定是要用 orapw<SID>, 没有例外。
2. windows 环境:
查了Platform. Guide 10g Release 2 (10.2) for Microsoft Windows (32-Bit) (没查64-bit) To create and populate a password file:
(1). Create a password file with the Password Utility:
C:> orapwd FILE=PWDsid.ora PASSWORD=password ENTRIES=max_users
where
| FILE specifies the password filename.
| SID identifies the database instance.
| PASSWORD sets the password for account SYS.
| ENTRIES sets maximum number of entries in password file. This corresponds to maximum
number of distinct users allowed to connect to the database simultaneously with either the SYSDBA or the SYSOPER DBA privilege.
(2). Set initialization parameter file parameter REMOTE_LOGIN_PASSWORDFILE to exclusive, shared, or none.
In search of the password file, Oracle Database looks in the registry for the value of parameter ORA_SID_PWFILE. If no value is specified, then it looks in the registry for the
value of parameter ORA_PWFILE, which points to a file containing usernames,
passwords, and privileges. If that is not set, then it uses the default:
ORACLE_BASEORACLE_HOMEDATABASEPWDsid.ORA.
The default value is shared.
请注意黑体字, windows 环境中, 很大的部分是基于 registry 中变量 ora_sid_pwfile 或者
ora_pwfile 的设置, 缺省的值, 正如paulyibinyi兄弟指出的, 是 pwd<SID>.ora (unix中是没有这个。ora后缀的)。
二、在windows下对于connect /as sysdba及其它用户可以不用密码就能登录的问题
1.这是因为oracle采用了 OS认证的方式,具体的可以查看 sqlnet.ora具体同容如下
SQLNET.AUTHENTICATION_SERVICES= (NTS)
将其改成SQLNET.AUTHENTICATION_SERVICES= (NONE)
这样就是oracle认证方式了
2.因为用的OS认证方式,可以在操作系统->控制面版->计算机管理->用户 将当前用户的属性组 ORA_DBA去掉,这时如果没有用户名及密码则不可以。
如下:
SQL> connect /as sysdba ERROR:ORA-01031: insufficient privileges
SQL> connect sys/oracle as sysdba
已连接。
三、利用alter user identified by ……来修改密码alter user sys identified by abc一下,就连数据库中的密码和密码文件中的密码一起改成abc了;
四、如果Oracle密码文件丢失了如何办?
利用 orapwd重新创建一个就可以了。
Oracle 学习心得
程序组说明:
数据库逻辑结构:
建立数据库实例:
1)选择开始 〉程序 〉Oracle - HOME_NAME > Configuration and Migration Tools > Database Configuration Assistant
2)按步骤创建新的资料库
删除Oracle实例(含侦听服务及数据库实例):
1)打开DOS窗口
2)在窗口中输入:Oradim –delete –sid <sidname>
DOS中 Orcle9i服务的启动与停止&常用DOS命令
一、启动oracle服务有三种方式:
1 从控制面板
2 使用MS-DOS命令
3 通过Oracle Administration Assistant for WindowsNT
? 通过控制面板启动oracle服务
1)选择开始 > 控制面板 〉管理工具 --〉服务
2)找到你所要启动的oracle服务,单击启动
? 通过MS-DOS命令启动oracle服务
1)打开DOS窗口
2)在窗口中输入:NET START OracleServiceName
? 通过Oracle Administration Assistant for WindowsNT启动oracle服务
1)选择开始 〉程序 〉Oracle - HOME_NAME > Configuration and Migration Tools > Oracle Administration Assistant for Windows NT.
2)找到并右键单击oracle sid
3)选择启动
二、关闭oracle服务同样也有三种方式:
1 从控制面板
2 使用MS-DOS命令
3 通过Oracle Administration Assistant for WindowsNT
? 通过控制面板关闭oracle服务
1)选择开始 > 控制面板 〉管理工具 --〉服务
2)找到你所要启动的oracle服务,单击停止
? 通过MS-DOS命令关闭oracle服务
1)打开DOS窗口
2)在窗口中输入:NET STOP OracleServiceName
? 通过Oracle Administration Assistant for WindowsNT关闭oracle服务
1)选择开始 〉程序 〉Oracle - HOME_NAME > Configuration and Migration Tools > Oracle Administration Assistant for Windows NT.
2)找到并右键单击oracle sid
3)选择停止
三、快速启动Sqlplus的方式:
在开始菜单下,单击"运行"输入:
sqlplusw /nolog 或者sqlplusw user/password
启动/关闭数据库:startup/shutdown
启动/关闭侦听器:lsnrctl start /lsnrctl stop
个人总结学习Dreamweaver的这一个学期张老师讲了Dreamweaver知识和基本的PHP知识让我受益匪浅自己能够做一个小型…
Dreamweaver网页制作技巧心得体会熟悉网页设计的网友就知道,调用Style的方法很多,我们可以单击鼠标右键选择Custon…
Dreamweaver课程总结Web静态页面与浏览器基础知识:web静态页面:web静态页面是指在浏览器显示出来的一系列的文字和各…
第一章网页设计基础一TCPIP协议传输控制协议互联网络协议TCP和IP可以单独使用但经常是协同工作互相补充简单地说IP提供了数据传…
实验报告课程名称指导教师学院专业班级学生姓名学号一实验目的和要求1熟悉Dreamweaver操作界面文档和本地站点的创建2练习使用…
创建Oracle密码文件的命令orapwdfileltgtpasswordltgtentries最大数目这里的file命名规则在u…
1oracle登录方式答1进入dos窗口WINDOWRcmd2sqlplusnolog3connectsyssysassysdba…
Oracle学习体会王岩20xx年为落实重点开展完善业务系统加强统计数据汇总分析的工作要求根据协会安排我由政策信息部调整到统计部在…
Oracle性能优化学习心得一优化总的原则1查看系统的使用情况2查看SGA分配情况结合系统具体情况进行分析3表的设计分析4SQL语…
注问题处以问开头createindex索引名on表名字段名ASC添加索引select命令的标准格式如下SELECTselectli…
学习Oracle数据库的心得体会对于学习Oracle数据库,应该先要了解Oracle的框架。它有物理结构(由控制文件、数据文件、重…