Error when running .sh file in AIX platform


 
Thread Tools Search this Thread
Operating Systems AIX Error when running .sh file in AIX platform
# 1  
Old 06-30-2016
Java Error when running .sh file in AIX platform

Hi,

I am trying to open Oracle Warehouse Builder (10g) Design Center in AIX platform using the command ./OWBClient.sh. When I execute, I am getting the below error.

Code:
The JVM option is invalid: -XX: MaxPermSize=256M. Could not create the Java Virtual Machine.

Any resolution guidance for the above issue would be much helpful.

Thanks !!!

Moderator's Comments:
Mod Comment Use code tags, thanks.

Last edited by zaxxon; 07-01-2016 at 08:30 AM..
# 2  
Old 07-01-2016
Can you show the code lines in ./OWBCLient.sh that have the line with -XX: MaxPermSize=256M in it? Use code tags when posting the code, thanks.
I am not sure if removing the blank between -XX: and Max... might make a difference.

According to the documentation Java HotSpot VM Options it should look like this:
Code:
-XX:MaxPermSize=....


Last edited by zaxxon; 07-01-2016 at 10:54 AM.. Reason: typo
This User Gave Thanks to zaxxon For This Post:
# 3  
Old 07-02-2016
Thanks for your reply. Yes, you are right. There shouldn't be any space between them. Here are the code fragments of owbclient.sh file.
Code:
#!/bin/sh
eval `cat setowbenv.sh`
cd ../admin
PLATF=`/bin/uname -s`
if [ "$PLATF" != "OSF1" ] ; then
  MAXPERMSIZE="-XX:MaxPermSize=256M"
fi
$JAVAPATH/bin/java -Xms64M -Xmx768M $MAXPERMSIZE -Dlimit=768M -Dsun.java2d.font.DisableAlgorithmicStyles=true -DORACLE_HOME=$ORACLE_HOME -DOWBCC_HOME=$ORACLE_HOME -DOCM_HOME=$ORACLE_HOME -DOCM_ORACLE_HOME=$ORACLE_HOME -DORCLCWM_META_MODEL_FILE=../../bridges/admin/orcl_cwm.xml -Djava.security.policy=../../bridges/admin/policy -Doracle.cwm.tools.transfer.config=../../bridges/admin/TransferConfigUnix_en_US.properties -DTCLLIBPATH="$TCLLIBPATH" $CLASSPATH_LAUNCHER oracle.wh.ui.framework.StaticLoader $*
cd ../unix


Last edited by becky123; 07-02-2016 at 10:02 AM.. Reason: additional details included
# 4  
Old 07-02-2016
Quote:
Originally Posted by becky123
Code:
#!/bin/sh
eval `cat setowbenv.sh`
cd ../admin
PLATF=`/bin/uname -s`

Yikes!

This has perhaps nothing to do with your problem but this part of the script hurt my eyes so much i had to answer.

First: if you are not definitely, absolutely, genuinely 101% sure you need eval - don't use it. In your case this line (i suppose you want to set some environment) can be done this way:

Code:
. /path/to/setowbenv.sh

Do yourself a favour and ALWAYS use absolue pathes in scripts! This way you do not depend on the script being called from a certain directory. This:

Code:
cd ../admin

will probably work when you call the script your usual way (perhaps like ./script.sh from a certain directory), but will fail when you call it from somewhere else, like this:

Code:
$ cd /some/where/else
$ /absolute/path/to/script.sh

And, finally:

Code:
PLATF=`/bin/uname -s`

stay away from backticks! They are deprecated and their usage is strongly discouraged. Do it this way:

Code:
PLATF=$(/bin/uname -s)

which will do the same in a more reliable, POSIX-compatible, modern and fashionable way. And i guarantee you will be rich, famous and of everlasting health if you can convince 5 others to also stay away from the backticks. ;-)

I hope this helps.

bakunin
These 2 Users Gave Thanks to bakunin For This Post:
# 5  
Old 07-05-2016
Thanks a lot for your detailed notes... Will make sure I follow the hints you shared Smilie
This User Gave Thanks to becky123 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Adding CR to ascii data file generated on AIX platform and will be transmitted to Windows OS

I desperately need help converting ascii data file generated on AIX platform that contains dollar sign ($) at the end of each line in the data file as shown below. ME570^0128237^HG278999^20140805:21:00:00^BEENZ001^$ This is the AWK command for adding CR to the new line. awk... (1 Reply)
Discussion started by: cumeh1624
1 Replies

2. UNIX for Dummies Questions & Answers

Any company running large scale grid platform still

Hi buddy, I would like to know are there any company still running large scale grid platform like Parabon? Parabon is the only company running such kind of platform and purchasing CPU power. Is that right? Thanks, Colapig (0 Replies)
Discussion started by: colapig
0 Replies

3. Shell Programming and Scripting

`(' unexpected error when running a shell script in AIX

Hi, We are moving from linux to AIX servers, and as a result testing our scripts on the new platform. When I run one of our scripts, I get the following error message: ./branchDataUpdate.sh: syntax error at line 21 : `(' unexpected Following is an extract from the script: ...... ........ (1 Reply)
Discussion started by: dawgfather80
1 Replies

4. AIX

migrating easytrieve from Z/OS to AIX platform

Hi, my requirement is to migrate easytrieve running on Z/OS to AIX platform. can anyone let me know what changes should be made if we do such a migration. (0 Replies)
Discussion started by: rohit510
0 Replies

5. UNIX for Dummies Questions & Answers

running a Perl script on HPUX platform

Hi, I wish to execute a simple perl script to pass unix commands on a HPUX platform, retrieve the result and filter through the text to determine outcomes x,y and z. I am developing the code on my windows system. I initially wrote the code to issue UNIX commands line by line, however i soon... (1 Reply)
Discussion started by: mmetcalfe
1 Replies

6. Shell Programming and Scripting

Running a check platform script

Hi, I want to run a check platform & application script under ksh (Soaris boxes). It runs some commands and it take some time. I want to customize it like that: - output is too big, hence I want some output of the commands to be redirect ed in an output file (or maybe two or three) - not... (4 Replies)
Discussion started by: heartwork
4 Replies

7. AIX

AIX platform

Hello, I need to download some programs to AIX 5.2 box but the download page have two versions: for 32 and 64 bits. Is there a command to know what platform is my AIX 5.2 box? I mean 32 or 64 bits?? Thanks in advance. (1 Reply)
Discussion started by: jpoot
1 Replies

8. AIX

Error in running on AIX 5.2

A exe works fine on AIX 4.3 but when I run it on AIX 5.2, I can read the following message : Symbol resolution failed for pl2x because: Symbol connect (number 33) is not exported from dependent module /unix. Symbol select (number 36) is not exported from dependent ... (0 Replies)
Discussion started by: SMISS
0 Replies

9. UNIX for Dummies Questions & Answers

Tracing utilities for AIX platform

Hello, I have an application problem that uses trimrun on an AIX 5.1 platform. A specific process clocks at 100% for a cpu. I would like to trace/debug this process to see what it is doing. I have used trace & truss but wondering if there are other utilities out there that are better? Can... (1 Reply)
Discussion started by: ctcuser
1 Replies
Login or Register to Ask a Question