Time of Update: 2018-03-17
PL/SQL編程基礎簡介及實踐PL/SQL編程基礎簡介及實踐1、開始(p1~p2)2、背景介紹(p3)3、特性優點(p4~p5)4、使用說明(p6)5、文法結構(p7)6、命名參考(p8~p9)7、複合類型(p10~p16)8、運算子(p17)9、流程式控制制語句(p18~p28)10、異常和錯誤處理(p29~32)11、函數與預存程序(p33~p41)12、結束(p42)1、背景介紹1、 PL/SQL是一種程式語言,叫做過程化SQL語言(Procedural Language/SQL)。
Time of Update: 2018-03-13
Oracle Dataguard中備庫中歸檔日誌不同步環境:RAC+單機 Dataguard問題:啟動備庫到ADG模式時,發現後台歸檔日誌並不同步1、在備庫中發現日誌的歸檔日誌不同步,內容如下:MRP0: Background Media Recovery process shutdown (strac)Managed Standby Recovery Canceled (strac)Completed: alter database recover managed standby
Time of Update: 2018-03-17
Oracle會話阻塞,oracle會話 單一實例的會話阻塞類比232會話被1224會話阻塞的情況 select * from V$SESSION_BLOCKERS; SID SESS_SERIAL# WAIT_ID WAIT_EVENT WAIT_EVENT_TEXT BLOCKER_INSTANCE_ID BLOCKER_SID BLOCKER_
Time of Update: 2018-03-17
windows安裝mysql-5.7壓縮版詳細教程,windowsmysql-5.7
Time of Update: 2013-11-15
有關PL/SQL Profiler的文章可以參考: 使用 DBMS_PROFILER 定位 PL/SQL 瓶頸代碼 對比 PL/SQL profiler 剖析結果 使用PL/SQL
Time of Update: 2013-11-15
[client][mysqld]collation_server = utf8_general_cicharacter_set_server = utf8[mysql][mysqldump]3. 資料表編碼/*!40101SET @saved_cs_client =@@character_set_client */;/*!40101SET character_set_client = utf8 */;CREATETABLE `access`
Time of Update: 2013-11-15
1. 建立資料資料表空間,索引資料表空間2. 建立使用者jerry並授權3. 為使用者jerry建立表,索引,並插入資料4. 匯出jerry的資料5. 建立使用者peter並授權6. 將jerry的資料匯入到peter使用者下(原資料表空間存在和不存在兩種情況)7. 串連使用者peter
Time of Update: 2013-11-15
Oracle的Nvl函數 nvl( ) 函數從兩個運算式返回一個非null 值。 文法NVL(eExpression1, eExpression2) 參數eExpression1, eExpression2 如 果 eExpression1 的計算結果為 null 值,則 NVL( ) 返回 eExpression2。如果 eExpression1 的計算結果不是 null 值,則返回
Time of Update: 2013-11-15
--用Regexwith t as (select '廣東,廣西,海南,貴州,雲南' str from dual)SELECT REGEXP_SUBSTR(str,'[^,]+',1,ROWNUM) province FROM tCONNECT BY ROWNUM<=LENGTH(str)-LENGTH(REPLACE(str,','))+1;--不使用正則with t as (select '廣東,廣西,海南,貴州,雲南' str from dual)SELECT
Time of Update: 2013-11-15
IndyTCPDB 組件是基於 Indy10.6 開發的, 可以快速地將現有的C/S軟體(ADO/BDE/dbExpress)的改進成由 IndyTCPDB 支撐的可應用於互連網的、安全的資訊系統。IndyTCPDB 是由服務端作為中介層伺服器,建立前台用戶端與後台資料庫的通訊。與WEB伺服器類似。IndyTCPDB
Time of Update: 2013-11-15
鎖表,相信大家都遇到過,解鎖的方法想必大家也都知道,但是一個個的殺進程難免有些低級,我們用預存程序來實現這一功能,就變得異常簡單了。1.建立視圖,查詢進程資訊,create or replace view mysession asselect b.sid,b.serial# from v$lock a,v$session b where a.SID = b.SID and status='INACTIVE' --and program<>'plsqldev.exe' order
Time of Update: 2013-11-15
package cn.com.spring;import org.springframework.jdbc.core.namedparam.BeanPropertySqlParameterSource;import org.springframework.jdbc.core.namedparam.SqlParameterSource;import
Time of Update: 2013-11-15
資料品質是什麼最近,資料分析是個熱門話題。
Time of Update: 2013-11-15
package cn.com.JDBC;import java.sql.Connection;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;public class CRUD {public static void main(String[] args) throws SQLException {// TODO Auto-generated method stub//create(
Time of Update: 2013-11-15
SQL語句中關於計算的彙總函式:COUNT(*) :計算元組的個數COUNT(<列名>SUM/AVG/MAX/MIN(<列名>):求一列值得總和/平均值/最大值/最小值(數值型)讓我們先分析一下,我們經常遇到的計算問題的類型1:計算元組(記錄)的個數:如現在正在上機的人數,需要在上機表中進行查詢並將其顯示出來。這裡我們可以利用對象的屬性來解決:dim mrc as adodb.recordsetdim
Time of Update: 2013-11-15
說明:【oracle問題集】是博主平時操作資料庫遇到的問題以及解決方案。執行語句:表示操作資料庫過程出錯現象:表示操作資料庫過程出現錯誤現象出錯原因:表示出現錯誤的原因解決方案:表示解決錯誤的方法相關知識:表示與這個主題相關的知識======================================================================================執行語句: 啟動資料庫startup出錯現象:
Time of Update: 2013-11-15
public class TransactionTest {public static void main(String[] args) throws Exception {Connection conn = ConnectionFactory.getInstance().getLocalConnection();int money=0;ResultSet rt=null;try {conn.setAutoCommit(false);Statement st
Time of Update: 2013-11-15
# For advice on how to change settings please see# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the# *** default location during install, and will be
Time of Update: 2013-11-15
flashback query是基於undo資料表空間的閃回,與之相關的參數如下:SQL> show parameter
Time of Update: 2013-11-15
2 logging 3 datafile '/opt/oracle/oradata/bisal/test_data_01.dbf' 4 size 10M 5 autoextend on 6 next 10m maxsize 2000m 7 extent management local;Tablespace created.total 1.5G-rw-