伺服器Oracle 9i,用戶端Oracle 10g。問題1:NHibernate配置的Driver為NHibernate.Driver.OracleClientDriver,存入Clob、NClob欄位,值比較大時報錯,錯誤資訊中文:ORA-01461: 僅可以為插入 LONG 列的 LONG 值賦值英文:ORA-01461: can bind a LONG value only for insert into a LONG columnGoogle一下有很多人碰到這個問題,有人猜測是MS
--建立使用者並賦予相應許可權create user test identified by "test";grant dba to test;grant unlimited tablespace to test;grant create any table to test;--建立資料表空間create tablespace SM10001 logging datafile 'd:\oracle\test_data01.dbf' size 32m autoextend(自動擴充)
轉自:http://blog.csdn.net/lele5000/article/details/6704247寫在前面:MD5和Base64的函數實現並不是本文的重點,重點是在實現過程中遇到的字元集轉換的麻煩 最近由於工作需要,要將BIEE與公司現有的ERP系統做整合,使用外部表格的方式。現有系統基於.Net平台,資料庫為SQL Server 2008 R2,使用者密碼採用先算MD5在轉Base64的方式存於資料庫中。代碼邏輯如下view plaincopy to
oracle 如果server與client端的編碼不一致,asp.net讀取db記錄顯示時,就可能出現亂碼查看oracle服務端編碼:select * from sys.nls_database_parameters;查看client編碼:select * from sys.nls_session_parameters; 如果二端編碼不一致,可以修改用戶端的編碼:regedit開啟註冊表:HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE/KEY_OraDb10g_home1
--基礎:select * from area select * from cgfpmxb/*可以包含任意運算式*//*指定別名可以直接寫 也可以 as aa *//*將兩個欄位合并成一個欄位的方法 用||*//*可以在語句中加一個字串 用單引號括起來*/select itemid || itemname || amount || 'hello'taxamount,amount*taxratio/10.00 "aa" from cgfpmxb /*null的使用*/ select *
Oracle查詢重複資料與重複資料刪除記錄方法 比如現在有一人員表 (表名:peosons) 若想將姓名、社會安全號碼、住址這三個欄位完全相同的記錄查詢出來 select p1.* from persons p1,persons p2 where p1.id<>p2.id and p1.cardid = p2.cardid and p1.pname = p2.pname and p1.address =