JIRA連線Oracle資料庫教程

2021-09-19 22:51:15 字數 2134 閱讀 1263

本文主要介紹連線jira到oracle資料庫。

1.確保有適合jira的資料庫例項(新建或使用已存在的)。

2.在這個資料庫例項裡建立乙個將與jira連線的使用者如:jiradbuser

create user < user> identified by < user_pass> default tablespace < tablespace_name> quota unlimited on < tablespace_name>;
注意:

注意一些oracle jdbc驅動版本不能與jira一起使用或內在不穩定。已知的oracle驅動有關的問題如下:

建議使用11.2.x版本的oracle驅動(是向後相容的)。許多其他版本的驅動已出現以下問題:

三種連線oracle資料庫的方法:

每種配置方法的說明:

jira setup wizard

當首次在瀏覽器連線jira時,jira設定嚮導就會出現。

1.在最開始頁面的'configure language and database'設定database connection為my own database。

2.設定database type為oracle。

3.按照下面描述的資料庫連線字段填寫字段。

4.測試連線並儲存。

jira configuration tool

1.根據下面執行jira配置工具:

manually

1.找到jira主目錄根目錄下的dbconfig.xml檔案。

如果該檔案不存在,建立該檔案,將xml示例**(如下)複製貼上到該檔案。
2.根據下面資料庫連線字段描述更新該檔案。通過在每乙個末端新增'amp;'轉義所有'&'字元。

注意:元素必須指定資料庫型別,如:oracle10g。如果你忘記指定資料庫型別就啟動jira,那麼資料庫表將不會被正確建立。
3.儲存檔案並重啟jira。

資料庫連線字段:

hostname

位於< url>標記(例如下面的粗體文字):

< url>jdbc:oracle:thin:@dbserver:1521:orcl< /url>

安裝oracle伺服器的機器名稱或ip位址。

port

位於< url>標記(例如下面的粗體文字):

< url>jdbc:oracle:thin:@dbserver:1521:orcl< /url>

mysql伺服器正在監聽的tcp/ip埠。預設埠號是'1521'。

sid

位於< url>標記(例如下面的粗體文字):

< url>jdbc:oracle:thin:@dbserver:1521:orcl< /url>

oracle "system identifier"。大多數oracle伺服器預設值是'orcl'。如果使用的是oracle express edition,預設的將會是'xe'。

username

位於< username>標記(例如下面的粗體字):

< username>jiradbuser< /username>

jira用於連線oracle伺服器的使用者。應在上面第一步時建立。

password

位於< password>標記(例如下面的粗體字):

< password>jiradbuser< /password>

用於與oracle伺服器身份驗證的使用者密碼。

dbconfig.xml檔案示例:

現在jira連線到oracle資料庫就配置好了。下一步就是啟動jira。

已知的問題和解決方案:

連線Oracle資料庫

先將system.data.oralceclient.dll檔案拷貝專案目錄的bin目錄下,通常位於c windows microsoft.net franmework v.1.1.4322目錄中.連線字串 string oracle connstr data source oracle9i int...

連線Oracle資料庫

先將system.data.oralceclient.dll檔案拷貝專案目錄的bin目錄下,通常位於c windows microsoft.net franmework v.1.1.4322目錄中.連線字串 string oracle connstr data source oracle9i int...

VB連線ORACLE資料庫

開啟資料庫 public sub openoradb on error goto toexit oradb open false set oradb new adodb.connection oraconstr provider oraoledb.oracle.1 password strorapw...