{"id":570,"date":"2020-05-29T14:24:51","date_gmt":"2020-05-29T05:24:51","guid":{"rendered":"http:\/\/agtech.co.jp\/blog\/?p=570"},"modified":"2023-06-21T17:34:56","modified_gmt":"2023-06-21T08:34:56","slug":"export_to_text_file","status":"publish","type":"post","link":"https:\/\/www.agtech.co.jp\/blog\/2020\/05\/export_to_text_file\/","title":{"rendered":"Actian Zen \u306e\u30c7\u30fc\u30bf\u3092\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u62bd\u51fa\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p style=\"text-align:center\"><img loading=\"lazy\" src=\"https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/05\/MBPPAKU1967_TP_V4.jpg\" alt=\"\" width=\"500\" height=\"333\" class=\"alignnone size-full wp-image-569\" srcset=\"https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/05\/MBPPAKU1967_TP_V4.jpg 800w, https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/05\/MBPPAKU1967_TP_V4-300x200.jpg 300w, https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/05\/MBPPAKU1967_TP_V4-768x512.jpg 768w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/p>\r\n\r\n\r\n<p>\u304a\u5ba2\u69d8\u304b\u3089\u3088\u304f\u554f\u3044\u5408\u308f\u305b\u306e\u3042\u308b\u9805\u76ee\u306e\u4e00\u3064\u306b\u3001Zen\/PSQL \u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u30c6\u30ad\u30b9\u30c8\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u51fa\u3057\u305f\u3044\u3068\u3044\u3046\u3054\u8981\u671b\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\r\n\r\n\r\n<p>\u30c7\u30fc\u30bf\u304c DDF\uff08\u30c7\u30fc\u30bf\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\uff09\u4ed8\u304d\u3067\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u3053\u306e\u4f5c\u696d\u306f\u4ed8\u5c5e\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u7c21\u5358\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\r\n\r\n\r\n<p>Btrieve \u30cd\u30a4\u30c6\u30a3\u30d6\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u306e\u30b9\u30ad\u30fc\u30de\u3092\u542b\u3093\u3067\u3044\u307e\u305b\u3093\u3002\r\n\u3053\u306e\u305f\u3081\u3001DDF \u7121\u3057\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u6700\u521d\u306b DDF \u3092\u5b9a\u7fa9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\r\nDDF \u306f\u300cDDF Builder\u300d\u306b\u3088\u308a\u8a2d\u5b9a\u53ef\u80fd\u3067\u3059\u3002<br \/>\r\nDDF Builder \u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u3001\u4eca\u56de\u306e\u8a71\u304b\u3089\u5c11\u3057\u5916\u308c\u308b\u306e\u3067\u3001\u3053\u3061\u3089\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u5185\u5bb9\uff08DDF Builder User\u2019s Guide\uff09\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\r\n\r\n\r\n<p><a href=\"\/products\/actian\/docs_portal\/Zen\/15.2\/index.html#page\/ddfbuilder%2Fddfbuilder.htm%23\" target=\"_blank\" rel=\"noopener noreferrer\">DDF Builder User\u2019s Guide<\/a><\/p>\r\n\r\n\r\n<p>DDF \u304c\u3042\u308b\u5834\u5408\u3001\u30c6\u30fc\u30d6\u30eb\u30c7\u30fc\u30bf\u3092\u30c6\u30ad\u30b9\u30c8\u306b\u51fa\u529b\u3059\u308b\u65b9\u6cd5\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u3044\u304f\u3064\u304b\u306e\u3084\u308a\u65b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\r\n\r\n<p>\r\n\t<ul>\r\n\t\t<li><a href=\"#way1\">ZenCC (Zen Control Center) \u3092\u4f7f\u7528\u3059\u308b<\/a><\/li>\r\n\t\t<li><a href=\"#way2\">DEU\uff08Database Export Utility\uff09\u3092\u4f7f\u7528\u3059\u308b<\/a><\/li>\r\n\t\t<li><a href=\"#way3\">\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u3092\u5229\u7528\u3059\u308b<\/a><\/li>\r\n\t<\/ul>\r\n<\/p>\r\n\r\n<p>\u3053\u3053\u3067\u306f\u3001\u9806\u756a\u306b\u3053\u308c\u3089\u306e\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\r\n\r\n<h2><a id=\"way1\"><\/a>ZenCC (Zen Control Center) \u3092\u4f7f\u7528\u3059\u308b<\/h2>\r\n\r\n<p>ZenCC\uff08\u65e7\u540d pcc\uff09\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u3092\u30c6\u30ad\u30b9\u30c8\u306b\u51fa\u529b\u3059\u308b\u6a5f\u80fd\u3092\u3082\u3063\u3066\u3044\u307e\u3059\u3002\r\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4e0d\u6163\u308c\u306a\u30e6\u30fc\u30b6\u30fc\u306e\u5834\u5408\u3001GUI \u3067\u64cd\u4f5c\u3067\u304d\u308b ZenCC \u3067\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\u306e\u304c\u3082\u3063\u3068\u3082\u7c21\u5358\u3067\u3059\u3002<\/p>\r\n\r\n\r\n<p>1) ZenCC \u3092\u8d77\u52d5\u3057\u3001\u30c6\u30ad\u30b9\u30c8\u51fa\u529b\u3057\u305f\u3044\u30c6\u30fc\u30d6\u30eb\u3092\u5de6\u30da\u30a4\u30f3\u306e\u30c4\u30ea\u30fc\u304b\u3089\u9078\u629e\u3057\u307e\u3059\u3002<\/ br>\r\n<img loading=\"lazy\" src=\"https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/05\/007_Control_Center.png\" alt=\"\" width=\"838\" height=\"725\" class=\"alignnone size-full wp-image-565\" srcset=\"https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/05\/007_Control_Center.png 838w, https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/05\/007_Control_Center-300x260.png 300w, https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/05\/007_Control_Center-768x664.png 768w\" sizes=\"(max-width: 838px) 100vw, 838px\" \/><\/p>\r\n\r\n\r\n<p>2) \u305d\u306e\u307e\u307e\u30de\u30a6\u30b9\u3067\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u300c\u30c7\u30fc\u30bf\u306e\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\r\n<img loading=\"lazy\" src=\"https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/05\/007_Export.png\" alt=\"\" width=\"838\" height=\"725\" class=\"alignnone size-full wp-image-566\" srcset=\"https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/05\/007_Export.png 838w, https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/05\/007_Export-300x260.png 300w, https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/05\/007_Export-768x664.png 768w\" sizes=\"(max-width: 838px) 100vw, 838px\" \/><\/p>\r\n\r\n\r\n<p>3) \u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u5148\u3092\u6307\u5b9a\u3057\u3066[\u5b8c\u4e86]\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\r\n<img loading=\"lazy\" src=\"https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/05\/007_Export_Destination.png\" alt=\"\" width=\"511\" height=\"662\" class=\"alignnone size-full wp-image-567\" srcset=\"https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/05\/007_Export_Destination.png 511w, https:\/\/www.agtech.co.jp\/blog\/wp-content\/uploads\/2020\/05\/007_Export_Destination-232x300.png 232w\" sizes=\"(max-width: 511px) 100vw, 511px\" \/><\/p>\r\n\r\n\r\n<p>\u5225\u306e\u30b7\u30b9\u30c6\u30e0\u306a\u3069\u3067\u52a0\u5de5\u3059\u308b\u305f\u3081\u3001\u5b9a\u671f\u7684\u306b\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u62bd\u51fa\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u7b49\u3001\u4f5c\u696d\u3092\u81ea\u52d5\u5316\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u3001\u3053\u306e\u3088\u3046\u306a GUI \u30c4\u30fc\u30eb\u306e\u4f7f\u7528\u306f\u5411\u3044\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\r\n\r\n\r\n<p>\u4f5c\u696d\u3092\u81ea\u52d5\u5316\u3059\u308b\u5834\u5408\u3001\u6b21\u306b\u8aac\u660e\u3059\u308b2\u3064\u306e\u65b9\u6cd5\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\r\n\r\n<h2><a id=\"way2\"><\/a>DEU\uff08Database Export Utility\uff09\u3092\u4f7f\u7528\u3059\u308b<\/h2>\r\n\r\n<p>Zen v14 SP1 \u3067\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3059\u308b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb DEU\uff08Database Export Utility\uff09\u304c\u3001\u65b0\u305f\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\r\n\r\n\r\n<p>Zen 14 \u3092\u304a\u4f7f\u3044\u306e\u5834\u5408\u3001\u3053\u306e\u30c4\u30fc\u30eb\u3092\u30d0\u30c3\u30c1\u51e6\u7406\u3067\u5229\u7528\u3059\u308c\u3070\u3001\u304a\u624b\u8efd\u306b\u30c7\u30fc\u30bf\u62bd\u51fa\u306e\u81ea\u52d5\u5316\u304c\u884c\u3048\u307e\u3059\u3002<\/p>\r\n\r\n<p>DEU \u306e\u4f7f\u3044\u65b9\u306f\u7c21\u5358\u3067\u3059\u3002<\/p>\r\n\r\n<p>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u8d77\u52d5\u3057\u3001\u4efb\u610f\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002\u62bd\u51fa\u3057\u305f\u3044\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u51fa\u3059 SELECT \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092 \u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\r\n\r\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u3001\u51fa\u529b\u5148\u3068\u306a\u308b\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\r\n\r\n<p>\u4f8b\u3068\u3057\u3066 DEMODATA \u306e ROOM \u30c6\u30fc\u30d6\u30eb\u306e\u30c7\u30fc\u30bf\u3092 result.txt \u306b\u62bd\u51fa\u3057\u307e\u3059\u3002<\/p>\r\n\r\n\r\n<p>\u300cSELECT * FROM ROOM\u300d\u3068\u66f8\u304d\u8fbc\u3093\u3060 sql.txt \u3092\u7528\u610f\u3057\u307e\u3059\u3002<br \/>\r\n<table style=\"width: 100%; background-color: #000000;\">\r\n\t<tr>\r\n\t\t<td><span style=\"color: #ffffff;\">\r\n\t\t\techo SELECT * FROM ROOM> sql.txt\r\n\t\t<\/span><\/td>\r\n\t<\/tr>\r\n<\/table>\r\n<\/p>\r\n\r\n\r\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\r\n<table style=\"width: 100%; background-color: #000000;\">\r\n\t<tr>\r\n\t\t<td><span style=\"color: #ffffff;\">\r\n\t\t\tdeu demodata sql.txt result.txt\r\n\t\t<\/span><\/td>\r\n\t<\/tr>\r\n<\/table>\r\n<\/p>\r\n\r\n\r\n<p>\u5148\u982d\u884c\u306b\u5217\u540d\u3092\u66f8\u304d\u8fbc\u3080\u30aa\u30d7\u30b7\u30e7\u30f3\u7b49\u3082\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001deu \u3068\u3060\u3051\u5165\u529b\u3057\u3066\u8868\u793a\u3055\u308c\u308b\u8aac\u660e\u3084\u30de\u30cb\u30e5\u30a2\u30eb\u306a\u3069\u3067\u8a73\u3057\u3044\u4f7f\u7528\u65b9\u6cd5\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\r\n\r\n\r\n<p><a href=\"\/products\/actian\/docs_portal\/Zen\/15.2\/index.html#page\/uguide%2Funixsupp.09.11.htm%23\" target=\"_blank\" rel=\"noopener noreferrer\">\u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9 \u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3 : deu<\/a><\/p>\r\n\r\n<h2><a id=\"way3\"><\/a>\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u3092\u5229\u7528\u3059\u308b<\/h2>\r\n\r\n<p>Zen v13 \u4ee5\u524d\u306e\u88fd\u54c1\u3092\u304a\u4f7f\u3044\u306e\u5834\u5408\u3067\u30c7\u30fc\u30bf\u62bd\u51fa\u3092\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u6b8b\u5ff5\u306a\u304c\u3089\u88fd\u54c1\u4ed8\u5c5e\u306e\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u306f GUI \u306e ZenCC \/ PCC \u3092\u4f7f\u7528\u3059\u308b\u4ee5\u5916\u306e\u65b9\u6cd5\u306f\u3054\u3056\u3044\u307e\u305b\u3093\u3002<\/p>\r\n\r\n\r\n<p>\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u3054\u81ea\u8eab\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7528\u610f\u3059\u308c\u3070\u7c21\u5358\u306b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3092\u4f7f\u3063\u305f\u30c7\u30fc\u30bf\u62bd\u51fa\u306f\u53ef\u80fd\u3067\u3059\u3002<\/p>\r\n\r\n\r\n<p>Zen \u306f ODBC \u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001Perl \u3084 Python \u3068\u3044\u3063\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u3092\u4f7f\u3048\u3070\u30c7\u30fc\u30bf\u306f\u62bd\u51fa\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u308c\u3089\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u306f\u5225\u9014\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u3053\u3053\u3067\u306f Windows \u6a19\u6e96\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b PowerShell \u3092\u5229\u7528\u3057\u305f\u30c7\u30fc\u30bf\u62bd\u51fa\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\r\n\r\n<h3>\u3010Powershell \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u6e96\u5099\u3011<\/h3>\r\n\r\n<p>Zen \u306e\u30b5\u30f3\u30d7\u30ebDB \u300cDEMODATA\u300d\u306e ROOM \u30c6\u30fc\u30d6\u30eb\u304b\u3089\u3001\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u51fa\u3059\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u3066\u307f\u307e\u3059\u3002<\/p>\r\n\r\n<p>\u6b21\u306e\u3088\u3046\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u300cps.ps1\u300d\u3068\u3057\u3066\u7528\u610f\u3057\u3001PowerShell \u4e0a\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\r\n\u306a\u304a\u3001PowerShell \u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001\u5b9f\u884c\u30dd\u30ea\u30b7\u30fc\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\r\n\u7ba1\u7406\u8005\u6a29\u9650\u3067 PowerShell \u3092\u8d77\u52d5\u5f8c\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n\r\n\r\n<p>\r\n<table style=\"width: 100%; background-color: #000000;\">\r\n\t<tr>\r\n\t\t<td><span style=\"color: #ffffff;\">\r\n\t\t\tSet-ExecutionPolicy RemoteSigned\r\n\t\t<\/span><\/td>\r\n\t<\/tr>\r\n<\/table>\r\n<\/p>\r\n\r\n\r\n<p>ps.ps1 \u306f\u3001\u4ee5\u4e0b\u3088\u308a Zip \u30d5\u30a1\u30a4\u30eb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u89e3\u51cd\u3044\u305f\u3060\u3051\u308c\u3070\u3054\u78ba\u8a8d\u3044\u305f\u3060\u3051\u307e\u3059\u3002<br \/>\r\n<a href=\"\/blog\/wp-content\/uploads\/2020\/05\/ps.zip\">ps.ps1 \u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a><\/p>\r\n\r\n\r\n<p>\u3053\u308c\u3067 DEMODATA \u5185\u306e ROOM \u30c6\u30fc\u30d6\u30eb\u306e\u5185\u5bb9\u304c\u53d6\u308a\u51fa\u305b\u308b\u306f\u305a\u3067\u3059\u3002<br \/>\r\n\u52d5\u4f5c\u3092\u3054\u78ba\u8a8d\u306e\u4e0a\u3001\u304a\u5ba2\u69d8\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u5185\u5bb9\u3092\u5909\u66f4\u3057\u3066\u3054\u6d3b\u7528\u304f\u3060\u3055\u3044\u3002<\/p>\r\n\r\n\r\n<p>\u4ee5\u4e0a\u3067\u672c\u7a3f\u306e\u8aac\u660e\u306f\u7d42\u308f\u308a\u3067\u3059\u304c\u3001\u756a\u5916\u7de8\u3068\u3057\u3066 Linux \u74b0\u5883\u3067 PowerShell \u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3082\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\r\n\r\n<h2>\u756a\u5916\u7de8\uff1aLinux \u74b0\u5883\u3067 PowerShell \u3092\u4f7f\u3046\u306b\u306f<\/h2>\r\n\r\n<p>PowerShell \u306f\u3001Windows \u3060\u3051\u3067\u306a\u304f Linux \u3084 macOS \u3082\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u30de\u30eb\u30c1\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30c4\u30fc\u30eb\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u6587\u7ae0\u3067\u306f\u3001Linux \u74b0\u5883\u306b Powershell \u3092\u5c0e\u5165\u3057\u3001Zen \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078 PowerShell \u4e0a\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u304a\u4f1d\u3048\u3057\u307e\u3059\u3002<\/p>\r\n\r\n<h3>\u3010\u74b0\u5883\u306b\u3064\u3044\u3066\u3011<\/h3>\r\n\r\n<p>\u4eca\u56de\u306f\u3001Redhat Enterprise Linux\uff08\u4ee5\u964d RHEL\uff09\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u57f7\u7b46\u6642\u70b9\u3067\u306e\u6700\u65b0\u7248\u3067\u3042\u308b RHEL 8.1 \u3067\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u4ee5\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3082\u7279\u306b\u9055\u3044\u306f\u3054\u3056\u3044\u307e\u305b\u3093\u3002<\/p>\r\n\r\n\r\n<p>\u307e\u305f\u3001\u4f7f\u7528\u3057\u3066\u3044\u308b Zen \u306f Enterprise Server \u7248 14.01.011 \u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\r\n\r\n<h3>\u3010Powershell \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3011<\/h3>\r\n\r\n<p>\u307e\u305a\u6700\u521d\u306b\u3001Powershell \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\r\n\r\n\r\n<p>Linux \u7248\u306e Powershell \u306f\u3001\u304a\u4f7f\u3044\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u308a\u624b\u9806\u304c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\r\n\r\n\r\n<p>RHEL 8.1 \u306e\u5834\u5408\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\r\n\r\n\r\n<p>\r\n<table style=\"width: 100%; background-color: #000000;\">\r\n\t<tr>\r\n\t\t<td><span style=\"color: #ffffff;\">\r\n\t\t\t# Register the Microsoft RedHat repository<br \/>\r\ncurl https:\/\/packages.microsoft.com\/config\/rhel\/7\/prod.repo | sudo tee \/etc\/yum.repos.d\/microsoft.repo<br \/>\r\n<br \/>\r\n\t\t\t# Install PowerShell<br \/>\r\n\t\t\tsudo yum install -y powershell<br \/>\r\n<br \/>\r\n\t\t\t# Start PowerShell<br \/>\r\n\t\t\tpwsh\r\n\t\t<\/span><\/td>\r\n\t<\/tr>\r\n<\/table>\r\n<\/p>\r\n\r\n<p>\u5b9f\u884c\u4f8b\u3092\u63b2\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\r\n\r\n\r\n<p>\r\n<table style=\"width: 100%; background-color: #000000;\">\r\n\t<tr>\r\n\t\t<td><span style=\"color: #ffffff;\">\r\n\t\t\t[root@agtech.co.jp local]# curl https:\/\/packages.microsoft.com\/config\/rhel\/7\/prod.repo | sudo tee \/etc\/yum.repos.d\/microsoft.repo<br \/>\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br \/>\r\n\t\t\t                                 Dload  Upload   Total   Spent    Left  Speed<br \/>\r\n\t\t\t100   193  100   193    0     0    556      0 &#8211;:&#8211;:&#8211; &#8211;:&#8211;:&#8211; &#8211;:&#8211;:&#8211;   556<br \/>\r\n\t\t\t[packages-microsoft-com-prod]<br \/>\r\n\t\t\tname=packages-microsoft-com-prod<br \/>\r\n\t\t\tbaseurl=https:\/\/packages.microsoft.com\/rhel\/7\/prod\/<br \/>\r\n\t\t\tenabled=1<br \/>\r\n\t\t\tgpgcheck=1<br \/>\r\n\t\t\tgpgkey=https:\/\/packages.microsoft.com\/keys\/microsoft.asc<br \/>\r\n\t\t\t[root@agtech.co.jp local]# <br \/>\r\n\t\t\t[root@agtech.co.jp local]# # Install PowerShell<br \/>\r\n\t\t\t[root@agtech.co.jp local]# sudo yum install -y powershell<br \/>\r\n\t\t\tUpdating Subscription Management repositories.<br \/>\r\n\t\t\tpackages-microsoft-com-prod                     8.2 MB\/s |  29 MB     00:03<br \/>\r\n\t\t\tRed Hat Enterprise Linux 8 for x86_64 &#8211; AppStre 7.4 MB\/s |  14 MB     00:01<br \/>\r\n\t\t\tRed Hat Enterprise Linux 8 for x86_64 &#8211; BaseOS   13 MB\/s |  14 MB     00:01<br \/>\r\n\t\t\t\u30e1\u30bf\u30c7\u30fc\u30bf\u306e\u671f\u9650\u5207\u308c\u306e\u6700\u7d42\u78ba\u8a8d: 0:00:04 \u6642\u9593\u524d\u306e 2020\u5e7402\u670805\u65e5 03\u664217\u520657\u79d2 \u306b\u5b9f\u65bd\u3057\u307e\u3057\u305f\u3002<br \/>\r\n\t\t\t\u4f9d\u5b58\u95a2\u4fc2\u304c\u89e3\u6c7a\u3057\u307e\u3057\u305f\u3002<br \/>\r\n\t\t\t================================================================================<br \/>\r\n\t\t\t \u30d1\u30c3\u30b1\u30fc\u30b8    Arch      \u30d0\u30fc\u30b8\u30e7\u30f3        \u30ea\u30dd\u30b8\u30c8\u30ea\u30fc                   \u30b5\u30a4\u30ba<br \/>\r\n\t\t\t================================================================================<br \/>\r\n\t\t\t\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb:<br \/>\r\n\t\t\t powershell    x86_64    6.2.3-1.rhel.7    packages-microsoft-com-prod     54 M<br \/>\r\n<br \/>\r\n\t\t\t\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u6982\u8981<br \/>\r\n\t\t\t================================================================================<br \/>\r\n\t\t\t\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb  1 \u30d1\u30c3\u30b1\u30fc\u30b8<br \/>\r\n<br \/>\r\n\t\t\t\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30b5\u30a4\u30ba\u306e\u5408\u8a08: 54 M<br \/>\r\n\t\t\t\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306e\u30b5\u30a4\u30ba: 54 M<br \/>\r\n\t\t\t\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9:<br \/>\r\n\t\t\tpowershell-6.2.3-1.rhel.7.x86_64.rpm            2.6 MB\/s |  54 MB     00:20<br \/>\r\n\t\t\t&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\r\n\t\t\t\u5408\u8a08                                            2.6 MB\/s |  54 MB     00:20<br \/>\r\n\t\t\t\u8b66\u544a: \/var\/cache\/dnf\/packages-microsoft-com-prod-687ce8c973efa9d3\/packages\/powerf: NOKEY<br \/>\r\n\t\t\tpackages-microsoft-com-prod                     3.6 kB\/s | 983  B     00:00<br \/>\r\n\t\t\tGPG \u9375 0xBE1229CF \u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u4e2d:<br \/>\r\n\t\t\t Userid     : &#8220;Microsoft (Release signing) <gpgsecurity@microsoft.com>&#8220;<br \/>\r\n\t\t\t Fingerprint: BC52 8686 B50D 79E3 39D3 721C EB3E 94AD BE12 29CF<br \/>\r\n\t\t\t From       : https:\/\/packages.microsoft.com\/keys\/microsoft.asc<br \/>\r\n\t\t\t\u9375\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u306b\u6210\u529f\u3057\u307e\u3057\u305f<br \/>\r\n\t\t\t\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u78ba\u8a8d\u3092\u5b9f\u884c\u4e2d<br \/>\r\n\t\t\t\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u78ba\u8a8d\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u3002<br \/>\r\n<br \/>\r\n\t\t\t\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f:<br \/>\r\n\t\t\t  powershell-6.2.3-1.rhel.7.x86_64<br \/>                                        \r\n<br \/>\r\n\t\t\t\u5b8c\u4e86\u3057\u307e\u3057\u305f!<br \/>\r\n\t\t\t[root@agtech.co.jp local]# pwsh<br \/>\r\n\t\t\tCopyright (c) Microsoft Corporation. All rights reserved.<br \/>\r\n<br \/>\r\n\t\t\thttps:\/\/aka.ms\/pscore6-docs<br \/>\r\n\t\t\tType &#8216;help&#8217; to get help.<br \/>\r\n<br \/>\r\n\t\t\tPS \/usr\/local>\r\n\t\t<\/span><\/td>\r\n\t<\/tr>\r\n<\/table>\r\n<\/p>\r\n\r\n\r\n<p>\u305d\u306e\u4ed6\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3078\u306e\u5c0e\u5165\u65b9\u6cd5\u306a\u3069\u3001\u8a73\u7d30\u306f Microsoft \u793e\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3053\u3061\u3089\u306e\u5185\u5bb9\u3092\u53c2\u8003\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n\r\n\r\n<p><a href=\"https:\/\/docs.microsoft.com\/ja-jp\/powershell\/scripting\/install\/installing-powershell-core-on-linux?view=powershell-7\" target=_blank\">https:\/\/docs.microsoft.com\/ja-jp\/powershell\/scripting\/install\/installing-powershell-core-on-linux?view=powershell-7<\/a><\/p>\r\n\r\n<h3>\u3010Zen \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3011<\/h3>\r\n\r\n<p>Zen \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u306f\u3001rpm \u7248\u3068 tar \u7248\u306e2\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\r\n\u3053\u3053\u3067\u306f\u3001\u8a71\u3092\u7c21\u6f54\u306b\u3059\u308b\u305f\u3081\u3001rpm \u7248\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\r\n\r\n\r\n<p>RPM \u3067\u306f -ivh \u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\r\n\r\n\r\n<p>\r\n<table style=\"width: 100%; background-color: #000000;\">\r\n\t<tr>\r\n\t\t<td><span style=\"color: #ffffff;\">\r\n\t\t\tsudo rpm -ivh Zen-EnterpriseServer-jajp-linux-14.01-011.000.x86_64.rpm\r\n\t\t<\/span><\/td>\r\n\t<\/tr>\r\n<\/table>\r\n<\/p>\r\n\r\n\r\n<p>\u3053\u308c\u3067\u3001\/usr\/local\/actianzen\/ \u306b Zen \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\r\n\r\n\r\n<p>\u203b\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3064\u3044\u3066<br \/>\r\n\u306a\u304a\u3001\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u969b\u306b\u306f\u3001-e \u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u3092\u8abf\u3079\u3066\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n\r\n\r\n<p>\u4f8b\uff09<br \/>\r\n<table style=\"width: 100%; background-color: #000000;\">\r\n\t<tr>\r\n\t\t<td><span style=\"color: #ffffff;\">\r\n\t\t\t# rpm -qa|grep Zen<br \/>\r\n\t\t\tZen-EnterpriseServer-jajp-linux-14.01-011.000.x86_64<br \/>\r\n\t\t\t# rpm -e Zen-EnterpriseServer-jajp-linux-14.01-011.000.x86_64\r\n\t\t<\/span><\/td>\r\n\t<\/tr>\r\n<\/table>\r\n<\/p>\r\n\r\n<h3>\u3010ODBC \u306e\u8a2d\u5b9a\u3011<\/h3>\r\n\r\n<p>\u30b7\u30b9\u30c6\u30e0\u306b ODBC \u30e9\u30a4\u30d6\u30e9\u30ea\u300cunixODBC\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\r\nRHEL \u306e\u5834\u5408\u3001<\/p>\r\n\r\n\r\n<p>\r\n<table style=\"width: 100%; background-color: #000000;\">\r\n\t<tr>\r\n\t\t<td><span style=\"color: #ffffff;\">\r\n\t\t\t# yum install -y unixODBC\r\n\t\t<\/span><\/td>\r\n\t<\/tr>\r\n<\/table>\r\n<\/p>\r\n\r\n\r\n<p>\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\r\n\r\n\r\n<p>Zen \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001ODBC \u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb odbc.ini\u3001odbcinst.ini \u304c actianzen\/etc \u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\r\n\u3053\u308c\u306f\u3001\u3072\u306a\u5f62\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\r\n\u901a\u5e38\u3001\u30b7\u30b9\u30c6\u30e0\u306f \/etc \u306e\u4e0b\u306b\u3053\u308c\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3059\u308b\u4e8b\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u308b\u306e\u3067\u73fe\u5728\u5b58\u5728\u3059\u308b ini \u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3057\u3001\u4e2d\u8eab\u304c\u7a7a\u306a\u3089\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3067 Zen \u306e\u7528\u610f\u3059\u308b ini \u30d5\u30a1\u30a4\u30eb\u3092\u53c2\u7167\u3057\u307e\u3059\u3002<\/p>\r\n\r\n\r\n\r\n<p>\r\n<table style=\"width: 100%; background-color: #000000;\">\r\n\t<tr>\r\n\t\t<td><span style=\"color: #ffffff;\">\r\n\t\t\tcd \/etc<br \/>\r\n\t\t\tln -s \/usr\/local\/actianzen\/etc\/odbc.ini<br \/>\r\n\t\t\tln -s \/usr\/local\/actianzen\/etc\/odbcinst.ini\r\n\t\t<\/span><\/td>\r\n\t<\/tr>\r\n<\/table>\r\n<\/p>\r\n\r\n\r\n<p>root \u30e6\u30fc\u30b6\u30fc\u306f\u3001\u74b0\u5883\u5909\u6570\u3084\u30e9\u30a4\u30d6\u30e9\u30ea\u30d1\u30b9\u7b49\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u5404\u7a2e\u8a2d\u5b9a\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u305b\u3093\u306e\u3067\u3001\u624b\u65e9\u304f\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001 su \u3067\u7ba1\u7406\u8005\u306b\u306a\u3063\u305f\u5f8c\u3001su zen-svc \u3067 Zen \u306e\u7ba1\u7406\u30e6\u30fc\u30b6\u30fc(zen-svc)\u306b\u5909\u66f4\u3057\u3066\u304b\u3089\u7528\u610f\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\r\n\r\n\r\n<p>\r\n<table style=\"width: 100%; background-color: #000000;\">\r\n\t<tr>\r\n\t\t<td><span style=\"color: #ffffff;\">\r\n\t\t\tsu<br \/>\r\n\t\t\tsu zen-svc<br \/>\r\n\t\t\tcd \/usr\/local\/actianzen<br \/>\r\n\t\t\tpwsh<br \/>\r\n\t\t\t.\/ps.ps1\r\n\t\t<\/span><\/td>\r\n\t<\/tr>\r\n<\/table>\r\n<\/p>\r\n\r\n\r\n<p>\u4ee5\u4e0a\u3067\u3001\u756a\u5916\u7de8\u306e\u8aac\u660e\u3082\u7d42\u308f\u308a\u3067\u3059\u3002<br \/>\r\n\u304a\u75b2\u308c\u3055\u307e\u3067\u3057\u305f\u3002<\/p>\r\n","protected":false},"excerpt":{"rendered":"\u304a\u5ba2\u69d8\u304b\u3089\u3088\u304f\u554f\u3044\u5408\u308f\u305b\u306e\u3042\u308b\u9805\u76ee\u306e\u4e00\u3064\u306b\u3001Zen\/PSQL \u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u30c6\u30ad\u30b9\u30c8\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u51fa\u3057\u305f\u3044\u3068\u3044\u3046\u3054\u8981\u671b\u304c\u3042\u308a\u307e\u3059\u3002 \u30c7\u30fc\u30bf\u304c DDF\uff08\u30c7\u30fc\u30bf\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\uff09\u4ed8\u304d\u3067\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u3053\u306e\u4f5c [&hellip;]","protected":false},"author":1,"featured_media":569,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"product":[58,79],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/posts\/570"}],"collection":[{"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=570"}],"version-history":[{"count":11,"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/posts\/570\/revisions"}],"predecessor-version":[{"id":4427,"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/posts\/570\/revisions\/4427"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/media\/569"}],"wp:attachment":[{"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=570"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.agtech.co.jp\/blog\/wp-json\/wp\/v2\/product?post=570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}