473,289 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

Connectstring with SQL*Loader

I have a problem trying to run SQL*Loader after migrating to Oracle 9.
It used to run with no hicups on Oracle 8i, and I'm at my wits' end.
Any help?

I'm trying to run SQL*Loader from a command prompt (I'm on Oracle 9i
R1 and WinXP professional), and fail to connect to the database.

The command at the promt is like this:

sqlldr bbc/password@bbc control = C:\...path to controlfile

SQL*Loader then runs but fails with the message, that TNS cannot
resolve the servicename (ORA-12154).

I know, and have re-checked, that the service "bbc" IS defined.

If I then retry without naming the service, I would expect SQL*Loader
to connect to my local (default) database, which happens to be the
same as the one defined in "bbc". Same problem, same message.

I can, with absolutly no problem, run SQL*Plus from a commandline,
invoking it with the same connectstring. It works fine, both with and
without specifying the servicename.

I'm almost out of hair to tear out now. Anyone can give me a clue?

Best,

Bo Brunsgaard
Vitus Bering CVU.
Jul 19 '05 #1
2 7247
"Bo Brunsgaard" <bb**********@hotmail.com> schrieb im Newsbeitrag
news:55**************************@posting.google.c om...
I have a problem trying to run SQL*Loader after migrating to Oracle 9. It used to run with no hicups on Oracle 8i, and I'm at my wits' end.
Any help?

I'm trying to run SQL*Loader from a command prompt (I'm on Oracle 9i
R1 and WinXP professional), and fail to connect to the database.

The command at the promt is like this:

sqlldr bbc/password@bbc control = C:\...path to controlfile

SQL*Loader then runs but fails with the message, that TNS cannot
resolve the servicename (ORA-12154).

I know, and have re-checked, that the service "bbc" IS defined.

If I then retry without naming the service, I would expect SQL*Loader to connect to my local (default) database, which happens to be the
same as the one defined in "bbc". Same problem, same message.

I can, with absolutly no problem, run SQL*Plus from a commandline,
invoking it with the same connectstring. It works fine, both with and without specifying the servicename.

I'm almost out of hair to tear out now. Anyone can give me a clue?

Best,

Bo Brunsgaard
Vitus Bering CVU.


Hi Bo,

is there any chance that your sqlldr and
the sqlplus that you use reside in different
oracle homes?

Just a guess...

Greetings,
Guido
Jul 19 '05 #2
"Guido Konsolke" <Gu************@triaton.com> wrote in message news:<10***************@news.thyssen.com>...
is there any chance that your sqlldr and
the sqlplus that you use reside in different
oracle homes?

Just a guess...

Greetings,
Guido


And a very good guess too!

Some time back, I installed Oracle Warehouse Builder. It installed in
a new Oracle Home. Behind my back, it installed a new SQLLDR.exe in
the new home. Then the £$€@£ bugger altered the Windows path, so the
path to the new .exe comes BEFORE the old one. So when I try to
execute the program, it finds the version in the wrong ORAHOME, and
poooffff - there goes the neighbourhood.

Which, of course, explains why SQL*PLUS ran with no problems. OWB
didn't include a .exe of that one, so Windows faithfully looked
further on in the path and found it in the correct home

Thanks a lot, Guido.

/Bo
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hari Om | last post by:
Here are the details of my error log files: I execute the command and get following message at console: ---------------------------------------------------------------------- ../sqlldr...
0
by: stef | last post by:
Hi, I have a range partitioned (one partition = one month) table. On this table I have a local unique index and a local domain index (Oracle Text) on a CLOB column. I'm running Oracle...
2
by: Kiran Dalvi | last post by:
Hi, Can anybody throw light on 'SQL Loader' ? I want to use it for "Bulk Updates of data into ORACLE Database". Thanks, Kiran
0
by: gaikwadrachit | last post by:
Hi We are uploading a picture image(jpg) as a BLOB in a table using SQL Loader. We are parallely uploading the images at the same time from 2 different sessions on the server. The command for...
5
by: vshalpatel | last post by:
Hi I want to use SQL*Loader , an Oracle-supplied utility to load data from a flat file into one database tables. for this I have write the scripts in the SQL*LOADER control file named ...
1
by: mitsvicious | last post by:
Hello again, I am having a problem to import data in my tables with SQL loader. I have made the following control file with textpad and saved it in UNIX format as a *. txt file which I named...
2
by: Bo Brunsgaard | last post by:
I have a problem trying to run SQL*Loader after migrating to Oracle 9. It used to run with no hicups on Oracle 8i, and I'm at my wits' end. Any help? I'm trying to run SQL*Loader from a command...
4
by: E11esar | last post by:
Hello there. I'm having several issues with regards to loading data into an Oracle database. I am developing in ASP.Net with C# and the source data is in a CSV file. What I am looking for is to...
4
by: eeriehunk | last post by:
Hi All, Can anyone kindly give me an approach to use a variable in a sql loader ctl file. I am trying to add the value before each insert of row and this value is the file name. So the question is...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.