{"id":329,"date":"2021-09-17T00:00:00","date_gmt":"2021-09-16T15:00:00","guid":{"rendered":"https:\/\/www.tech-tips.takmaru.com\/?p=5452"},"modified":"2021-09-17T00:00:00","modified_gmt":"2021-09-16T15:00:00","slug":"sqlserver-to-oracle-odbc","status":"publish","type":"post","link":"https:\/\/www.tech-tips.takmaru.com\/?p=329","title":{"rendered":"SQL Server \u304b\u3089 Oracle \u306b\u63a5\u7d9a\u3059\u308b\u3010ODBC\u7de8\u3011"},"content":{"rendered":"<p>\u300c<a href=\"http:\/\/www.tech-tips.takmaru.com\/?p=282\">Oracle \u304b\u3089 SQL Server \u3078\u63a5\u7d9a\u3059\u308b<\/a>\u300d\u3068\u306f\u5168\u304f\u9006\u3067\u3001SQL Server \u304b\u3089\u30ea\u30f3\u30af\u30b5\u30fc\u30d0\u30fc\u7d4c\u7531\u3067 Oracle \u306b\u63a5\u7d9a\u3057\u3066\u30c7\u30fc\u30bf\u64cd\u4f5c\u3092\u884c\u3063\u3066\u307f\u307e\u3059\u3002<br \/>\n\u74b0\u5883\u306f\u95a2\u9023\u8a18\u4e8b\u3068\u540c\u3058\u304f\u3001Windows10 \u3001Oracle 19c \u3001 SQL Server 2019 \u3067\u3059\u3002<br \/>\n\u63a5\u7d9a\u7528\u306e\u30c9\u30e9\u30a4\u30d0\u3067\u3059\u304c\u3001Oracle \u304b\u3089 SQL Server \u304c\u300cODBC\u300d\u3067\u3057\u305f\u306e\u3067\u3001\u4eca\u56de\u3082\u5408\u308f\u305b\u3066\u300cODBC\u300d\u3067\u63a5\u7d9a\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>Oracle ODBC \u30c9\u30e9\u30a4\u30d0<\/h2>\n<p>\u79c1\u306e\u74b0\u5883\u3067\u306f Oracle 19c \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u306a\u306e\u3067 Oracle \u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306e ODBC \u30c9\u30e9\u30a4\u30d0\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u63a5\u7d9a\u5143\u306b Oracle \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3068\u306f\u9650\u3089\u306a\u3044\u306e\u3067\u3001ODBC \u30c9\u30e9\u30a4\u30d0\u306f\u5225\u9014\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u666e\u901a\u306b Oracle Client \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3082\u826f\u3044\u3067\u3059\u304c\u3001\u5fc5\u8981\u6700\u5c0f\u9650\u306b\u3057\u305f\u3044\u306e\u3067\u3042\u308c\u3070\u300c<a href=\"https:\/\/www.oracle.com\/jp\/database\/technologies\/releasenote-odbc-ic.html\">Oracle Instant Client ODBC\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30fb\u30ce\u30fc\u30c8<\/a>\u300d\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u5c1a\u3001Oracle Instant Client \u306b\u3064\u3044\u3066\u306f\u300c<a href=\"http:\/\/www.tech-tips.takmaru.com\/?p=147\">Oracle SQL Developer \u3092\u5c0e\u5165\u3059\u308b\u3010Oracle Instant Client \u7de8\u3011<\/a>\u300d\u3067\u3082\u89e6\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>Oracle \u5074\u306b\u30e6\u30fc\u30b6\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>\u4eca\u56de\u3082 SQL Server \u304b\u3089\u306e\u63a5\u7d9a\u306e\u305f\u3081\u306e\u5c02\u7528\u30e6\u30fc\u30b6\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002Oracle \u306e\u5834\u5408\u3001\u30e6\u30fc\u30b6\uff1d\u30b9\u30ad\u30fc\u30de\u3068\u3044\u3046\u8003\u3048\u65b9\u306a\u306e\u3067\u3001\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u306e\u30b9\u30ad\u30fc\u30de\u306b\u30c6\u30b9\u30c8\u7528\u306e\u30c6\u30fc\u30d6\u30eb\u3068\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\uff08\u3082\u3061\u308d\u3093\u3001\u5225\u30b9\u30ad\u30fc\u30de\u306e\u30c6\u30fc\u30d6\u30eb\u3067\u3082\u53ef\u80fd\u3067\u3059\u304c\u3001\u8a71\u304c\u8131\u7dda\u3057\u306a\u3044\u3088\u3046\u306b\u30b7\u30f3\u30d7\u30eb\u306b\u8003\u3048\u307e\u3059\uff09<br \/>\n\u63a5\u7d9a\u7528\u306e\u30e6\u30fc\u30b6\u3092GUI\uff08SQL Developer\uff09\u3067\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-101-1.png\" \/><\/p><figcaption>\n<p>\u30e6\u30fc\u30b6\u306e\u4f5c\u6210\uff08\uff11\uff09<\/p>\n<\/figcaption><\/figure>\n<p>\u30e6\u30fc\u30b6\u540d\u306f&#8221;MSQLUSER&#8221;\u3067\u3059\u3002SQL Developer \u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3060\u3068\u30b1\u30fc\u30b9\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306e\u3088\u3046\u306a\u306e\u3067\u30e6\u30fc\u30b6\u540d\u306f\u5927\u6587\u5b57\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-102-1.png\" \/><\/p><figcaption>\n<p>\u30e6\u30fc\u30b6\u306e\u4f5c\u6210\uff08\uff12\uff09<\/p>\n<\/figcaption><\/figure>\n<p>\u63a5\u7d9a\uff08CONNECT\uff09\u3068\u81ea\u8eab\u306e\u30b9\u30ad\u30fc\u30de\u306b\u30c6\u30fc\u30d6\u30eb\u4f5c\u6210\u7b49\u304c\u3067\u304d\u308b\uff08RESOURCE\uff09\u306e\u30ed\u30fc\u30eb\u3092\u4e0e\u3048\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-103-1.png\" \/><\/p>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-105-1.png\" \/><\/p><figcaption>\n<p>\u30e6\u30fc\u30b6\u306e\u4f5c\u6210\uff08\uff13\uff09<\/p>\n<\/figcaption><\/figure>\n<p>\u8868\u9818\u57df USERS \u3078\u306e\u5bb9\u91cf\u5272\u5f53\u3066\u306f\u7121\u5236\u9650\u3068\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-107-1.png\" \/><\/p><figcaption>\n<p>\u30e6\u30fc\u30b6\u306e\u4f5c\u6210\uff08\uff14\uff09<\/p>\n<\/figcaption><\/figure>\n<p>\u3053\u308c\u3067\u300c\u9069\u7528\u300d\u3092\u9078\u629e\u3059\u308c\u3070\u30e6\u30fc\u30b6\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-106-1.png\" \/><\/p><figcaption>\n<p>\u30e6\u30fc\u30b6\u306e\u4f5c\u6210\uff08\uff15\uff09<\/p>\n<\/figcaption><\/figure>\n<p>\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001<a href=\"http:\/\/www.tech-tips.takmaru.com\/?p=282\">\u95a2\u9023\u8a18\u4e8b<\/a>\u3068\u540c\u3058\u3088\u3046\u306a\u30c6\u30b9\u30c8\u7528\u306e\u30c6\u30fc\u30d6\u30eb\u3068\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u3053\u306e\u624b\u9806\u306f\u7701\u7565\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u304c\u53c2\u7167\u7d50\u679c\u3067\u3059\u3002<\/p>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-108-1.png\" \/><\/p><figcaption>\n<p>Oracle \u30c6\u30b9\u30c8\u30c7\u30fc\u30bf<\/p>\n<\/figcaption><\/figure>\n<h2>ODBC \u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306e\u4f5c\u6210<\/h2>\n<p>\u4eca\u56de\u3082 ODBC \u7d4c\u7531\u3068\u3059\u308b\u305f\u3081\u3001ODBC \u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><strong><em>\u30102021\u5e749\u670817\u65e5 \u8ffd\u8a18\u3011<br \/>\n\u3000\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u4f5c\u6210\u3092\u3057\u306a\u3044\u3067\u63a5\u7d9a\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u5225\u8a18\u4e8b\u306b\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3000\u300c<a href=\"http:\/\/www.tech-tips.takmaru.com\/?p=358\">SQL Server \u304b\u3089 Oracle \u306b\u63a5\u7d9a\u3059\u308b\u3010ODBC DSN\u30ec\u30b9\u63a5\u7d9a\u7de8\u3011<\/a>\u300d\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/em><\/strong><\/p>\n<p>\u30b9\u30bf\u30fc\u30c8\u30e1\u30cb\u30e5\u30fc\u3088\u308a\u300cODBC \u30c7\u30fc\u30bf\u30bd\u30fc\u30b9 (64 \u30d3\u30c3\u30c8)\u300d\u3092\u8d77\u52d5\u3057\u3001\u300c\u30b7\u30b9\u30c6\u30e0 DSN\u300d\u30bf\u30d6\u3067\u300c\u8ffd\u52a0\u300d\u3092\u884c\u3044\u307e\u3059\u3002\u30c9\u30e9\u30a4\u30d0\u306f\u300cOracle in OraDB19Home1\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-110-1.png\" \/><\/p><figcaption>\n<p>\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306e\u4f5c\u6210\uff08\uff11\uff09<\/p>\n<\/figcaption><\/figure>\n<p>\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306e\u540d\u524d\u306f\u300cORACLE19DSN\u300d\u3068\u3057\u307e\u3059\u3002TNS\u30b5\u30fc\u30d3\u30b9\u540d\u306f\u3001tnsname.ora \u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3042\u308c\u3070\u305d\u306e\u540d\u524d\u3067\u3082\u826f\u3044\u3067\u3059\u304c\u3001\u5b9a\u7fa9\u3057\u306a\u304f\u3066\u3082<a href=\"https:\/\/docs.oracle.com\/cd\/F19136_01\/ntcli\/specifying-a-connection-by-using-the-easy-connect-naming-method.html#GUID-1035ABB3-5ADE-4697-A5F8-28F9F79A7504\">\u7c21\u6613\u63a5\u7d9a\u30cd\u30fc\u30df\u30f3\u30b0\u30fb\u30e1\u30bd\u30c3\u30c9<\/a>\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u5148\u982d\u306e&#8221;\/\/&#8221;\u306f\u7701\u7565\u3067\u304d\u308b\u3088\u3046\u306a\u306e\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3057\u305f\u3002<\/p>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-111-1.png\" \/><\/p><figcaption>\n<p>\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306e\u4f5c\u6210\uff08\uff12\uff09<\/p>\n<\/figcaption><\/figure>\n<p>\u300c\u63a5\u7d9a\u30c6\u30b9\u30c8\u300d\u3092\u9078\u629e\u3059\u308b\u3068ID\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u805e\u304b\u308c\u308b\u306e\u3067\u3001\u6700\u521d\u306b\u767b\u9332\u3057\u305f\u30e6\u30fc\u30b6\u3067\u63a5\u7d9a\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u554f\u984c\u306a\u3055\u305d\u3046\u306a\u3089\u3001OK \u30dc\u30bf\u30f3\u3067\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-112-1.png\" \/><\/p><figcaption>\n<p>\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306e\u4f5c\u6210\uff08\uff13\uff09<\/p>\n<\/figcaption><\/figure>\n<p>\u4eca\u56de\u4f5c\u6210\u3057\u305fDSN\uff08ORACLE19DSN\uff09\u304c\u3001\u524d\u56de\u767b\u9332\u3057\u305fDSN\uff08MSSQL2019DSN\uff09\u306e\u4e0b\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<h2>\u30ea\u30f3\u30af\u30b5\u30fc\u30d0\u30fc\u306e\u4f5c\u6210<\/h2>\n<p>Oracle \u304b\u3089\u306f Database Gateway \u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u3060\u3063\u305f\u305f\u3081\u5c11\u3005\u9762\u5012\u3067\u3057\u305f\u304c\u3001SQL Server \u3067\u306f\u305d\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u306a\u3057\u306b\u30ea\u30f3\u30af\u30b5\u30fc\u30d0\uff08\uff1dOracle \u3067\u3044\u3046\u3068\u3053\u308d\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30ea\u30f3\u30af\uff09\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<br \/>\n\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306e\u6307\u5b9a\u304c\u3042\u308b\u306e\u3067\u3001GUI\u306e\u65b9\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u306e\u3067\u3001\u4eca\u56de\u306fGUI\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-113-1.png\" \/><\/p><figcaption>\n<p>\u30ea\u30f3\u30af\u30b5\u30fc\u30d0\u30fc\u306e\u4f5c\u6210\uff08\uff11\uff09<\/p>\n<\/figcaption><\/figure>\n<p>\u30ea\u30f3\u30af\u30b5\u30fc\u30d0\u30fc\u540d\u306f\u300cORACLE19LINK\u300d\u3067\u3001\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306f\u300cMicrosoft OLE DB Provider for ODBC Drivers\u300d\u3092\u9078\u629e\u3001\u30ab\u30bf\u30ed\u30b0\u306b\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u300cORACLE19DSN\u300d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-128-1.png\" \/><\/p><figcaption>\n<p>\u30ea\u30f3\u30af\u30b5\u30fc\u30d0\u30fc\u306e\u4f5c\u6210\uff08\uff12\uff09<\/p>\n<\/figcaption><\/figure>\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30da\u30fc\u30b8\u3067\u6700\u521d\u306b\u4f5c\u6210\u3057\u305f\u5c02\u7528\u30e6\u30fc\u30b6\uff08MSQLUSER\uff09\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-129-1.png\" \/><\/p><figcaption>\n<p>\u30ea\u30f3\u30af\u30b5\u30fc\u30d0\u30fc\u306e\u4f5c\u6210\uff08\uff13\uff09<\/p>\n<\/figcaption><\/figure>\n<p>OK\u3092\u9078\u629e\u3059\u308b\u3068\u30ea\u30f3\u30af\u30b5\u30fc\u30d0\u30fc\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u306e\u3068\u304d\u306b\u540c\u6642\u306b\u30c6\u30b9\u30c8\u63a5\u7d9a\u304c\u884c\u308f\u308c\u3001\u3082\u3057\u5165\u529b\u4e0d\u5099\u3084\u74b0\u5883\u4e0d\u5099\u304c\u3042\u308c\u3070\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-116-1.png\" \/><\/p><figcaption>\n<p>\u63a5\u7d9a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8<\/p>\n<\/figcaption><\/figure>\n<p>\u63a5\u7d9a\u30c6\u30b9\u30c8\u3067\u554f\u984c\u304c\u306a\u3051\u308c\u3070\u30ea\u30f3\u30af\u30b5\u30fc\u30d0\u30fc\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-118-1.png\" \/><\/p><figcaption>\n<p>\u30ea\u30f3\u30af\u30b5\u30fc\u30d0\u30fc\u306e\u4f5c\u6210\uff08\uff14\uff09<\/p>\n<\/figcaption><\/figure>\n<h2>SQL Server \u304b\u3089\u306e\u63a5\u7d9a\u30c6\u30b9\u30c8<\/h2>\n<p>\u3067\u306f\u3001\u30ea\u30f3\u30af\u30b5\u30fc\u30d0\u30fc\u7d4c\u7531\u3067\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u53c2\u7167\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-sql\">SELECT * FROM ORACLE19LINK..MSQLUSER.SAMPLE;\n<\/code><\/pre>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-119-1.png\" \/><\/p><figcaption>\n<p>Oracle \u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u53c2\u7167\uff08\uff11\uff09<\/p>\n<\/figcaption><\/figure>\n<pre><code>\u30e1\u30c3\u30bb\u30fc\u30b8 7318\u3001\u30ec\u30d9\u30eb 16\u3001\u72b6\u614b 1\u3001\u884c 1\n\u30ea\u30f3\u30af \u30b5\u30fc\u30d0\u30fc &quot;ORACLE19LINK&quot; \u306e OLE DB \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc &quot;MSDASQL&quot; \u304b\u3089\u3001\u30c6\u30fc\u30d6\u30eb &quot;&quot;MSQLUSER&quot;.&quot;SAMPLE&quot;&quot; \u306e\u7121\u52b9\u306a\u5217\u5b9a\u7fa9\u304c\u8fd4\u3055\u308c\u307e\u3057\u305f\u3002\n\n<\/code><\/pre>\n<p>\u3052\u3052\u3063\uff01\u306a\u3093\u3068\u3044\u3046\u3053\u3068\u3067\u3057\u3087\u3046\uff01\u300c\u7121\u52b9\u306a\u5217\u5b9a\u7fa9\uff01\uff1f\u300d\u306a\u3093\u3060\u304b\u610f\u5473\u308f\u304b\u308a\u307e\u305b\u3093\u304c VARCHAR2 \u3068\u304b\u304c\u5909\u63db\u3067\u304d\u306a\u3044\u306e\u3067\u3057\u3087\u3046\u304b\u3001\u3001\u3001\u3067\u306f\u3001\u30d1\u30b9\u30b9\u30eb\u30fc\u30af\u30a8\u30ea\u3067\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002<a href=\"https:\/\/docs.microsoft.com\/ja-jp\/sql\/t-sql\/functions\/openquery-transact-sql?redirectedfrom=MSDN&amp;view=sql-server-ver15\">OPENQUERY<\/a>\u3068\u3044\u3046\u95a2\u4fc2\u6f14\u7b97\u5b50\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-sql\">SELECT * FROM OPENQUERY( ORACLE19LINK, 'SELECT * FROM MSQLUSER.SAMPLE')\n<\/code><\/pre>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-121-1.png\" \/><\/p><figcaption>\n<p>Oralce \u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u53c2\u7167\uff08\uff12\uff09<\/p>\n<\/figcaption><\/figure>\n<p>\u3046\u307e\u304f\u691c\u7d22\u3067\u304d\u307e\u3057\u305f\u3002\u3067\u306f\u3001\u767b\u9332\u3082\u3084\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-sql\">INSERT OPENQUERY (ORACLE19LINK, 'SELECT * FROM MSQLUSER.SAMPLE')  \n  VALUES (5,'SQL Server\u304b\u3089\u306e\u8ffd\u52a0','X'); \n<\/code><\/pre>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-130-1.png\" \/><\/p><figcaption>\n<p>Oracle \u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u8ffd\u52a0<\/p>\n<\/figcaption><\/figure>\n<p>\u3053\u308c\u3092 Oracle \u5074\u3067\u53c2\u7167\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<figure>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.tech-tips.takmaru.com\/wp-content\/uploads\/2026\/03\/2021-09-image-122-1.png\" \/><\/p><figcaption>\n<p>Oracle \u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u53c2\u7167\uff08\uff13\uff09<\/p>\n<\/figcaption><\/figure>\n<p>\u767b\u9332\u3067\u304d\u307e\u3057\u305f\u3002\u3093\u30fc\u3001\u3067\u3082\u5c11\u3057\u6d88\u5316\u4e0d\u826f\u3067\u3059\u306d\u3002Oracle \u304b\u3089 SQL Server \u306e\u3068\u304d\u306e\u3088\u3046\u306b\u666e\u901a\u306e SQL \u306b\u3057\u305f\u3044\u3067\u3059\u306d\u3002\u6b21\u56de\u306f\u63a5\u7d9a\u30d7\u30ed\u30d0\u30a4\u30c0\u3092\u5909\u3048\u3066\u8a66\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300cOracle \u304b\u3089 SQL Server \u3078\u63a5\u7d9a\u3059\u308b\u300d\u3068\u306f\u5168\u304f\u9006\u3067\u3001SQL Server \u304b\u3089\u30ea\u30f3\u30af\u30b5\u30fc\u30d0\u30fc\u7d4c\u7531\u3067 Oracle \u306b\u63a5\u7d9a\u3057\u3066\u30c7\u30fc\u30bf\u64cd\u4f5c\u3092\u884c\u3063\u3066\u307f\u307e\u3059\u3002 \u74b0\u5883\u306f\u95a2\u9023\u8a18\u4e8b\u3068\u540c\u3058\u304f\u3001Windows10 \u3001Or [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":5355,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[16,18,25,29],"class_list":["post-329","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database","tag-odbc","tag-oracle","tag-setup","tag-sqlserver"],"_links":{"self":[{"href":"https:\/\/www.tech-tips.takmaru.com\/index.php?rest_route=\/wp\/v2\/posts\/329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tech-tips.takmaru.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tech-tips.takmaru.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tech-tips.takmaru.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tech-tips.takmaru.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=329"}],"version-history":[{"count":0,"href":"https:\/\/www.tech-tips.takmaru.com\/index.php?rest_route=\/wp\/v2\/posts\/329\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tech-tips.takmaru.com\/index.php?rest_route=\/wp\/v2\/media\/5355"}],"wp:attachment":[{"href":"https:\/\/www.tech-tips.takmaru.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tech-tips.takmaru.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tech-tips.takmaru.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}