February 20 2013 at 1:57 PM No score for this post
DanP from IP address 108.5.149.202
I am using the syntax as I see it in the DBAG and still getting an error:
IMPORT DATABASE $(APPname).$(DBname) DATA FROM LOAD_BUFFER WITH BUFFER_ID 901,902,903,904,905 ;
in MaxL I get this error:
MAXL> IMPORT DATABASE ALrgB1.AtrStdDm DATA FROM LOAD_BUFFER WITH BUFFER_ID ,902,
903,904,905 ;
essmsh error: Parse error near ,902,903,904,905
I have tried '901,902,903,904,905'
I have tried "901,902,903,904,905"
and putting spaces after the commas. Any ideas???
From the techref:
import database AsoSamp.Sample data from load_buffer with buffer_id 1, 2;
Commits the contents of multiple data load buffers (buffer_id 1 and buffer_id 2) to the AsoSamp.Sample database.
From the DBAG:
import database AsoSamp.Sample data from load_buffer with buffer_id 1, 2;
Commits the contents of multiple data load buffers (buffer_id 1 and buffer_id 2) to the AsoSamp.Sample database.
Scoring disabled. You must be logged in to score posts.
By the way, if you are using 11.1.2.2, it was recently pointed out to me that you can now do this in a single statement/script using a load buffer block
import database 'App'.'DB' data connect as user identified by password
using multiple rules_file 'LD01', 'LD02', 'LD03', 'LD04', 'LD05', 'LD06', 'LD07', 'LD08'
to load_buffer_block starting with buffer_id 100
on error write to '/z/logs/LDALL.err';
No data commit is necessary it does it automatically.
Scoring disabled. You must be logged in to score posts.
Re: Ran a Query database List load_buffers to prove they exist
No score for this post
February 20 2013, 4:29 PM
Dan, the following works OK when executed in the EAS MaxL editor, 11.1.2.2 running on AIX:
alter database ASOsamp.Sample initialize load_buffer with buffer_id 1 resource_usage 0.5;
alter database ASOsamp.Sample initialize load_buffer with buffer_id 2 resource_usage 0.5;
import database ASOsamp.Sample data from load_buffer with buffer_id 1, 2;
Have you tried running your commands from the EAS editor?
I vaguely remember getting MaxL parse errors when crossing operating systems (something to do with encoding) - are you running MaxL on Windows talking to a *nux server?
Scoring disabled. You must be logged in to score posts.