1、安裝MySQL需要下面兩個檔案:MySQL-server-5.0.26-0.i386.rpm MySQL-client-5.0.26-0.i386.rpm為:http: //dev.mysql.com/downloads/mysql/5.0.html,開啟此網頁,下拉網頁找到“Red Hat Enterprise Linux 3 RPM (x86) downloads”項,找到“Server”和“Client
在mysql資料庫中,統計當天的日誌:例如,統計bean資料庫 日期欄位為:usedate統計當天的日誌sql語句:select * from bean where date(usedate) = curdate();curdate()表示當天日期如果表示前一天的資料,則不能使用curdate()-1,因為當日期為月初時,curdate()-1
先看下面的例子:Oracle中兩個系統資料表.emp,dept.example:1:not exists(not in)not exists: 這條語句返回select * from scott.dept d where e.deptno=d.deptno and d.deptno=10條件滿足的結果集.也就是說,返回的結果集中不存在d.deptno=10結果集的記錄,即emp表中沒有dept表中d.deptno=10的記錄.SQL> select
需要提前安裝好的軟體:svn;apache2.2.x;mysql5.1目標:通過mod_auth_mysql模組實現apache的mysql 認證需要下載軟體:mod_auth_mysql,:http://www.heuer.org/mod_auth_mysql/這裡邊有已經編譯好的mod_auth_mysql.so for apache2.2.x,需要
Oracle之group by 擴充分組函數測試學習過程如下:---rollup:以每個部門為參考對象,每個部門下員工薪水的明細和匯總select t.dept_id,t.dept_name,sum(t.salary)from qcfang.test1 tgroup by rollup(t.dept_id,t.dept_name) --cube:資訊量最大的交叉報表,匯總,明細均有select t.dept_id,t.dept_name,sum(t.salary) from
每當伺服器管理員通知,某某檔案佔用太大硬碟空間時,估計就是Oracle資料庫的資料表空間又變大了,沒辦法,對於資料表空間目前已經佔了多少,需要做到心中有數。所以總結幾條常用的資料表空間統計方法,但是不是很全,在日後的工作中,會繼續整理更新。1、每個資料表空間大小統計:Select Tablespace_Name,Sum(bytes)/1024/1024 From Dba_Segments Group By Tablespace_Name2、所有資料表空間總和統計:select
2013-12-14Windows 7旗艦版64位VMware 7Oracle Linux Release 5E-Business R12.1.1 Linux x8 在linux圖形介面增加了組dba和使用者oracle,applmgr,安裝EBS過程中會自動選擇這兩個使用者。虛擬機器硬碟設為400G,安裝demo資料庫時報空間不夠,改為fresh安裝。linux圖形子符介面切換:Ctrl+Alt+F2/F7,有時可以,有時不可以,不知道為什嗎?不能切換時,改為在linux視窗中選擇&
如何處理HANG住的DB1. 產生 systemstate dump:SQL>sqlplus -prelim / as sysdbaSQL> alter session set max_dump_file_size = unlimited;SQL> alter session set events 'immediate trace name systemstate level 10';Wait for some 30 secondsSQL> alter session