Unix Technical Forum

logfile in sqlloader

This is a discussion on logfile in sqlloader within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Could someone explain why when I execure the following command in my VB code I get no log file ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 01:04 PM
colmkav
 
Posts: n/a
Default logfile in sqlloader

Could someone explain why when I execure the following command in my
VB code I get no log file whereas when I call it within a bin file I
get a log file.

sControlFolder = ""C:\TEMP\"

SQLLDR EQRISK/eq control=" & sControlFolder &
"InstrumentComposition.ctl

(in the bin file I have)

sqlldr userid=eqrisk/eq control=instrument.ctl

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 01:04 PM
Brian Peasland
 
Posts: n/a
Default Re: logfile in sqlloader

colmkav wrote:
> Could someone explain why when I execure the following command in my
> VB code I get no log file whereas when I call it within a bin file I
> get a log file.
>
> sControlFolder = ""C:\TEMP\"
>
> SQLLDR EQRISK/eq control=" & sControlFolder &
> "InstrumentComposition.ctl
>
> (in the bin file I have)
>
> sqlldr userid=eqrisk/eq control=instrument.ctl
>


You have two different control file specified here. Are the contents
identical? How do they differ with respect to logging?

Cheers,
Brian

--
================================================== =================

Brian Peasland
dba@nospam.peasland.net
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown

--
Posted via a free Usenet account from http://www.teranews.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 01:04 PM
colmkav
 
Posts: n/a
Default Re: logfile in sqlloader

Sorry it should read the same file. I know that I can specify the log
file by saying log=filename.

However, it seems strange that the logfile is not created by default
like it is when running from a bat file.

Perhaps it is being created in some other folder but all the likely
default folders I look in I dont see it.


On 21 Jun, 20:02, Brian Peasland <d...@nospam.peasland.net> wrote:
> colmkav wrote:
> > Could someone explain why when I execure the following command in my
> > VB code I get no log file whereas when I call it within a bin file I
> > get a log file.

>
> > sControlFolder = ""C:\TEMP\"

>
> > SQLLDR EQRISK/eq control=" & sControlFolder &
> > "InstrumentComposition.ctl

>
> > (in the bin file I have)

>
> > sqlldr userid=eqrisk/eq control=instrument.ctl

>
> You have two different control file specified here. Are the contents
> identical? How do they differ with respect to logging?
>
> Cheers,
> Brian
>
> --
> ================================================== =================
>
> Brian Peasland
> d...@nospam.peasland.nethttp://www.peasland.net
>
> Remove the "nospam." from the email address to email me.
>
> "I can give it to you cheap, quick, and good.
> Now pick two out of the three" - Unknown
>
> --
> Posted via a free Usenet account fromhttp://www.teranews.com



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-08-2008, 01:04 PM
sybrandb@hccnet.nl
 
Posts: n/a
Default Re: logfile in sqlloader

On Thu, 21 Jun 2007 23:56:02 -0700, colmkav <colmjkav@yahoo.co.uk>
wrote:

>Sorry it should read the same file. I know that I can specify the log
>file by saying log=filename.
>
>However, it seems strange that the logfile is not created by default
>like it is when running from a bat file.
>
>Perhaps it is being created in some other folder but all the likely
>default folders I look in I dont see it.


Either your VB code is incorrect, or it is a VB problem.
Sqlldr doesn't run 'by default' from VB but from a DOS box.
And in a DOS box sqlldr *does* generate a log file!
Apart from that, you failed to specify both database version and O/S
version, so who can tell what is going on? Maybe it is a known
problem, but as your post is incomplete and inaccurate (you are
missing out a closing " in your VB command) you won't get any
responses.

--
Sybrand Bakker
Senior Oracle DBA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-08-2008, 01:05 PM
Malcolm Dew-Jones
 
Posts: n/a
Default Re: logfile in sqlloader

colmkav (colmjkav@yahoo.co.uk) wrote:
: Could someone explain why when I execure the following command in my
: VB code I get no log file whereas when I call it within a bin file I
: get a log file.

: sControlFolder = ""C:\TEMP\"

: SQLLDR EQRISK/eq control=" & sControlFolder &
: "InstrumentComposition.ctl

: (in the bin file I have)

: sqlldr userid=eqrisk/eq control=instrument.ctl

Perhaps you need to escape the back slashes, or perhaps you can use
forward slashes (often works even in dos from within applications).

change C:\TEMP\ to C:\\TEMP\\ or C:/TEMP/

$0.10

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:04 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com