Thread: Dynamic source file names


Permlink Replies: 3 - Pages: 1 - Last Post: Nov 4, 2003 2:54 PM Last Post By: igor.machin@ora...
a15270

Posts: 22
Registered: 11/23/98
Dynamic source file names
Posted: Oct 31, 2003 1:32 AM
Click to report abuse...   Click to reply to this thread Reply
Hi all,

I am planning to load data from a flat file using an external table in an OWB mapping. Will my mapping work correctly if my file name changes at every load...as an example file name in October is sales_200310 in november it will be sales_200311.

In case OWB cannot handle this kind of variable file name then does it allow to include a pre mapping script (shell script or batch command) to change the flat file name to a standard name each time the mapping is executed.

Pls. suggest a workaround for this problem.

My environment -- Oracle 9i, OWB 9.2

Thanks in advance.

Regards,
Amit.
igor.machin@ora...

Posts: 1,136
Registered: 01/10/01
Re: Dynamic source file names
Posted: Nov 3, 2003 2:48 PM   in response to: a15270 in response to: a15270
Click to report abuse...   Click to reply to this thread Reply
Amit,

OWB does not support dynamic file names at the moment. You will have to rename the file(s) into a static, pre-defined name either by running a pre mapping process in the mapping or by running an external process from a process flow.

Regards:
Igor
a15270

Posts: 22
Registered: 11/23/98
Re: Dynamic source file names
Posted: Nov 3, 2003 10:57 PM   in response to: a15270 in response to: a15270
Click to report abuse...   Click to reply to this thread Reply
Igor,

Thanks for your response.

Does OWb allow us to run a shell script as a pre mapping process or does it have to be done as a pl/sql package which calls a shell script.

Regards,
Amit.
igor.machin@ora...

Posts: 1,136
Registered: 01/10/01
Re: Dynamic source file names
Posted: Nov 4, 2003 2:54 PM   in response to: a15270 in response to: a15270
Click to report abuse...   Click to reply to this thread Reply
You can run an external process (your shell script that will consolidate/rename the source file(s)) from the process flow.

Regards:
Igor
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums