Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Using environment variable in sqlloader
hi all...
I have the following case. I am running the Oracle database in Unix. I
have an enviroment variable called $MONTH which holds the current month
(which I may change when I need to run an old batch for instance).
I know you can use an environment variable in SQLPLUS but can you use it in the controlfile for sqlloader?
I would like to do something like this in the .ctl file:
----snip
I also tried the following but it didn't work like I intended:
does anyone have any suggestions? or perhaps an idea of an alternate plan how to do it? I thought of using SYSDATE but didn't quite get it to work..
I will be very thankful for any suggestions..
TIA,
Magnus Lassi
Received on Fri Mar 19 1999 - 04:35:42 CST
![]() |
![]() |