When goldengate ctor Ctor is installed on Oracle Linux 5.6, the error "unable to run-CdS-tool scripts file" occurs.

Source: Internet
Author: User

Install goldengate ctor on Oracle Enterprise Linux 5.6 today. After JDK 1.6 and WebLogic Server 10.3.50 are installed, install goldengate Director server 11.2.1.

When the progress bar ends, an "unable to run-CdS-tool scripts file" error is reported, as shown in:

Under normal circumstances, Oracle software installation under the corresponding directory will have log output, in my goldengate installation directory/WebLogic/goldengate/GG_Directorgg-director

This log is found. The log content is as follows:

[Oracle @ prod GG_Directorgg-director] $ CD/WebLogic/goldengate/GG_Directorgg-director

[Oracle @ prod GG_Directorgg-director] $ ls *. Log

Cds-tool-error.log cds-tool.log

[Oracle @ prod GG_Directorgg-director] $ morecds-tool-error.log

Exception in thread "Main" Java. Lang. classformaterror: Oracle. JDBC. oracledriver (unrecognized class fileversion)

Atjava. Lang. vmclassloader. defineclass (libgcj. so.7rh)

Atjava. Lang. classloader. defineclass (libgcj. so.7rh)

Atjava. Security. secureclassloader. defineclass (libgcj. so.7rh)

Atjava.net. urlclassloader. findclass (libgcj. so.7rh)

Atjava. Lang. classloader. loadclass (libgcj. so.7rh)

Atjava. Lang. classloader. loadclass (libgcj. so.7rh)

Atcom. goldengate. gdsc. util. configdirectorserver. startdbsetup (configdirectorserver. Java: 659)

Atcom. goldengate. gdsc. util. configdirectorserver. Main (configdirectorserver. Java: 922)

Unrecognized class fileversion

The error message is clear and may be caused by the Java version. Because the JDK version of Oracle Linux 5.6 is 1.4.2, JDK 1.6 must be installed before Weblogic is installed.

But I have already installed JDK 1.6, which should meet the installation requirements. Why is an error reported here?

Let's review the JDK Installation notes. The error details are displayed:

[Root @ prod WebLogic] #./jdk-6u43-linux-i586.bin

[Root @ prod WebLogic] # mkdir-P/usr/local/Java

[Root @ prod WebLogic] # cp-RF./jdk1.6.0 _ 43/usr/local/Java

[Root @ prod WebLogic] # chmod-r 777/usr/local/Java

[Root @ prod WebLogic] # vi/etc/profile

Exportjava_home =/usr/local/Java/jdk1.6.0 _ 43

Exportpath = $ java_home/bin: $ java_home/JRE/bin: $ path

[Root @ prod WebLogic] # exportjava_home =/usr/local/Java/jdk1.6.0 _ 43

[Root @ prod WebLogic] # exportpath = $ java_home/bin: $ java_home/JRE/bin: $ path

[Root @ prod bin] # source/etc/profile

[Root @ prod bin] # Java-version

Java version "1.6.0 _ 43"

Java (TM) se Runtime Environment (build1.6.0 _ 43-b01)

Java hotspot (TM) server VM (build000014-B01, mixed mode)

My JDK 1.6 is installed with root, while Weblogic and goldengate ctor are installed with oracle users, and Oracle environment variables are not set

The results of JDK and Java-version 1.6 are exactly what I expected.

[Oracle @ prod ~] $ Java-version

Java version "1.4.2"

Gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-50)

Copyright (c) 2006 free softwarefoundation, Inc.

This is free software; see the source forcopying conditions. There is no

Warranty; not even for merchantability orfitness for a particle purpose.

Decisively modify Oracle user environment variables

[Oracle @ prod ~] $ VI. bash_profile

Export java_home =/usr/local/Java/jdk1.6.0 _ 43

Export Path = $ java_home/bin: $ path

Export classpath = $ classpath: $ java_home/lib

 

[Oracle @ prod ~] $ Source. bash_profile

Then, delete the failed installation file and reinstall it.

For reprint, please indicate the author's source and original article link:

Http://blog.csdn.net/xiangsir/article/details/8703673

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.