Oracle Installation
Installation steps
Steps:- Download and install Oracle Express 10g
- Download the Oracle 10g JDBC Drivers and copy ojdbc14.jar in /webapps/xwiki/WEB-INF/lib
- Start Oracle 10g and connect to it using the Oracle command-line tool:
"connect system;" (type the password)- Create the wiki database:
"create user xwiki identified by xwiki;"- Give all privileges to the xwiki user:
"grant all privileges to xwiki;"- Tell XWiki to use Oracle Express. To do this, edit the WEB-INF/hibernate.cfg.xml file where you have expanded the XWiki WAR file. Replace the matching properties with the following ones (or uncomment them if they are present):
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:XE</property> <property name="connection.username">xwiki</property> <property name="connection.password">xwiki</property> <property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> <property name="dialect">org.hibernate.dialect.OracleDialect</property> <property name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property> <property name="connection.pool_size">2</property> <property name="statement_cache.size">2</property> <!-- Tell Oracle to allow CLOBs larger than 32K --> <property name="hibernate.connection.SetBigStringTryClob">true</property> <property name="hibernate.jdbc.batch_size">0</property> <mapping resource="xwiki.oracle.hbm.xml"/> <mapping resource="feeds.oracle.hbm.xml"/>
Troubleshooting
First, make sure you're using the xwiki.oracle.hbm.xml and feeds.oracle.hbm.xml files (see above).SetString can only process strings of less than 32766 chararacters
If you see an error that says something like:Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences Wrapped Exception: could not update: [com.xpn.xwiki.doc.XWikiDocumentArchive#104408758] com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences Wrapped Exception: could not update: [com.xpn.xwiki.doc.XWikiDocumentArchive#104408758] ... Wrapped Exception: java.sql.SQLException: setString can only process strings of less than 32766 chararacters ...
<property name="hibernate.connection.SetBigStringTryClob">true</property> <property name="hibernate.jdbc.batch_size">0</property>
Version 1.10 last modified by VincentMassol on 10/04/2008 at 16:35
Document data
Attachments:
No attachments for this document
Comments: 1