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

Íæ×ªOracle£¨5£©

||-------  Êý¾Ý¿â¹ÜÀí  -------||
//ÏÔʾ³õʼ»¯²ÎÊý
show parameter;
//Êý¾Ý¿â±íµÄÂß¼­±¸·ÝÓë»Ö¸´
//µ¼³ö
1.µ¼³ö±í
exp userid=scott/tiger@ORCL tables=(emp) file=d:\e1.dmp
2.µ¼³öÆäËû·½°¸µÄ±í£¬Ê×ÏÈҪȷÈÏ×Ô¼ºÊÇsysdbaÉí·Ý
exp userid=system@919959ORCL tables=(scott.emp) file=d:\e1.dmp
3.µ¼³ö±í½á¹¹
exp userid=scott/tiger@ORCL tables=(emp) file=d:\e3.dmp rows=n
4.ʹÓÃÖ±½Óµ¼³ö·½Ê½(ЧÂÊ±ÈÆÕͨµ¼³ö·½Ê½¿ì)
exp userid=scott/tiger@ORCL tables=(emp,dept) file=d:\e4.dmp direct=y
5.µ¼³ö·½°¸
exp userid=scott/tiger@ORCL owner=scott file=d:\e5.dmp
6.µ¼³öÊý¾Ý¿â£¬¸ÃÓû§±ØÐëÊÇdba
exp userid=system/919959@ORCL full=y inctype=complete file=d:\e6.dmp
//µ¼Èë
1.µ¼Èë×Ô¼º±í
imp userid=scott/tiger@ORCL tables=(emp) file=d:\e1.dmp
2.µ¼Èë±íµ½ÆäËûÓû§
ÒªÇó¸ÃÓû§¾ßÓÐdbaȨÏÞ£¬»òÊÇimp_full_database
imp userid=system/919959@ORCL tables(emp) file=d:\e2.dmp touser=scott
3.µ¼Èë±íµÄ½á¹¹
imp userid=scott/tiger@ORCL tables=(emp) file=d:\e3.dmp rows=n
4.µ¼ÈëÊý¾Ý
imp userid=scott/tiger@ORCL tables=(emp) file=d:\e4.dmp ignore=y
||-------  ±í¿Õ¼ä¹ÜÀí  -------||
½¨±í¿Õ¼äÐèÒªdbaÓû§È¨ÏÞ
//½¨Á¢±í¿Õ¼ä
create tablespace sp001 datafile 'd:\data01.dbf' size 20m uniform size 128k
//ʹÓÃÊý¾Ý±í¿Õ¼ä
create table mypart(
deptno number(4),
dname varchar2(14),
loc varchar2(13)
) tablespace sp001;
//ʹ±í¿Õ¼äÍÑ»ú
alter tablespace sp001 offline;
//ʹ±í¿Õ¼äÁª»ú
alter tablespace sp001 online;
//Ö»¶Á±í¿Õ¼ä
alter tablespace sp001 read only;
//Ð޸ıí¿Õ¼äΪ¿É¶Á¿Éд
alter tablespace sp001 read write;
//ÏÔʾ±í¿Õ¼ä°üÀ¨À©µÄËùÓбí
select * from all_tables where tablespace_name='sp001';
//ÖªµÀ±íÃ÷£¬²é¿´¸Ã±íÊôÓÚÄĸö±í¿Õ¼ä
select tablespace_name ,table_name from user_tables where table_name='EMP';
//À©Õ¹±í¿Õ¼ä
1.Ôö¼ÓÊý¾ÝÎļþ
alter tablespace sp01 add datafile 'd:\sp01.dbf' size 20m;
2.Ôö¼ÓÊý¾ÝÎļþ´óС(ÕâÀïÐèҪעÒâµÄÊÇÊý¾ÝÎļþµÄ´óС²»Òª³¬¹ý500m)
alter database datafile 'd:\sp01.dbf' resize 20m;
3.ÉèÖÃÎļþµÄ×Ô¶¯Ôö³¤
alter tablespace datafile 'd:\sp


Ïà¹ØÎĵµ£º

Æô¶¯oracle ¹ùÒ«½ñ

ÓÃsqlplusÆô¶¯Êý¾Ý¿â
sqlplus /nolog
SQL> connect system/change_on_install as sysdba
SQL> startup
ÓÃsqlplusÍ£Ö¹Êý¾Ý¿â$ORACLE_HOME/bin/sqlplus /nolog
SQL> connect system/change_on_install as sysdba
SQL> shutdown ......

oracle EM

C:Documents and Settings>emca -repos create  
EMCA ¿ªÊ¼ÓÚ 2007-5-31 9:57:04  
EM Configuration Assistant 10.2.0.1.0 Õýʽ°æ  
°æÈ¨ËùÓÐ (c) 2003, 2005, Oracle¡£±£ÁôËùÓÐȨÀû¡£  
ÊäÈëÒÔÏÂÐÅÏ¢:  
Êý¾Ý¿â SID: ora10g  
¼àÌý³ÌÐò¶Ë¿ÚºÅ: 152 ......

¹ØÓÚORACLE·ÖÇø±íµÄ¸ÅÄî¼°²Ù×÷

´ËÎÄ´ÓÒÔϼ¸¸ö·½ÃæÀ´ÕûÀí¹ØÓÚ·ÖÇø±íµÄ¸ÅÄî¼°²Ù×÷:
        1.±í¿Õ¼ä¼°·ÖÇø±íµÄ¸ÅÄî
        2.±í·ÖÇøµÄ¾ßÌå×÷ÓÃ
        3.±í·ÖÇøµÄÓÅȱµã
        4.±í·ÖÇøµÄ¼¸ÖÖÀàÐ ......

WindowsϵÄOracleÀ䱸·Ý½Å±¾£¬ÒѾ­²âÊÔͨ¹ý

¹²ÐèÒª´´½¨Á½¸öÎļþÔÚͬһ¸öĿ¼Ï£º
Ò»£º
Îļþoracle_cool_backup.bat£¬ÄÚÈÝÈçÏ£º
Remark ¶¨Òåʱ¼äÈÕÆÚ±äÁ¿
set date=%date:~0,10%
set h=%time:~0,2%
set m=%time:~3,2%
set s=%time:~6,2%
set tempvar=%date%-%h%-%m%-%s%
md "c:/temp/%tempvar%/"
echo %tempvar%
sqlplus /nolog @oracle_cool_backup.sql % ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ