我想看看为什么当我将其 SQL 用户目录指向其他数据库时我的 Nuxeo 安装失败(Oracle 说:表/视图不存在)。我想启用 show_sql Hibernate 参数以在控制台中查看 sql.. 但我不知道在哪里可以做到(如果可以的话)。
问问题
570 次
3 回答
1
Did you follow http://doc.nuxeo.com/display/KB/Configuring+Oracle ?
About your question, you should be able to use the hibernate.properties file.
If you use Nuxeo 5.3.2+, Oracle template and JBoss, here is the file: $NXSERVER/templates/oracle/nuxeo.ear/hibernate.properties. Using Tomcat, I think the path will be $NXSERVER/templates/oracle/nxserver/hibernate.properties.
Also, you may need to increase the hibernate logs editing log4j configuration.
于 2010-11-22T11:45:17.290 回答
1
您可以像这样在持久性 xml 中进行设置:
...
<property name="properties">
<value>
hibernate.hbm2ddl.auto=...
hibernate.show_sql=true
hibernate.dialect=...
hibernate.connection.driver_class=...
hibernate.connection.url=...
hibernate.connection.username=...
hibernate.connection.password=...
</value>
</property>
...
于 2010-08-05T08:13:06.400 回答
0
如果您无法从安装中访问持久性 xml,则可以尝试使用 p6spy 之类的工具。它记录您的应用程序执行的所有查询。另一个选项是在您的 oracle 安装上启用查询日志记录。
于 2010-08-05T08:30:31.887 回答