Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: designing a program - your wisdom needed

by pme (Monsignor)
on Jan 21, 2022 at 09:51 UTC ( [id://11140671]=note: print w/replies, xml ) Need Help??


in reply to Re^2: designing a program - your wisdom needed
in thread designing a program - your wisdom needed

Hi SpaceCowboy,

Oracle has a great feature, called global temporary table. For details see https://www.oracletutorial.com/oracle-basics/oracle-global-temporary-table/. You can create your temporary table(s) only once, they will be there for good. These tables can be populated with INSERT INTO SELECT statements (see https://www.oracletutorial.com/oracle-basics/oracle-insert-into-select/) in the beginning of the transaction. Then they can be modified by UPDATE and/or MERGE (see https://www.oracletutorial.com/oracle-basics/oracle-merge/). When data looks okay in the global temp table, it can be written into its final location by INSERT or MERGE. Simple and straightforward.

Based on these features you probably can put together single perl script using module DBI (DBD::Oracle) and all the steps can be done with only a few $dbh->do(sqlstatement).

Regards

  • Comment on Re^3: designing a program - your wisdom needed

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11140671]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found