從在Linux上安裝Oracle到投入使用才幾天,碰到的問題就成百上千的。在使用用戶端串連遠程Oracle資料庫伺服器時,出現了listener refused the connection with the following error ora-12519 Listener refused the connection with the following error:ORA-12519, TNS:no appropriate service handler foundThe
ORDER BY 是用來對select結果排序的,很簡單,但是也總結一下吧。1. 按列名排序,預設是升序的。 單列升序:select<column_name> from <table_name> order by <column_name>; 單列降序:select <column_name> from table_name order by <column_name> desc;
Parsing command line arguments: Parameter "silent" = truejava.lang.ArrayIndexOutOfBoundsException: 2 at oracle.net.ca.CmdlineArgs.parseArgs(Unknown Source) at oracle.net.ca.InitialSetup.<init>(Unknown Source) at oracle.
位元影像索引適用於低基數(low-cardinality)列,所謂低基數列就是指這個列只有很少的可取值。位元影像索引的問題:採用位元影像索引,一個鍵指向多行,可能數以百計甚至更多。如果更新一個位元影像索引鍵,那麼這個鍵指向的數百條記錄會與你實際更新的那一行一同被有效地鎖定。位元影像索引的適用情境:位元影像索引是針對那些值不經常改變的欄位的,在實際應用中,如果某個欄位的值需要頻繁更新,那麼就不適合在它上面建立位元影像索引。1、文法create bitmap index index_name on
工作筆記按使用者匯出再匯入執行個體,任務要求:1.從一台windows伺服器 A 上匯出 Test1 這個使用者的所有對象,然後匯入到linux伺服器 B 上的 Test2使用者。(已知Test1密碼為Test1passwd 或者用system使用者匯出也行)2.B機器上Test2使用者不存在,或Test2使用者已經存在
◆Oracle查詢使用者資料表空間:select * from user_all_tables ◆Oracle查詢所有函數和儲存過程:select * from user_source ◆Oracle查詢所有使用者:select * from all_users.select * from dba_users ◆Oracle查看目前使用者串連:select * from v$Session ◆Oracle查看目前使用者許可權:select * from
在查詢中排序時避免不了的,一般寫sql我們都會加排序欄位。如果排序欄位是字串,那就有點麻煩。比如一個數字欄位,本來應該設計成Integer型的,但設計成了varcher型。那排序就有問題。數位話,他會先拍最高位,再拍第2位。比如8,12降序排序就是8,12而不是我們想要的12,8.如果有Null 字元串,那Null 字元串就拍第一個。所以需要把字串轉成數字在排序,這樣就正常了。to_number() select * from cx_faq_main t where t.counter
先看看錶中的內容select name,pass from t1;2.方法一--使用decode函數select name,decode(pass,'pass111','密碼1','pass222','密碼2','','密碼為空白') from t1;注意:decode函數中如果你沒列出可能的情況,他就預設為空白3.方法二--使用nvl函數select name,nvl(pass,'密碼為空白') from t1;nvl函數只對查詢為空白的情況賦值4.方法三--使用case xxx
表資料;MENU_IDIS_TREE0001100021010120102 0103 0201502026 --------------使用decode函數select b.menu_id,decode(b.is_tree,'1','1vv','2','2vv',null,'isnullvalue','defaultvaluehehe') tree from menutree b--------------使用case when then else達到相同效果select