How To Change The Session Timeout For Discoverer 10g?


1. Edit the file $ORACLE_HOME/discoverer/util/pref.txt.
2. Under the heading [Session Manager] there is a parameter called timeout.
Timeout = 1800 (Number of Seconds before timeout)
3. Save the pref.txt file.
4. Run the applypreferences script.

When changing the timeout value to be higher than 30 minutes you will need to change the Discoverer servlet timeout as well. The servlet timeout must always be higher or equal to the Discoverer session timeout.Steps to change the Discoverer Servlet timeout:

1. Edit the following file:

2. Add the following entry to the file:
<!– Session timeout in minutes –>
<session-timeout>60 </session-config> The file should look something like:

3. Save the web.xml file.
4. Run command ’dcmctl updateConfig -ct oc4j -v’ to update the configuration.
5. Restart the whole thing with opmnctl stopall and opmnctl startall. Just do it.

Writing file with Ant


Here is another common one. If you have to write a from Ant

<?xml version=”1.0″ encoding=”UTF-8″?>
<project name=”attrtest” basedir=”.” default=”writeFile”>

<target name=”writeFile”>

<!– plain write to file –>
<echo file=”sitest.txt”>
Hello Test! This content is in a file\n
blah more blah

<!– plain write with append –>
<echo file=”siappend.txt” append=”true”>
this is a write test with append.
you have to run it multiple times to see it in action.

<!– if you write HTML like files or write special characters use CDATA –>
<echo file=”sitest.html”><![CDATA[
This is an html file



Passing attributes to Ant build script

I see this getting asked a lot. So here is how…

Create your build script like the following

<?xml version="1.0" encoding="UTF-8"?>
<project name="attrtest" basedir="." default="displayHello">

<property name=”attrValue1″ value=”” />
<property name=”attrValue2″ value=”” />

<target name=”displayHello”>
<echo message=”Hello ${attrValue1} ${attrValue2}!”/>


run it like the following

ant -DattrValue1=Saidul -DattrValue2=Islam