DB
ç°å¢ Docker for Windows Version 2.0.0.0-win81 (29211) https://docs.docker.com/docker-for-windows/ Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production - https://www.oracle.com/technetwork/database/database-technologies/expreâ¦
https://flywaydb.org/documentation/ ãèªãã ã Overview Flywayã¯ãã¼ã¿ãã¼ã¹ãã¤ã°ã¬ã¼ã·ã§ã³ãããããããã¾ãã Tip: ããã«èªã¿çµããããã®ã§Get Startedã»ã¯ã·ã§ã³ãå ã«ç®ãéããã¨ããªã¹ã¹ã¡ãã¾ãã Flywayã¯ãªã¼ãã³ã½ã¼ã¹ã®ãã¼ã¿ãã¼ã¹ãâ¦
flyway使ã£ã¦ãã®åãã¦è¦ã¦è¯ãåãããæãã ã£ãã®ã§ã¨ãããããã¥ã¼ããªã¢ã« https://flywaydb.org/getstarted/ ãèªãã§è¨³ããã â»ç»åã¯ãã¹ã¦æ¬å®¶ã®ãã®ã§ãã Why database migrations? ã¾ãæåã«Shinyã¨ããããã¸ã§ã¯ããä»®å®ããããã§ã®ææç©â¦
http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#jdbc ããããã¼ã«è¨³ãããâ»éä¸ã§é£½ããã®ã§ä¸é¨æãããã 18. Data access with JDBC 18.1 Introduction to Spring Framework JDBC Spring Framework JDBCã®æ½è±¡åãâ¦
Javaã§ã®DBã®ãã¹ããã¼ã¿ä½æã¯DbSetupã楽 - Qiita ãè¦ã¦ DbSetup ãã¡ãã£ã¨è©¦ãã¦ã¿ãã ããã§ãä¸ã è¯ããã ã£ãã®ã§ã¦ã¼ã¶ã¼ã¬ã¤ãï¼http://dbsetup.ninja-squad.com/user-guide.htmlï¼ããããã¼ã«ç¿»è¨³ãã¦ã¿ãã User Guide Don't clean up, prepaâ¦
ç°å¢ DB CentOS-6.5-x86_64 Oracle Database 11g Release 2(11.2.0.1.0) Enterprise Edition Java Java SE Development Kit 8u51 ãã¼ã« Oracle SQL Developer 4.1.1(4.1.1.19) General Enhancments SQL Developer 4.1 New Featuresã«ããã¨By popular demanâ¦
ç°å¢ DB CentOS-6.5-x86_64 Oracle Database 11g Release 2(11.2.0.1.0) Enterprise Edition Java Java SE Development Kit 8u51 ãã¼ã« Oracle SQL Developer 4.1.1(4.1.1.19) Instance Viewerã®å ¬å¼ã®èª¬æ ãã¼ã¿ãã¼ã¹ã®ç¶æ ãã°ã©ãã£ã«ã«ã«è¡¨ç¾ããæ°ãâ¦
俺ã¯å®åçµé¨ãããç¨åº¦ããªãããã¨ãRDBã®ç¥èä¸è¶³ãèªèããã¯ãã§ãããæ¹ãã¦RDBãåå¼·ãå§ãã¦å°ã£ããã¨ã®ä¸ã¤ã¯ãå®è¡è¨ç»ã®èªã¿æ¹ãããããããªããã¨ã ã£ãããã¡ããããããã°NESTED LOOP JOINãä½ãã¨ãã¯åºã¦ããããå ¬å¼ã®ããã¥ã¢ã«ãåèâ¦
10ä¸ä»¶ã®UPDATEããã«ãã¹ã¬ããã§åå²ããå ´åãå®è¡æéã«ã©ã®ãããªå½±é¿ãããããå®éã«ãã£ã¦ã¿ãã ç°å¢ DB CentOS-6.5-x86_64 Oracle Database 11g Release 2(11.2.0.1.0) Enterprise Edition Java Java SE Development Kit 8u31 Eclipse Luna(4.4.1)â¦
ä¸è¬çã«ãã¤ã³ããã¯ã¹ãä½ããããã¨INSERTãUPDATEã®ããã©ã¼ãã³ã¹ã«å½±é¿ãä¸ããããããããããªãã¨ããã¦ãããä»åã¯å®éã«ã¯ã©ãããç¾è±¡ãçºçãããã®ãããè¦ã¦ã¿ãã ããã㨠100åã®ãã¼ãã«ãä½ããINSERTã¨UPDATEã®é度ããã¤ã³ããã¯ã¹æ°â¦
æ¦è¦ ã·ãã¿ãæµï¼ DWHãã¥ã¼ãã³ã°ã®æ¥µæ 第4å SQLæ¸ãæããã¯ããã¯ã«ããã¨ãDWHã«ãããUPDATEããã¤ã¬ã¯ããã¹ã¤ã³ãµã¼ããç¨ããINSERT /*+ APPNED */ INTO ... SELECT ...ã«ç½®ãæãããã¨ã§é«éåãè¦è¾¼ãããã¨ãããã¯ããã¯ãç´¹ä»ããã¦ãããâ¦
Oracle Flashback Technologyã¨ããæ©è½ã¯ããã¨ãã°ã¤ããã£ããDELETEãã¡ãã£ãè¡ãå ã«æ»ãã®ã«ä½¿ãããEE以ä¸ã§ä½¿ç¨å¯è½ãSQL Developerã«ä¾åããæ©è½ã§ã¯ãªãããSCNã®ç¢ºèªç¨åº¦ã«ã¯ä¾¿å©ãªã®ã§ããã£ãããªã®ã§ä½¿ãã ç°å¢ DB CentOS-6.5-x86_64 Oraclâ¦
Oracleã®ããããããã¤ã³ããã¯ã¹ãå¦ã¶ - kagamihogeã®blogã§ã¯ãåºæ¬çãªä½¿ãæ¹ã¨ãã®æ§é ã«ã¤ãã¦å¦ç¿ããã次ã«ãä¸è¬çãªè§£èª¬ã¨ãã¦ãããããããã¤ã³ããã¯ã¹ã¯æ´æ°æã«ããããããå ¨ä½ãããã¯ããã®ã§ãªã³ã©ã¤ã³åãã®æ©è½ã§ã¯ç¡ããã¨ããããã¨â¦
@kagamihoge ppã¯åºæ¬çã«Oracleãµã¤ãããè½ã¨ãã¾ãã( ï¼¾Ïï¼¾) åç¨å©ç¨ããã«å人ã§å®é¨ããã¬ãã«ã§ããã°ã製åçã¨åãç©ã使ç¨ã§ãã¾ããâ xeã¯æ©è½å¶éãå¤ãã¦ãããâ ãã¼ãã (@curry9999) August 5, 2014 OTNéçºè ã©ã¤ã»ã³ã¹ä»ãã®ã½ããã¦ã¨ã¢â¦
ããã㨠jBatchã使ç¨ãã¦ããã¹ããã¡ã¤ã«ã®ä¸èº«ãOracleã«ãã¼ãããã ã¨ã¯ãããåãªããã¼ã¿ãã¼ãã§ããã°ã¯ã¶ã¯ã¶jBatchã使ãã®ã¯ãªã¼ãã¼ãããããããã ãã§ãããOracleã§SQL*LoaderããæåãªãSQL DeveloperãA5:SQLçå種ã®ãã¼ã«ã使ãã®ãâ¦
ããããã㨠ä¸å³ã®ã¤ã¡ã¼ã¸ã®ããã«ãå·¦å´ã®ãã¼ã¿ãåºã«ãå³å´ã®éè¨è¡¨ãä½ããããã¨ããããã¤ã³ãã¯ããã¼ãã«å ¨ä½ã®è²©å£²åæ°ã ãã§ãªãã種é¡ãã¨ã®å°è¨ã種é¡ã¨ååãã¨ã®å°è¨ãåºåãããããã«å ãã¦ãæç´°è¡ãä¸ç·ã«åºããã¨ããã®ãããããã â¦
ç°å¢ PostgreSQL 8.1.23 A5:SQL Mk-2 2.10.0 ãã£ãã㨠ãããªæãã«ãã¡ã³ã¯ã·ã§ã³ãPostgreSQLã«ä½æããã¨ããã create or replace function gettest1(numeric) returns varchar as ' declare test_char varchar := ''AAA''; begin return test_char; eâ¦
Oracleã®ç©ºã³ãããè² è·ã¯ã©ã®ãããã - kagamihogeã®æ¥è¨ã®ç¶ãããããæ¸ããã¨ãã«è½çããçåããã£ããããã¯ãããã»ãã·ã§ã³ãDMLãä¼´ããã©ã³ã¶ã¯ã·ã§ã³ããã¦ããã¨ããããã¨ã¯å¥ã®ã»ãã·ã§ã³ã空ã³ãããããããåè ã®ãã©ã³ã¶ã¯ã·ã§ã³ã«å½±é¿â¦
ç°å¢ Windows7 64bit æé ã¨ã ã¾ãã¯ãããæã«å ¥ããã 64bit:Oracle Database 11g Release 2 for Microsoft Windows (x64)ããwin64_11gR2_client.zipããã¦ã³ãã¼ãããã 32bit:Oracle Database 11g Release 2 for Microsoft Windows (32-bit)ããwin32â¦
空ã³ãããã¨ã¯ããããã©ã³ã¶ã¯ã·ã§ã³ã§DMLã®å®è¡ã¯ç¡ããã³ãããããããã¨ãæããä¸è¬çã«éç¨ããç¨èªãã©ããã¯è¬ã ããã²ã¨ã¾ããã®ã¨ã³ããªå ã§ã¯ããããããã¨ãã¦è©±ãé²ãããOracleã§ã³ã¬ãã©ãããæã«ç¾ãããã¨ããã¨ããã¨ãã°FOR UPDATEå¥â¦
軽ãããã£ãã ããªã®ã§ééã£ã¦ãããããããªãããOracleã«ã¯CSVåºåã®æ©è½ãªãAPIãªãã¯åãã£ã¦ããªãããã ããSQL*Plusã®ã³ãã³ãã§ããã¨ãPL/SQLã使ãã¨ãã§CSVåºåã¯å®ç¾åºæ¥ããä»åã®ã¨ã³ããªã§ã¯ãèªåã調ã¹ãããç¯å²å ã§CSVåºåã®æ¹æ³ãè²â¦
Oracle11gã®PL/SQLã®ãã¤ãã£ãã³ã³ãã¤ã«ã試ãã ç°å¢ DB CentOS-6.4-x86_64 Oracle Database Express Edition 11g Release 2 ãã¼ã« Oracle SQL Developer 4.0(4.0.0.13.80) RLogin Version 2.14.7 ãã£ãã㨠æ¤è¨¼ç¨ããã°ã©ã ã©ãããé度è¨æ¸¬ããã°ã©â¦
ç°å¢ DB CentOS-6.4-x86_64 Oracle Database Express Edition 11g Release 2 ãã¼ã« Oracle SQL Developer 4.0(4.0.0.13.80) RLogin Version 2.14.7 SQLãã¬ã¼ã¹ã®åå¾ Oracle Database PL/SQLããã±ã¼ã¸ããã³ã¿ã¤ãã»ãªãã¡ã¬ã³ã¹11g ãªãªã¼ã¹2(11.2) DBMSâ¦
ç°å¢ Oracle SQL Developer 4.0(4.0.0.13.80) RLogin Version 2.14.7 TortoiseSVN 1.8.4.24972 ãã£ãã㨠ããã¸ããªã®ãã§ãã¯ã¢ã¦ãã¨ç·¨é ãã¼ã -> Subversion -> ãã§ãã¯ã¢ã¦ãã¨é²ããååã®ã¿Subversioné¢é£ã®ãã©ã°ã¤ã³ã¨æãããã®ã®èª¿æ´ã§ããæâ¦
Oracleã®PL/SQLã使ãç¡éã«ã¼ãã§INSERTããç¶ããã¨ä½ãèµ·ããã®ããããããå®éã«ã¯é©å½ãªã¨ããã§ãã£ã³ã»ã«ãããããããã®çç±ãå«ãã¦è¡¨é åã®ç¶æ ãstatspackã¬ãã¼ãã®ä¸èº«ãè¦ã¦ä½ãèµ·ããã®ãã確èªãã¦ããã ç°å¢ DB CentOS-6.4-x86_64 Oraclâ¦
statspackã®ä½¿ç¨ä¾ã¨ãã¦ãã°ãã°è¦ããããã®ã®ä¸ã¤ã«ãã©ã¤ãã©ãªãã£ãã·ã¥ã®ãããçããããOracleã§ã¯åä¸ã¨è¦ãªãããªãSQLã®æ¸ãæ¹ã¨ããã¤ã³ãå¤æ°ã®å¹æã¨ãã«ã¤ãã¦ã®è¨è¿°ã¨å ±ã«è¨ããããã¨ãå¤ããã¾ãããããçã¯ããããã©ã®æç®ã§ã95ï¼ ï½9â¦
ä¸æ¨å¹´ããå»å¹´ã«ããã¦ã¯ããªã¬ã¼ã·ã§ãã«ãã¼ã¿ãã¼ã¹ã®åéã®å¦ç¿ã«æ³¨åãã¹ãæ´»åãç¶ãã¦ãããå ·ä½çãªRDBMSã®ãããã¯ãã¯ãã®ã¨ãã®ä»äºã§ä½¿ã£ã¦ããã¨ããçç±ã§Oracleãé¸ãã ãå¦ç¿å 容ã¨ãã¦ããã°ã§ã¾ã¨ãããã®ã¯ã主ã«å®è¡é度ã«å½±é¿ãä¸ããâ¦
JPAã ãã§å®çµããã®ã¯ãããã«ã ãªããã£ãã®ã§ããããã¿ã¤ãã«ã«ãããããJPAãããã¤ãåºæã®APIã®ã¬ãã«ã§ã¯ãã§ãããµã¤ãºãå¤æ´ããå¹æã確èªã§ãããJDBCã®setFetchSizeå¤æ´æã®åããstatspackã§è¦ã¦ã¿ã - kagamihogeã®æ¥è¨ã§ã¯JDBCãç´æ¥ä½¿ç¨ãâ¦
JDBCã®addBatchã¨executeBatchã®é »åº¦å¤æ´æã®åããstatspackã§è¦ã¦ã¿ã - kagamihogeã®æ¥è¨ã¯ãJDBCãç´æ¥ä½¿ç¨ãã¦ãããããJPAããåããã¨ãããã«ã¯ã©ãããè¨å®ãªã©ãããã°ããã®ããããããã£ã¦ã¿ã¦ãã¤ãã§ã«å®è¡é度ã®éããè¨æ¸¬ãããå®éã«ã¯ãâ¦
JDBCã®setFetchSizeå¤æ´æã®åããstatspackã§è¦ã¦ã¿ã - kagamihogeã®blogã«å¼ãç¶ãã¦statspackã®å¦ç¿ãç¶ãããææ¸ããJDBCçµç±ã§100ä¸ä»¶åå¾ã»è¿½å ãã¦ã¿ã - kagamihogeã®blogã§ã¯ãJDBCã®java.sql.Statement#addBatch(String sql)ã¨java.sql.Preparedâ¦