做一個2個資料庫間資料比較工具時遇到ORACLE中漢字排序的問題。使用一下SQLselect * from T_0303003 order by stock_holder進行選取資料時(stock_holder為存放中文的欄位),結果發現兩庫返回的記錄順序不一致。琢磨之後應該為字元集問題,一個庫字元集為系統預設字元集,另一個庫為UTF-8字元集。尋找資料後發現,對於中文欄位的排序,應該使用以下方式:-- 按拼音排序 (系統預設)select * from T_0303003 order by n
select * from user_objects where object_type='TABLE';select * from all_tables where owner='KH';select * from dba_users; select * from user_all_tables;select name,dbid from v$database;--索引相關select * from dba_indexes where owner='KH'; --索引,包括主鍵索引
<H2>IntroductionInserting CLOB data in Oracle</H2><P dir=ltr style="MARGIN-RIGHT: 0px">Even the latest versions of Oracle's database have a limitation on the size of strings that they can handle when storing and retrieving data
1.指定開啟資源限制。該改變對密碼資源無效,密碼資源總是可用。 alter system set resource_limit=true; (預設不開啟) 2.建立profile create profile test limit idle_time 30 connect_time 480 ; 註:必須要有create profile 許可權,才能建立profile。 3.指定使用者profile alter user test profile test; 4.修改profile
The procedure :CREATE OR REPLACE PROCEDURE createSequence ( the_seq OUT NUMBER ) IS vs_prevyear CHAR(4); vs_curyear CHAR(4); vs_curseq NUMBER; BEGIN -- get the year of the latest created changelog
Book DescriptionOracle PL/SQL Recipes is your go to book for PL/SQL programming solutions. It takes a task-oriented approach to PL/SQL programming that lets you quickly look up a specific task and see the pattern for a solution. Then it’s as simple
Win2003+Vs2003+Oracle9.0 建立Oracle的預存程序,如果有參數,不論是in或者out類型的,都不能夠指定參數的大小,理由很簡單,無法判斷。 建立過程: Create or replace procedure procedure_test(inpara1 in varchar2, inpara2 in varchar2 ) as begin .. end procedure_test; /