[20200302]startup dba.txt
[20200302]startup dba.txt
--//不記得那個時候看到人家這樣執行啟動資料庫的操作,不知道後面的dba什麼意思。
--//今天才知道實際上使用在rman,直接啟動到restricted模式,測試看看。
1.測試1:
--//在sqlplus下:
SYS@book> startup dba
SP2-0714: invalid combination of STARTUP options
2.測試2:
RMAN> startup dba
Oracle instance started
database mounted
database opened
Total System Global Area 643084288 bytes
Fixed Size 2255872 bytes
Variable Size 205521920 bytes
Database Buffers 427819008 bytes
Redo Buffers 7487488 bytes
SYS@book> select status,instance_name,logins from v$instance;
STATUS INSTANCE_NAME LOGINS
------------ ---------------- ----------
OPEN book RESTRICTED
--//重啟:
SYS@book> startup
ORACLE instance started.
Total System Global Area 643084288 bytes
Fixed Size 2255872 bytes
Variable Size 205521920 bytes
Database Buffers 427819008 bytes
Redo Buffers 7487488 bytes
Database mounted.
Database opened.
SYS@book> select status,instance_name,logins from v$instance;
STATUS INSTANCE_NAME LOGINS
------------ ---------------- ----------
OPEN book ALLOWED
SYS@book> alter system enable restricted session;
System altered.
SYS@book> select status,instance_name,logins from v$instance;
STATUS INSTANCE_NAME LOGINS
------------ ---------------- ----------
OPEN book RESTRICTED
3.測試3:
--//在sqlplus下:
SYS@book> startup restrict
ORACLE instance started.
Total System Global Area 643084288 bytes
Fixed Size 2255872 bytes
Variable Size 205521920 bytes
Database Buffers 427819008 bytes
Redo Buffers 7487488 bytes
Database mounted.
Database opened.
--//oracle的語法有時候很奇怪,這裡不要寫成startup restricted。否者報
SYS@book> startup restricted
SP2-0714: invalid combination of STARTUP options
SYS@book> select status,instance_name,logins from v$instance;
STATUS INSTANCE_NAME LOGINS
------------ ---------------- ----------
OPEN book RESTRICTED
SYS@book> alter system disable restricted session;
System altered.
SYS@book> select status,instance_name,logins from v$instance;
STATUS INSTANCE_NAME LOGINS
------------ ---------------- ----------
OPEN book ALLOWED
--//如果在rman下執行:
RMAN> startup restrict
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "dba, force, mount, newline, nomount, pfile, ;"
RMAN-01008: the bad identifier was: restrict
RMAN-01007: at line 1 column 9 file: standard input
--//newline什麼意思!!
RMAN> startup newline
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "dba, force, mount, newline, nomount, pfile, ;"
RMAN-01008: the bad identifier was: newline
RMAN-01007: at line 1 column 9 file: standard input
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2677970/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【打卡學習python】-20200302Python
- startup,startup mount,startup nomount之間的區別
- startup nomount
- MySQL Server Startup ScriptMySqlServer
- 4.1.2 關於Startup部署
- Jetpack之Startup快速掌握Jetpack
- 閱讀nopcommerce startup原始碼原始碼
- asp.net core 系列之StartupASP.NET
- 理解ASP.NET Core - [01] StartupASP.NET
- .NET Core開發日誌——Startup
- FATAL - Fatal error: Target Interaction Manager failed at StartupErrorAI
- 巧用Startup簡化Java命令列程式Java命令列
- JavaWeb開發之load-on-startup用法JavaWeb
- FastAPI 學習之路(五十四)startup 和 shutdownASTAPI
- ASP.NET Core[原始碼分析篇] - StartupASP.NET原始碼
- StartUp Health:健康行業年中投資報告行業
- ASP.NET Core系列(三):啟動類StartupASP.NET
- CRS-4124: Oracle High Availability Services startup failed.OracleAI
- 深入探究ASP.NET Core Startup初始化ASP.NET
- QT during startup program with code 0xc0000135(139)QT
- ASP.NET Core - 從Program和Startup開始ASP.NET
- How to build a Startup? 首先你缺個合夥人!UI
- vertica單節點故障恢復 Startup Failed, ASR RequiredAIUI
- 啟動tomcat中的startup.bat閃退原因TomcatBAT
- 探究 | App Startup真的能減少啟動耗時嗎APP
- php-src原始碼zend_startup_builtin_functions函式PHP原始碼UIFunction函式
- 關於LINUX許可權-bash: ./startup.sh: Permission deniedLinux
- MySQL 8.0 Reference Manual(讀書筆記69節--InnoDB Startup Configuration)MySql筆記
- PostgreSQL DBA(140) - PG 12(Don't log incomplete startup packet if it's empty)SQL
- CRS-4124: Oracle High Availability Services startup failed. CRS-4000OracleAI
- use database 切換提示You can turn off this feature to get a quicker startupDatabaseUI
- 一個os thread startup、log file sync等待的故障回顧thread
- ASP.NET Core 菜鳥之路:從Startup.cs說起ASP.NET
- 記錄Windows failed fast startup with error status 0xC00000D4.WindowsAIASTError
- 關於Oath2.0Startup類無法啟動的問題
- 當匯入flutter專案時,報Waiting for another flutter command to release the startup lockFlutterAI
- Core WebAPI 中 Program.cs和Startup.cs認識 (高頻考點)WebAPI
- 在Linux上啟動Tomcat,結果彈出:-bash: ./startup.sh: Permission deniedLinuxTomcat