MAXLOGFILES應該以前的版本就能自動擴充套件
10g release 2的新特性可以看看,不夠的時候應該是會自動擴充套件的, maxdatafiles應該以前的版本就能自動擴充套件了吧,上限應該是db_files吧
SELECT records_total,records_used FROM v$controlfile_record_section WHERE TYPE='REDO LOG'
或用SQL>alter database backup controlfile to trace;在生的的指令碼中可以得到這個值。
我測試的結果:
記錄數由5,變成了21:
SQL> SELECT records_total,records_used FROM v$controlfile_record_section WHERE TYPE='REDO LOG';
RECORDS_TOTAL RECORDS_USED
------------- ------------
5 5
SQL> ALTER DATABASE
ADD LOGFILE GROUP 6 ('/u01/app/oracle/oradata/PROD/disk1/redo06.log', '/u01/app/oracle/oradata/PROD/disk2/redo06_02.log')
2 3 SIZE 100m;
Database altered.
SQL> SELECT records_total,records_used FROM v$controlfile_record_section WHERE TYPE='REDO LOG';
RECORDS_TOTAL RECORDS_USED
------------- ------------
21 6
SQL>alter database backup controlfile to trace;在生的的指令碼中可以得到這個值:
沒有加日誌之前的資料:
-- Set #1. NORESETLOGS case
--
-- The following commands will create a new control file and use it
-- to open the database.
-- Data used by Recovery Manager will be lost.
-- Additional logs may be required for media recovery of offline
-- Use this only if the current versions of all online logs are
-- available.
-- After mounting the created controlfile, the following SQL
-- statement will place the database in the appropriate
-- protection mode:
-- ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "PROD" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 292
LOGFILE
GROUP 1 '/u01/app/oracle/oradata/PROD/disk1/redo01.log' SIZE 100M,
GROUP 2 '/u01/app/oracle/oradata/PROD/disk1/redo02.log' SIZE 100M,
GROUP 3 '/u01/app/oracle/oradata/PROD/disk1/redo03.log' SIZE 100M
-- STANDBY LOGFILE
DATAFILE
'/u01/app/oracle/oradata/PROD/disk1/system01.dbf',
'/u01/app/oracle/oradata/PROD/disk1/undotbs01.dbf',
'/u01/app/oracle/oradata/PROD/disk1/sysaux01.dbf'
CHARACTER SET US7ASCII
加了6組日誌之後的TRACE:
-- protection mode:
-- ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "PROD" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 21
MAXLOGMEMBERS 5
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 292
LOGFILE
GROUP 1 (
'/u01/app/oracle/oradata/PROD/disk1/redo01.log',
'/u01/app/oracle/oradata/PROD/disk2/redo01_02.log'
) SIZE 100M,
GROUP 2 (
'/u01/app/oracle/oradata/PROD/disk1/redo02.log',
'/u01/app/oracle/oradata/PROD/disk2/redo02_02.log'
) SIZE 100M,
GROUP 3 (
'/u01/app/oracle/oradata/PROD/disk1/redo03.log',
'/u01/app/oracle/oradata/PROD/disk2/redo03_02.log'
) SIZE 100M,
GROUP 4 (
'/u01/app/oracle/oradata/PROD/disk1/redo04.log',
'/u01/app/oracle/oradata/PROD/disk2/redo04_02.log'
) SIZE 100M,
GROUP 5 (
'/u01/app/oracle/oradata/PROD/disk1/redo05.log',
'/u01/app/oracle/oradata/PROD/disk2/redo05_02.log'
) SIZE 100M,
GROUP 6 (
'/u01/app/oracle/oradata/PROD/disk1/redo06.log',
'/u01/app/oracle/oradata/PROD/disk2/redo06_02.log'
SQL> SELECT records_total,records_used FROM v$controlfile_record_section WHERE TYPE='REDO LOG';
RECORDS_TOTAL RECORDS_USED
------------- ------------
21 6
tail -f alert_PROD.log
ALTER DATABASE
ADD LOGFILE GROUP 6 ('/u01/app/oracle/oradata/PROD/disk1/redo06.log', '/u01/app/oracle/oradata/PROD/disk2/redo06_02.log')
SIZE 100m
Tue Dec 25 01:30:41 2012
Expanded controlfile section 3 from 5 to 21 records
The number of logical blocks in section 3 remains the same
Completed: ALTER DATABASE
ADD LOGFILE GROUP 6 ('/u01/app/oracle/oradata/PROD/disk1/redo06.log', '/u01/app/oracle/oradata/PROD/disk2/redo06_02.log')
SIZE 100m
Tue Dec 25 01:33:44 2012
SELECT records_total,records_used FROM v$controlfile_record_section WHERE TYPE='REDO LOG'
或用SQL>alter database backup controlfile to trace;在生的的指令碼中可以得到這個值。
我測試的結果:
記錄數由5,變成了21:
SQL> SELECT records_total,records_used FROM v$controlfile_record_section WHERE TYPE='REDO LOG';
RECORDS_TOTAL RECORDS_USED
------------- ------------
5 5
SQL> ALTER DATABASE
ADD LOGFILE GROUP 6 ('/u01/app/oracle/oradata/PROD/disk1/redo06.log', '/u01/app/oracle/oradata/PROD/disk2/redo06_02.log')
2 3 SIZE 100m;
Database altered.
SQL> SELECT records_total,records_used FROM v$controlfile_record_section WHERE TYPE='REDO LOG';
RECORDS_TOTAL RECORDS_USED
------------- ------------
21 6
SQL>alter database backup controlfile to trace;在生的的指令碼中可以得到這個值:
沒有加日誌之前的資料:
-- Set #1. NORESETLOGS case
--
-- The following commands will create a new control file and use it
-- to open the database.
-- Data used by Recovery Manager will be lost.
-- Additional logs may be required for media recovery of offline
-- Use this only if the current versions of all online logs are
-- available.
-- After mounting the created controlfile, the following SQL
-- statement will place the database in the appropriate
-- protection mode:
-- ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "PROD" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 292
LOGFILE
GROUP 1 '/u01/app/oracle/oradata/PROD/disk1/redo01.log' SIZE 100M,
GROUP 2 '/u01/app/oracle/oradata/PROD/disk1/redo02.log' SIZE 100M,
GROUP 3 '/u01/app/oracle/oradata/PROD/disk1/redo03.log' SIZE 100M
-- STANDBY LOGFILE
DATAFILE
'/u01/app/oracle/oradata/PROD/disk1/system01.dbf',
'/u01/app/oracle/oradata/PROD/disk1/undotbs01.dbf',
'/u01/app/oracle/oradata/PROD/disk1/sysaux01.dbf'
CHARACTER SET US7ASCII
加了6組日誌之後的TRACE:
-- protection mode:
-- ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "PROD" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 21
MAXLOGMEMBERS 5
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 292
LOGFILE
GROUP 1 (
'/u01/app/oracle/oradata/PROD/disk1/redo01.log',
'/u01/app/oracle/oradata/PROD/disk2/redo01_02.log'
) SIZE 100M,
GROUP 2 (
'/u01/app/oracle/oradata/PROD/disk1/redo02.log',
'/u01/app/oracle/oradata/PROD/disk2/redo02_02.log'
) SIZE 100M,
GROUP 3 (
'/u01/app/oracle/oradata/PROD/disk1/redo03.log',
'/u01/app/oracle/oradata/PROD/disk2/redo03_02.log'
) SIZE 100M,
GROUP 4 (
'/u01/app/oracle/oradata/PROD/disk1/redo04.log',
'/u01/app/oracle/oradata/PROD/disk2/redo04_02.log'
) SIZE 100M,
GROUP 5 (
'/u01/app/oracle/oradata/PROD/disk1/redo05.log',
'/u01/app/oracle/oradata/PROD/disk2/redo05_02.log'
) SIZE 100M,
GROUP 6 (
'/u01/app/oracle/oradata/PROD/disk1/redo06.log',
'/u01/app/oracle/oradata/PROD/disk2/redo06_02.log'
SQL> SELECT records_total,records_used FROM v$controlfile_record_section WHERE TYPE='REDO LOG';
RECORDS_TOTAL RECORDS_USED
------------- ------------
21 6
tail -f alert_PROD.log
ALTER DATABASE
ADD LOGFILE GROUP 6 ('/u01/app/oracle/oradata/PROD/disk1/redo06.log', '/u01/app/oracle/oradata/PROD/disk2/redo06_02.log')
SIZE 100m
Tue Dec 25 01:30:41 2012
Expanded controlfile section 3 from 5 to 21 records
The number of logical blocks in section 3 remains the same
Completed: ALTER DATABASE
ADD LOGFILE GROUP 6 ('/u01/app/oracle/oradata/PROD/disk1/redo06.log', '/u01/app/oracle/oradata/PROD/disk2/redo06_02.log')
SIZE 100m
Tue Dec 25 01:33:44 2012
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27036311/viewspace-751583/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 表空間自動擴充套件 AUTOALLOCATE 的擴充套件規律套件
- 自動化擴充套件挑戰:ROI套件
- 【實驗】修改資料庫檔案為自動擴充套件以達到表空間自動擴充套件的目的資料庫套件
- 資料中心基礎設施是應該縱向擴充套件還是橫向擴充套件?套件
- 微服務架構:自動擴充套件簡介微服務架構套件
- 「擴充套件推薦」Laravel Auto Routes 自動路由套件Laravel路由
- jQueryautocomplete自擴充套件外掛、自動補全示例jQuery套件
- SQL Server資料庫檔案不滿足擴充套件條件時不再自動擴充套件SQLServer資料庫套件
- kotlin 擴充套件(擴充套件函式和擴充套件屬性)Kotlin套件函式
- 如何在AWS上自動擴充套件Web應用套件Web
- MAXDATAFILES,DB_FILES及控制檔案的自動擴充套件套件
- 獲取表空間是否可自動擴充套件的SQL套件SQL
- 那些你應該考慮解除安裝的 VSCode 擴充套件VSCode套件
- 推薦一個Chrome擴充套件應用,能夠自動去除CSDN廣告Chrome套件
- 「擴充套件包推薦」蘑菇丁 SDK—自動簽到套件
- OpenGL版本與OpenGL擴充套件機制(轉)套件
- WCF擴充套件:行為擴充套件Behavior Extension套件
- VSCode擴充套件應用VSCode套件
- easyui應用(四)--- easyui擴充套件UI套件
- 並查集擴充套件應用並查集套件
- 實現自動切換主題的 VSCode 擴充套件VSCode套件
- 分散式雲的擴充套件自動化需要考慮什麼分散式套件
- 5.4 多鏈:區塊鏈應用的擴充套件互動區塊鏈套件
- 10 款有用的 Android 版本 Firefox 擴充套件AndroidFirefox套件
- 設定maxsize的自動擴充套件資料檔案在達到maxsize後是否會繼續擴充套件套件
- Dubbo原始碼學習之-Adaptive自適應擴充套件原始碼APT套件
- ?用Chrome擴充套件管理器, 管理你的擴充套件Chrome套件
- 【Kotlin】擴充套件屬性、擴充套件函式Kotlin套件函式
- 如何自動擴充套件K8S儲存池容量?套件K8S
- 擴充套件Spring Cloud Feign 實現自動降級套件SpringCloud
- Analytics Zoo Cluster Serving自動擴充套件分散式推理套件分散式
- windows下安裝各個版本memcache擴充套件Windows套件
- [外掛擴充套件]js版本分頁外掛套件JS
- 自動化時序異常檢測的可擴充套件通用框架套件框架
- Laravel 是自動發現擴充套件包是怎樣實現的Laravel套件
- UiPath收購Cloud Elements 擴充套件基於API的自動化功能UICloud套件API
- 一個根據資料庫自動生成model類的擴充套件資料庫套件
- 從零寫一個自動生成API文件的laravel擴充套件包APILaravel套件