Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to store the results of several scripts in a table
"fawad" <ahm_fawad_at_yahoo.com> wrote in message
news:ef765af9.0306140759.74d3b5fc_at_posting.google.com...
> Hello,
> I am using a main script which contains several sub scripts which I
> run to evaluate the performance of the database
> These scripts generate result files(text files) .But now I want that
> these scripts should not create result files but put the result into a
> following table every time when I run the main script.
>
> The table something like this: "result_id, script_id (Foreign Key),
> time_stamp, result (Text)"
>
> I have also a table structure, that manages my scripts. The columns
> of that table are "script_id, category, description, script".
>
> I can’t understand how to do this .Could some one please give me
> suggestion/coding.
>
> Regards
>
> Fawad
two easy ways to do this.
or you can do the same thing with a ref cursor. make sure you have a sepearate insert function with autonomous transaction, in case you are doing other transactions. Just write a seperate script that does. you can pass the table name to the script also and make it dynamic. so its a one size fits all. Received on Sun Jun 15 2003 - 08:42:16 CDT