425alter database force logging修改那裡
[20140425]alter database force logging修改那裡.txt
連結:http://blog.itpub.net/267265/viewspace-1145697/
昨天有別人問,如果在主庫執行alter database force logging,備用庫不會也修改嗎?實際上這個要看執行這條命令修改那裡的資訊.
SYS@test> @ver
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
SYS@test> @spid
SPID
------
18319
SYS@test> alter database no force logging;
Database altered.
$ strace -p 18319 -o /tmp/xx1
SYS@test> alter database force logging;
Database altered.
--看看/tmp/xx1記錄了什麼資訊:
$ grep -i write /tmp/xx1
write(10, "
write(10, "alter database force logging", 29) = 29
write(10, "\n", 1) = 1
write(10, "
write(10, "\n", 1) = 1
pwrite(256, "\25\302\0\0\21\0\0\0\375Og2\377\377\1\4\235H\0\0\0\0\0"..., 16384, 278528) = 16384
pwrite(257, "\25\302\0\0\21\0\0\0\375Og2\377\377\1\4\235H\0\0\0\0\0"..., 16384, 278528) = 16384
pwrite(256, "\25\302\0\0\17\0\0\0\375Og2\377\377\1\4D\1\0\0\0\4\0\0"..., 16384, 245760) = 16384
pwrite(257, "\25\302\0\0\17\0\0\0\375Og2\377\377\1\4D\1\0\0\0\4\0\0"..., 16384, 245760) = 16384
pwrite(256, "\25\302\0\0\1\0\0\0\0\0\0\0\0\0\1\4ST\0\0\0\0\0\0\0\0 "..., 16384, 16384) = 16384
pwrite(257, "\25\302\0\0\1\0\0\0\0\0\0\0\0\0\1\4ST\0\0\0\0\0\0\0\0 "..., 16384, 16384) = 16384
write(10, "
write(10, "\n", 1) = 1
write(12, "\0\265\0\0\6\0\0\0\0\0\10\6\0\303\226\346\302\0\0\0\0\3"..., 181) = 181
$ cd /proc/18319/fd
$ ll
total 13
lr-x------ 1 oracle11g oinstall 64 2014-04-25 10:22:38 0 -> /dev/null
l-wx------ 1 oracle11g oinstall 64 2014-04-25 10:22:38 1 -> /dev/null
l-wx------ 1 oracle11g oinstall 64 2014-04-25 10:22:38 12 -> pipe:[137955042]
l-wx------ 1 oracle11g oinstall 64 2014-04-25 10:22:38 2 -> /dev/null
lrwx------ 1 oracle11g oinstall 64 2014-04-25 10:22:38 256 -> /u01/app/oracle11g/oradata/test/control01.ctl
lrwx------ 1 oracle11g oinstall 64 2014-04-25 10:22:38 257 -> /u01/app/oracle11g/oradata/test/control02.ctl
lr-x------ 1 oracle11g oinstall 64 2014-04-25 10:22:38 3 -> /dev/null
lr-x------ 1 oracle11g oinstall 64 2014-04-25 10:22:38 4 -> /dev/null
lr-x------ 1 oracle11g oinstall 64 2014-04-25 10:22:38 5 -> /u01/app/oracle11g/product/11.2.0/db_2/rdbms/mesg/oraus.msb
lr-x------ 1 oracle11g oinstall 64 2014-04-25 10:22:38 6 -> /proc/18319/fd
lr-x------ 1 oracle11g oinstall 64 2014-04-25 10:22:38 7 -> /dev/zero
lrwx------ 1 oracle11g oinstall 64 2014-04-25 10:22:38 8 -> socket:[137955061]
lr-x------ 1 oracle11g oinstall 64 2014-04-25 10:22:38 9 -> pipe:[137955041]
--從上面的資訊看修改的檔案控制程式碼是10,256,257,12.
--很明顯寫入的資訊在控制檔案.這些資訊不會透過日誌傳輸到備用機器.所以備用庫不會跟著變化.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-1149160/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 2.5.11 指定 FORCE LOGGING 模式模式
- 2.5.11.1 使用 FORCE LOGGING 子句
- 日誌記錄模式(LOGGING 、FORCE LOGGING 、NOLOGGING)模式
- nologging、force logging、supplemental log的理解
- PostgreSQL DBA(138) - PG 13(Drop database force)SQLDatabase
- 2.5.11.2 FORCE LOGGING 模式需要考慮的效能問題模式
- 案例:DG主庫未設定force logging導致備庫壞塊
- logging
- House Of Force
- 在SAP WebIDE Database Explorer裡操作hdi例項WebIDEDatabase
- 那裡賣銀行卡套
- 那裡有得買銀行卡
- 那裡有賣借記卡
- 銀行卡那裡有賣
- 回憶裡的那個人……
- go - LoggingGo
- ACID(Force & Steal)
- logging.basicConfig()
- Python Logging 指南Python
- Docker logging driversDocker
- DVWA之Brute Force
- 網上那裡能買銀行卡
- 網上銀行卡那裡有賣
- vue裡面修改title樣式Vue
- The database owner SID recorded in the master database differs from the database owner SID recorded in database 'DB_NAME'DatabaseAST
- hashlib、logging模組
- 網站換主頁在哪裡修改網站
- Error querying database. XXXXXXXXXXXXX, No database selected。ErrorDatabase
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- Oracle Database Cloud - Database as a Service Quick StartOracleDatabaseCloudUI
- SAP HANA Database Explorer 裡的 SQL 語句如何排錯 trouble shootDatabaseSQL
- Python(logging.getLogger().info())Python
- Python Logging是什麼?Python
- python的logging模組Python
- 身份證四件套那裡去買
- 從yjz那裡偷來的fread讀入掛
- [20181022]lob欄位的lobid來之那裡.txt
- [譯] 使用 `-force` 被認為是有害的;瞭解 Git 的 `-force-with-lease` 命令Git
- python logging模組註冊流程(以logging.config.dictConfig流程為例)Python