sys使用者執行 grant授權提示ORA-01031: insufficient privileges
在實驗環境下想要給使用者HR賦予dba許可權,結果執行grant命令時出現ORA-01031: insufficient privileges
解決問題很簡單,重新建立一次密碼檔案。下面是處理過程留作備忘。
SYS@snow > alter user hr identified by hr;
alter user hr identified by hr
*
ERROR at line 1:
ORA-01031: insufficient privileges
SYS@snow > exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
[oracle@snowlab ~]$
[oracle@snowlab ~]$ cd $ORACLE_HOME/dbs
[oracle@snowlab dbs]$ ll
total 48
-rw-rw---- 1 oracle oinstall 1544 Apr 24 14:46 hc_snow.dat
-rw-r--r-- 1 oracle oinstall 12920 May 3 2001 initdw.ora
-rw-r----- 1 oracle oinstall 8385 Sep 11 1998 init.ora
-rw-rw---- 1 oracle oinstall 24 Apr 24 10:54 lkSNOW
-rw-r----- 1 oracle oinstall 1536 Apr 24 14:03 orapwsnow
-rw-r----- 1 oracle oinstall 1536 Apr 24 13:32 orapwsnow.1429896722954
-rw-r----- 1 oracle oinstall 3584 Apr 24 14:46 spfilesnow.ora
重新建立一次密碼檔案
[oracle@snowlab dbs]$ orapwd file=orapwdsnow password=oracle entries=30 force=y
[oracle@snowlab dbs]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Fri Apr 24 14:51:08 2015
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
再次執行授權成功
SYS@snow > grant dba to hr;
Grant succeeded.
SYS@snow >
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29047826/viewspace-1606895/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- sys使用者遠端登入報ORA-01031 insufficient privileges
- linux環境下sqlplus sys/sys@ORCL as sysdba報錯 ORA-01031: insufficient privilegesLinuxSQL
- [20240826]奇怪ORA-01031 insufficient privileges報錯.txt
- oracle rac dg庫報錯ORA-01031: insufficient privilegesOracle
- ORA-01031: 資料庫恢復時的insufficient privileges錯誤QS資料庫
- mysql 給了使用者所有許可權ALL PRIVILEGES,但是該使用者沒有grant許可權MySql
- GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘root‘ WITH GRANT OPTION;報錯IDE
- Mysql8.0不支援grant all privileges on *.* to root@“%“ identified by “.“;MySqlIDE
- 建立資料庫時“Insufficient privileges”的解決方法DK資料庫
- sqlplus / as sysdba 提示許可權不足(ORA-01031)問題處理SQL
- 授權|取消授權MYSQL資料庫使用者許可權MySql資料庫
- linux 新建使用者授權Linux
- MySQL案例02:ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGESMySqlError
- ORA-20000:unable to analyze table "XXX"."DBMS_TABCOMP_TEMP_UNCMP",insufficient privileges or does no
- pgAdmin未授權命令執行漏洞(CVE-2022-4223)
- MySQL建立使用者和授權MySql
- mysql使用者建立與授權MySql
- Shiro實現使用者授權
- Oracle建立使用者和授權Oracle
- 使用者授權,策略的使用
- MySQL新增使用者使用者與授權MySql
- PbootCMS怎麼修改域名授權提示資訊boot
- 普通使用者許可權執行dockerDocker
- vertica建立新使用者並授權
- 使用者建立授權及刪除
- 利用CouchDB未授權訪問漏洞執行任意系統命令
- 深度解讀.NET5 授權中介軟體執行策略
- 鴻蒙Next許可權申請全攻略:系統授權與使用者授權之道鴻蒙
- Oracle建立使用者、角色、授權、建表Oracle
- Mysql 建立資料庫\新增使用者\使用者授權MySql資料庫
- 為域名管理進行RAM授權
- 關於微信小程式使用者拒絕授權後不再彈出授權視窗微信小程式
- MySQL-授權使用者管理資料庫MySql資料庫
- oracle新建使用者,表空間,並授權Oracle
- Oracle新建表空間、使用者及授權Oracle
- 【ASP.NET Core】按使用者角色授權ASP.NET
- 微信授權獲取使用者的openid
- Oracle 12c DG管理-分離SYS特權使用者Oracle
- 認證授權方案之授權初識