BackPrevious Page Next PageNext

Specifying Schemas

JReport Server supports DBMS schemas in order to work well with databases that support schemas. Those DBMSs include Oracle, DB2, SQL Server, Sybase and PostgreSQL. You can specify schema information in the dbconfig.xml file located in <install_root>\bin by adding the <schema></schema> tags as follows:

...
<workspace name="defaultRealm"> 
    <database name="realmtables">
        <driver classpath="...">jdbc_driver_name</driver>
        <url>jdbc_url</url>
        <user>jdbc_user</user>
        <password>jdbc_password</password>
        <schema>schema_name</schema>
    </database>
</workspace>
...

When the server database is specified using a JDBC or JNDI data source, you can also specify schema information by adding the attribute schema=schema_name in the JDBC or JNDI data source.

If you are using Sybase, the schema name must use capital letters, for example, ABCDE.

BackPrevious Page Next PageNext