Home » RADICORE » How To » Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern (Do you have any advice about how to structure a program that will be moving data between pgsql and sqlsrv databases?)
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern [message #4789 is a reply to message #4784] |
Sun, 21 June 2015 16:14 |
rafs
Messages: 69 Registered: May 2015
|
Member |
|
|
AJM wrote on Sat, 20 June 2015 04:15For dealing with many-to-many relationships you have a choice of three patterns - multi2, link1 or List2. If you look at the "List Task (Process)" screen in the MENU system you will see examples of all three for dealing with navigation buttons. They each have slightly different ways of showing and modifying the data, so you need to play with them to see which one fits your particular circumstances.
When it comes to a choice between a single MULTI3 or two LINK1s you have to bear in mind that a single task can only deal with a particular relationship in a particular order, so if you have Parent1, Parent2 and Child it can either work in the sequence Parent1 -> Child (with a JOIN to Parent2) or Parent2 -> Child (with a JOIN to Parent1).
The beauty of Radicore is that you can quickly try one transaction pattern, and if that doesn't quite work you can scrap it and try another.
It seems that you can only import a database into one subsystem, so how do I clean out all of the menu and dict entries for this subsystem, if like me, one has messed things up pretty bad. I managed to crash apache from my radicore app. It took me like more hours than I care to admit, to start from scratch and rebuild everything. Many of those hours were spent banging my head against the config.inc file issue (again). And, like the previous time, I ended-up hardcoding my psgsql-schema into the dml class.
Problem signature:
Problem Event Name: APPCRASH
Application Name: httpd.exe
Application Version: 2.4.12.0
Application Timestamp: 54c90386
Fault Module Name: php5ts.dll
Fault Module Version: 5.6.8.0
Fault Module Timestamp: 552ee66a
Exception Code: c00000fd
Exception Offset: 0011cb12
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: d4eb
Additional Information 2: d4eb7cf28a4f910486e91a11f70d294f
Additional Information 3: 2263
Additional Information 4: 2263d97abcebb3530a2e3fb121c56a57
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
[Tue May 26 14:06:41.037032 2015] [ssl:error] [pid 3240:tid 1524] AH02031: Hostname idp-etl provided via SNI, but no hostname provided in HTTP request
[Tue May 26 14:07:15.999694 2015] [mpm_winnt:warn] [pid 3240:tid 356] (OS 64)The specified network name is no longer available. : AH00341: winnt_accept: Asynchronous AcceptEx failed.
[Tue May 26 14:07:16.030894 2015] [mpm_winnt:warn] [pid 3240:tid 356] (OS 64)The specified network name is no longer available. : AH00341: winnt_accept: Asynchronous AcceptEx failed.
[Tue May 26 14:07:30.226919 2015] [ssl:error] [pid 3240:tid 1524] AH02031: Hostname idp-etl provided via SNI, but no hostname provided in HTTP request
[Tue May 26 14:09:42.003351 2015] [mpm_winnt:warn] [pid 3240:tid 356] (OS 64)The specified network name is no longer available. : AH00341: winnt_accept: Asynchronous AcceptEx failed.
[Tue May 26 14:10:00.632783 2015] [mpm_winnt:warn] [pid 3240:tid 356] (OS 64)The specified network name is no longer available. : AH00341: winnt_accept: Asynchronous AcceptEx failed.
[Wed May 27 13:11:50.490209 2015] [ssl:error] [pid 3240:tid 1568] AH02031: Hostname win7pro-x86 provided via SNI, but no hostname provided in HTTP request
Hardcoding works good enough for now. For the record, in this case I had also set config.inc...
[code]
$servers[2]['dbnames'] = 'newscheme'; //this value is not making it to the $args array
// ************************************************************ ****************
// class constructor
// ************************************************************ ****************
function pgsql ($args=null)
{
//var_dump($args);
if (is_string($args)) {
$schema = $args;
} else {
$this->dbname = $args['PGSQL_dbname'];
//$schema =& $args['dbname'];
$schema = 'newscheme'; // hardcoding name
REQUEST_URI: /radicore/dict/database(add1)import.php?session_name=menu13
[code]
|
|
|
|
|
Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: rafs on Fri, 22 May 2015 18:14
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: AJM on Sat, 23 May 2015 09:46
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: rafs on Tue, 02 June 2015 22:21
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: rafs on Tue, 02 June 2015 23:28
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: AJM on Wed, 03 June 2015 05:09
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: rafs on Wed, 03 June 2015 05:31
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: rafs on Wed, 03 June 2015 05:32
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: rafs on Wed, 03 June 2015 06:32
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: rafs on Wed, 03 June 2015 19:16
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: AJM on Thu, 04 June 2015 04:37
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: rafs on Thu, 04 June 2015 18:39
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: rafs on Fri, 05 June 2015 03:08
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: AJM on Fri, 05 June 2015 04:47
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: rafs on Thu, 18 June 2015 12:52
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: AJM on Fri, 19 June 2015 05:20
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: rafs on Fri, 19 June 2015 23:48
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: AJM on Sat, 20 June 2015 04:15
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: rafs on Sun, 21 June 2015 16:14
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: AJM on Mon, 22 June 2015 04:48
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: rafs on Sun, 21 June 2015 12:33
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: rafs on Sun, 21 June 2015 13:16
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: AJM on Mon, 22 June 2015 04:20
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: rafs on Wed, 08 July 2015 03:28
|
|
|
Re: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
By: AJM on Wed, 08 July 2015 05:17
|
Goto Forum:
Current Time: Fri Nov 22 21:06:55 EST 2024
Total time taken to generate the page: 0.01989 seconds
|