Time of Update: 2014-06-14
冷備份(off, 慢, 時間點上恢複)冷備份發生在資料庫已經正常關閉的情況下,當正常關閉時會提供給我們一個完整的資料庫。冷備份是將關鍵性檔案拷貝到另外位置的一種說法。對於備份資料庫資訊而言,冷備份是最快和最安全的方法。冷備份的優點: 1.是非常快速的備份方法(只需拷貝檔案) 2.容易歸檔(簡單拷貝即可) 3.容易恢複到某個時間點上(只需將檔案再拷貝回去) 4.能與歸檔方法相結合,作資料庫“最新狀態”的恢複。 5.低度維護,高度安全。 冷備份的缺點:
Time of Update: 2014-06-14
啟動:net start mySql; 進入:mysql -u root -p/mysql -h localhost -u root -p databaseName; 列出資料庫:show databases; 選擇資料庫:use databaseName; 列出表格:show tables; 顯示表格列的屬性:show columns from tableName; 建立資料庫:source
Time of Update: 2014-06-14
Oracle工作中有時需要用到大量的測試資料,一條一條的很慢很費勁,如果用預存程序來做就快多了。舉個例子,假設有A表和它的關聯表B表,b_id等於a_id,表欄位如下,表A:a_ida_name表B:b_idb_nameb_value1、建立擷取序列的函數create or replace function get_seq return number as seq_num number; begin
Time of Update: 2014-06-14
8.3.5 Adding or Dropping Online Redo Log Files8.3.5 添加或刪除現在重做記錄檔Changing the size and number of the online redo log files is sometimes done to tune the database. You can add or drop online redo log file groups or members to the primary database
Time of Update: 2014-06-14
進入到非CDB資料庫中 查看資料檔案的位置 [Oracle@shuang ~]$ sqlplus / as sysdba SQL*Plus: Release 12.1.0.1.0 Production on Wed Feb 26 13:17:45 2014 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to an idle
Time of Update: 2014-06-14
在Oracle 11g以前,如果要在一個大表中增加一列,並設定預設值,那將是一個非常悲劇的事情.有些時候不得不選擇線上重定義功能來實現該需求.而在11g中增加新列並設定預設值,只是簡單的修改資料字典來實現該功能,大大提供效率10g加列(預設值)SQL> select * from v$version; BANNER----------------------------------------------------------------Oracle Database 10g
Time of Update: 2014-06-14
建議這個工具部署在root或者非Oracle使用者下 1.軟體準備,去https://support.oracle.com按照對應版本的oracle下載 2. osw安裝與卸載 把下載後的osw.tar檔案copy到合適的目錄下,然後解壓運行對應指令碼就可以使用: tar xvf osw.tar 卸載:只刪除解壓後的目錄 rm -rf osw 3. 啟動與停止ows(啟動監控指令碼)&
Time of Update: 2014-06-14
之前的文章討論過11G中關於大表增加列的新特性 ,其中提到11G之前,可以通過線上重定義表的方式,來進行列的增加(且有預設值)。線上重定義許可權需求:grant create any table to 使用者;grant alter any table to 使用者;grant drop any table to 使用者;grant lock any table to 使用者;grant select any table to 使用者;grant create any
Time of Update: 2014-06-14
原庫確定資料檔案,記錄檔,tempfile 檔案資訊 select group#,status,type, member from v$logfile; col name format a65 select file#,name,bytes/1024/1024 MB from v$datafile; select name from v$controlfile;推薦閱讀:RMAN 配置歸檔日誌刪除策略 Oracle基礎教程之通過RMAN複製資料庫
Time of Update: 2014-06-14
又見Oracle BUG:Rman備份的alert錯誤提示 現象: 在執行Database Backup時,alert日誌提示存在錯誤資訊,並給出了一個詳細錯誤資訊的trc檔案。推薦閱讀:RMAN 配置歸檔日誌刪除策略 Oracle基礎教程之通過RMAN複製資料庫 RMAN備份策略制定參考內容 RMAN備份學習筆記 OracleDatabase Backup加密 RMAN加密 alert.log <<==== Tue May 7 1
Time of Update: 2014-06-14
--執行個體示範---system使用者匯出C:\Users\ZML>exp system/zml file='D:\zml.dmp' log = 'D:\zml.log' tables = (zml)Export: Release 11.2.0.1.0 - Production on 星期一 4月 21 21:39:12 2014Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights
Time of Update: 2014-06-14
驗證RMAN備份的有效性1、restore preview命令 此命令用來查看還原需要使用哪個備份組來執行特定的恢複 restore database preview; 2、使用validate和check logical參數的restore命令,檢查備份組,以確認資料庫是可恢複的 restore database validate; 使用check
Time of Update: 2014-06-14
如果您的需求是不允許某個IP地址訪問Oracle資料庫,那麼可以使用Valid Node Verification功能1. 在$ORACLE_HOME/network/admin/sqlnet.ora裡設定:TCP.VALIDNODE_CHECKING=yesTCP.EXCLUDED_NODES=NODES=(finance.us.example.com, mktg.us.example.com, 192.168.2.25) ======〉
Time of Update: 2014-06-14
一直對rman的crosschcek和obsolete的用法理解的不清楚,而且有點混亂,這樣對rman的備份組甚至備份的管理造成很大的影響,今天還是及時測試一下,及時彌補這個重要環節--------------------------------------分割線 --------------------------------------推薦閱讀:RMAN 配置歸檔日誌刪除策略 Oracle基礎教程之通過RMAN複製資料庫 RMAN備份策略制定參考內容 RMAN備份學習筆記
Time of Update: 2014-06-14
請注意,Oracle 在官方Support 網站上明確提出不支援VMWare 運行Oracle database。 但如果在虛擬環境要怎麼辦呢? 我的建議: 如果你就是企業使用者,所有基礎架構都用了VMWare,那就用VMWare,也沒有發現有什麼不妥的,用吧。 如果你是整合商,要給客戶找不同的方案,那你要提醒一下終端使用者,以免有問題找後賬。
Time of Update: 2014-06-14
1、 建立表完整文法CREATE TABLE [schema.]table(column datatype [, column datatype] … )[TABLESPACE tablespace][PCTFREE integer][PCTUSED integer][INITRANS integer][MAXTRANS integer][STORAGE
Time of Update: 2014-06-14
一、datapump建立外部表格,資料來源於內部實體表--首先建立 scott.countries實體表,用於做實驗SQL> create table scott.countries( 2 country_id number, 3 country_name varchar2(30), 4 country_reigion varchar2(30) 5 ); Table created. SQL> insert
Time of Update: 2014-06-14
一.備份資料的方式MySQL參數說明:MySQL管理之資料備份及恢複 1.物理備份 1.1冷備 cp tar等 1.2熱備 mysqlhotcopy 只能備份儲存引擎是myisam的表,依賴perl-DBD-MySQL2.邏輯備份:用mysql自己提供的備份命令或第三放方軟體提供的備份命令,備份建立庫、表、和產生表記錄時的sql語句。二.資料備份策略:1.完整備份
Time of Update: 2014-06-14
一,Oracle叢集體繫結構 1,Oracle RAC,全稱是Oracle Real Application Cluster,即真正的應用叢集,是Oracle提供一個並行叢集系統,整個叢集系統由Oracle Cluster(叢集就緒軟體)和Real Application Clusters(RAC)兩大部分組成。 2,Oracle
Time of Update: 2014-06-14
1.實驗環境配置 本次實驗在vmware9.0環境下進行,安裝的作業系統CentOS-6.4-x86_64,資料庫版本是Oracle10g10.2.0.1,源庫和目標庫都安裝了資料庫,源庫ORACLE_SID=myorcl,目標庫ORACLE_SID=orclOracle Streams技術介紹&搭建 單一實例到單一實例Oracle Stream搭建 Oracle 10gR2 Streams刪除所有配置 Oracle 單表流複製 Stream