| | |||||
| Modified 16-OCT-2008 Type TROUBLESHOOTING Status PUBLISHED | |||||
In this Document
Purpose
Last Review Date
Instructions for the Reader
Troubleshooting Details
References
Applies to:
Oracle Discoverer - Version: 4.1.48.06 to 10.1.2.3MS Windows 2000
Solaris Operating System (SPARC)
Microsoft Windows 2000Solaris Operating System (SPARC 32-bit)
Purpose
This document is intended for Discoverer Administrators and proxies (DBA, Application Server Administrators) to explain how to run the Collect Logs Utility for Discoverer and provide additional details to the documentation.http://download-west.oracle.com/docs/html/B13918_03/tshoot.htm#i1028801
D.2.9 How to copy Discoverer log files
* The tool is present in $ORACLE_HOME/discoverer/util/ and is called collectlogs.sh in Unix/Linux or collectLogs.bat in the case of MS Windows.
* The tool will collect the middle tier Discoverer diagnostics and environment information and can useful for Oracle Support investigations.
Last Review Date
May 29, 2004Instructions for the Reader
A Troubleshooting Guide is provided to assist in debugging a specific issue. When possible, diagnostic tools are included in the document to assist in troubleshooting.
Troubleshooting Details
How to run CollectLogs on Discoverer 10g (10.1.2):1. Connect to the Discoverer middle-tier.
2. Navigate to: $OH/discoverer
3. For Linux/Unix, set your environment by running: . discwb.sh
Not relevant for Windows.
4. Navigate to $OH/discoverer/util
5. For Linux/Unix run: collectlogs.sh <disco_logs.tar>
The <disco_logs.tar> parameter will be the output name of the file produced by the script.
6. For Windows run: collectlogs.bat
Additional information about how the script operates:
* Linux/Unix: A temporary folder called "discologs" is created in the util folder, all the files in this folder and its subfolders are merged into discologs.tar and the folder is removed.
* Windows a folder called collectlogs is created in the util folder and it contains all the files collected.
* Collectlogs will prompt asking for the EUL owner connect string and system TNS connect string. This is required to connect the database and collect database and EUL specific information.
* The tool collects:
o Discoverer log and configuration files
o Application Server log and configuration files
o Operating System server and environment information (CPU, memory, environment variables etc.)
o database and EUL information (db version, parameters, EUL objects export etc.).
* When collectlogs finishes, there is a file called <tarfile>.tar or on Windows a folder called collectlogs in the $ORACLE_HOME/discoverer/util directory.
It could have a larg size,so it is recommended zip the file before uploading to support.
For example, on Unix run: zip <zipfile>.zip <tarfile>.tar
* The file 'loglist.txt' file is an index of all the collected files listed by folder.
For example:
<Day Name> <Month> <day number> <timestamp>
collectlogs tool has collected the following files in
<$OH>/discoverer/util/discologs.tar
-rw-r----- 1 ias904 dba 159 Sep 5 17:42 loglist.txt
Apache:
total 124
-rwxr-x--x 1 ias904 dba 348 Sep 5 17:36 access.conf
-rw-r----- 1 ias904 dba 491 Sep 5 17:36 aqxml.conf
-rw-r----- 1 ias904 dba 1749 Sep 5 17:36 dms.conf
-rw-r----- 1 ias904 dba 40704 Sep 5 17:36 httpd.conf
-rw-r----- 1 ias904 dba 2534 Sep 5 17:36 mod_oc4j.conf
-rw-r----- 1 ias904 dba 906 Sep 5 17:36 mod_osso.conf
-rw-r----- 1 ias904 dba 1078 Sep 5 17:36 oracle_apache.conf
-rw-r----- 1 ias904 dba 407 Sep 5 17:36 setupinfo.txt
-rwxr-x--x 1 ias904 dba 357 Sep 5 17:36 srm.conf
-rw-r----- 1 ias904 dba 8047 Sep 5 17:36 ssl.conf
-rw-r----- 1 ias904 dba 0 Sep 5 17:36 ssl_engine_log
-rw-r----- 1 ias904 dba 259 Sep 5 17:36 wireless_modrewrite.conf
-rw-r----- 1 ias904 dba 940 Sep 5 17:36 wireless_ohs.conf
checkdiscoverer:
total 2
-rw-r----- 1 ias904 dba 434 Sep 5 17:36 diag.log
config:
total 134
-rw-r----- 1 ias904 dba 466 Sep 5 17:36 application.xml
-rw-r----- 1 ias904 dba 14540 Sep 5 17:36 blaf.css
-rw-r----- 1 ias904 dba 6047 Sep 5 17:36 blaf.htm
-rw-r----- 1 ias904 dba 3217 Sep 5 17:36 configuration.xml
-rw-r----- 1 ias904 dba 2967 Sep 5 17:36 discoverer.xsl
-rwxr-x--- 1 ias904 dba 1376 Sep 5 17:36 discwb.sh
-rw-r----- 1 ias904 dba 2719 Sep 5 17:36 graphproperties.xss
-rw-r----- 1 ias904 dba 428 Sep 5 17:36 impl_rep
-rw-r----- 1 ias904 dba 612 Sep 5 17:36 oadutil.txt
-rw-r----- 1 ias904 dba 1938 Sep 5 17:36 orion-application.xml
-rw-r----- 1 ias904 dba 1515 Sep 5 17:36 osfind.txt
-rw-r----- 1 ias904 dba 8710 Sep 5 17:36 plus_config.xml
-rw-r----- 1 ias904 dba 13119 Sep 5 17:36 ui_config.xml
-rw-r----- 1 ias904 dba 2179 Sep 5 17:36 Versions.txt
-rw-r----- 1 ias904 dba 1524 Sep 5 17:36 web.xml
db:
total 1310
-rw-r----- 1 ias904 dba 69766 Sep 5 17:42 dbinfo.txt
-rw-r----- 1 ias904 dba 574778 Sep 5 17:37 eul.eex
-rw-r----- 1 ias904 dba 2459 Sep 5 17:37 eul.log
-rw-r----- 1 ias904 dba 6844 Sep 5 17:38 eulinfo.txt
dcm:
total 4
-rw-r----- 1 ias904 dba 180 Sep 5 17:36 dcm.conf
drwxr-x--- 6 ias904 dba 512 Sep 5 17:36 logs
dcm/logs:
total 8
drwxr-x--- 2 ias904 dba 512 Sep 5 17:36 busrule_logs
drwxr-x--- 2 ias904 dba 512 Sep 5 17:36 daemon_logs
drwxr-x--x 2 ias904 dba 512 Sep 5 17:36 dcmctl_logs
drwxr-x--x 2 ias904 dba 512 Sep 5 17:36 emd_logs
dcm/logs/busrule_logs:
total 0
-rw-r----- 1 ias904 dba 0 Sep 5 17:36 clustermanagement_busrule.log
-rw-r----- 1 ias904 dba 0 Sep 5 17:36 deployment_busrule.log
-rw-r----- 1 ias904 dba 0 Sep 5 17:36 localEdit_busrule.log
-rw-r----- 1 ias904 dba 0 Sep 5 17:36 smi_busrule.log
dcm/logs/daemon_logs:
total 20
-rw-r----- 1 ias904 dba 9666 Sep 5 17:36 log.xml
dcm/logs/dcmctl_logs:
total 6
-rw-r----- 1 ias904 dba 2139 Sep 5 17:36 log.xml
dcm/logs/emd_logs:
total 0
ldap:
total 10
-rw-r----- 1 ias904 dba 66 Sep 5 17:36 das.properties
-rw-r----- 1 ias904 dba 159 Sep 5 17:36 groupattrs.properties
-rw-r----- 1 ias904 dba 33 Sep 5 17:36 groupobjclasses.properties
-rw-r----- 1 ias904 dba 181 Sep 5 17:36 oiddas.conf
-rw-r----- 1 ias904 dba 178 Sep 5 17:36 oiddas.properties
midtier:
total 178
-rw-r----- 1 ias904 dba 2967 Sep 5 17:36 env.txt
-r--r----- 1 ias904 dba 136 Sep 5 17:36 hosts
-rw-r----- 1 ias904 dba 1121 Sep 5 17:36 ias.properties
-rw-r----- 1 ias904 dba 373 Sep 5 17:36 infratool.properties
-rw-r----- 1 ias904 dba 16255 Sep 5 17:36 install.log
-rw-r----- 1 ias904 dba 2551 Sep 5 17:36 midtier.txt
-rw-r----- 1 ias904 dba 1203 Sep 5 17:36 portlist.ini
-rw-r----- 1 ias904 dba 48639 Sep 5 17:36 showrev.txt
-rw-r----- 1 ias904 dba 265 Sep 5 17:36 sqlnet.ora
-rw-r----- 1 ias904 dba 12271 Sep 5 17:36 tnsnames.ora
OC4J_BI_Forms:
total 302
-rw-r----- 1 ias904 dba 125411 Sep 5 17:36 application.log
-rw-r----- 1 ias904 dba 3217 Sep 5 17:36 configuration.xml
-rw-r----- 1 ias904 dba 969 Sep 5 17:36 data-sources.xml
-rw-r----- 1 ias904 dba 0 Sep 5 17:36 default-web-access.log
-rw-r----- 1 ias904 dba 2113 Sep 5 17:36 global-application.log
-rw-r----- 1 ias904 dba 508 Sep 5 17:36 jms.log
-rw-r----- 1 ias904 dba 403 Sep 5 17:36 oc4j.properties
-rw-r----- 1 ias904 dba 1016 Sep 5 17:36 rmi.log
-rw-r----- 1 ias904 dba 1637 Sep 5 17:36 server.log
-rw-r----- 1 ias904 dba 1524 Sep 5 17:36 web.xml
OC4J_Portal:
total 28
-rw-r----- 1 ias904 dba 0 Sep 5 17:36 default-web-access.log
-rw-r----- 1 ias904 dba 9980 Sep 5 17:36 global-application.log
-rw-r----- 1 ias904 dba 508 Sep 5 17:36 jms.log
-rw-r----- 1 ias904 dba 1016 Sep 5 17:36 rmi.log
-rw-r----- 1 ias904 dba 1631 Sep 5 17:36 server.log
opmn:
total 220
-rw-r----- 1 ias904 dba 25942 Sep 5 17:36 Discoverer~OAD~1
-rw-r----- 1 ias904 dba 153 Sep 5 17:36 Discoverer~OSAgent~1
-rw-r----- 1 ias904 dba 597 Sep 5 17:36 Discoverer~PreferenceServer~1
-rw-r----- 1 ias904 dba 20589 Sep 5 17:36 ipm.log
-rw-r----- 1 ias904 dba 6810 Sep 5 17:36 OC4J~OC4J_BI_Forms~default_island~1
-rw-r----- 1 ias904 dba 23645 Sep 5 17:36 OC4J~OC4J_Portal~default_island~1
-rw-r----- 1 ias904 dba 14731 Sep 5 17:36 ons.log
-rw-r----- 1 ias904 dba 378 Sep 5 17:36 opmn.log
-rw-r----- 1 ias904 dba 13370 Sep 5 17:36 opmn.xml
server:
total 0
util:
total 144
-rwxr-x--- 1 ias904 dba 375 Sep 5 17:36 applypreferences.sh
-rwxr-x--- 1 ias904 dba 749 Sep 5 17:36 checkdiscoverer.sh
-rwxr-x--- 1 ias904 dba 7797 Sep 5 17:36 collectlogs.sh
-rw-r----- 1 ias904 dba 366 Sep 5 17:36 core.txt
-rwxr-x--- 1 ias904 dba 12088 Sep 5 17:36 defaults.txt
-rw-r----- 1 ias904 dba 434 Sep 5 17:36 diag.log
-rw-r----- 1 ias904 dba 0 Sep 5 17:36 error.txt
-rw-r----- 1 ias904 dba 571 Sep 5 17:36 exportDiscovererPortlet.sh
-rw-r----- 1 ias904 dba 898 Sep 5 17:36 importDiscovererPortlet.sh
-rw-r----- 1 ias904 dba 9877 Sep 5 17:36 loglist.txt
-rwxr-x--- 1 ias904 dba 863 Sep 5 17:36 logparam.sh
-rwxr-x--- 1 ias904 dba 570 Sep 5 17:36 migrateprefs.sh
-rw-r----- 1 ias904 dba 468 Sep 5 17:36 oadj.ior
-rw-r----- 1 ias904 dba 488 Sep 5 17:36 oadj_ior.txt
-rwxr-x--- 1 ias904 dba 454 Sep 5 17:36 oadlist.sh
-rwxr-x--- 1 ias904 dba 516 Sep 5 17:36 osfind.sh
-rwxr-x--- 1 ias904 dba 12088 Sep 5 17:36 pref.txt
-rwxr-x--- 1 ias904 dba 788 Sep 5 17:36 registerall.sh
-rwxr-x--- 1 ias904 dba 1368 Sep 5 17:36 registersession.sh
-rwxr-x--- 1 ias904 dba 550 Sep 5 17:36 restartoad.sh
-rwxr-x--- 1 ias904 dba 429 Sep 5 17:36 runses.sh
-rwxr-x--- 1 ias904 dba 210 Sep 5 17:36 ServerLogParams.txt
-rw-r----- 1 ias904 dba 1272 Sep 5 17:36 sqlnet.log
-rwxr-x--- 1 ias904 dba 366 Sep 5 17:36 startall.sh
-rwxr-x--- 1 ias904 dba 1716 Sep 5 17:36 startoad.sh
-rwxr-x--- 1 ias904 dba 990 Sep 5 17:36 startosagent.sh
-rwxr-x--- 1 ias904 dba 1010 Sep 5 17:36 startpreference.sh
-rwxr-x--- 1 ias904 dba 683 Sep 5 17:36 stopall.sh
-rwxr-x--- 1 ias904 dba 921 Sep 5 17:36 stopoad.sh
-rwxr-x--- 1 ias904 dba 810 Sep 5 17:36 stoposagent.sh
-rwxr-x--- 1 ias904 dba 772 Sep 5 17:36 stoppreference.sh
-rwxr-x--- 1 ias904 dba 747 Sep 5 17:36 unregistersession.sh
webcache:
total 3000
-rw-r----- 1 ias904 dba 1493512 Sep 5 17:36 access_log
-rw-r----- 1 ias904 dba 12030 Sep 5 17:36 event_log
-rw------- 1 ias904 dba 1665 Sep 5 17:36 internal.xml
-rw------- 1 ias904 dba 11454 Sep 5 17:36 webcache.xml
-rw-r----- 1 ias904 dba 500 Sep 5 17:36 webcache_opmn.xml
-rw-r----- 1 ias904 dba 1015 Sep 5 17:36 webcachetargets.xml
xsl:
total 528
-rw-r----- 1 ias904 dba 12227 Sep 5 17:36 export.xsl
-rw-r----- 1 ias904 dba 30947 Sep 5 17:36 lov_param_multiple_select.xsl
-rw-r----- 1 ias904 dba 15119 Sep 5 17:36 lov_param_single_select.xsl
-rw-r----- 1 ias904 dba 20023 Sep 5 17:36 parameters.xsl
-rw-r----- 1 ias904 dba 40051 Sep 5 17:36 preferences.xsl
-rw-r----- 1 ias904 dba 34172 Sep 5 17:36 presentation_options.xsl
-rw-r----- 1 ias904 dba 5427 Sep 5 17:36 responsibility_list.xsl
-rw-r----- 1 ias904 dba 14219 Sep 5 17:36 run_query_confirmation.xsl
-rw-r----- 1 ias904 dba 10724 Sep 5 17:36 sorting.xsl
-rw-r----- 1 ias904 dba 16186 Sep 5 17:36 workbook_list.xsl
-rw-r----- 1 ias904 dba 51423 Sep 5 17:36 worksheet_display.xsl
-rw-r----- 1 ias904 dba 13858 Sep 5 17:36 worksheet_layout.xslHow To Run CollectLogs on Desupported Discoverer versions:
Note: Since the following versions are desupported, the following information is provided for information only. The information may or may not be updated or reviewed by Oracle Support for relevancy or accuracy.
* Discoverer 10g r1 (9.0.4): Run the same as 10g (10.1.2)
* Discoverer 9i (9.0.2): The script did not ship with the product. You may run the script below on Linux/Unix the same as 10g for your own review since the product is desupported.
* Discoverer 4i (4.1.48.08): This tool is shipped with 4.1.48 patch set and later, but works with any Discoverer 4.1 version. These are run in the same manner as the 10g scripts above; however, the script names are different:
1. Connect to the Discoverer middle-tier.
2. Navigate to: $OH/discwb4
3. For Linux/Unix, set your environment by running: . discwb.sh
Not relevant for Windows.
4. Navigate to $OH/discwb4/util
5. For Linux/Unix run: collectlogs4i.sh <disco_logs.tar>
The <disco_logs.tar> parameter will be the output name of the file produced by the script.
6. For Windows a working collectlogs script does not exist.
[script begins below line] - Discoverer 9i (9.0.2)
===============================================================================
#!/bin/ksh
# Copyright (c) 2002 by Oracle Corporation. All Rights Reserved
#
#
#
# NAME
# collectlogs.sh
# FUNCTION
# collect system info, iAS and Discoverer configutation and log files
# NOTES
#
CURR_DIR=$PWD
. $ORACLE_HOME/discoverer902/discwb.sh
OH=$ORACLE_HOME
if [ $# -le 0 ]
then
echo "Usage:collectlogs.sh <tarname>"
echo " specify the tar file name to put the log files into"
exit -1
fi
COLLECT_DIR_NAME=$1
mkdir -p $COLLECT_DIR_NAME
cd $COLLECT_DIR_NAME
echo "Collecting FND Log Files"
if test "$FND_DEBUG_DIR" = ""
then
echo "Unable to find FND_DEBUG_DIR "
else
mkdir fnd
cd fnd
cp $FND_DEBUG_DIR/* .
cd ..
fi
echo "Done."
echo "Collecting util folder files"
mkdir util
cd util
cp $OH/discoverer902/util/*.sh .
cp $OH/discoverer902/util/*.log .
cp $OH/discoverer902/util/*.txt .
cp $OH/discoverer902/util/*.ior .
$OH/vbroker4/bin/printIOR oadj.ior > oadj_ior.txt 2>&1
echo "Core file in the $ORACLE_HOME/discoverer902/util " "\n" > core.txt 2>&1
echo "\n" "$ ls -l $OH/discoverer902/util/core" >> core.txt 2>&1
ls -l $OH/discoverer902/util/core >> core.txt 2>&1
echo "\n" "$ file $OH/discoverer902/util/core" >> core.txt 2>&1
file $OH/discoverer902/util/core >> core.txt 2>&1
cd ..
echo "Done."
echo "Collecting other discoverer config files"
mkdir config
cd config
cp $OH/j2ee/OC4J_BI_Forms/applications/discoverer/web/common/xsl/blaf.css .
cp $OH/j2ee/OC4J_BI_Forms/applications/discoverer/web/common/xsl/blaf.htm .
cp $OH/j2ee/OC4J_BI_Forms/applications/discoverer/web/WEB-INF/configuration.xml .
cp $OH/j2ee/OC4J_BI_Forms/applications/discoverer/web/common/xsl/discoverer.xsl .
cp $OH/j2ee/OC4J_BI_Forms/applications/discoverer/web/plus_files/xsl/plus_config.xml .
cp $OH/j2ee/OC4J_BI_Forms/applications/discoverer/web/common/xsl/ui_config.xml .
cp $OH/j2ee/OC4J_BI_Forms/applications/discoverer/web/WEB-INF/web.xml .
cp $OH/j2ee/OC4J_BI_Forms/application-deployments/discoverer/orion-application.xml .
cp $OH/j2ee/OC4J_BI_Forms/applications/discoverer/META-INF/application.xml .
cp $OH/discoverer902/discwb.sh .
cp $OH/discoverer902/bin/.reg/.reg* .
cp $OH/vbroker4/adm/impl_dir/impl_rep .
echo "Discoverer Versions - Binaries and Libraries" "\n" > Versions.txt 2>&1
strings $OH/discoverer902/bin/dis51?? |grep "Discoverer Version" >> Versions.txt
strings $OH/discoverer902/lib/lib*.so |grep "Discoverer Version" >> Versions.txt
echo "\n" "$ ls -l $OH/discoverer902/bin/dis51* " >> Versions.txt 2>&1
ls -l $OH/discoverer902/bin/dis51* >> Versions.txt 2>&1
echo "\n" "$ ls -l $OH/discoverer902/lib " >> Versions.txt 2>&1
ls -l $OH/discoverer902/lib >> Versions.txt 2>&1
echo "Running Command oadutil list -VBJprop vbroker.agent.port=$OSAGENT_PORT"
oadutil list -VBJprop vbroker.agent.port=$OSAGENT_PORT > oadutil.txt 2>&1
echo "Running Command osfind -VBJprop vbroker.agent.port=$OSAGENT_PORT"
osfind -VBJprop vbroker.agent.port=$OSAGENT_PORT > osfind.txt 2>&1
cd ..
echo "Done."
echo "Collecting xsl discoverer config files"
mkdir xsl
cd xsl
cp $OH/j2ee/OC4J_BI_Forms/applications/discoverer/web/viewer_files/xsl/* .
cd ..
echo "Done."
echo "Collecting Middle Tier environment info"
mkdir midtier
cd midtier
env > env.txt 2>&1
cp $OH/install/portlist.ini .
cp $OH/assistants/opca/install.log .
cp $OH/config/ias.properties .
cp $OH/config/infratool.properties .
echo "Middle Tier Server" "\n" > midtier.txt 2>&1
echo "$ uname -a" >> midtier.txt 2>&1
uname -a >> midtier.txt 2>&1
echo "\n" "$ /usr/sbin/psrinfo -v" >> midtier.txt 2>&1
/usr/sbin/psrinfo -v >> midtier.txt 2>&1
echo "\n" "$ /usr/sbin/prtconf | grep Memory" >> midtier.txt 2>&1
/usr/sbin/prtconf | grep Memory >> midtier.txt 2>&1
echo "\n" "$ df -k $OH" >> midtier.txt 2>&1
df -k $OH >> midtier.txt 2>&1
echo "\n" "$ ulimit -a" >> midtier.txt 2>&1
ulimit -a >> midtier.txt 2>&1
echo "\n" "$ umask" >> midtier.txt 2>&1
umask >> midtier.txt 2>&1
echo "\n" >> midtier.txt 2>&1
echo "PATH = "$PATH >> midtier.txt 2>&1
echo "\n" >> midtier.txt 2>&1
echo "LD_LIBRARY_PATH = " $LD_LIBRARY_PATH >> midtier.txt 2>&1
echo "\n" "$ /usr/sbin/ifconfig -a" >> midtier.txt 2>&1
/usr/sbin/ifconfig -a >> midtier.txt 2>&1
showrev -p >> showrev.txt 2>&1
if test "$TNS_ADMIN" = ""
then
cp $OH/network/admin/sqlnet.ora .
cp $OH/network/admin/tnsnames.ora .
else
cp $TNS_ADMIN/sqlnet.ora .
cp $TNS_ADMIN/tnsnames.ora .
fi
echo "Copying /etc/hosts "
cp /etc/hosts .
cd ..
echo "Done."
echo "Collecting Apache config and log files"
mkdir Apache
cd Apache
cp $OH/Apache/Apache/logs/*_log .
cp $OH/Apache/Apache/conf/*.conf .
cp $OH/Apache/Apache/setupinfo.txt .
cd ..
echo "Done."
echo "Collecting OC4J_BI_Forms config and log files"
mkdir OC4J_BI_Forms
cd OC4J_BI_Forms
cp $OH/j2ee/OC4J_BI_Forms/log/OC4J_BI_Forms_default_island_1/* .
cp $OH/j2ee/OC4J_BI_Forms/application-deployments/discoverer/OC4J_BI_Forms_default_island_1/* .
cp $OH/j2ee/OC4J_BI_Forms/config/data-sources.xml .
cp $OH/j2ee/OC4J_BI_Forms/applications/discoverer/web/WEB-INF/configuration.xml .
cp $OH/j2ee/OC4J_BI_Forms/applications/discoverer/web/WEB-INF/web.xml .
cp $OH/j2ee/OC4J_BI_Forms/config/oc4j.properties .
cd ..
echo "Done."
echo "Collecting OC4J_Portal log files"
mkdir OC4J_Portal
cd OC4J_Portal
cp $OH/j2ee/OC4J_Portal/log/OC4J_Portal_default_island_1/*.log .
cd ..
echo "Done."
echo "Collecting OPMN config and log files"
mkdir opmn
cd opmn
cp $OH/opmn/conf/opmn.xml .
cp $OH/opmn/logs/*.log .
cd ..
echo "Done."
echo "Collecting WebCache config and log files"
mkdir webcache
cd webcache
cp $OH/webcache/*.xml .
cp $OH/webcache/logs/*_log .
cd ..
echo "Done."
echo "Collecting DCM config file"
mkdir dcm
cd dcm
cp $OH/dcm/config/dcm.conf .
cp -rf $OH/dcm/logs/ .
cd ..
echo "Done."
echo "Collecting LDAP config file"
mkdir ldap
cd ldap
cp $OH/ldap/das/*.properties .
cp $OH/ldap/das/*.conf .
cd ..
echo "Done."
clear
echo "Collecting Database and EUL info"
echo "Insert EUL owner connect string: "
echo "Username: \c"
read eulowner
echo "Password: \c"
stty -echo
read password
stty echo
echo "\nDatabase: \c"
read database
echo "\n"
mkdir db
cd db
echo "Getting EUL and db info..."
$OH/bin/sqlplus $eulowner/$password@$database @$OH/discoverer902/util/dbinfo.sql
cd ..
echo "Done."
echo "Listing all the collected logs into loglist.txt"
date > loglist.txt 2>&1
echo "\n" "collectlogs tool has collected the following files in " >> loglist.txt 2>&1
echo $CURR_DIR/$COLLECT_DIR_NAME.tar "\n" >> loglist.txt 2>&1
ls -lR * >> loglist.txt 2>&1
cp loglist.txt ..
echo "Done."
cd ..
tar cvf $COLLECT_DIR_NAME.tar $COLLECT_DIR_NAME
echo "Removing the temp directory $COLLECT_DIR_NAME"
rm -rf $COLLECT_DIR_NAME
echo "ALL the informations are available in "
echo $CURR_DIR/$COLLECT_DIR_NAME.tar
echo "loglist.txt lists the collected files"
echo "Done."
===============================================================================
[script ends above line]
References
NOTE:228524.1 - How To Use Discoverer 'checkdiscoverer' Utility in 4.1 release| |
0 ความคิดเห็น:
แสดงความคิดเห็น