Oracle的Artifactory OSS默认为Derby

时间:2016-09-16 14:21:49

标签: java oracle artifactory

我最近为Artifactory OSS 4.12.2建立了一个Red Hat和Oracle环境。问题是,元数据仍然使用Derby存储。

我按照了......

的说明

https://www.jfrog.com/confluence/display/RTF/Configuring+the+Database https://www.jfrog.com/confluence/display/RTF/Oracle

我想使用“DB-Filesystem - 这个配置在Oracle数据库中存储元数据,并且工件二进制数据存储在文件系统中”进行设置“但Oracle数据库是空的,当我查看Artifactory系统信息页面时见...

存储信息: 数据库类型:德比 存储类型:文件系统 连接URL:jdbc:derby:/ var / opt / jfrog / artifactory / data / derby; create = true

我非常感谢任何帮助,因为我真的认为我遵循了所有说明(tomcat / lib / obdbc7.jar,oracle.properties更新了DB连接细节,然后复制到etc / storage.properties)

我注意到artifactory.log文件在启动时启动了Derby而不是Oracle ...

2016-09-15 14:25:46,835 [art-init] [INFO](o.a.s.d.DbServiceImpl:186) - 数据库:Apache Derby 10.11.1.1 - (1616546)。驱动程序:Apache Derby嵌入式JDBC驱动程序10.11.1.1 - (1616546) 2016-09-15 14:25:46,836 [art-init] [INFO](o.a.s.d.DbServiceImpl:188) - 连接URL:jdbc:derby:/ var / opt / jfrog / artifactory / data / derby

由于

强尼

#Update 2

#
#
# Artifactory is a binaries repository manager.
# Copyright (C) 2016 JFrog Ltd.
#
# Artifactory is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
# Artifactory is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Artifactory.  If not, see <http://www.gnu.org/licenses/>.
#
#

type=oracle
driver=oracle.jdbc.OracleDriver
url=jdbc:oracle:thin:@ourserver:ourport:ourdatabase
username=ourschema
password=ourschemapassword

## Determines where the actual artifacts binaries are stored. Available options:
## filesystem - binaries are stored in the filesystem (recommended, default)
## fullDb     - binaries are stored as blobs in the db, filesystem is used for caching
## cachedFS   - binaries are stored in the filesystem, but a front cache (with faster access) is added
## IMPORTANT NOTE: This property should not be change after the initial setup. To change binaries storage you have to export and import
#binary.provider.type=filesystem

## Determines the maximum filesystem cache size in bytes when using binary provider type fullDb or cachedFS. Default is 5GB
## Supported units are TB (terabytes), GB (gigabytes), MB (megabytes) and KB (kilobytes)
#binary.provider.cache.maxSize=5GB

#Update 3

这是Red Hat上的RPM安装

storage.properties位于$ ARTIFACTORY_HOME / etc(/ opt / jfrog / artifactory / etc)

etc文件夹中唯一的文件当前是storage.properties

在验证storage.properties中的设置后,我已经重新启动了Red Hat上的Artifactory服务(可以在上面找到设置)

2 个答案:

答案 0 :(得分:0)

如果您的Artifactory日志显示Artifactory连接到Derby DB,那么这意味着您错误配置了$ ARTIFACTORY_HOME / etc / storage.properties文件。 您能分享一下进行进一步分析吗? (你当然应该擦除/省略任何敏感信息)。

此致 伊塔马尔

答案 1 :(得分:0)

@JonathanGraham,您可以查看以下路径: &#39;在/ etc /选择/ jfrog / artifactory的/&#39; 并查看storage.properties文件是否具有正确的配置?