冷備就是把資料庫的相關檔案複製一份,它只能做還原作業,不能做恢複操作。現在登入到資料庫中,把資料檔案、控制檔案、記錄檔存放路徑找到,然後關閉資料庫,備份列出的檔案。SQL> show user USER 為 "SYS" SQL> select INSTANCE_NAME,STATUS from v$instance;  
1.刪除undo資料表空間rm -f undotbs01.dbf 2.報錯SQL> create table t3 as select * from dba_objects where rownum < 3;create table t3 as select * from dba_objects where rownum <
1.rm -f system01.dbf2.關閉資料庫報錯SQL> shutdown immediateORA-01116: error in opening database file 1ORA-01110: data file 1: '/u01/app/Oracle/oradata/demo/system01.dbf'ORA-27041: unable to open fileLinux Error: 2: No such file or directoryAdditional
1. 確保來源資料庫在歸檔模式,並且是強制logging模式。shutdown immediate ;startup mount ;alter database archivelog ;alter database force logging ;alter database open ;2. 確保已經建立的密碼檔案。(確保能夠遠程登入(@xxx as sysdba)cd $Oracle_HOME/dbs/查看是否已經建立了passwordfile
之前的基於MongoDB進行分布式資料存放區的步驟文章中介紹了如何基於Mongodb進行關係型資料的分布式儲存,有了儲存就會牽扯到查詢。雖然用普通的方式也可以進行查詢,但今天要介紹的是如何使用MONGODB中提供的MapReduce功能進行查詢。 今天介紹如何基於sharding機制進行mapreduce查詢。在MongoDB的官方文檔中,這麼一句話:Code highlighting produced by Actipro CodeHighlighter (freeware)http://
一、單主單從1.主從資料庫的版本要一致。2.在主伺服器上,設定一個從資料庫的賬戶,使用REPLICATION SLAVE賦予許可權。mysql> grant replication slave on *.* to rep@'192.168.0.%' identified by '123456';mysql> select user,host from mysql.user; ---查看命令是否生效。3.修改主要資料庫設定檔my.cnf[mysqld]log-bin=mysql3306