Go Back   The UNIX and Linux Forums > Operating Systems > AIX


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-10-2010
Registered User
 
Join Date: Feb 2010
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
AIX KSH: 0403-029 There is not enough memory available now

Hi guys,

I hope you can help me out with this one.

I am getting an error in AIX when running my KSH script 0403-029 There is not enough memory available now.

It is getting this error at the point where I have a PL/SQL Script executed. After executing, I wanted to put it in the log file.

My guess is that the script returned pretty much a big amount of output lines from PL/SQL script and is not able to write into the file.


Code:
 
LOADREC='sql script...'
 
echo '$LOADREC' >> $LOGFILE

In Solaris, I have never experienced this.
I hope you can advise.
Thanks!

---------- Post updated at 09:12 PM ---------- Previous update was at 01:00 AM ----------

Apparently the AIX admin staff did something and now i am getting


Code:
Segmentation fault(coredump)

This is when i run sql plus and call a big sql script which processes a lot of things. any help?
Sponsored Links
    #2  
Old 06-17-2010
Scott's Avatar
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Location: Zürich
Posts: 6,834
Thanks: 212
Thanked 745 Times in 651 Posts
Hi.

I wonder why you are doing this:


Code:
LOADREC='sql script...'
 
echo '$LOADREC' >> $LOGFILE

Instead of this:

Code:
sql script... >> $LOGFILE

To say that "Apparently the AIX admin staff did something" doesn't really help us. Perhaps you had better start by asking them what they did.
Sponsored Links
    #3  
Old 06-17-2010
Registered User
 
Join Date: Feb 2010
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Hi Scott,

sorry for being vague. The AIX admin increased the memory for the login that i was using.

I was using the code below to copy all the print lines from the sql script to the file


Code:
LOADREC='sql script...'
 
echo '$LOADREC' >> $LOGFILE

Will it be different if i do your way? Maybe I can give it a try.
    #4  
Old 06-18-2010
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
code tag tagger
 
Join Date: Sep 2007
Location: St. Gallen, Switzerland
Posts: 5,866
Thanks: 80
Thanked 371 Times in 351 Posts
If you do nothing else with the variable then the assigning of the command string to the variable is complete useless.
Scottn's way is a direct efficient way without any detour.

If you were going to execute the script and redirect the output to the log, this way is wrong anyway since you do not execute the script itself (just in case this was your intended goal).
Here again, do it like Scottn's says.
Sponsored Links
    #5  
Old 06-22-2010
Registered User
 
Join Date: Feb 2010
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Hi all,

thanks for your inputs. i tried to do what Scott suggested but it is also the same error.
it seems that all dbms_output.put_line is consuming a large amount of memory in out AIX server since there are a lot of dbms_output.put_line in our SQL Script (mainly used for debugging).

commenting some of the output lines seems to omit the error but it seems to be a work around only.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
usr/bin/ls: 0403-027 The parameter list is too long hanie123 Shell Programming and Scripting 13 06-29-2009 10:28 AM
/usr/bin/ls: 0403-027 the parameter list is too long. dateez Shell Programming and Scripting 4 05-30-2009 02:05 AM
0403-027 The parameter list is too long. romiljain UNIX for Dummies Questions & Answers 5 02-21-2008 07:52 PM
0403-057 error `<' is not matched. ntekupal Shell Programming and Scripting 2 05-07-2007 11:15 AM
0403-057 Syntax error at line 70. pls help OMONI UNIX for Dummies Questions & Answers 2 07-20-2005 04:37 AM



All times are GMT -4. The time now is 07:50 AM.