oracle Êý¾ÝÎļþ¹ÜÀí
author£ºskate
time£º2010-05-25
Êý¾ÝÎļþ¹ÜÀí
1. datafile add
2. datafile delete
3. datafile resize
4. datafile rename
1. datafile add
Ìí¼Ó±í¿Õ¼ä£¬´Ó¶øÌí¼Ódatafile
SQL> create tablespace tbs_skate
2 datafile '+datagroup' size 20m;
Tablespace created
SQL> select tablespace_name,status,extent_management,segment_space_management from dba_tablespaces
2 ;
TABLESPACE_NAME STATUS EXTENT_MANAGEMENT SEGMENT_SPACE_MANAGEMENT
------------------------------ --------- ----------------- ------------------------
SYSTEM ONLINE LOCAL MANUAL
UNDOTBS1 ONLINE LOCAL MANUAL
SYSAUX ONLINE LOCAL AUTO
TEMP ONLINE LOCAL MANUAL
USERS ONLINE LOCAL AUTO
GPTBS &n
Ïà¹ØÎĵµ£º
(1)´´½¨ Oracle ×éºÍÓû§ÕÊ»§
ÀýÈ磺
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# /usr/sbin/useradd -m -g oinstall -G dba oracle
# id oracle
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)
ÉèÖà oracle ÕÊ»§µÄ¿ÚÁ
passwd oracle
(2)´´½¨Ä¿Â¼
ÀýÈ磺
# mkdir -p /orac ......
ÐÞ¸ÄÁÐÊôÐÔ
alter table tablename modify(name ,varchar2(10)) Áпí¶È²»µÃСÓÚÐÞ¸ÄÇ°µÄ¿í¶È
ÈÕÖ¾¹ÜÀí
ÊÓͼ v$logfile
alter database add logfile 'd:\orcl01.log' size 10m;//Ìí¼Ó×é
alter database add logfile member 'd:\orcl02.log' to group 4;//Ïò4×éÖÐÌí¼Ó³ÉÔ±
alter database drop logfile member 'd: ......
1)ÔÚdelphiÖÐ,¾³£ÓÐÈËдSQL²¢´«Èëµ½Êý¾Ý¿âÖÐÖ´ÐÐ,Ò»°ã¶¼ÊÇ°ÑsqlÆ´³öÀ´,ÈçÏÂ:
sSql := 'select * from ContainerStateH where container like '+QuotedStr('%'+trim(Edit2.Text)+'%') +' order by BeginDay';
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add(sSql);
ADOQuery1.Open;
µ«ÊÇ´ÓoracleÊý¾Ý¿â½Ç¶È¿¼Â ......
ÔÚ´´½¨Êý¾Ý¿âʱ£¬SPFileÎļþÖв¿·Ö±ØÐ뿼ÂǵIJÎÊýÖµ£º
¡¡¡¡»ù±¾¹æÔò
¡¡¡¡a.ÔÚSPFileÎļþÖУ¬ËùÓвÎÊý¶¼ÊÇ¿ÉÑ¡µÄ£¬Ò²¾ÍÊÇ˵ֻÐèÒªÔÚ³õʼ»¯²ÎÊýÎļþÖÐÁгöÄÇЩÐèÒªÐ޸ĵIJÎÊý£¬ÆäËü±£³ÖĬÈÏÖµ¼´¿É¡£
¡¡¡¡b.SPFileÎļþÖÐÖ»ÄÜ°üº¬²ÎÊý¸³ÖµÓï¾äºÍ×¢ÊÍÓï¾ä¡£×¢ÊÍÓï¾äÒÔ“#”·ûºÏ¿ªÍ·£¬Êǵ¥ÐÐ×¢ÊÍ¡£
¡¡¡¡c.SPFileÎÄ ......
Âß¼ÉÏ£º
Single column µ¥ÐÐË÷Òý
Concatenated ¶àÐÐË÷Òý
Unique ΨһË÷Òý
NonUnique ·ÇΨһË÷Òý
Function-basedº¯ÊýË÷Òý
Domain ÓòË÷Òý
ÎïÀíÉÏ£º
Partitioned ·ÖÇøË÷Òý
NonPartitioned ·Ç·ÖÇøË÷Òý
B-tree£º
Normal Õý³£ÐÍBÊ÷
Rever Key ·´×ªÐÍBÊ÷
Bitmap λͼË÷Òý
Ë÷Òý½á¹¹£º
B-tree£º
ÊʺÏÓë´óÁ¿µÄÔö¡ ......