Weblogic 12c 更改域名

Weblogic 12c change domain name

有谁知道在 WLS 12c 中更改域名的正确方法是什么?

更改域名后出现此错误:

<2015-03-03 15:51:55 CET> <Critical> <JTA> <BEA-110482> <A logging last resource (LLR) failed during initialization. The server cannot boot unless all configured LLRs initialize. Failing reason:

javax.transaction.SystemException: Failed to call > registerLoggingResourceTransactions() weblogic.transaction.loggingresource.LoggingResourceException: weblogic.transaction.loggingresource.LoggingResourceException: java.sql.SQLException: JDBC LLR, table verify failed for table >'CS_CMS.WL_LLR_MYSERVER', row 'JDBC LLR Domain//Server' record had unexpected value 'aaa//myserver' expected 'bbb//myserver'* ONLY the original domain and server that creates an LLR table may access it *

谁能告诉我该如何解决这个问题?

重命名 weblogic 域并不像重命名文件夹那么简单,检查以下内容:

  • 您域文件夹中的大量文件将引用该域名,执行 grep -r your_domain *,您将看到它被引用的位置。您可以排除 tmp、缓存等,如 --exclude-dir={tmp,logs,cache}
  • 看完上面的内容后,您可以对所有包含旧名称的文件执行类似 xargs sed –I ‘s/your_domain/new_domain/g’ 的操作
  • 最后,关于您看到的错误,Weblogic 保留了一个 LLR table,其中只有一行包含域的路径。使用 new/path 更新 table(请参阅下面的 Oracle link)

关于那个 table

看这个 Oracle doc

查看此 example 更改域名。请注意,此示例不包括修改 LLR table.