給新加的用戶分配sysdba權限,提示:
ORA-01994: GRANT failed: password file missing or disabled
1、查看密碼文件是否存在:
ho ls $ORACLE_HOME/dbs/orapw*,文件存在
2、查看當前數據庫:select name from v$database;
當前數據庫是ORCL,非orcl
3、創建ORCL密碼文件:
ho orapwd file=/data/app/oracle/product/11.2.0//dbs/orapwORCL password=oracle entries=10
4、重新分配權限:
grant create session to LU;