oracle imp\exp Óï·¨¼ò½é3
1¡¢Êý¾Ý¿âµ¼³öÃüÁî
exp wesoftwcp/wesoft@oradb file=f:\backup\%date:~0,10%.dmp log=f:\backup\%date:~0,10%.log
compress=n buffer=8092 consistent=y direct=n constraints=y feedback=10000 grants=y record=y indexes=y triggers=y rows=y
2¡¢Êý¾Ý¿âµ¼ÈëÃüÁî
set UserName=wesoftwcp
set Passwd=wesoft
set DBName=@oradb
#set LogName=%UserName%gz.log
set fromUser=wesoftwcp
set ToUser=wesoftwcp
set FileName=F:\backup\2009-12-03.dmp
imp %UserName%/%Passwd%%DBName% fromuser=%fromUser% touser=%ToUser% file=%FileName%
pause
Ïà¹ØÎĵµ£º
1.²éѯ±í¿Õ¼äµÄʹÓÃÇé¿ö£¬ÒÔMΪµ¥Î»
select f.tablespace_name,a.total,u.used,f.free,round((u.used/a.total)*100) "% used",
round((f.free/a.total)*100) "% Free"
from
(select tablespace_name, sum(bytes/(1024*1024)) total
&nbs ......
Õâ¶Îʱ¼ä£¬½ÓµÄ¶àÊÇRACµÄά»¤ºÍ»Ö¸´ÎÊÌâ¡£ËùÒÔÿÌ춼ÊÇÔÚºÍRAC´ò½»µÀ¡£
RACÕæµÄºÜºÃÍæ¡£
´ó¼ÒÓжÔRAC¸ÐÐËȤµÄÓÐÎÊÌâµÄ£¬»òÕßÊÇÓöµ½RACά»¤ÉÏÃæµÄ³öÏÖÎÊÌâµÄ£¬¿ÉÒÔ·¢ÓʼþÖÁinthirties@gmail.comÒ»Æð½»Á÷Ñо¿¡£
ÕæµÄºÜÏ£ÍûÍæOracle ......
ºÜ¶àʱºò£¬¶ÔÊý¾Ý¿â½øÐÐÐÔÄÜÕï¶Ï¿ÉÒÔʹÓÃSQL¸ú×ٵķ½·¨£¬°ÑһЩÐÅÏ¢¼Ç¼ÔÚtraceÎļþÀïÒÔºó·ÖÎö¡£Ò»°ãÇé¿öÏÂÎÒÃÇ¿ÉÒÔͨ¹ý³õʼ»¯²ÎÊýSQL_TRACE=TRUEÀ´ÉèÖÃSQL¸ú×Ù¡£
ÎÒÃÇÒ²¿ÉÒÔͨ¹ýÉèÖÃ10046ʼþÀ´½øÐÐSQL¸ú×Ù£¬²¢ÇÒ¿ÉÒÔÉèÖò»Í¬µÄ¸ú×Ù¼¶±ð£¬±ÈʹÓÃSQL_TRACE»ñµÃ¸ü¶àµÄÐÅÏ¢¡£
Level 0 Í£ÓÃSQL¸ú×Ù£¬Ï൱ÓÚSQL_T ......
Ò»¸ö³ÆÖ°µÄÊý¾Ý¿âDBA½ö½öÈ¡µÃORACLE³§¼ÒÈÏÖ¤ÊDz»¹»µÄ£¬¹Ø¼üÊÇÕæʵ»·¾³µÄÀúÁ·£¬±ÊÕß´ÓÊÂORACLE DBA¶àÄ꣬¾ÀúORACLE°æ±¾´Ó8iµ½10g(×¢£º¶ÔÓÚÒ»¸ö¹«Ë¾»òµ¥Î»µÄÕæʵ»·¾³£¬¶ÔÓÚ°æ±¾µÄ×·ÇóÊ×ÒªµÄ£¬¹Ø¼üµÄÎȶ¨ÐÔ)£¬²Ù×÷ϵͳ´Ówindows µ¥»ú¡¢Ë«»úµ½Ö÷Á÷IBM¡¢HPµÄUNIX²Ù×÷ϵͳ£¬ÒÔÏÂÊDZÊÕ߶àÄê´ÓÊÂORACLE DBAµÄһЩÐĵã¬Ï£ÍûÄܸø³õÑ ......
¶Ô±í½øÐзÖÎö£¬Í¨³£Çé¿öÏ¿ÉÒÔ¶Ô±í£¬Ë÷Òý£¬ÁнøÐе¥¶À·ÖÎö£¬»òÕß½øÐÐ×éºÏ·ÖÎö£¬µ«ÕâÈýÕßÄÄЩÊÇÏà¶ÔÖØÒªµÄ£¬ÄÄЩ·ÖÎöÏԵò»ÄÇôÖØÒª£¿Í¨¹ý±¾ÆªÎÄÕµÄʵÑéÏàÐÅ´ó¼ÒÒ²»á¶ÔÖ±·½Í¼ÓиüÒ»²½µÄÁ˽â.
1.Ê×ÏÈ´´½¨²âÊÔ±í,²¢²åÈë100000ÌõÊý¾Ý
SQL> create table test(id number,nick varchar2(30));
Table created.
SQL> b ......