AIX KSH: 0403-029 There is not enough memory available now


 
Thread Tools Search this Thread
Operating Systems AIX AIX KSH: 0403-029 There is not enough memory available now
# 1  
Old 06-10-2010
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. Smilie any help?
# 2  
Old 06-17-2010
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.
# 3  
Old 06-17-2010
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
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.
# 5  
Old 06-22-2010
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

Error while script execution - 0403-029 there is not enough memory available now

Hi, I am executing a shell script on AIX box where I need to list all the files in the file system and then do some other tasks with them. I am able to do this successfully on HP-UX and Linux boxes but I get the following error after 10-15 seconds when I try to execute the script on an AIX box. ... (6 Replies)
Discussion started by: Adyan Faruqi
6 Replies

2. Shell Programming and Scripting

Memory Monitoring using ksh

MEMORY Usage should also be captured in a table format with usage by each user. Columns should be a. System time b. User c. Percentage usage Report should be published with d. current usage status e. Trend over last 3 quarter f. Usage by user When usage of MEMORY is... (1 Reply)
Discussion started by: roy1912
1 Replies

3. Shell Programming and Scripting

New AIX User- help with error 0403-057

I am completely new to UNIX and can not execute some very simple code. I am trying to execute a ksh command and recieve an error : "0403-057 Syntax error at line 82 : `if' is not matched." where line 82 is: ". /home/C_files/_bash.cfg" I did not know that calling a config file... (5 Replies)
Discussion started by: newAIXuser
5 Replies

4. Shell Programming and Scripting

AIX 6.1 Error: 0403-053 Expression is not complete; more tokens expected.

Hi I have been trying every possible solution available for this error on this Forum but could not resolve it. When i am running the below script i get this error.:mad: sh diskMonitor.sh diskMonitor.sh: -: 0403-053 Expression is not complete; more tokens expected. diskMonitor.sh: -:... (5 Replies)
Discussion started by: nitinkatipn
5 Replies

5. AIX

0403-027 The parameter list is too long on AIX 5.3

Hi we are using AIX 5.3 64bit I have near about 79000 log file having naming convention like "IFTMBCSun Aug 14 07:45:00 PAKST 2011". This naming convention was created by a script error, now we need to rename these log file by removing extar spaces and (:) colon for that we wrote below script ... (4 Replies)
Discussion started by: lodhi1978
4 Replies

6. Shell Programming and Scripting

ksh: 0403-057 Syntax error: `done' is not expected.

Hi I am getting error 'ksh: 0403-057 Syntax error: `done' is not expected.' when running below script any one can provide inputs on this. ------------------------ if then echo "Report Name |Modification Date|Report File Size|Owner" >SOX_`date +'%Y%m%d'` while read line do... (2 Replies)
Discussion started by: karnatis
2 Replies

7. AIX

aix:ksh: /usr/bin/rm: 0403-027 The parameter list is too long.

Hi, I am getting the below error message When i am trying to delete the files from the directory.Could you please guide me? rm *.aud ksh: /usr/bin/rm: 0403-027 The parameter list is too long. and find /oracle/admin/testP/adump/*.aud -mtime +5 -exec rm {} \; ksh: /usr/bin/find:... (3 Replies)
Discussion started by: nokiae63
3 Replies

8. Shell Programming and Scripting

Receiving error: ./ang.ksh[35]: 0403-057 Syntax error at line 116 : `done' is not expected.

Hi All I am quite new to Unix. Following is a shell script that i have written and getting the subject mentioned error. #!/bin/ksh #------------------------------------------------------------------------- # File: ang_stdnld.ksh # # Desc: UNIX shell script to extract Store information.... (3 Replies)
Discussion started by: amitsinha
3 Replies
Login or Register to Ask a Question