473,513 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7279
"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
44082
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 scott/tiger@common control=/full_path/test.ctl log=/full_path/adhoc/test.log SQL*Loader: Release 9.2.0.1.0 - Production on Tue Sep 2 10:49:27 2003 ...
0
4285
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 9.2.0.1.0 CREATE TABLE PAGES_4M ( LOADDATE NUMBER(8) NOT NULL,
2
1131
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
2120
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 uploading is as follows SQLLDR username/password@DATABASE control=controlfile.ctl log=logfile.log DIRECT=TRUE But on uploading the files simultaneously,...
5
36010
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 loader.ctl. actual data file is mydata.csv that I have mentioned under ‘load data’ section in loader.ctl . P.N : I am using my personal oracle installed ...
1
10544
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 MY_CROPS.CTL LOAD DATA INFILE /home/klein/mein/data/MY_CROPS.DAT REPLACE INTO TABLE MY_CROPS FIELDS TERMINATED BY X'09'OPTIONALLY ENCLOSED BY ""...
2
251
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 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...
4
2954
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 find the best approach people on here have found to be the most efficient way to load the data within these boundaries. I don't want to load all of...
4
6974
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 how can I dynamically identify the input data file name, if not, is there a way I can make my SQL Loader to insert a value (file name) before each row...
0
7269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7394
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7559
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3248
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.