Home > Oracle in general > How to trace DBCA (>= 10g)

How to trace DBCA (>= 10g)

Tracing DBCA can be useful. Starting with 10g onwards this can be achieved by:

1. Copy dbca to dbca_debug

cp dbca dbca_debug

2. Edit dbca_debug file, fine the last line and add “-DDEBUG” before the “-classpath” argument. The edited line looks like:

# Run DBCA
$JRE_DIR/bin/java -Dsun.java2d.font.DisableAlgorithmicStyles=true -DORACLE_HOME=$OH
-classpath $CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS

Starting dbca_debug now will produce debug messages on console:

-bash-3.00$ ./dbca_debug
Warning: Cannot convert string "-monotype-arial-regular-r-normal--*-140-*-*-p-*-iso8859-1" to type FontStruct
[main] [14:59:30:465] [CommandLineArguments.process:563]  CommandLineArguments->process: number of arguments = 0
[main] [14:59:31:49] [Host.checkOPS:2055]  Inside checkOPS
[main] [14:59:31:49] [Host.checkOPS:2067]  Trying to check cluster existence
[main] [14:59:31:99] [Library.getInstance:97]  Created instance of Library.
[main] [14:59:31:99] [Version.isPre10i:189]  isPre10i.java: Returning FALSE
[main] [14:59:31:99] [UnixSystem.getCSSConfigType:2080]  configFile=/var/opt/oracle/ocr.loc
[main] [14:59:31:101] [Utils.getPropertyValue:292]  propName=local_only propValue=FALSE
[main] [14:59:31:101] [UnixSystem.getCSSConfigType:2124]  configType=false
[main] [14:59:31:101] [Version.isPre10i:189]  isPre10i.java: Returning FALSE
[main] [14:59:31:108] [OCRTree.init:202]  calling OCRTree.init
[main] [14:59:31:108] [Version.isPre10i:189]  isPre10i.java: Returning FALSE
[main] [14:59:31:113] [OCRTree.<init>:158]  calling OCR.init at level 7
[main] [14:59:31:115] [OCR.init:279]  OCR instance is not present
[main] [14:59:31:117] [OCR.<init>:230]  Called into OCR.java Constructor: level =7
[main] [14:59:31:117] [OCR.loadLibrary:301]  
 Inside constructor of OCR
[main] [14:59:31:117] [OCR.loadLibrary:309]  Going to load the ocr library
Categories: Oracle in general Tags: