oracleн¨Óû§£¬ÊÚȨ£¬½¨±í¿Õ¼äÓï¾ä
oracle´´½¨±í¿Õ¼ä£¬´´½¨Óû§(ת)
¹Ø¼ü×Ö: oracle ±í¿Õ¼ä Óû§
//´´½¨ÁÙʱ±í¿Õ¼ä
create temporary tablespace test_temp
tempfile 'E:\oracle\product\10.2.0\oradata\testserver\test_temp01.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;
//´´½¨Êý¾Ý±í¿Õ¼ä
create tablespace test_data
logging
datafile 'E:\oracle\product\10.2.0\oradata\testserver\test_data01.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;
//´´½¨Óû§²¢Ö¸¶¨±í¿Õ¼ä
create user username identified by password
default tablespace test_data
temporary tablespace test_temp;
//¸øÓû§ÊÚÓèȨÏÞ
grant connect,resource to username;
//ÒÔºóÒÔ¸ÃÓû§µÇ¼£¬´´½¨µÄÈκÎÊý¾Ý¿â¶ÔÏó¶¼ÊôÓÚtest_temp ºÍtest_data±í¿Õ¼ä£¬Õâ¾Í²»ÓÃÔÚÿ´´½¨Ò»¸ö¶ÔÏó¸øÆäÖ¸¶¨±í¿Õ¼äÁË¡£
-----------------------------------------------
´´½¨±í£º
ÓÃÕâ¸öн¨Óû§µÇ¼oracle£¬´´½¨±í£º
Óû§±í ITS_USER
×Ö¶ÎÃèÊö
×Ö¶ÎÃû
ÀàÐÍ
Ö÷¼ü
²»Îª¿Õ
±¸×¢
Óû§´úÂë
USERXH
VARCHAR2(32)
TRUE
TRUE
Óû§ÐÕÃû
USERNAME
VARCHAR2(16)
FALSE
TRUE
ÐÕÃû
Óû§ÃÜÂë
PASSWORD
VARCHAR2(32)
FALSE
FALSE
Óû§ÃÜÂë
ÁªÏµµç»°
TELEPHONE
VARCHAR2(30)
FALSE
FALSE
ÁªÏµµç»°
¹ÜÀí²¿ÃÅ
GLBM
VARCHAR2(10)
FALSE
TRUE
¹ÜÀí²¿ÃÅ£¬its_departmnet.glbm
Óû§µÈ¼¶
YHDJ
VARCHAR2(2)
FALSE
TRUE
Óû§½ÇÉ«
YHJS
VARCHAR2(1)
FALSE
TRUE
‘1’¹ÜÀíÔ±£¬‘2’ÆÕͨÓû§
CREATE TABLE ITS_USER
(USERXH VARCHAR2(32) NOT NULL,
USERNAME VARCHAR2(16),
PASSWORD VARCHAR2(32),
TELEPHONE VARCHAR2(30),
GLBM VARCHAR2(10),
YHDJ VARCHAR2(2),
YHJS VARCHAR2(1),
constraint PK_T_SCORE primary key(USERXH)
);
----------------------------------------------------------
²éѯ£º
select * from ITS_USER
-------------------------------------------------------
²åÈëÊý¾Ý£º
INSERT INTO ITS_USER(USERXH,USERNAME,PASSWORD,
Ïà¹ØÎĵµ£º
Update SQLS will lead dead lock exception. Because by default, it use optimistic lock but not pessimistic lock.
Below description is exceprted from the attachment(It exceeds my image that this blog can not upload the attachment,hehe)
Optimistic locking offers an elegant solution to the problems o ......
ÌìÓв»²â·çÔÆ£¬
IBM µÄÖж˴ÅÅÌÕóÁÐÕâ´ÎÓÖÈÇ»öÁË¡£ÔÚ΢ÂëÉý¼¶µÄʱºò£¬
DS4800 ·¢Éú¹ÊÕÏ¡£IBM¹¤³Ìʦ°ÑÕóÁйÊÕϻָ´ºó£¬ÅÄÅÄƨ¹É×ßÈË£¬ÁôÏÂÁËÕóÁÐÉϲ»Ò»ÖµÄÊý¾Ý¡£
û°ì·¨£¬ÕóÁÐÉϵÄÊý¾ÝÓÖµÃÎÒÃÇÀ´Ïë°ì·¨ÇÀ¾ÈÁË¡£¡£¡£¡£
»¹ºÃÓÐoracle supportµÄÖ§³ÖÎÒÃÇ×îÖÕ»¯½âÁËÕâ´ÎΣ»ú¡£ÏÂÎÄÏêϸ½éÉÜÁËÕû¸ö»Ö¸´µÄ¹ý³Ì¡£
&nbs ......
oracle³£Óú¯Êý-----------------------------------------------
SQLÖеĵ¥¼Ç¼º¯Êý
1.ASCII
·µ»ØÓëÖ¸¶¨µÄ×Ö·û¶ÔÓ¦µÄÊ®½øÖÆÊý;
SQL> select ascii(’A’) A,ascii(’a’) a,ascii(’0’) zero,ascii(’ ’) space from dual;
A A ZERO SPACE
--------- --------- - ......
Ò»Ö±ÏëѧϰÈçºÎµÃµ½Êý¾Ý¿âµÄIOÊý¾Ý£¬ORIONÊÇÒ»¸ö²»´íµÄ·ÂÕæ²âÊÔOracle IOµÄ¹¤¾ß¡£
ÏÂÃæÊÇÎҵIJâÊԵIJ½Ö裺
1 ´ÓoracleµÄÍøÕ¾ÉÏÏÂÔØORIONµÄÈí¼þ£¨11.1.0.7£©
2 ½âѹorion_linux_x86-64.gz
3 ½¨Á¢²ÎÊýÎļþ mytest.lun£¬ ÕâÀïµÄÁгöµÄÊÇ·ÖÇøÉ豸£¬ÎÒÔÚÉÏÃ潨Á¢ÁËasmÎļþϵͳ¡£ÒòΪÓÐÊý¾ÝÔÚÀïÃ棬ËùÒÔÎÒÓÃwrite=0Ö»²âÊ ......
ѪҺÃ÷ϸ±íÈçÏ£º
create table "blood"."OC_CarryOrderD" (
ID nvarchar2(20) &n ......