Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选

首页 / 数据库 / MySQL / Oracle赋予用户sysdba权限

以SYS用户进入Oracle,SQL> grant sysdba to username;grant sysdba to username*
ERROR at line 1:
ORA-01994: GRANT failed: password file missing or disabled首先,把初始化参数REMOTE_LOGIN_PASSWORDFILE的值改成EXCLUSIVE如果还是有问题,可能是缺少密码文件,用orapwd创建密码文件$ orapwd -h
Usage: orapwd file=<fname> password=<password> entries=<users> where
file - name of password file (mand),
password - password for SYS (mand),
entries - maximum number of distinct DBA and OPERs (opt),
There are no spaces around the equal-to (=) character.这个命令很简单,密码文件一般放在$ORACLE_HOME/dbs目录下,命名规则为orapd+SID,orapwd FILE="/db/oracle/product/10.2.0/db_1/dbs/orapw+SID"  PASSWORD=oracle   ENTRIES=5  FORCE=y然后再执行SQL> grant sysdba to username;Grant succeeded.检查SQL> select * from v$pwfile_users;USERNAME                       SYSDB SYSOP
------------------------------ ----- -----
SYS                            TRUE  TRUE
******                          TRUE  FALSESYSDB那一栏是TRUE就对了然后就可以as sysdba连接了Oracle更改数据文件位置redhat5.5测试环境中使用udev配置raw设备相关资讯      Oracle基础教程 
  • Oracle块编程返回结果集详解  (11/10/2013 10:45:58)
  • Oracle基础教程之设置系统全局区  (08/22/2013 14:24:00)
  • Oracle基础教程知识点总结  (06/18/2013 07:43:32)
  • Oracle基础教程之tkprof程序详解  (10/22/2013 11:49:50)
  • Oracle基础教程之sqlplus汉字乱码  (07/18/2013 16:30:00)
  • Oracle 管理之 Linux 网络基础  (02/16/2013 18:37:35)
本文评论 查看全部评论 (0)
表情: 姓名: 字数