ÔÚoracleÖÐÁÙʱ±íµÄÖÖÀà
ÁÙʱ±íµÄ¸ÅÄ
ÔÚOracleÊý¾Ý¿âÖл¹ÓÐÒ»ÖÖÀàÐÍµÄ±í£¬½Ð×öÁÙʱ±í¡£Õâ¸öÁÙʱ±í¸úÓÀ¾Ã±í×î´óµÄÇø±ð¾ÍÊDZíÖеÄÊý¾Ý²»»áÓÀÔ¶µÄ´æÔÚ¡£µ±Ò»¸ö»á»°½áÊø»òÕßÊÂÎñ½áÊøµÄʱºò£¬Õâ¸öÁÙʱ±íÖеÄÊý¾Ý£¬²»ÓÃÓû§×Ô¼ºÉ¾³ý£¬Êý¾Ý¿â×Ô¼º»á×Ô¶¯Çå³ý¡££¨±íÊÇÈ«¾Ö£¬Ö»ÊÇÊý¾ÝÏûʧ£©
OracleÊý¾Ý¿â¸ù¾ÝÁÙʱ±íµÄÐÔÖʲ»Í¬£¬¿ÉÒÔ·ÖΪÊÂÎñÁÙʱ±íÓë»á»°ÁÙʱ±í¡£ÊÂÎñÁÙʱ±íÊÇÖ¸Êý¾ÝÖ»ÓÐÔÚµ±Ç°ÊÂÎñÄÚÓÐЧ¡£Ò»°ãÇé¿öÏ£¬Èç¹ûÔÚ´´½¨Êý¾Ý±íµÄʱºò£¬Ã»ÓÐÌØÊâÖ¸Ã÷Õâ±íÊǻỰÁÙʱ±íµÄ»°£¬Ôò¸Ã±íĬÈÏΪÊÂÎñÁÙʱ±í¡£
ÊÂÎñÁÙʱ±í£º
Create global temporary table Temp_user
¡¡¡¡(ID NUMBER(12) Primary key,name varchar2(10)) ON COMMIT DELETE ROWS
;
»á»°ÁÙʱ±í£º
CREATE GLOBAL TEMPOPARY TABLE TEMP_USER
¡¡¡¡(ID NUMBER(12) Primary key,name varchar2(10))
¡¡¡¡ON COMMIT PRESERVE ROWS
;
¡¡¡¡Ò²¾ÍÊÇ˵£¬»á»°ÁÙʱ±í¸úÊÂÎñÁÙʱ±íµÄ´´½¨Óï·¨´óÖÂÏàͬ£¬Ö»ÓÐ×îºóµÄ¹Ø¼ü×ÖÓÐÇø±ð
¡£²»¹ýÁ½¸ö±íËäÈ»ÀàËÆ£¬µ«ÊÇÆäÄÚ²¿µÄ´¦Àí»úÖÆ»¹ÊÇÓбȽϴóµÄÇø±ð¡£
Çø±ð£ºÊÂÎñÁÙʱ±í£¬ÔÚÌá½»ÊÂÎñºó£¬±íÖеÄÊý¾Ý¾ÍÏûʧÁË£¬µ«ÊǻỰÁÙʱ±í²»»á£¡~
»á»°ÁÙʱ±í£¬Ìá½»ÊÂÎñºó£¬ÒÀ¾ÉÄܲéѯ£¬µ«ÊǹرÕÊý¾Ýºó£¬ÖØÐÂÁ¬½Óʱ£¬±íÖеÄÊý¾Ý²Å»áÏûʧ£¡~
´ÓÒÔÉϵķÖÎöÎÒÃÇ¿ÉÒÔ¿´ÖУ¬»á»°ÁÙʱ±íÓëÊÂÎñÁÙʱ±íÖ÷ÒªµÄ²îÒì¾ÍÔÚÓÚɾ³ýÊý¾Ýʱ»úµÄ²»Í¬¡£ÊÂÎñÐÔÁÙʱ±íÊÇÔÚÊÂÎñÌá½»µÄʱºòÇå³ýÊý¾Ý£¬¶ø»á»°ÐÔÁÙʱ±íÔòÊÇÔڹرյ±Ç°»á»°µÄʱºòÇå³ýÁÙʱ±í¡£Ö»Òªµ±Ç°»á»°Ã»Óйرգ¬¼´Ê¹ÊÂÎñÍê³ÉÁË£¬»á»°ÁÙʱ±íÖеÄÊý¾ÝÈÔÈ»´æÔÚ£¬²»»á±»Çå³ý¡£
Ïà¹ØÎĵµ£º
extent--×îС¿Õ¼ä·ÖÅ䵥λ --tablespace management
block --×îСi/oµ¥Î» --segment management
create tablespace james
datafile '/export/home/oracle/oradata/james.dbf'
size 100M ¡¡¡¡¡¡¡¡¡¡¡¡--³õʼµÄÎļþ´óС¡¡
autoextend On¡¡¡¡¡¡¡¡ --×Ô¶¯Ôö³¤
next 10M¡ ......
Oracle¹ÜÀíÓëά»¤.Êý¾Ý¿âµÇ¼µÄÉíÖ¤ÑéÖ¤
²Ýľ¹Ï
20080505
Ò»¡¢Ð´ÔÚÇ°Ãæ
Ôø¾²¢²»ÖªµÀconn / as sysdbaΪºÎÎÔÚunixϸãÁË°ëÌì·½Öª£¬»¹ÐèÒª¼ÓÉÏ"ºÅ£¬Oracle 10gÀï
ÖÕÓÚÒ²¿¼Âǵ½ÁËÕâ¸öÎÊÌ⣬²»ÔÙÊܵ½" as sysdba "µÄÏÞÖÆ¡£
ÈçÏÂËùʾ£º
[oracle@liwei admin]$ sqlplus / as sysdba
......
Oracle Óû§¼°½ÇÉ« ½éÉÜ ÊÕ²Ø
Ò». Óû§¹ÜÀí
1.1 ½¨Á¢Óû§£¨Êý¾Ý¿âÑéÖ¤£©
CREATE USER DAVE IDENTIFIED BY pwd
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp ......
£±¡¢È·¶¨ÄãµÄ¼ÆËã»úÉÏ×°ÓÐoracleµÄ¿Í»§¶Ë£¬Èç¹ûûÓУ¬Çë°²×°oracle¿Í»§¶Ë
£²¡¢È·¶¨ÓÐÄãµÄoracle·þÎñÀïÓÐÄãÒªÐèÒª±¸·ÝµÄÊý¾Ý¿âµÄ·þÎñÃû¡£
£³¡¢ÖÆ×÷Ò»¸öÅú´¦ÀíÎļþ£¨oracleBackup.bat£©£¬¾ßÌå·½·¨£º´ò¿ª“¼Çʱ¾”£¬±£´æΪoracleBackup.bat£¬
¡¡¡¡´Ëʱ±£´æµÄÎļþÀàÐÍÑ¡ÔñΪ“ËùÓÐÎļþ”¡£Îҵı£´æÄ¿Â ......
oracleÈÃid×Ô¶¯Ôö³¤£¨insertʱ²»ÓÃÊÖ¶¯²åÈëid£©µÄ°ì·¨£¬ÏñMysqlÖеÄauto_incrementÄÇÑù
´´½¨ÐòÁÐ
create sequence emp_seq
increment by 1
start with 1
nomaxvalue
nocycle
......