ÀûÓÃoracleÉó¼Æ¹¦ÄÜÀ´¼à¿Ø²âÊÔÊý¾Ý¿âµÄ±ä»¯
ÀûÓÃoracleÉó¼Æ¹¦ÄÜÀ´¼à²âÊÔ»·¾³µÄ±ä»¯
×ö¹ý²âÊÔµÄÈ˶¼Ó¦¸Ã»áÅöµ½ÕâÑùµÄÇé¿ö£º²âÊÔ·¢ÏÖµÄbugÔÚ¿ª·¢»úÆ÷ÉÏûÓгöÏÖ£¬ÏÔÈ»ÕâÊÇ»·¾³²îÒìµÄÔÒò¡£Ï൱¶àÇé¿öÏ£¬ÒòΪ²âÊÔʹÓõÄÊý¾Ý¿â½á¹¹ºÍ¿ª·¢Ê¹ÓõÄÊý¾Ý¿â½á¹¹²»Ò»ÖÂÔì³ÉµÄ¡£ÓÈÆäÊÇһЩ¹«Ë¾ÔÚÌá½»²âÊÔ°æ±¾µÄʱºò£¬×¢ÖØÓ¦ÓóÌÐòµÄ°æ±¾Ìá½»£¬ÍùÍùºöÂÔÌá½»ºÍ³ÌÐòÆ¥ÅäµÄÊý¾Ý¿â½á¹¹£¬ÔÚÕâÖÖÇé¿öÏ£¬Èç¹û³ÌÐòºÍÊý¾Ý¿â½á¹¹²»Æ¥ÅäµÄ»°£¬ÏµÍ³Îȶ¨¾Í¹ÖÁË£¬¾ÍÏñwindowsûÓжÔÓ¦µÄ×¢²á±íÒ»Ñù£¬ÄÜÎȶ¨Âð£¿
»Øµ½ÕýÌ⣬Èç¹û²ÉÓÃoracle×÷Ϊµ×²ãÊý¾Ý¿âµÄϵͳ£¬ÈçºÎ±ÜÃâÕâÖÖÇé¿öÄØ£¿Æäʵ£¬OracleµÄÉó¼Æ¹¦ÄܳýÁËÓÃÓÚ°²È«ÐÔ¼ì²éÖ®Í⣬·Åµ½²âÊÔÁìÓòÔòÓÐÒ»¸öºÃ´¦£¬¾ÍÊǼà¿Ø²âÊÔÊý¾Ý¿âµÄ±ä»¯Çé¿ö¡£OracleÉó¼ÆÄÚÈݺܷḻ£º°üÀ¨Óï¾äÉó¼Æ¡¢¶ÔÏóÉó¼Æ¡¢Ï¸Á£¶ÈÉó¼Æ£¨FGA£©£¬¼à¿ØÊý¾Ý¿â»·¾³µÄ±ä»¯£¬Ö»ÒªÓõ½Óï¾äÉó¼ÆºÍ¶ÔÏóÉó¼Æ¼´¿É¡£
Ê×ÏÈ£ºÐèÒª¼ì²éÊý¾Ý¿â·þÎñÆ÷ÊÇ·ñ¿ªÆôÁËÉó¼Æ£¬²ÉÓÃshow parameter audÃüÁî¡£
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show parameter aud
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
audit_file_dest string F:\APP\ADMINISTRATOR\ADMIN\ORC L\ADUMP
audit_sys_operations boolean FALSE
audit_trail string FALSE
Èç¹ûaudit_trail = FALSE»òÕßnone£¬Ôò±íÃ÷ûÓпªÆôÉó¼Æ¹¦ÄÜ£¬ÐèÒª¿ªÆôÉó¼Æ¹¦ÄÜ£¬ÎªÁ˽¨Á
Ïà¹ØÎĵµ£º
Oracle ´æ´¢¹ý³Ì·µ»Ø½á¹û¼¯Óà ref cursor ʵÏÖ¡£ÊÔÑé²½ÖèÈçÏ£º
1. ½¨Á¢ ref cursor ÀàÐͺ͹ý³Ì
CREATE OR REPLACE PACKAGE types
AS
TYPE ref_cursor IS REF CURSOR;
END;
/
CREATE TABLE STOCK_PRICES(
RIC VARCHAR(6) PRIMARY KEY,
PRICE NUMBER(7,2 ......
½ñÌìÅöµ½Ò»¸öÎÊÌ⣬ͨ¹ýÒ»¸öSQLÓï¾ä²éѯʱ£¬³öÈçÏÂÎÊÌ⣺
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at "WMSYS.WM_CONCAT_IMPL", line 30
ÎÊÌâ³öÏÖÔÚͨ¹ýWMSYS. ......
ʲôÊǺϲ¢¶àÐÐ×Ö·û´®£¨Á¬½Ó×Ö·û´®£©ÄØ£¬ÀýÈ磺
SQL> desc test;
Name Type Nullable Default Comments
------- ------------ -------- ------- --------
COUNTRY VARCHAR2(20) Y &nb ......
drop table tmp_lzw_3283_tar;
create table tmp_lzw_3283_tar
(
servnumber varchar2(11)
)
;
load data
infile 'tar_3283.txt'
insert into table tmp_lzw_3283_tar
fields terminated by '|'
(
servnumber
)
/*
select count(*),count(distinct servnumber) from tmp_lzw_3283_ta ......