Time of Update: 2014-07-04
linux下oracle11G DG搭建(四):後續驗證操作環境名稱主庫備庫主機名稱bjsrvshsrv軟體版本RedHat Enterprise5.5、Oracle 11g 11.2.0.1RedHat Enterprise5.5、Oracle 11g 11.2.0.1主庫下$ tail -f /u01/app/oracle/diag/rdbms/bjdb/TestDB12/trace/alert_TestDB12.log對於DG,一定要開啟警示日誌。備庫下$ tail -f/u0
Time of Update: 2014-07-04
linux下oracle11G DG搭建(三):圍繞備庫搭建操作環境名稱主庫備庫主機名稱bjsrvshsrv軟體版本RedHat Enterprise5.5、Oracle 11g 11.2.0.1RedHat Enterprise5.5、Oracle 11g 11.2.0.1三、圍繞備庫操作:1、備庫-修改初始化參數檔案$cd$ORACLE_HOME/dbs$df -h$vi initshdb.ora修改簡要說明:*.audit_file_dest='/u01/app/oracle/admin/
Time of Update: 2014-07-04
33. You want to create an ORD_DETAIL table to store details for an order placed having the following business requirement: 1) The order ID will be unique and cannot have null values. 2) The order date cannot have null values and the
Time of Update: 2014-07-04
32. Which CREATE TABLE statement is valid? A. CREATE TABLE ord_details (ord_no NUMBER(2) PRIMARY KEY, item_no NUMBER(3) PRIMARY KEY, ord_date DATE NOT NULL); B. CREATE TABLE ord_details
Time of Update: 2014-07-03
在資料庫中我們經常用sql語句對錶進行簡單的統計排序,對於日期欄位,我們可以簡單的對其進行order。對於複雜一點的可以按日期中的年,月,日分別進行group,order。按年份進行group,統計排序:SELECT YERA(established_time) ,COUNT(*) AS num <span style="font-size: 13.75px; font-family: Arial, Helvetica,
Time of Update: 2014-07-02
環境CentOSMysql 5.1前提安裝了EPEL,具體安裝步驟請參照http://blog.csdn.net/robinsonmhj/article/details/36184863機器列表機器IP機器名192.168.0.135db1192.168.0.136monitor192.168.0.137db2虛擬IP作用192.168.0.138writter192.168.0.139reader192.168.0.140reader安裝步驟1. 在db1 和 db2 上安裝mysqlyum
Time of Update: 2014-07-02
最近老是忘記mysql密碼。網上學習了四種解決辦法,記錄下來。方法1: 用SET PASSWORD命令 mysql -u root mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass');方法2:用mysqladmin mysqladmin -u root password "newpass" 如果root已經設定過密碼,採用如下方法 mysqladmin -u root
Time of Update: 2014-07-03
第2部分 資料庫SQL語言資料操縱語言(DML) 資料操縱語言(Data Manipulation Language,DML)包括insert、delete和update語句,用於增、刪、改資料。 本文用以下的表tb_employeeinfo作為例子加以說明:create table tb_employeeinfo(&
Time of Update: 2014-07-02
一、串連SQL SERVER的第一種串連字串:是針對資料庫身分識別驗證模式為”SQL SERVER 和 windows“而言,串連字串為:CString strConn;strConn = ”Provider = SQLOLEDB.1;\Persist Security Info = true;\User ID = sa;\Password=123456;\Initial Catalog = tempdb;\Data Source = 127.0.0.1”;(包含 6
Time of Update: 2014-07-02
最近做了一個項目,通過VC odbc訪問oracle資料庫,在我電腦上可以正常運行,在其他電腦上運行不了,原因是沒有oracle odbc驅動,無法配置oracle資料來源。網上的博文大都是安裝oracle用戶端來解決的。我想就是一個小程式,沒必要安裝用戶端吧,參照網上博文並訪問了oracle網址,於是有了這篇文章。1、下載odbc驅動需要下載兩個東西instantclient-basiclite-nt-12.1.0.1.0.zipinstantclient-odbc-nt-12.1.0.1.0
Time of Update: 2014-07-01
PHP中有一種資料類型非常重要,它就是關聯陣列,又稱為雜湊表(hash table),是一種非常好用的資料結構。在程式中,我們可能會遇到需要消重的問題,舉一個最簡單的模型:有一份使用者名稱列表,儲存了 10000 個使用者名稱,沒有重複項;還有一份黑名單列表,儲存了 2000 個使用者名稱,格式與使用者名稱列表相同;現在需要從使用者名稱列表中刪除處在黑名單裡的使用者名稱,要求用盡量快的時間處理。這個問題是一個小規模的處理量,如果實際一點,2 個表都可能很大,比如有 2
Time of Update: 2014-07-01
25. You need to create a table with the following column specifications: 1. Employee ID (numeric data type) for each employee 2. Employee Name (character data type) that stores the employee name 3. Hire date, which stores the date of
Time of Update: 2014-06-30
隨著資料庫資料量的不斷增長,有些表需要由普通的堆錶轉換為分區表的模式。有幾種不同的方法來對此進行操作,諸如匯出表資料,然後建立分區表再匯入資料到分區表;使用EXCHANGE PARTITION方式來轉換為分區表以及使用DBMS_REDEFINITION來線上重定義分區表。本文描述的是使用匯出匯入方式來實現,下面是具體的操作樣本。
Time of Update: 2014-06-30
1. 作業系統CentOS release 6.2 (Final) 2. 建立使用者和組[root@mymaster1 ~]# groupadd mysql[root@mymaster1 ~]# useradd -r -g
Time of Update: 2014-06-29
MYSQL中含有Blob欄位是一件挺麻煩的事情,匯出匯入不方便。我介紹我是怎麼做的。1、在MYSQL的my.ini最後中添加一行配置max_allowed_packet = 100M,重啟MYSQL服務根據實際情況來定這個數值的大小,我這次表裡面有82個mediumblob欄位,所以設定為100M2、用XML格式匯出資料3、選擇用XML匯入資料選擇表示一行的標籤,我這裡是RECORD。4、耐心等待,如果有報錯多少條處理失敗是因為max_allowed_packet =
Time of Update: 2014-06-30
在設計資料庫時為了減少資料冗餘,一般都會按照三範式去設計,但有時我們在查詢時需要通過一欄位擷取跟這 個欄位相關聯的好幾個欄位,但是他們又分布在不同的表中,這時候如果按照正常途徑走的話需要同時查詢好幾張表,不僅操作麻煩還容易出錯。當然我們有捷徑,把想要查詢的欄位都整合到一張虛擬表中,這就是視圖的應用。 簡單介紹
Time of Update: 2014-06-30
最近一直跟著師傅做考試系統的基礎,每天與大量的資料打交道,資料的匯入、資料的匯出、視圖的匯入匯出、核對資訊等等,收穫挺多的,培養了自己的耐心和細心,也進一步瞭解了資料庫。 一切從基礎做起!
Time of Update: 2014-06-29
veridata實驗舉例(6)驗證agent啟動先後順序是否對捕獲update操作有影響續接veridata實驗系列 上篇:“veridata實驗舉例(5)修改主鍵上的列值,update操作會被拆分成兩條語句”,地址:點擊開啟連結環境:ItemSource SystemTarget SystemPlatformRed Hat EnterpriseLinux Server release 5.4Red Hat EnterpriseLinux Server release
Time of Update: 2014-06-29
13. View the Exhibit and examine the structure of the PRODUCTS table.You need to generate a report in the following format:CATEGORIES5MP Digital Photo Camera's category is PhotoY Box's category is ElectronicsEnvoy Ambassador's category is
Time of Update: 2014-06-28
虛擬機器:VMware 9.0OS:Window Server 2003 Enterprise (32 Bit)Clusterware:10.2.0.1->10.2.0.4Database:10.2.0.1->10.2.0.5