oracleѹÁ¦²âÊÔÖ®orabm
Êý¾Ý¿âѹÁ¦²âÊÔ
Ò»¡¢ÓÃorabm²âÊÔÊý¾Ý¿âCPU
Orabmͨ¹ýÔÚÓû§Ö¸¶¨µÄ²¢·¢ÏÂÔËÐÐÖ¸¶¨ÊýÁ¿µÄÊÂÎñÀ´²âÊÔϵͳÐÔÄÜ.ËüÖ÷Òª²âÊÔÊý¾Ý¿â·þÎñÆ÷µÄCPUÐÔÄܺÍÄÚ´æ¡£
orabmʵ¼ÊÉÏÊÇÒ»¶ÑsqlµÄ¼¯ºÏ¡£
orabm¿ÉÒÔÓÃÔÚlinux/windows/solarisÏÂʹÓá£
orabm²»Ò»¶¨ÐèÒªÔËÐÐÔÚÊý¾Ý¿âËùÔÚ·þÎñÆ÷ÉÏ£¬Ëü¿ÉÒÔÔËÐÐÔÚÈκΰ²×°ÁË9i¿Í»§¶ËµÄÖÕ¶ËÉÏ¡£Äã¿ÉÒÔÓÿͻ§¶ËÁ¬½Óµ½Ô¶³ÌÊý¾Ý¿âÀ´²âÊÔÔ¶³ÌÊý¾Ý¿âµÄÐÔÄÜ×´¿ö¡£
Òò
ΪorabmÖ÷Òª²âÊÔµÄÊÇCPUºÍÄڴ棬ËùÒÔÓ¦¸Ã¾¡Á¿±ÜÃâÆäËûÒòËØÓ°Ïì²âÊÔ£¬¹ÊʹÓÃorabmʱ£¬ÎªÁ˸üºÃµÄ²âÊÔCPUºÍÄÚ´æµÄÐÔÄÜ£¬×îºÃ°Ñ
db_cache_sizeÉè³É´óÓÚ200M£¬ÕâÑù£¬ËùÓеÄÊý¾Ý¶¼¿ÉÒÔ·ÅÔÚÄÚ´æÖУ¬²»»áÒòΪÎïÀíI/O¶øʹµÃ²âÊÔ²»×¼È·¡£Ê¹ÓÃorabmµÄÒ»¸ö²½Öè¾ÍÊÇ°Ñ
ËùÓеıíºÍË÷Òý¶¼·Åµ½data bufferÖС£
1¡¢ÏÂÔØÈí¼þ
orabmÊDzâÊÔCPUµÃ
http://www.linxcel.co.uk/orabm/orabm.tar
2¡¢°²×°
°²×°Ö÷Òª·Ö7¸ö²½Ö裬·Ö±ð¶ÔÓ¦6¸ösql½Å±¾ºÍÒ»¸öµ¼ÈëÊý¾ÝµÄС¹¤¾ß¡£ÈçÏÂËùÓнű¾³ýµÚÒ»¸ö±ØÐëÓÃÓµÓÐdbaȨÏÞµÄÓû§Ö´ÐÐÍ⣬ÆäËûµÄ¶¼¿ÉÒÔÓÃн¨orabmÓû§Ö´ÐС£ÎªÁ˱ÜÃâÂé·³£¬×îºÃ¶¼ÓÃsystem»òÕßsysÔËÐÐ
1) create the ORABM user (assumes TOOLS tablespace, TEMP temporary tablespace)
µÚ
Ò»²½ÊÇ´´½¨orabmÓû§£¬²¢×÷ÏàÓ¦ÊÚȨ¡£×¢Ò⣬ĬÈÏÇé¿öÏ£¬orabmÓû§µÄĬÈϱí¿Õ¼äÊÇtools£¬ÁÙʱ±í¿Õ¼äÊÇtemp¡£µ¼ÈëÒ»¸ö
WarehousesµÄÊý¾ÝÁ¿´ó¸ÅÊÇ100M£¬ËùÒÔ£¬ÄãÓ¦¸Ã±£Ö¤tools±í¿Õ¼ä´óÓÚ150m£¬»òÕßн¨Ò»¸ö±í¿Õ¼ä£¬È»ºóÐÞ¸Ä
orabm_user.sqlÀïµÄÏà¹ØÐÅÏ¢¡£
sqlplus system/pwd @orabm_user
Ô¶³ÌÊý¾Ý¿âʹÓãº
sqlplus
system/pwd@tnsname
@orabm_user
2) create the tables
ÕâÒ»²½Ö÷Òª´´½¨orabm²âÊÔÐèÒªµÄ±í¡£
sqlplus system/pwd @orabm_tab
Ô¶³ÌÊý¾Ý¿âʹÓãº
sqlplus
system/pwd@tnsname
@orabm_tag
3) Load the data
µ¼Èë²âÊÔËùÐèµÄÊý¾Ý£¨orabmloadÔÚOSµÄ¶ÔÓ¦°æ±¾µÄbinĿ¼Ï£©
$ orabmload Warehouses 1
Ô¶³ÌÊý¾Ý¿âʹÓãº
Èç¹ûÒª²âÊÔµÄÊÇÔ¶³ÌÊý¾Ý¿âµÄ»°£¬
windowsÐèÒªÏÈset local=tnsname£¬tnsnameÊÇÔÚtnsname.oraÖÐÅäÖõÄÔ¶³ÌÊý¾Ý¿âµÄ±ðÃû¡£
UNIX/LIINUX£¬ÐèÒªÏÈTWO_TASK=tnsname
$ orabmload Warehouses 1
4) create the indexes
ÕâÒ»²½´´½¨Ë÷Òý
sqlplus system/pwd @orabm_ind
Ô¶³ÌÊý¾Ý¿âʹÓãº
sqlplus
system/pwd@tnsname
@orabm_ind
5) analyze the tables and indexes
·ÖÎö±íºÍË÷Òý
sqlplus system/pwd @orabm_analyze
Ô¶³
Ïà¹ØÎĵµ£º
OracleÊý×éÒ»°ã¿ÉÒÔ·ÖΪ¹Ì¶¨Êý×éºÍ¿É±äÊý×é
¹Ì¶¨Êý×é
Sql´úÂë
declare
type v_ar is varray(10) of varchar2(30);
my_ar v_ar:=v_ar('g','m','d','¹¨','˧');
begin
for ......
Ê×ÏÈÐèÒªµÄÈí¼þÓУº
1¡¢
linux_11gR1_database.zip
//¿ÉÔÚOracleµÄ
¹Ù·½ÍøÕ¾
ÏÂÔصõ½£¬ÓÐ1.71GB¹»´ó°É¡£
2¡¢ ±ðÍüÁË×¼±¸Ò»·ÝOracleµÄ¹Ù·½°ïÖúÎĵµ
£¬ÊÇ×îȨÍþµÄ¡£
3¡¢
CentOS-5.2-i386-bin-DVD.iso
//¿ÉÔÚCentOS
¹Ù·½ÍøÕ¾
ÏÂÔصõ½£¬Ó ......
ÏàÐÅ´ó¼Ò¿´ÁËÕâƪÎÄÕ¶ÔOracleÈçºÎ¹¤×÷ÓÐÒ»¸öÐÎÏóµÄÁ˽⣡
Õª×Ô----¡¶Oracle±¸·ÝÓë»Ö¸´¡·
-----------------------------------------------------------------------------------------------------------------
Ò»¸öÃû½ÐSidµÄÄÐÈË£¬¿ñÈȵذ®ºÃÅÄÉã¡¢±£´æºÍÕûÀíÕÕƬ¡£SidµÄÆÞ×ÓÃû½ÐDebbie£¬ËûÃÇÓÐÈý¸ö¶ù×ÓLogan¡¢Archie ......
.net Ô¶³ÌÁ¬½ÓOracleÊý¾Ý¿â¿´ÆðÀ´Í¦¼òµ¥µÄ£¬µ«Êµ¼Ê×öÆðÀ´»¹ÊÇÓöµ½²»ÉÙÎÊÌâ¡£°ÑÎÒ½ñÌìÕÛÌÚÕâ¸ö¶«Î÷µÄ¾Ñé¸ø´ó¼Ò¹²Ïí°É¡£
¡¡¡¡·ÃÎÊ oracle Êý¾Ý¿âµÄ·½Ê½ºÜ¶à£¬ÎÒÓõÄÊÇ OleDbConnection£¬Õâ¸öûʲôºÃ˵µÄ£¬´úÂëÈçÏ£º
¡¡¡¡1. Á¬½Ó´úÂë
¡¡_OleDbConnection¡¡=¡¡new¡¡OleDbConnection(connectionString);
¡¡¡ ......
1£¬ÉÁ»ØÊý¾Ý¿âµ½Ö®Ç°Ä³Ê±¼äµã£¨ÔÚ°²×°Ê±ÐèÒª¿ª·ÅÉÁ»Ø¹¦ÄÜ£©
²»Ö§³Ö±í¿Õ¼äɾ³ý
select name from v$database;
--¿´ÊÇ·ñ´ò¿ªÉÁ»Ø¹¦ÄÜ
select flashback_on,name from v$database;
select name from v$bgprocess where paddr<>'00' order by 1;
´ò¿ªÉÁ»Ø¹¦ÄÜ
SQL> shutdown immedia ......