oracle啟動案例一則
oracle資料庫有四種狀態:shutdown,nomount,mount,open。讀取引數檔案啟動到nomount,啟動到mount狀態時候會讀取控制檔案,然後根據controlfile內容載入資料庫啟動open狀態。
如下是當10.2版本的資料庫升級到11.2時候(升級過程是先升級軟體,後DBUA升級資料庫),用10.2版本的sqlplus去實驗一下是否能開啟資料庫,可以很清楚的看到,sqlplus會以10.2的spfile啟動到nomount狀態,再繼續alter database mount時候,就會去讀controlfile,此時因為資料庫已經升級到了11.2,所以會有如下輸出:
[oracle@orcl6 ~]$ source .bash_profile--選擇環境變數
What is your choose of Oracle version?
Enter only 1 or 2
1) Oracle 10g
2) Oracle 11g
#? 1
Oracle user Environment is:
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_home_1
ORACLE_SID=orcl
[oracle@orcl6 ~]$ which sqlplus--檢視sqlplus版本資訊
/u01/app/oracle/product/10.2.0/db_home_1/bin/sqlplus
[oracle@orcl6 ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Fri Apr 11 18:34:48 2014
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> startup nomount;
ORA-01081: cannot start already-running ORACLE - shut it down first
SQL> shu immediate
ORA-01507: database not mounted
ORACLE instance shut down.
SQL> startup nomount;--成功啟動到nomount狀態
ORACLE instance started.
Total System Global Area 243269632 bytes
Fixed Size 1273032 bytes
Variable Size 92275512 bytes
Database Buffers 146800640 bytes
Redo Buffers 2920448 bytes
SQL> show parameter spfile--檢視使用的引數檔案
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string /u01/app/oracle/product/10.2.0
/db_home_1/dbs/spfileorcl.o
ra
SQL> alter database mount;--明顯的報錯如下>>
alter database mount
*
ERROR at line 1:
ORA-00201: control file version 11.2.0.3.0 incompatible with ORACLE version
10.2.0.5.0
ORA-00202: control file: '/u01/app/oracle/oradata/orcl/control01.ctl'
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29117696/viewspace-1140394/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle listener 監聽啟動不起來處理案例一則Oracle
- 一則資料庫無法啟動的奇怪案例分析資料庫
- oracle例項啟動異常慢案例一Oracle
- 一則資料庫無法重啟的案例分析資料庫
- Oracle SQL 'or' 的最佳化,最近的案例一則。OracleSQL
- Oracle 11.2.0.1.0升級到11.2.0.4.7案例一則Oracle
- Oracle修改主機名問題解決案例一則Oracle
- 【案例】MySQL count操作優化案例一則MySql優化
- IO優化案例一則優化
- AMDU資料抽取案例一則
- Oracle啟動三階段(一)Oracle
- Oracle日常問題-資料庫無法啟動(案例二)Oracle資料庫
- oracle 10g crs 不能啟動問題解決案例Oracle 10g
- Oracle資料庫恢復:歸檔日誌損壞案例一則Oracle資料庫
- 【MySQL】Too many connections 案例一則MySql
- System State 轉儲分析案例一則
- 【MySQL】mysqldgotsignal11案例一則MySqlGo
- 巧用分割槽查詢案例一則
- Oracle11gR2 RAC環境歸檔模式的配置案例一則Oracle模式
- 【MySQL】 DB 回滾崩潰案例一則MySql
- 【MySQL】mysqld got signal 11 案例一則MySqlGo
- 故障分析 | redis cluster 從庫無法自動恢復同步案例一則Redis
- 一次Oracle診斷案例-Spfile案例Oracle
- oracle 啟動停止Oracle
- Oracle 啟動命令Oracle
- nginx的一些規則案例備忘Nginx
- ORA-19504: failed to create file "" 一則案例AI
- 資料庫壞塊解決案例一則資料庫
- UNIX自動啟動oracleOracle
- oracle case處理案例(一)Oracle
- oracle 隨系統開啟,自動啟動Oracle
- 用python客戶價值分析案例一則Python
- 【案例】BNL演算法導致效能下降一則演算法
- shell指令碼的一則簡單運用案例指令碼
- oracle手動啟動服務Oracle
- oracle for linux 自動啟動OracleLinux
- 自動啟動ORACLE Script ServiceOracle
- linux oracle 自動啟動LinuxOracle