Click to See Complete Forum and Search --> : SQL*Loader problem


manjunathk
11-06-2000, 12:16 PM
I created a file called ldr_test with delimited data.
I created a control file as follows:
---------
LOAD DATA
INFILE 'c:\ldr_test.txt'

into table scott.dept
fields terminated by ';'
(
deptno number(2),
dname varchar2(14),
loc varchar2(13)
)
------------


when I enter the value for control= c:\ldr_test1.txt, and enter the password as tiger,
i am getting the following error:
SQL*Loader-704: Internal error:ulconnect:OCISessionBegin [0]
ORA-01034:ORACLE not available

What is missing from my actions? Oracle is available when I run other SQL queries.

Thanks in Advance
manjunath

rcaballe
11-06-2000, 02:24 PM
When you put the user put:
scott@alias
Where alias is the same text you put in connect string or database in other tools

manjunathk
11-06-2000, 02:28 PM
thanks ramon,
when i start sql*loader, it first asks control=.
Then when i enter the file name, it directly asks for the password. it does not ask for the user name.
manjunath

rcaballe
11-06-2000, 02:37 PM
Ok.
Then put the variable TWO_TASK=alias
In DOS
C:\>set TWO_TASK=alias
In Unix
$ TWO_TASK=alias
$ export TWO_TASK

manjunathk
11-06-2000, 02:43 PM
well, the problem persists.
Should I do something about OCISessionBegin?
manjunath

rcaballe
11-06-2000, 04:39 PM
There is a bug in SQL*Loader when the characteres in the command are more than 31.
Try to shorten the total length of the command which invokes SQL*Loader

manjunathk
11-06-2000, 04:43 PM
thanks, but i am just typing sqlldr; at the c: prompt!
manjunath

ganesh
11-06-2000, 04:50 PM
Can u write something about the environment and the problem in detail.

rcaballe
11-06-2000, 05:07 PM
How are you writing the command?
you put?
C:\>sqlldr
And then the error appears?

manjunathk
11-06-2000, 06:14 PM
c:\>sqlldr;
then it prompts with 'control='
when i enter the full path of the file, then it asks for the password.I tried with both tiger(table in which i want to load was in a scott's schema) as well as system, and the result is the same, which is mentioned earlier.
Is there any thing to be taken care prior to invoking the sql*loader? I am using it for the first time, so.....
manjunath

rcaballe
11-06-2000, 06:25 PM
Try the command with everything
C:\>sqlldr scott/tiger filename.ctl ..... etc
or
C:\>sqlldr userid=scott/tiger control=filename.ctl ..... etc
I'm supposing you can do a
C:\>sqlplus scott/tiger
If you can't try
C:\>sqlplus scott/tiger@alias ... the same for sqlldr

manjunathk
11-06-2000, 06:42 PM
thanks ramon,
your last suggestion worked, though i dont see how it is different from others i have been trying.
Anyway i am up with another problem and
the error now says "for INSERT option, table must be empty. error on table scott.dept"
I guess i need to go through the documentation more thoroughly.
manjunath

rcaballe
11-06-2000, 07:54 PM
Yeahp.
Docs are good :)
Search APPEND