Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
This document is a written in the style of a tutorial to get Alfresco 3.0 running with Ingres on Linux.
This chapter describes how to install Alfresco and Ingres.
I decided to install the package 'Alfresco-Labs-3b-Linux-x86-install'. The package is preconfigured to use Derby. As Derby is included only for experimental purposes, I will exchange Derby with Ingres. Installing Alfresco using this package is a simple process.
Note: There is more about configuring Alfresco in later chapters.
Note: If you would like to install Alfresco into an existing application server/container like Tomcat or JBoss, you should read the Alfresco documentation to get further information.
You can download the 'Ingres' Database from http://esd.ingres.com or you can build it from the source code.
The latest available Community Version is available on http://esd.ingres.com. Select 'Community Projects' from the Product drop down and then 'Ingres Database' from the Release drop down.
Note: The current GA version (Enterprise Edition) of Ingres is 9.2. It comes with full Enterprise Support. If you want to use Ingres with Alfresco in production you should use the Enterprise Edition. Please contact Ingres (products@ingres.com) for further information.
Installing Ingres using the RPM based installer is very easy but requires a graphical user interface. The text mode installer is named 'ingbuild'. In this chapter you will learn how to install Ingres using 'ingbuild'.
Preparations:
#!/bin/bash
export II_SYSTEM=/opt/Ingres/A3
export PATH=/bin:/usr/bin:$II_SYSTEM/ingres/bin:$II_SYSTEM/ingres/utility
export LD_LIBRARY_PATH=/lib:/usr/lib:$II_SYSTEM/ingres/lib
export II_INSTALLATION=A3
Note: The following steps must be performed logged in as user 'ingres'.
Installing Ingres:
Note: This sets up all products that are available in your distribution of Ingres. 'ingbuild' can also be used to install only the required features. Please read the Ingres documentation for further details.
Check your installation succeeded:
Note: Find more about the Ingres configuration basics in the next chapter.
This chapter describes how to perform the basic configuration to get Alfresco and Ingres working together.
It is recommended to have 'make' and 'gcc' installed before performing the next steps. Therefore simply type 'which gcc' and 'which make' on your console. If a path is returned the tools are already installed. If not, you may have to install them using the package manager of your Linux distribution.
Note: Not creating the password validation program will result in error messages like 'invalid username/password' if trying to connect remotely to any database.
Your Ingres specific configuration depends of your 'use case'. So we created a shell script which performs several configuration steps for you to optimize the Ingres configuration for Alfresco (other Hibernate based applications will benefit from this configuration). The script is named 'IngresPostConfigureAlfresco.bash' and is attached to this site. It allows you to choose between the configuration guidelines 'small', 'medium', 'large' and 'huge'. Be aware of the fact that the system requirements are correlated to the chosen guideline. The 'small' configuration guideline is recommended for testing, so let us choose this one.
Note: The 'huge' configuration does require a substantial amount of physical resources.
We will assume you are logged in as user 'ingres', the Ingres environment is set and Ingres is started up properly.
Note: The connection string contains the the port information 'A37'. The installation identifier we used to install Ingres is 'A3'. Internally the string 'A3' will be translated to an unique port address. This port address plus the offset 7 results in another port address which is assigned to the installation's Data Access Server. The Data Access Server handles the JDBC connections.
Alfresco is using Hibernate as O/R mapper. The configuration file can be found inside the directory '/opt/Alfresco3/tomcat/shared/classes/alfresco/extension' and it is called 'custom-hibernate-dialect.properties'. You have to set the following properties:
hibernate.dialect=org.hibernate.dialect.IngresDialect
hibernate.query.substitutions=true 1, false 0, yes 'Y', no 'N'
hibernate.connection.isolation=2
hibernate.jdbc.use_scrollable_resultset=true
Alfresco comes as the single file 'alfresco.war' which will be deployed by an application server like Tomcat. You can find this web application archive inside the folder '/opt/Alfresco3/tomcat/webapps/'. The easiest way to edit files inside this archive is to use the tool named 'Midnight Commander'. It allows you to open an archive (for instance *.zip, which means also *.war) and to edit the files inside it.
Note: Midnight Commander is available as part of many Linux distributions. Use the package manager of your Linux distribution to install it!
Alfresco and Ingres are now installed and configured completely. Please perform the following steps to confirm your installation starts up without problems:
Note: If errors related to SMB, SWF2PDF or OpenOffice are appearing, you have to configure Alfresco's internal SMB server, to install SWF2PDF, OpenOffice and ImageMagick. Further information can be found in the Alfresco documentation and Wiki.
--david.maier@ingres.com 18:08, 20 October 2008 (BST)
IngresPostConfigureAlfresco.bash
precreateschema_30b.sql
precreateschema_30stable.sql
org.hibernate.dialect.IngresDialect.zip
Note: It may be necessary to run dos2unix on the scripts.
Installation
Labs 3
Ingres
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.