{"id":12948,"date":"2024-05-16T17:07:23","date_gmt":"2024-05-16T09:07:23","guid":{"rendered":"https:\/\/nj.transwarp.cn:8180\/?p=12948"},"modified":"2024-05-23T17:21:12","modified_gmt":"2024-05-23T09:21:12","slug":"tds%e6%a0%b9%e6%8d%ae%e6%ba%90%e7%ab%af%e6%95%b0%e6%8d%ae%e6%ba%90%e5%92%8c%e7%9b%ae%e6%a0%87%e7%ab%af%e6%95%b0%e6%8d%ae%e6%ba%90%e7%b1%bb%e5%9e%8b%e7%bb%9f%e8%ae%a1%e6%89%80%e6%9c%89%e5%8a%a0","status":"publish","type":"post","link":"https:\/\/kbwp.transwarp.cn\/?p=12948","title":{"rendered":"tds\u6839\u636e\u6e90\u7aef\u6570\u636e\u6e90\u548c\u76ee\u6807\u7aef\u6570\u636e\u6e90\u7c7b\u578b\u7edf\u8ba1\u6240\u6709\u52a0\u8f7d\u8868\u7684\u6570\u91cf"},"content":{"rendered":"<h3>\u6982\u8981\u63cf\u8ff0<\/h3>\n<hr \/>\n<p>\u80cc\u666f\uff1a\u672c\u6587\u662f\u4e3a\u4e86\u7edf\u8ba1\u5728tds\u7684tdt\u6a21\u5757\u4e2d\uff0c\u6839\u636e\u6e90\u7aef\u6570\u636e\u6e90\u548c\u76ee\u6807\u7aef\u6570\u636e\u6e90\u7b5b\u9009\uff0c\u5171\u8ba1\u52a0\u8f7d\u8868\u6709\u591a\u5c11\u5f20\u3002\u7ed3\u5c3e\u9644\u4e0asql\u3002<\/p>\n<h3>\u8be6\u7ec6\u8bf4\u660e<\/h3>\n<h4>\u6240\u6709\u7528\u5230\u7684\u5e93\u8868\u8bf4\u660e<\/h4>\n<hr \/>\n<p>1.tdt_transporter1.tdt_solution_model_config<\/p>\n<p>\u8fd9\u5f20\u8868\u8bb0\u5f55\u4e86tdt\u4efb\u52a1\u6240\u6709\u7684\u914d\u7f6e\u9879\u53ca\u53c2\u6570\uff0c\u8fd9\u8fb9\u6211\u4eec\u9700\u8981\u7528\u5230tableDetails\u8fd9\u4e2aname<\/p>\n<p>2.tdt_transporter1.tdt_solution<\/p>\n<p>\u8fd9\u5f20\u8868\u8bb0\u5f55\u4e86\u521b\u5efa\u52a0\u8f7d\u4efb\u52a1\u7684\u57fa\u672c\u60c5\u51b5\uff0c\u5305\u62ec\u521b\u5efa\u8be5\u4efb\u52a1\u7684owner\u3001time\uff0c\u4ee5\u53ca\u8be5tdt\u4efb\u52a1\u7684\u552f\u4e00id\u3001\u7c7b\u578b\u7b49\u7b49\u3002\u8fd9\u4e2a\u5730\u65b9\u6211\u4eec\u9700\u8981\u6839\u636e\u552f\u4e00id\u53bb\u548c\u4e0a\u4e00\u5f20\u8868\u7684solution_uuid\u8fdb\u884c\u5339\u914d<\/p>\n<p>3.tdt_transporter1.tdt_runtime_env_config<\/p>\n<p>\u8fd9\u5f20\u8868\u8bb0\u5f55\u4e86tdt\u4efb\u52a1\u8fd0\u884c\u65f6\u62c6\u89e3\u4e0b\u7684\u5b50\u4efb\u52a1\u5bf9\u5e94\u7684\u503c\uff0c\u5305\u62ec\u56fa\u5b9a\u503c\u548c\u6d89\u53ca\u5230\u7684\u6570\u636e\u6e90id<\/p>\n<p>4.connector_foundation1.datasource<\/p>\n<p>\u8fd9\u5f20\u8868\u8bb0\u5f55\u4e86\u6240\u6709\u7684\u6570\u636e\u6e90\u4fe1\u606f\uff0c\u6b64\u5f20\u8868\u662f\u4e3a\u4e86\u548ctdt_runtime_env_config\u8868\u5173\u8054\u5f97\u51fa\u60f3\u8981\u7684\u6e90\u7aef\u6570\u636e\u6e90\u540d\u79f0\u548c\u76ee\u6807\u7aef\u6570\u636e\u6e90\u540d\u79f0<\/p>\n<p>5.connector_foundation1.connection<\/p>\n<p>\u8fd9\u5f20\u8868\u8bb0\u5f55\u4e86\u6240\u6709\u7684\u8fde\u63a5\u4fe1\u606f\uff0c\u6b64\u5f20\u8868\u662f\u4e3a\u4e86\u548ctdt_runtime_env_config\u8868\u5173\u8054\u5f97\u51fa\u5bf9\u5e94\u7684\u6570\u636e\u6e90\u8fde\u63a5\u4fe1\u606f<\/p>\n<h4>\u5177\u4f53sql\u53c2\u8003<\/h4>\n<pre><code class=\"language-sql\">select count(solution_uuid)  \nfrom tdt_transporter1.tdt_solution_model_config \nwhere name='tableDetails' \nand solution_uuid in \n(\nselect solution_uuid from \n(select s.unique_id as solution_uuid ,s.name as tdt_name, n.name as connection_name, d.name as datasource_name,e.name as src_datasource_name from tdt_transporter1.tdt_solution s\ninner join (select * from tdt_runtime_env_config where name= 'engineUuid') c on c.solution_uuid = s.unique_id\ninner join (select * from tdt_runtime_env_config where name= 'jdbcConnUuid') f on f.solution_uuid = s.unique_id\ninner join connector_foundation1.datasource d on d.uuid = replace(c.value, '\"', '')\ninner join connector_foundation1.connection n on n.uuid = d.connection_uuid\ninner join connector_foundation1.datasource e on e.uuid = replace(f.value, '\"', '')\norder by n.name, d.name asc) v \nwhere v.datasource_name = 'kundb_sjn'  and v.src_datasource_name= '172.22.23.2-523');<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981\u63cf\u8ff0 \u80cc\u666f\uff1a\u672c\u6587\u662f\u4e3a\u4e86\u7edf\u8ba1\u5728tds\u7684tdt\u6a21\u5757\u4e2d\uff0c\u6839\u636e\u6e90\u7aef\u6570\u636e\u6e90\u548c\u76ee\u6807\u7aef\u6570\u636e\u6e90\u7b5b\u9009\uff0c\u5171\u8ba1\u52a0\u8f7d\u8868\u6709\u591a\u5c11\u5f20\u3002\u7ed3 ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/kbwp.transwarp.cn\/?p=12948\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":190,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[277],"class_list":["post-12948","post","type-post","status-publish","format-standard","hentry","category-checklist","tag-sql"],"acf":[],"_links":{"self":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/12948","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/users\/190"}],"replies":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12948"}],"version-history":[{"count":3,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/12948\/revisions"}],"predecessor-version":[{"id":13101,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/12948\/revisions\/13101"}],"wp:attachment":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12948"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}