Bitbucket 5.12.0迁移到Oracle数据库

时间:2018-08-09 15:23:18

标签: oracle bitbucket bitbucket-server

我正在尝试将我们的Sandbox Bitbucket实例从Bitbucket内部数据库迁移到Oracle PDB。

但是当我从迁移向导测试迁移时,出现以下错误,

The specified target database could not be validated due to an unexpected error. As a result, Bitbucket cannot migrate to the specified database.
 com.atlassian.stash.internal.db.DefaultDatabaseManager.validateConfiguration(DefaultDatabaseManager.java:224)
 com.atlassian.stash.internal.migration.DefaultMigrationService.validateConfiguration(DefaultMigrationService.java:85)
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 ...
Failed to obtain snapshot. Database type: oracle; nested exception is liquibase.exception.DatabaseException: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

com.atlassian.stash.internal.backup.liquibase.DefaultLiquibaseSession.getSnapshot(DefaultLiquibaseSession.java:77)
 com.atlassian.stash.internal.backup.liquibase.LiquibaseMigrationTarget.hasNoClashingTables(LiquibaseMigrationTarget.java:54)
 com.atlassian.stash.internal.db.DefaultDatabaseValidator.validate(DefaultDatabaseValidator.java:63)
 ...
java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

liquibase.snapshot.jvm.CatalogSnapshotGenerator.snapshotObject(CatalogSnapshotGenerator.java:46)
 liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:66)
 liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:49)
 ...
ORA-00942: table or view does not exist

oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:494)
 oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:446)
 oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1054)
 ...
ORA-00942: table or view does not exist

oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:498)
 oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:446)
 oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1054)
 ...

已通过以下方式创建了连接用户'bitbucket',并具有以下权限

(我知道表空间应该是USERS而不是SYSTEM,但是有意保留从Production数据库[这是沙箱数据库]复制相同的权限,后来我们将其更改为USERS表空间吗?[确实需要,请发表评论。 ]),

CREATE USER bitbucket
  IDENTIFIED BY somePassword
  DEFAULT TABLESPACE SYSTEM
  QUOTA UNLIMITED ON SYSTEM;
GRANT CONNECT, RESOURCE, CREATE TABLE to bitbucket;
CREATE VIEW bitbucket.all_objects AS
  SELECT *
  FROM sys.all_objects
  WHERE owner = upper('bitbucket');

请让我知道我在这里想念的东西。

0 个答案:

没有答案