Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

²Ù×÷oracleÖеÄÊý¾ÝÎļþ

ÊÕ²ØÓÚhttp://dev.yesky.com/296/8090796.shtml
OracleÊý¾Ý¿â
ÖйÜÀí±í¿Õ¼äºÍÊý¾ÝÎļþ

 
Êý¾Ý¿âµÄÈý´ó×é³É²¿·Ö:Êý¾ÝÎļþ£¬¿ØÖÆÎļþ£¬RedoÈÕÖ¾¡£
±í¿Õ¼ä·ÖΪϵͳ±í¿Õ¼äºÍ·Çϵͳ±í¿Õ¼ä¡£
 
SYSTEM±í¿Õ¼äÊÇ×î»ù±¾µÄ£¬±ØÐëµÄ£¬Oracle½¨ÒéÄãΪÓû§Êý¾Ý£¬Óû§Ë÷Òý£¬UndoÊý¾Ý¶Î£¬ÁÙʱÊý¾Ý¶Î´´½¨µ¥¶ÀµÄ±í¿Õ¼ä¡£
 
¹ÜÀíÔ±¿ÉÒÔ¶Ô±í¿Õ¼äÖ´ÐÐÒÔϹÜÀí²Ù×÷£º

1.н¨±í¿Õ¼ä£¬µ÷ÕûÊý¾ÝÎļþ´óС£¬Ìí¼ÓÊý¾ÝÎļþµ½±í¿Õ¼ä¡£
2.ÉèÖúÍÐÞ¸ÄȱʡµÄÊý¾Ý¶Î´æ´¢ÉèÖá£
3.ʹ±í¿Õ¼ä±äΪֻ¶Á»ò¶Áд״̬¡£
4.ÉèÖñí¿Õ¼äΪÁÙʱ»òÓÀ¾Ã¡£
5.ɾ³ý±í¿Õ¼ä¡£
 
´´½¨±í¿Õ¼äµÄÃüÁ

SQL> create tablespace userdat datafile '/home/oracle/oradata/userdat01.dbf' size 10m autoextend on next 1m maxsize 20m;
Tablespace created.
 
±í¿Õ¼äÖеÄextents¿ÉÒÔÓÉÊý¾Ý×Öµä±í»òλͼ½øÐйÜÀí£¬´´½¨±í¿Õ¼äʱ¿ÉÒÔÑ¡Ôñ£º
±¾µØ¹ÜÀí±í¿Õ¼ä£ºextent management local
×Öµä¹ÜÀí±í¿Õ¼ä£ºextent management dictionary
 
Undo±í¿Õ¼ä£º

½öÓÃÓÚ´æ´¢undoÊý¾Ý¶Î£¬extentÖ»ÄܲÉÓñ¾µØ¹ÜÀí¡£
 
Temp±í¿Õ¼ä£º

½öÓÃÓÚÅÅÐò²Ù×÷£¬²»°üº¬ÈκÎÓÀ¾Ã¶ÔÏó£¬extentÍƼö²ÉÓñ¾µØ¹ÜÀí¡£
 
ÒÔÏÂÃüÁîÓÃÓÚÖ¸¶¨ÏµÍ³µÄȱʡÁÙʱ±í¿Õ¼ä£º

SQL> alter database default temporary tablespace temp;
 
±í¿Õ¼äÀëÏߣº

ÀëÏߵıí¿Õ¼äÎÞ·¨·ÃÎÊ£¬ÓÃÓÚÊý¾Ýά»¤¡£
system±í¿Õ¼ä£¬Óлundo¶ÎµÄ±í¿Õ¼äºÍȱʡµÄÁÙʱ±í¿Õ¼ä²»ÄÜÖÃÓÚÀëÏß״̬¡£
 
²Ù×÷ÃüÁ

SQL> alter tablespace users offline;
Tablespace altered.
SQL> alter tablespace users online;
Tablespace altered.
 
 
 
½«±í¿Õ¼äÖÃΪֻ¶ÁģʽºÍ¶Áдģʽ£º

SQL> alter tablespace users read only;
Tablespace altered.
SQL> alter tablespace users read write;
Tablespace altered.
ɾ³ý±í¿Õ¼ä£º

SQL> drop tablespace userdat including contents and datafiles;
Tablespace dropped.
ÊÖ¹¤¸Ä±äÊý¾ÝÎļþµÄ´óС£º

SQL> alter database datafile '/home/oracle/oradata/gldb/users01.dbf' resize 20m;
Database altered.
Ìí¼ÓÊý¾ÝÎļþµ½±í¿Õ¼ä£º

SQL> alter tablespace users add datafile '/home/oracle/oradata/gldb/users02.dbf' size 1m;
Tabl


Ïà¹ØÎĵµ£º

oracle ±í¿Õ¼ä²Ù×÷

oracle±í¿Õ¼ä²Ù×÷Ïê½â
  1
  2
  3×÷Õߣº   À´Ô´£º    ¸üÐÂÈÕÆÚ£º2006-01-04 
  5
  6 
  7½¨Á¢±í¿Õ¼ä
  8
  9CREATE TABLESPACE data01
 10DATAFILE '/ora ......

oracle¸´Ï°£¨Ò»£© Ö®OracleÌåϵ½á¹¹

      ѧϰOracle DBAÒ²°ë¸ö¶àѧÆÚÁË£¬½ñÌìÃÍÈ»²Å·¢ÏÖ£¬Ô­À´ÎÒµÄÊ黹ÊǺÜеģ¬ÉϿβÙ×÷ʱºòÒ²Ö»ÊÇÖªµÀ´ó¸ÅÔõô×ö£¬µ«ÊÇÒªÕæµÄÈ«²¿×Ô¼º×ö£¬¶ø²»È¥·­Ê黹ÊÇÓÐÒ»¶¨µÄÄѶȵģ¬ËùÒÔÄØ£¬½ñÌ쿪ʼ½«DBA´ÓÍ·¸´Ï°Ò»±é£¬Í¬Ê±ÔÙ²Ù×÷Ò»±é¡£
      µÚÒ»Õ£¬Ñ§µÄÊÇOracleµÄÌåϵ½á¹¹£ ......

Exam : Oracle 1Z0 051

Exam : Oracle 1Z0-051
Title : Oracle Database: SQL Fundamentals I
1. View the Exhibit to examine the description for the SALES table.
Which views can have all DML operations performed on it? (Choose all that apply.)
A. CREATE VIEW v3
AS SELECT * from SALES
WHERE cust_id = 2034
WITH CHECK OPTI ......

oracle ÐÂÔöÓû§,ÉèÖÃȨÏÞ

ÿ¸öOracleÓû§¶¼ÓÐÒ»¸öÃû×ֺͿÚÁî,²¢ÓµÓÐһЩÓÉÆä´´½¨µÄ±í¡¢ÊÓͼºÍÆäËû×ÊÔ´¡£Oracle½ÇÉ«£¨role£©¾ÍÊÇÒ»×éȨÏÞ£¨privilege£©(»òÕßÊÇÿ¸öÓû§¸ù¾ÝÆä״̬ºÍÌõ¼þËùÐèµÄ·ÃÎÊÀàÐÍ)¡£Óû§¿ÉÒÔ¸ø½ÇÉ«ÊÚÓè»ò¸³ÓèÖ¸¶¨µÄȨÏÞ£¬È»ºó½«½ÇÉ«¸³¸øÏàÓ¦µÄÓû§¡£Ò»¸öÓû§Ò²¿ÉÒÔÖ±½Ó¸øÆäËûÓû§ÊÚȨ¡£
    Êý¾Ý¿âϵͳȨÏÞ£¨Dat ......

OracleµÄ¼¸¸öNULLº¯Êý

ƽʱÓõıȽ϶àµÄ£¬¾ÍÊÇNVL£¬Ã»ÔõôÔÚÒâÆäËû¼¸¸ö¡£
NVL ¾Í²»ÓÃ˵ÁË£¬¾ÍÊÇÅжϵÚÒ»¸öÊÇ·ñΪNULL£¬ÊǾÍÓõڶþ¸ö´úÌ棬²»ÊǾͷµ»ØµÚÒ»¸ö¡£
NVL2 Ò²ÊÇÅжϵÚÒ»¸öÊÇ·ñΪNULL£¬µ«ÊÇ·µ»Øֵȴ²»Í¬¡£µÚÒ»¸öΪNULL£¬¾Í·µ»ØµÚÈý¸ö£¬·ñÔò·µ»ØµÚ¶þ¸ö¡£
NULLIF ÅжÏÁ½¸ö²ÎÊýÊÇ·ñÏàµÈ£¬ÏàµÈ·µ»ØNULL£¬·ñÔò·µ»ØµÚÒ»¸ö²ÎÊý¡£
COALESCE Õâ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ