ORA-01219 問題解決辦法;ora-01031:insufficient privileges問題解決辦法

來源:互聯網
上載者:User

登陸sys使用者提示:ora-01031:insufficient privileges;

控制台中開啟使用者賬戶,發現當前登陸賬戶不在ora_dba的域中,既然不在當然添加上;

添加方式:開始->程式->oracle->Configuration
and Migration Tools(配置和移植工具)->Administration Assistant for Windows 

oracle
Managed Objects->Computers->電腦名->OS 資料庫管理員-電腦      上面右鍵 添加/刪除  添加目前使用者到ora_dba儲存

以sys登陸oracle登陸成功! 那麼ora-01031得以解決

開啟一個package執行編譯提示:

ORA-01219:database not open:queries allowed on fixed tables/views only
“ORA-01219:資料庫未開啟:僅允許在固定表/視圖中查詢”的警告視窗

執行sql---select open_mode from v$database;

執行sql---alter database open;

提示出錯:
ORA-01157: cannot identify/lock data file 7 - see DBWR trace file
ORA-01110: data file 7: 'C:\ORACLE\ORADATA\ISMART\SYSMGR_DATA.DBF'

檢查file7所示的檔案是否存在:

如果不存在:

1. 執行“alter
database create datafile 7;”

2. 執行“alter database datafile 7 offline drop

3. 執行“alter database open”

如果存在則執行上面的2、3步即可



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.