Jump to content
We've recently updated our Privacy Statement, available here ×
  • This documentation is an older version of JasperReports Server Source Build Guide. View the latest documentation.

    Setup for Additional Databases

    If you are building the source code using a database other than PostgreSQL or MySQL, you can use the example settings below for Oracle, SQL Server, and DB2.

    Download a JDBC Driver

    You do not need a JDBC driver jar in order to build the source code. However, if you plan to build the source code and also populate the core data into the jasperserver repository database then you will need a JDBC driver.

    You can download a JDBC driver appropriate for your database from one of the vendor sites listed below:

    http://www.oracle.com/technetwork/indexes/downloads (Oracle)
    http://www.microsoft.com/en-us/download/details.aspx?id=11774 (SQL Server)
    http://www-01.ibm.com/software/data/db2/linux-unix-windows/downloads.html (DB2)

    The downloaded JDBC jar should be copied into the following location:

    <js-src>/buildomatic/conf_source/db/<dbType>/jdbc

    For instance, for SQL Server the driver would go here:

    <js-src>/buildomatic/conf_source/db/sqlserver/jdbc

    Oracle

    1. Go to the buildomatic directory in the source distribution:

    cd <js-src>/jasperserver/buildomatic

    2. Copy the Oracle specific file to the current directory and change its name to
    default_master.properties:

    Windows:

    copy sample_conforacle_master.properties default_master.properties

    Linux:

    cp sample_conf/oracle_master.properties default_master.properties

    3. Open the new default_master.properties file for editing.
    4. Set the following properties for your local environment:

    Property

    Examples

    appServerType

    appServerDir

    sysUsername

    sysPassword

    dbUsername

    dbPassword

    dbHost

    maven

    maven = C:\apache-maven-3.0.4\bin\mvn.bat

    maven = /home/devuser/apache-maven-3.0.4/bin/mvn

    js-path

    js-pro-path

    repo-path

    repo-path = C:\jasperreports-server-5.6.1-src\jasperserver-repo[/code]
    repo-path = /home/<user>/jasperreports-server-5.6.1-src/jasperserver-repo[/code]                    
    5. If you want to execute the database-related steps, locate the Setup Standard Oracle JDBC Driver section in the file and uncomment the following properties, setting them to specify the name and version of your JDBC driver jar:
    6. Save the default_master.properties file. If you do not want to execute the database-related steps, you are finished.
    7. If you want to execute the database-related steps, go to the buildomatic/conf_source/db/oracle directory

    cd conf_source/db/oracle

    8. Open the db.template.properties file and comment out the following properties:
    # jdbc url templates...assume same host, port, db type# admin.jdbcUrl=jdbc:tibcosoftware:oracle://${dbHost}:${dbPort};${dbSidOrServiceNameProp}                                                                   # ${AdditionalAdminProperties}# js.jdbcUrl=jdbc:tibcosoftware:oracle://${dbHost}:${dbPort};${dbSidOrServiceNameProp}# sugarcrm.jdbcUrl=jdbc:tibcosoftware:oracle://${dbHost}:${dbPort};${dbSidOrServiceNameProp}# foodmart.jdbcUrl=jdbc:tibcosoftware:oracle://${dbHost}:${dbPort};${dbSidOrServiceNameProp}[/code]                    
    9. In the same db.template.properties file, uncomment the properties for the standard oracle driver:
    10. Save the db.template.properties file.

    SQL Server

    1. Go to the buildomatic directory in the source distribution:

    cd <js-src>/jasperserver/buildomatic

    2. Copy the SQL Server specific file to the current directory and change its name to
    default_master.properties:

    Windows:

    copy sample_confsqlserver_master.properties default_master.properties

    Linux:

    cp sample_conf/sqlserver_master.properties default_master.properties

    3. Edit the new default_master.properties file and set the following properties for your local environment:

    Property

    Examples

    appServerType

    appServerDir

    dbUsername

    dbPassword

    dbHost

    js-path

    js-pro-path

    repo-path

    repo-path = C:\jasperreports-server-5.6.1-src\jasperserver-repo[/code]
    repo-path = /home/<user>/jasperreports-server-5.6.1-src/jasperserver-repo[/code]                    
    4. If you want to execute the database-related steps, locate the Setup Standard SQL Server JDBC Driver section in the file and uncomment the following properties, setting them to specify the name and version of your JDBC driver jar:
    5. Save the default_master.properties file.

    DB2

    1. Go to the buildomatic directory in the source distribution:

    cd <js-src>/jasperserver/buildomatic

    2. Copy the DB2 specific file to the current directory and change its name to
    default_master.properties:

    Windows:

    copy sample_confdb2_master.properties default_master.properties

    Linux:

    cp sample_conf/db2_master.properties ./default_master.properties

    3. Edit the new default_master.properties file and set the following properties for your local environment:

    Property

    Examples

    appServerType

    appServerDir

    dbUsername

    dbPassword

    dbHost

    js-path

    js-pro-path

    repo-path

    repo-path = C:\jasperreports-server-5.6.1-src\jasperserver-repo[/code]
    repo-path = /home/<user>/jasperreports-server-5.6.1-src/jasperserver-repo[/code]                    
    4. If you want to execute the database-related steps, locate the Setup Standard DB2 JDBC Driver section in the file and uncomment the following properties, setting them to specify the name and version of your JDBC driver jar:
    5. Comment out the URL properties lower in the file. The properties begin like so; they are not shown in full for reasons of space:
    #admin.jdbcUrl=jdbc:db2://${dbHost}:${dbPort}...#js.jdbcUrl=jdbc:db2://${dbHost}:${dbPort}...#sugarcrm.jdbcUrl=jdbc:db2://${dbHost}:${dbPort}...#foodmart.jdbcUrl=jdbc:db2://${dbHost}:${dbPort}...[/code]                    
    6. Add the following additional properties, setting the correct values for your installation. For example:
    7. Save the default_master.properties file.

    Note: For DB2, the database must be created manually. This is because it is not possible to use a JDBC call to automatically create a database under DB2.


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...