久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <i id='fgncb'><tr id='fgncb'><dt id='fgncb'><q id='fgncb'><span id='fgncb'><b id='fgncb'><form id='fgncb'><ins id='fgncb'></ins><ul id='fgncb'></ul><sub id='fgncb'></sub></form><legend id='fgncb'></legend><bdo id='fgncb'><pre id='fgncb'><center id='fgncb'></center></pre></bdo></b><th id='fgncb'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='fgncb'><tfoot id='fgncb'></tfoot><dl id='fgncb'><fieldset id='fgncb'></fieldset></dl></div>

    <small id='fgncb'></small><noframes id='fgncb'>

  • <legend id='fgncb'><style id='fgncb'><dir id='fgncb'><q id='fgncb'></q></dir></style></legend>
        <bdo id='fgncb'></bdo><ul id='fgncb'></ul>

      <tfoot id='fgncb'></tfoot>

        Unitils 和 DBMaintainer - 如何讓它們與多個用戶/模式

        Unitils and DBMaintainer - how to make them work with multiple users/schemas?(Unitils 和 DBMaintainer - 如何讓它們與多個用戶/模式一起工作?)

            <small id='Ww62p'></small><noframes id='Ww62p'>

              <bdo id='Ww62p'></bdo><ul id='Ww62p'></ul>

            • <i id='Ww62p'><tr id='Ww62p'><dt id='Ww62p'><q id='Ww62p'><span id='Ww62p'><b id='Ww62p'><form id='Ww62p'><ins id='Ww62p'></ins><ul id='Ww62p'></ul><sub id='Ww62p'></sub></form><legend id='Ww62p'></legend><bdo id='Ww62p'><pre id='Ww62p'><center id='Ww62p'></center></pre></bdo></b><th id='Ww62p'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Ww62p'><tfoot id='Ww62p'></tfoot><dl id='Ww62p'><fieldset id='Ww62p'></fieldset></dl></div>
              <tfoot id='Ww62p'></tfoot>

                    <tbody id='Ww62p'></tbody>

                  <legend id='Ww62p'><style id='Ww62p'><dir id='Ww62p'><q id='Ww62p'></q></dir></style></legend>
                  本文介紹了Unitils 和 DBMaintainer - 如何讓它們與多個用戶/模式一起工作?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在開發一個新的 Oracle ADF 項目,該項目使用的是 Oragle 10g 數據庫,并且我在我們的項目中使用了 Unitils 和 DBMaintainer:

                  I am working on a new Oracle ADF project, that is using Oragle 10g Database, and I am using Unitils and DBMaintainer in our project for:

                  • 更新數據庫結構
                  • 單元測試
                  • 讀入種子數據
                  • 讀入測試數據
                  • 列表項

                  在我們的項目中,我們有 2 個架構,以及 2 個有權連接到這些架構的數據庫用戶.我將它們放在一個帶有增量名稱的文件夾結構中,并且我使用 @convention 進行腳本命名.

                  In our project, we have 2 schemas, and 2 db users that have privilegies to connect to these schemas. I have them in a folder structure with incremental names and I am using the @convention for script naming.

                  001_@schemaA_name.sql 
                  002_@schemaB_name.sql 
                  003_@schemaA_name.sql 
                  

                  這適用于 ant 和 DBMaintainer 更新任務,我通過為 ant 任務配置額外元素來提供多個用戶名.

                  This works fine with ant and DBMaintainer update task, and I supply the multiple user names by configuring extra elements for the ant task.

                  <target name="create" depends="users-drop, users-create" description="This tasks ... ">
                      <updateDatabase scriptLocations="${dbscript.maintainer.dir}" autoCreateDbMaintainScriptsTable="true">
                         <database name="${db.user.dans}" driverClassName="${driver}" userName="${db.user.dans}" password="${db.user.dans.pwd}" url="${db.url.full}" schemaNames="${db.user.dans}" />
                          <database name="idp" driverClassName="${driver}" userName="${db.user.idp}"
                              password="${db.user.idp.pwd}" url="${db.url.full}" schemaNames="${db.user.idp}" />
                      </updateDatabase>
                  </target>
                  

                  但是,我不知道如何讓 DBMaintainer 更新任務從我的數據庫架構創建 xsd 架構?

                  However, I cant figure out, how to make the DBMaintainer update task create the xsd schemas from my db schemas?

                  所以,我決定使用 Unitils,因為它的更新創建了 xsd 模式.我還沒有找到有關 Unitils ant 任務的任何描述或文檔 - 任何人都可以提供一些提示嗎?目前,我想通過使用 @Dataset 注釋創建 Junit 測試來運行 Unitils.我可以讓它與一個模式和一個數據庫用戶一起工作.但我不知道如何讓它與多個用戶一起工作?

                  So, I decided to use Unitils, since its update creates xsd schemas. I haven't found any description or documentation for the Unitils ant tasks - can anyone give some hints? For the time being I have figured out to run Unitils by creating a Junit test, with @Dataset annotation. I can make it work with one schema, and one db user. But I am out of ideas how to make it work with multiple users?

                  這是我的 unitils-local.properties 設置:

                  Here is the unitils-local.properties setup I have:

                  database.url=jdbc\:oracle\:thin\:@localhost\:1521\:vipu
                  database.schemaNames=a,b
                  database.userName=a
                  database.password=a1
                  

                  你們中的任何人都可以給我一個提示,如何讓 Unitils 與第二個用戶/模式一起工作??我將非常感謝您的幫助!

                  Can any of you guys give me a tip, how to make Unitils work with the second user/schema ?? I will be extremely gratefull for your help!

                  推薦答案

                  我已經弄清楚如何讓 dbmaintain 和 unitils 在多數據庫用戶支持上協同工作,但解決方案是純粹的 ant hack.

                  I have figure out how to make dbmaintain and unitils work together on multi-database-user support, but the solution is a pure ant hack.

                  1. 我已經使用多數據庫用戶支持設置了 dbmaintain 的配置.
                  2. 我制作了一個帶有用于替換的令牌密鑰的 unitils-local.properties 文件.
                  3. 我的 ant 腳本的 init 目標是生成一個新的 unitils-local.properties 文件,通過將用戶名/密碼/模式的令牌替換為目標環境的正確值,然后將其復制到用戶主目錄.
                  4. 我已將測試分類到以架構名稱為前綴的文件夾中
                  5. 當 unitils 被調用時,它會選擇剛剛由 ant 腳本創建的 unitils-local.properties 文件,并發揮它的魔力.

                  它遠非漂亮,但它有效.

                  Its far from pretty, but it works.

                  這篇關于Unitils 和 DBMaintainer - 如何讓它們與多個用戶/模式一起工作?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Apache Nifi How to load JSON with nested array JSON and Call Oracle Stored Procedure(Apache Nifi 如何使用嵌套數組 JSON 加載 JSON 并調用 Oracle 存儲過程)
                  Why Kafka jdbc connect insert data as BLOB instead of varchar(為什么 Kafka jdbc 將插入數據作為 BLOB 而不是 varchar 連接)
                  How to sink kafka topic to oracle using kafka connect?(如何使用kafka connect將kafka主題下沉到oracle?)
                  Why Kafka jdbc connect insert data as BLOB instead of varchar(為什么 Kafka jdbc 將插入數據作為 BLOB 而不是 varchar 連接)
                  Oracle replication data using Apache kafka(Oracle 使用 Apache kafka 復制數據)
                  How to integrate Oracle and Kafka(如何集成 Oracle 和 Kafka)

                  <legend id='nyCjb'><style id='nyCjb'><dir id='nyCjb'><q id='nyCjb'></q></dir></style></legend>

                  <small id='nyCjb'></small><noframes id='nyCjb'>

                1. <tfoot id='nyCjb'></tfoot>

                        • <bdo id='nyCjb'></bdo><ul id='nyCjb'></ul>
                              <tbody id='nyCjb'></tbody>
                            <i id='nyCjb'><tr id='nyCjb'><dt id='nyCjb'><q id='nyCjb'><span id='nyCjb'><b id='nyCjb'><form id='nyCjb'><ins id='nyCjb'></ins><ul id='nyCjb'></ul><sub id='nyCjb'></sub></form><legend id='nyCjb'></legend><bdo id='nyCjb'><pre id='nyCjb'><center id='nyCjb'></center></pre></bdo></b><th id='nyCjb'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='nyCjb'><tfoot id='nyCjb'></tfoot><dl id='nyCjb'><fieldset id='nyCjb'></fieldset></dl></div>
                            主站蜘蛛池模板: 中国大陆高清aⅴ毛片 | 亚洲午夜av久久乱码 | 国产精品亚洲二区 | 色视频成人在线观看免 | 午夜影院在线观看视频 | 免费一区二区三区在线视频 | 久久不射网 | 精品日韩在线 | 国产午夜精品一区二区三区在线观看 | 99re99| 国产精品毛片一区二区在线看 | 亚洲一页| 国产中文原创 | 欧美精品一二三区 | 国产日韩精品一区二区 | 精品亚洲一区二区三区 | 久久99国产精一区二区三区 | 久久一及片 | 中国美女av | 久夜精品| 九九久久在线看 | 男女羞羞视频在线 | 国产午夜在线观看 | 午夜电影福利 | 男人的天堂中文字幕 | 亚洲网站在线观看 | 在线一区 | 日韩超碰在线 | 国产三级| 欧美日韩国产中文 | 久久久国产精品入口麻豆 | 天天操 天天操 | 色男人的天堂 | 99re99| 91成人| 国产在线观看网站 | 美女国内精品自产拍在线播放 | 色资源站 | 不卡的av在线 | 水蜜桃亚洲一二三四在线 | 亚洲色在线视频 |