Oracleѧϰ±Ê¼Çժ¼9
a)Êý¾Ý¿â±¾ÉíµÄÓÅ»¯
³õʼ»¯Îļþ init.ora
open_cursors = 150 ´ò¿ªµÄÓαêµÄ¸öÊý
ºÜ¶àµÄ´æ´¢¹ý³ÌµÄʱºò ¿ÉÒÔ°ÑËüµ÷´óЩ
processes = 150 ²¢·¢Á¬½ÓµÄÓû§Êý
ͬʱÔÚÏßµÄÓû§ºÜ¶à ¿ÉÒÔ°ÑËüµ÷´ó processes = (ÔÚÏßÓû§Êý)/2
b)Ó¦ÓóÌÐòµÄÓÅ»¯ ********
<1>ÐòÁеÄʹÓÃ
×Ô¶¯±àºÅ
a) ×î´óºÅ+1(´æÔÚȱÏݵÄ,²»ÄÜÓÃ,²¢·¢µÄʱºò³öÏÖËæ»úµÄ´íÎó)
create or replace function f_getmax
return number
as
maxno number;
newmax number;
begin
--È¡³ö±íÖеÄ×î´óµÄÔ±¹¤ºÅ
select max(empno) into maxno from
emp ;
--ÈÃÕâ¸öÖµ+1ºó·µ»Ø
return (maxno +1);
end;
b)ÐòÁÐ
--½¨Á¢ÐòÁÐ
create sequence seq1 start with 7935;
--´ÓÐòÁÐÖÐÈ¡³öÔ±¹¤ºÅ
create or replace function f_getmax
return number
as
maxno number;
begin
--È¡³öÐòÁÐÖеÄÖµ
select seq1.nextval into maxno
from dual;
--ÈÃÕâ¸öÖµ·µ»Ø
return maxno;
end;
<2> ²¢·¢ -- ¶à¸öÈËÔÚʹÓÃ
¼×:update emp
set sal =1000
where empno = 7369;
ÒÒ:update emp
&
Ïà¹ØÎĵµ£º
×î½üÏîÄ¿½ø¶È±È½Ï»ºÂý£¬³õ²½Ñо¿ÁËÒ»ÏÂOracleµÄ´æ´¢¹ý³Ì£¬½«´úÂëÌù³öÀ´¡£
Ê×ÏÈÏÈÌù³öÀ´OracleµÄ·ÖÒ³·ÖÒ³´æ´¢¹ý³Ì´úÂë°É¡£
1.ÕâÊÇ°üµÄ´úÂë
create or replace package DB_Oper is
-- Author : LIUBING
-- Created : 2009-10-28 15:01:30
-- Purpose : ²âÊÔOracleµ ......
ΪÁËÈ·¶¨±í¿Õ¼äÖаüº¬ÄÇЩÄÚÈÝ£¬ÔËÐУº
select owner,segment_name,segment_type
from dba_segments
where tablespace_name='<name of tablespace>'
²éѯ±í¿Õ¼ä°üº¬¶àÉÙÊý¾ÝÎļþ¡£
select file_name, tablespace_name
from dba_data_files
where tablespace_name ='<name of t ......
oracleÖÐconnect by priorʵÏֵݹé²éѯ
ÊÕ¼¯µÄ¼¸ÌõÔÚoracleÖÐͨ¹ýconnect by priorÀ´ÊµÏֵݹé²éѯ
Start with...Connect By×Ó¾äµÝ¹é²éѯһ°ãÓÃÓÚÒ»¸ö±íά»¤Ê÷ÐνṹµÄÓ¦Óá£
´´½¨Ê¾Àý±í£º
CREATE TABLE TBL_TEST
(
ID NUMBER,
NAME VARCHAR2(100 BYTE),
PID NUMBER &nbs ......
1¡¢ÅäÖÃhibernate£º
1.1¡¢ÅäÖÃhibernateµÄ³Ö¾ÃÀàÎļþÖжÔÓ¦µÄ×Ö¶ÎΪbyte[]ÀàÐÍ
2.2¡¢ÅäÖÃhibernateµÄÀàÓ³ÉäÎļþÖжÔÓ¦µÄ×Ö¶ÎtypeΪ
org.springframework.orm.hibernate3.support.BlobByteArray ......
ÓÃ;: <1>Ä£¿é»¯
<Àý×Ó> --¹«Ë¾µÄÔ±¹¤µÄ¹ÜÀí
1.Ôö¼ÓÒ»¸öÔ±¹¤
2.Ô±¹¤ÀëÖ°
Óô洢¹ý³ÌºÍº¯ÊýÀ´ÊµÏÖ
1.Ôö¼ÓÒ»¸öÔ±¹¤
create sequence seq1 start with 7935;
create or replace function insert ......