âScene25 â SGAï¼ allocation forcing Component growthâ...
ãµã¼ãã¹çµäºã®ãç¥ãã ãã¤ãYahoo! JAPANã®ãµã¼ãã¹ããå©ç¨ããã ãèª ã«ãããã¨ããããã¾ãã ã客æ§ãã¢ã¯ã»ã¹ããããµã¼ãã¹ã¯æ¬æ¥ã¾ã§ã«ãµã¼ãã¹ãçµäºãããã¾ããã ä»å¾ã¨ãYahoo! JAPANã®ãµã¼ãã¹ããæ顧ãã ããã¾ãããããããããé¡ããããã¾ãã
ãNoSQLã¯ã½ã¼ã·ã£ã«ã¡ãã£ã¢ã®ãããªãããã¢ããªã±ã¼ã·ã§ã³åãã§ãããä¼æ¥å ã®ãã¼ã¿ãã¼ã¹ã¨ãã¦ã¯åããªãããããã¾ã§NoSQLãã¼ã¿ãã¼ã¹ã¯ä¸è¬ã«ããæããã¦ãã¾ããã ããããªã©ã¯ã«ã¯ä»æããµã³ãã©ã³ã·ã¹ã³ã§éå¬ãããOracle OpenWorld 2011ãã§ããã°ãã¼ã¿å¸å ´ã¸ã®åå ¥ã表æã製åã¨ãã¦ãä¼æ¥åããã¼ã¿ãã¼ã¹ã¨ãã¦ãã¼ããªã¥ã¼åãã¼ã¿ã¹ãã¢ãOracle NoSQL Databaseãã¨ãApache Hadoopããæè¼ãããOracle Big Data Applianceããçºè¡¨ãã¾ããã ãªã©ã¯ã«ã¯ä¼æ¥ã使ããã¼ã¿ãã¼ã¹ã¨ãã¦NoSQLãHadoopãã©ã®ããã«ä½ç½®ã¥ãããã¨ãã¦ããã®ã§ããããï¼ æ¨æ¥10æ25æ¥ã«é½å ã§éå¬ãããæ¥æ¬ãªã©ã¯ã«ä¸»å¬ã®ã¤ãã³ããOracle Database/Exadata Summitãã«ããã¦ãç±³ãªã©ã¯ã«ã§ãã¼ã¿ãã¼ã¹è£½
æ¬é£è¼ã§ã¯ãOracleãã¼ã¿ãã¼ã¹ã®ããã©ã¼ãã³ã¹ã»ãã¥ã¼ãã³ã°ã®ä¸ãããç¹ã«SQLã®ãã¥ã¼ãã³ã°ã«æ³¨ç®ãã¦ãå®è·µã¬ãã«ã®ææ³ã解説ãããèªè ã¯Oracleãã¼ã¿ãã¼ã¹ã®ã¢ã¼ããã¯ãã£ãç解ããéç¨ç®¡çã®å®åçµé¨ãç©ãã§ãããã¨ãæã¾ããã対象ã¨ãããã¼ã¸ã§ã³ã¯ç¾ç¶ã§åºã使ããã¦ããOracle9iã®æ©è½ãåºæ¬ã¨ããããOracle 10gã§æå¹ãªæ å ±ãéæç´¹ä»ãã¦ãããï¼ç·¨éå±ï¼ é£è¼ç®æ¬¡ ããã©ã¼ãã³ã¹ã»ãã¥ã¼ãã³ã°æ¦è¦ ååãããã©ã¼ãã³ã¹åä¸ã®æçã³ã¼ã¹ãç¥ããã§èª¬æããããã«ãSQLã®ãã¥ã¼ãã³ã°ã¯Oracleã¤ã³ã¹ã¿ã³ã¹ããã¼ã¿ãã¼ã¹ã®æ§æãªã©ã«ãå¯æ¥ã«ãããã£ã¦ãã¾ãããã§ã«åºæ¬çãªç¥èããæã¡ã®æ¹ã大å¢ããã£ãããã¨æãã¾ããããããã®ç¥èããããã©ã¼ãã³ã¹ãã¨çµã³ä»ãã¦èãããã¨ãéè¦ãªãã¤ã³ãã§ãã SQLã«ãã£ã¦åå¾ããããã¼ã¿ããå®éã«ã¯ã©ã®ãããªå½¢å¼ã§ãã¡ã¤ã«ã®
Oracleãã¼ã¿ãã¼ã¹ã®éç¨ç®¡çè ã¯ãçªçºçã«ç´é¢ããããã©ã¼ãã³ã¹é害ã«ã©ããã£ã¦å¯¾å¦ãããããããæ¬é£è¼ã¯ãé常ã«è¤éãªOracleã®ã¢ã¼ããã¯ãã£ã«é ãæ©ã¾ã管çè ã«åããçæéã§åé¡ãåãåãã対å¦æ³ãè¦ã¤ãããã¦ãã¦ãç´¹ä»ããã対象ã¨ãããã¼ã¸ã§ã³ã¯Oracle8ãã9iã¾ã§ãåºæ¬ã¨ãã10gã®æ å ±ã¯éæå ãã¦ãããï¼ç·¨éå±ï¼ æ¬é£è¼ã§ã¯Oracleã®æåã«åé¡ãçºè¦ããã¨ããã©ããã£ã¦åå ãç¹å®ã解決çãå°ãåºããã«ã¤ãã¦è§£èª¬ãã¦ãã¾ãããæçµåã¨ãªãä»åã¯ãé åã¨ãã£ã¹ã¯ã«é¢ããé害å æã®ãã¯ããã¯ãç´¹ä»ãã¾ãã ãã¼ã¿ãã¡ã¤ã«ã®ç©çæ§é ã¨è«çæ§é Oracleããã¼ã¿ãã¡ã¤ã«ã®å é¨ãã©ã®ããã«å©ç¨ãã¦ããã®ãããã®æ§é ãç解ããã®ã¯é åã®åé¡è§£æ±ºã«ã¯æ¬ ããã¾ããã Oracleã¯ãã¼ã¿ãé層æ§é ã«ãã£ã¦ç®¡çãã¦ãã¾ããæä¸ä½ã«ããããã¼ã¿ãã¼ã¹ï¼Databaseï¼ãã¨ã¯ã
SQLãå®è¡ããã¨ããã¾ã«ã¤ã³ããã¯ã¹ã使ã£ãã»ããé«éã§ããã«ããããããå ¨è¡¨ã¹ãã£ã³ãé¸æãããããã©ã¼ãã³ã¹ãæ¯ãããªãã¨ãããã¨ãããã¾ãã ãããã£ãç¾è±¡ã®ä¸å ã«ã¯ããªããã£ãã¤ã¶ããã£ãã·ã¥å¹çãèæ ®ããã«å¸¸ã«I/Oãçºçãããã®ã¨ãã¦ã³ã¹ãè¨ç®ãè¡ã£ã¦ããã¨ãããã¨ãããããã§ãã ï¼ã¤ã³ããã¯ã¹ã¯ãããã¡ã»ãã£ãã·ã¥ã«åå¨ããå¯è½æ§ãé«ããããå®éã«ã¯è¦ç©ããã³ã¹ããããé«éã«ã¢ã¯ã»ã¹ã§ããã±ã¼ã¹ãå¤ãï¼ ãã®ãããªç¾è±¡ãé »çºããå ´åãOPTIMIZER_INDEX_CACHINGãOPTIMIZER_INDEX_COST_ADJ ã¨ããåæåãã©ã¡ã¼ã¿ã®è¨å®ã調æ´ããã¨ãã¤ã³ããã¯ã¹ã»ã¹ãã£ã³ã®ã³ã¹ããä½ãè¨ç®ãããå ¨è¡¨ã¹ãã£ã³ãããã¤ã³ããã¯ã¹ã»ã¹ãã£ã³ãé¸æãããå¯è½æ§ãé«ãããã¨ãã§ããããã§ãã OPTIMIZER_INDEX_CACHING ã¤ã³ããã¯ã¹ã»ããã
ã·ã¹ãã ã°ãã¼ãã«ã¨ãªã¢ï¼SGAï¼ã¯å ±æã¡ã¢ãªã§ããORACLEã®ãµã¼ãã¼ããã»ã¹éã§ å ±æãããã ã¡ã¢ãªã«ã¯ãã¼ã¿ã®ãã£ãã·ã³ã°ãSQLæã®è§£æçµæã®ãã£ãã·ã¥çãè¡ããã å¦çãè¿ éã«è¡ããã¨ãç®çã¨ãã¦ããã é©åãªã¡ã¢ãªã確ä¿ãã¦ãããªããã°ããã©ã¼ãã³ã¹å£åã«ã¤ãªããã SQL>SELECT * FROM V$SGASTAT; POOL NAME BYTES ------------- ---------------------------- ---------- fixed_sga 73888 db_block_buffers 524288000 log_buffer 163840 shared pool free memory 390924 shared pool miscellaneous 713720 shared pool PL/SQL MPCODE 7500 sha
æ¬é£è¼ã§ã¯ãOracleãã¼ã¿ãã¼ã¹ã®ããã©ã¼ãã³ã¹ã»ãã¥ã¼ãã³ã°ã®ä¸ãããç¹ã«SQLã®ãã¥ã¼ãã³ã°ã«æ³¨ç®ãã¦ãå®è·µã¬ãã«ã®ææ³ã解説ãããèªè ã¯Oracleãã¼ã¿ãã¼ã¹ã®ã¢ã¼ããã¯ãã£ãç解ããéç¨ç®¡çã®å®åçµé¨ãç©ãã§ãããã¨ãæã¾ããã対象ã¨ãããã¼ã¸ã§ã³ã¯ç¾ç¶ã§åºã使ããã¦ããOracle9iã®æ©è½ãåºæ¬ã¨ããããOracle 10gã§æå¹ãªæ å ±ãéæç´¹ä»ãã¦ãããï¼ç·¨éå±ï¼ é£è¼ç®æ¬¡ ååã表ã®çµåã極ãããã¥ã¼ãã³ã°ã»ãã¯ããã¯ãã§ã¯ãçµãè¾¼ã¿æ¡ä»¶ããªãçµåãå«ãSQLãçµãè¾¼ã¿æ¡ä»¶ã®ããçµåãå«ãSQLã«ã¤ãã¦å®ä¾ãåºã«æé©ãªçµåæ¹æ³ã説æãã¾ããã ä»åã¯ãOracleã®æ©è½ã§ããããããªã¢ã©ã¤ãºãã»ãã¥ã¼ããBITMAP JOIN INDEXããã¯ã©ã¹ã¿ããå©ç¨ããçµåå¦çã«é¢ãããã¥ã¼ãã³ã°ã»ãã¯ããã¯ã«ã¤ãã¦èª¬æãã¾ãã ãããªã¢ã©ã¤ãºãã»ãã¥ã¼ãç解ãã çµåå¦çãª
ãã¼ã¿ãã¼ã¹ãéç¨æ®µéã«ãªãã¨ããã®ããã¯ã¢ãããéè¦ã«ãªãããããããã®æ¹æ³ã¯ãã¼ã¿ãã¼ã¹ã®éç¨å½¢æ ã«ãã£ã¦ç°ãªããããã¯ã¢ããã®æ¹æ³ãä»çµã¿ãç解ããéç¨å½¢æ ã«æé©ãªããã¯ã¢ããè¨ç»ãç«æ¡ãããã ååã¾ã§ããã¼ã¿ãã¼ã¹ã®ä½æã«ã¤ãã¦è§£èª¬ãã¦ãã¾ãããOracleã®ã¤ã³ã¹ãã¼ã«æã«ä½æãããããã©ã«ããã¼ã¿ãã¼ã¹ã¨ã¯ä¸å³éããèªåã®ãã¼ã¿ãã¼ã¹ãä½æã§ããããã«ãªãã°ããç«æ´¾ãªOracleãã¤ã¹ã¿ã¼ã§ãã ãããããã¼ã¿ãã¼ã¹ã®éç¨ãå§ããªããã°ãªãã¾ããããããã«ã¯ããã¯ã¢ããè¨ç»ãæ¬ ããã¾ãããåºæ¬çãªéç¨è¨ç»ã¨ããã¯ã¢ããæ¹æ³ã身ã«ä»ãã¾ãããã ãªã³ã©ã¤ã³ããã¯ã¢ããã¨ã³ã¼ã«ãããã¯ã¢ãã ãã¼ã¿ãã¼ã¹ã®ããã¯ã¢ããã«ã¯ã大ããåãã¦ãã³ã¼ã«ãããã¯ã¢ãããã¨ããªã³ã©ã¤ã³ããã¯ã¢ãããã®2ã¤ãããã¾ãã ã³ã¼ã«ãããã¯ã¢ãã ãã¼ã¿ãã¼ã¹ããã¹ã¦åæ¢ï¼shutdownï¼ããç¶æ
主ãªå 容 --Page 1-- â¼è«çããã¯ã¢ããã¨ç©çããã¯ã¢ãã â¼ã¨ã¯ã¹ãã¼ãã»ã¦ã¼ãã£ãªãã£ã«ããããã¯ã¢ãã --Page 2-- â¼OSã³ãã³ããããã¯ã¢ãããã¼ã«ã«ããä¸è²«æ§ããã¯ã¢ãã --Page 3-- â¼OSã³ãã³ããããã¯ã¢ãããã¼ã«ã«ããéä¸è²«æ§ããã¯ã¢ãã ååã¯ãªã«ããªã«ç¦ç¹ãçµããã©ã®ãããªä»çµã¿ã«ãã£ã¦ãã¼ã¿ã®æ´åæ§ãä¿è¨¼ããããªã«ããªãè¡ããã¦ãããã«ã¤ãã¦èª¬æãã¾ãããä»åã¨æ¬¡åã®2åã§ã¯ãOracleã§ä¸è¬çã«å©ç¨ãããããã¯ã¢ããæ¹æ³ã®æ¦è¦ã«ã¤ãã¦èª¬æãã¾ãï¼è©³ç´°ã«ã¤ãã¦ã¯ã第5å以éã«ã¦èª¬æãã¾ãï¼ãOracleã«ã¯ããã¾ãã¾ãªããã¯ã¢ããè¦ä»¶ã«å¯¾å¿ã§ããããã«å¤ãã®ããã¯ã¢ããæ¹æ³ãç¨æããã¦ãã¾ãã®ã§ããããã®ç¹å¾´ãã¡ãªããããã¡ãªãããç解ããé©åãªããã¯ã¢ããæ¹æ³ãé¸æãããã¨ã大åã§ãã è«çããã¯ã¢ããã¨ç©çããã¯ã¢ãã Oracle
ç±³Oracleã¯4æ20æ¥(ç¾å°æé)ãç±³Sun Microsystemsã®è²·åãçºè¡¨ããã Sunæ ª1ã¤ããã9.50ãã«ããã£ãã·ã¥ã§æ¯æããè²·åç·é¡ã¯56åãã«ã«ä¸ãè¦è¾¼ã¿ãSunè²·åãå·¡ã£ã¦ã¯4æä¸æ¬ã«ããã¦IBMã¨ã®è²·å交æ¸ãé²ãã§ããã¨ããããæçµçã«ã¯éé¡çãªåé¡ã§ç ´è«ããã¨ç±³Wall Street Journalãå ±ãã¦ããã è©³å ±ã«ã¤ãã¦ã¯è¿½ã£ã¦ã¬ãã¼ããã¦ããã
SQL ãã¥ã¼ãã³ã°ç·¨1 - ãã¥ã¼ãã³ã°ã®æ¹åãããã°ã©ã ãã¥ã¼ãã³ã° Oracle åºæã®é¨åãããããããã¾ãããSQL-ServerãMDB ã§ã¯æ³¨æã®ãã¨ã â ãã¥ã¼ãã³ã°ã®æ¹å ã»RDBMS ã¸ã®ã¢ã¯ã»ã¹ã LAN ã«çã¾ãã®ããWAN ãå«ãã®ããåç·é度ãã ã¼ã¿ãã¼ã¹ãµã¼ãã®ãã¯ã¼ã«ãã£ã¦ããã¥ã¼ãã³ã°ã®æ¹åã¯å¤ãã£ã¦ããã 10base-T ã 100base-TX ã® LAN ãªãã°ãã¯ã©ã¤ã¢ã³ãã®è² è·ãé«ããã㨠ã«ãã£ã¦ãµã¼ãè² è·ã軽æ¸ããã¨è¨ãã®ãã²ã¨ã¤ã®æ¹åã§ããã ã¾ããä½éåç·ãå«ãã·ã¹ãã ã§ã¯ãéåæã¢ã¯ã»ã¹ãåãå ¥ããã¨å¹æã é«ããæ´ã«ãµã¼ãå´ã«ã¼ã½ã«ãã§ããã ãå©ç¨ããæ¹ãè¯ãã ã»ãã¼ã¿ãã¼ã¹ãã®ãã®ã®ãã¥ã¼ãã³ã°ãããããã©ã¼ãã³ã¹ã®é«ã DB è¨è¨ã ç¡é§ã®ãªãã³ã¼ããã¸ãã¯ã使ç¨ããæ¹ãçµæã¨ãã¦ã®å¹æã¯é«ãã â ããã°ã©ã ãã¥ã¼ãã³ã° ã»
8 April, 1998 Updatedãã PCDN OracleWG S.Yamazakiãã æ®æ®µãSQLæãæ¸ãã¦ããã¨ãã¯ãæå¾ ããçµæãå¾ãããæãæé©ã§ããã¨æããã¡ã§ããããããæããã¦ãããæé©ãã©ããã¯çåãæ®ãã¾ããæé©ãªSQLæãæ¸ããã¨ã¯ããã°ã©ãã®è²¬ä»»ã§ãããã¢ããªã±ã¼ã·ã§ã³ã®å¿çæéã®ç縮ããå©ç¨ããè³æºã®ç«¶åã®æ¸å°ãå³ãä¸ã§ã¯é¿ãã¦éããªãåé¡ã§ãã ããã§èª¬æãããã¨ããSQLæã®ãã¥ã¼ãã³ã°ã®æçµå°éç¹ã§ãããæé©ãªã¢ã¯ã»ã¹ãã¹ããé¸æã§ããããã«å°ãã§ããå½¹ã«ç«ã¦ãã°å¹¸ãã§ãã æé©ãªSQLæã¨ã¯ æé©ãªSQLæã¨ã¯ä½ããã£ã¦ãæé©ãã¨ããã®ã§ãããããªãã¬ã¼ã¿ã¼ãæå¾ ãããã¼ã¿éåãDBããæ½åºããã¨ãããã¾ãã¾ãªSQLã®æ¸ãæ¹ãæ³å®ããã¨æãã¾ãããã®æããªãã¬ã¼ã¿ã¼ã¯ããç¨åº¦ã®å¿çæéãæ³å®ãã¦SQLãæ¸ãã¨æãã¾ããã§ã¯ã試è¡é¯
CSVãã¡ã¤ã«ããOracleã®ãã¼ãã«ã¸ãã¼ã¿ãæµãè¾¼ããã¼ã«ã 大éã®insertæãçºè¡ããããã¯ãæç¶é«éã ãã¼ã¿ã§ããCSVãã¡ã¤ã«ãåºå®é·ãã¡ã¤ã«ã¨ããã¼ãæ¹æ³ãæå®ããã³ã³ããã¼ã«ãã¡ã¤ã«ãç¨æ ãã¦å®è¡ããã ï¼CSVãã¡ã¤ã«ããã®ãã¼ãã¯ãã®SQL*Loaderã使ããããCSVåºåã«ã¯æ¨æºçãªæ¹æ³ã¯ç¡ããããã¦ãselectæã§å å·¥ããæ¹æ³ããã使ããããããã ãã®SQLæããã¡ãã¡æ¸ãã®ã¯å°ã é¢åãªã®ã§ãSQLçæç¨Excelãã¯ããä½ã£ã¦ã¿ã¾ããï¼ ã³ã³ããã¼ã«ãã¡ã¤ã« CSVãã¡ã¤ã«ã®åé ç®ã¨ãã¼ãã«ã®é ç®ã¨ã®é¢é£ä»ãçãæå®ããã ï¼ã³ã³ããã¼ã«ãã¡ã¤ã«ãããã¹ãã¨ãã£ã¿ã§æ¸ãã®ã¯ãã£ããé¢åãªã®ã§ãã³ã³ããã¼ã«ãã¡ã¤ã«ä½æç¨Excelãã¯ããä½ã£ã¦ã¿ã¾ããï¼CSVãã¡ã¤ã«ç¨ãåºå®é·ãã¡ã¤ã«ç¨ï¼ï¼ ä¾ï¼emp.ctlï¼ OPTIONS(LOAD=100,SK
Oracle Tips ãã¼ãã«å ã®ã¬ã³ã¼ãã®å ¨åé¤truncate table ãã¼ãã«å DELETEæã¨ç°ãªããã©ã³ã¶ã¯ã·ã§ã³ã®å¯¾è±¡ã¨ãªããªããã大éã®ã¬ã³ã¼ããä¸ç¬ã§åé¤ããããã¼ã«ããã¯ã»ã°ã¡ã³ãã®ç©ºã容éãæ°ã«ããå¿ è¦ãããã¾ãããï¼ã¨ã¼ãããã³ãããããã¼ã«ããã¯ã¯ã§ãã¾ããï¼ ã¹ãã¼ãã«åå¨ãã¦ãããã¼ãã«åã®åå¾select * from user_tables select * from tab ï¼ãã£ã¡ã¯ãã¥ã¼ãåå¾å¯è½ï¼ ã¹ãã¼ãå ã®ãªãã¸ã§ã¯ãåã®åå¾select * from all_objects where owner = 'ã¦ã¼ã¶å' order by owner, object_type, object_name ã¦ã¼ã¶åã¯å¤§æåã USER_OBJECTS ã§ãå¯ã ï¼ãã£ã¡ã¯ã¹ãã¼ãå ã®ãªãã¸ã§ã¯ããå¯¾è±¡ï¼ ãã¼ãã«æ§é ã®åå¾describe ãã¼ã
Oracleãã¼ã¿ãã¼ã¹ã®éç¨ç®¡çè ã¯ãçªçºçã«ç´é¢ããããã©ã¼ãã³ã¹é害ã«ã©ããã£ã¦å¯¾å¦ãããããããæ¬é£è¼ã¯ãé常ã«è¤éãªOracleã®ã¢ã¼ããã¯ãã£ã«é ãæ©ã¾ã管çè ã«åããçæéã§åé¡ãåãåãã対å¦æ³ãè¦ã¤ãããã¦ãã¦ãç´¹ä»ããã対象ã¨ãããã¼ã¸ã§ã³ã¯Oracle8ãã9iã¾ã§ãåºæ¬ã¨ãã10gã®æ å ±ã¯éæå ãã¦ãããï¼ç·¨éå±ï¼ SQLå¦çï¼ã¤ã³ããã¯ã¹ï¼ã«ããããç¢ºèª ååãããã¯ãã¤ã¶ãï¼æåã«çãã¹ãåå ãã§ã¯ãSQLã«ããããåé¡ã®è§£æ±ºæ¹æ³ã¨ãã¦ããã¯ã®ç¢ºèªæ¹æ³ã説æãã¾ããããã¼ã¿æ´æ°ã«ã¯å¿ ããªãã¸ã§ã¯ãã®å¦çãè¡ããã¦ãããã¨ãç解ã§ããã¨æãã¾ãã SQLæããã£ããã«æ´æ°ãããOracleãµã¼ãå ã®ãªãã¸ã§ã¯ãã¨ãã¦ãä»åã¯ã¤ã³ããã¯ã¹ãåãä¸ãã¾ããSQLæçºè¡æãç´æ¥ãã¼ã¿ã¨ã®ãããããæèãã¥ãããªãã¸ã§ã¯ããªã®ã§ããã¼ã¿ã®æ´æ°é »åº¦ãã¤ã³ããã¯ã¹ã®ä½ãæ¹ã«ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}