標籤: 1、監視索引是否使用 除了主鍵是完整性條件約束而自動變為索引外,建立普通索引的目的就是為了提高查詢速度,如果我們建立了索引而沒有被使用,那麼這些不被使用的索引將起到阻礙效能的作用。 文法: --檢查某個索引是否被使用 alter index index_name monitoring usage; --檢查所有索引使用方式 select * from V$OBJECT_USAGE; --刪除不使用的索引 drop index
標籤:oracle建立資料表空間和使用者授權建立資料表空間create tablespace users datafile ‘D:\Oracle\oracle\oradata\users.dbf‘ size 100m autoextend on next 100m maxsize 20480m extent management local; 建立使用者 &
標籤:ora-00604 ora-38301 今天需要在本機上騰出空間,發現oracle中有一個dbf檔案佔了約30G,這個資料檔案對應的使用者平時很少使用的,於是就想對它進行處理-刪除資料表空間操作。 原生資料庫是32位的10.2.0.1.0,資料表空間為TEST_TB存在若干個表資料。剛開始時用dba角色的system使用者,直接執行drop tablespace test_tb including contents and
標籤:Oracle laying off its Java evangelists? Er, no comment, says OracleSoon-to-be-redundant chap in pink slip slip on Facebook4 Sep 2015 at 23:04, Simon SharwoodOracle appears to be making redundancies in the ranks of its Java evangelists
標籤:預存程序建立文法: create or replace procedure 預存程序名(param1 in type,param2 out type)as變數1 類型(值範圍);變數2 類型(值範圍);Begin Select count(*) into 變數1 from 表A where列名=param1; If (判斷條件)
標籤:1.Oracle字串拼接 Oracle除了“||”,還支援使用CONCAT()函數進行字串拼接且會自動將其他類型轉換為字串,但與MYSQL的CONCAT()函數不同,Oracle的CONCAT()函數只支援兩個參數拼接,若多個參數需多個CONCAT()函數嵌套使用,如下面的SQL所示:SELECT CONCAT(CONCAT(CONCAT(‘工號為‘,FNumber),‘的員工姓名為‘),FName) FROM