How to use sqlldr in linux
i need to load an excel file in oracle database using sqlldr
how can i do that
i am not clear about the control file uses and its creation
thanks :-)
These links were not of much help as i already went through it
my prob is i dont get any error when i run sqlldr
sqlldr userid=scott/tiger control=emp.ctlPotential problems:
1. Your command "sqlldr userid=scott/tiger control=emp.ctl" doeas not include data file name (where is the data for import) because there this file is not specified in .ctl file.
So define "data" prameter in sqlldr command or add infile <filename> to .ctl as following:
LOAD DATA
INFILE <replace by filename>
APPEND INTO TABLE emp1
id INTEGER EXTERNAL TERMINATED BY "," ENCLOSED BY '"',
ename CHAR TERMINATED BY "," ENCLOSED BY '"'
)2. Your .ctl is not appropriate for data structure.
This .ctl is expecting following data structure:
"1", "James Bond"
"2", " Miss Moneypenny"
"3", "M"
"4", "Q"
... and so on.or
"1", "James Bond",
"2", " Miss Moneypenny",
"3", "M",
"4", "Q",
... and so on."userid=scott/tiger" - I assume you are loading data on the same machine where the databse serer is located. Right?
The links are appropriate! It is official documentantion and all information I gave you are part of this document.
Similar Messages
-
How to use sqlldr for loading data in Oracle 10g xe.
I want to load data using SQL*LOADER in Oracle DB from a .csv file but it doesn't seems to be working can anyony please help me.I am not get getting how to use sqlldr.
in CMD in giving this command
sqlldr hr/hr control='c:/data/record.ctr'
record.ctr>>load data
infile 'c:\data\record.csv'
into table record
fields terminated by "," optionally enclosed by '"'
( Name,uday, hemant )
sql table in data base>>CREATE TABLE "RECORD"
( "NAME" VARCHAR2(50),
"UDAY" VARCHAR2(50),
"HEMANT" VARCHAR2(50)
record.csv>>name,uday,hemant
c1,45454,84894
c2,489654,21322
can you please tell me how can i get this simple example run.C:\>sqlldr scott/tiger
control = data.ctl
SQL*Loader: Release 10.1.0.2.0 - Production on Thu Sep 14 17:06:46 2006
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Commit point reached - logical record count 3
SQL> conn scott/tiger
Connected.
SQL> create table data (col1 varchar2(40),col2 varchar2(40),col3 varchar2(40));
Table created.
SQL> select * from data;
COL1 COL2 COL3
name uday hemant
c1 45454 84894
c2 489654 21322
SQL>
data.csv
name,uday,hemant
c1,45454,84894
c2,489654,21322data.ctl
load data
infile 'c:\data.csv'
append
into table data
fields terminated by ','
optionally enclosed by '"'
(col1,col2,col3)i hope it will solve ur problem -
How to use jdeveloper with linux?
how to use jdeveloper with linux?
Hello, i've download jdeveloper, and i have java1.4 installed. But i can't run jdeveloper i have jdev.exe and jdev but when i put /usr/local/jdev/bin/jdev a have a message like file not found. I don't know what to do.
Help please!!!
Ori.You need to go to the directory where you unzipped JDeveloper, for example:
cd opt/jdev/jdevj2eebase1013/jdev/bin
Once there, do this:
chmod +x jdev
chmod +x ojc
Now you can try this:
nohup ./jdev &
or simply
./jev
I usually create a soft link in ~/bin -
How to use DMA in linux?
Hi,
This is not exactly an area of my expertise, but I'd need to output analog signal with an M Series card in linux. I'm using the NI DAQmx Base driver and apparently it does not have any direct support for DMA access. As I understood, the NI DAQmx driver would have a support for DMA, but the newest version of driver for linux (openSUSE) is from 2005. With current implementation the output is not very steady as there are some other mandatory processes on the background and the driver already seems to be using nearly all of the CPU time. Any help would really be appreciated. Thanks in advance.
-- mikkoHi mikko,
DAQmx Base does support DMA, but only for analog input (which obviously doesn't match your application's needs).
However, I don't believe you will need the DDK to support DMA for analog output on your hardware: installing DAQmx 8.0 is possible on newer Linux distributions, and one user in particular shared his procedure [1]. His instructions mention using NI-KAL 1.6, but my recommendation is to use the latest [2]. National Instruments hasn't tested DAQmx 8.0 on these newer distributions, so I can't say what the driver's performance would be in your situation. I can say, though, that I've installed DAQmx 8.0 on openSUSE 10.3 successfully and was able to use the shipping examples for an internal demonstration.
If you encounter problems, please reply and tell me which hardware you want to use and which Linux distribution you're currently using. It will be much easier to install DAQmx 8.0 on a newer release of a supported distribution (like SUSE [3]) than a on an unsupported distribution.
[1] Installing LabVIEW 8.2.1 with DAQmx 8.0 on Suse 10.3 for Linux.
http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=331638#M331638
[2] NI-KAL for Linux
http://joule.ni.com/nidu/cds/fn/p/sb/navsRel/lang/en?q=ni-kal
[3] National Instruments and Linux: Frequently Asked Questions
http://www.ni.com/linux/support.htm#1
Joe Friedchicken
NI VirtualBench Application Software
Get with your fellow hardware users :: [ NI's VirtualBench User Group ]
Get with your fellow OS users :: [ NI's Linux User Group ] [ NI's OS X User Group ]
Get with your fellow developers :: [ NI's DAQmx Base User Group ] [ NI's DDK User Group ]
Senior Software Engineer :: Multifunction Instruments Applications Group
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008) -
How to Use JNI for linux based C programs
Hi all,
I am doing my project in JAVA for my Institute. There is a Central server. All the API's have written in C. The C APIs are Linux based.
The problem is getting records from the database through API.
I tried the Java Native Methods. I am able to do that in console with out problem. Since my project is web based I want to fetch the records through the C APIs in JSP. Is it possible? How to do that?
Please Help me.
-PrathapWhy can't you use JDBC?
I tried the Java Native Methods. I am able to do that in console with out problem. Since my project is web based I want to fetch the records through the C APIs in JSP. Is it possible? How to do that?JSP runs in a server. Which is just a big console application. Same as any other.
Basic process.
1. Write the JNI
2. Insure the JNI is in the servers shared library path. This can depend on the user that the server runs under (unlikely to be you.)
3. Add the java code into the server. -
How to use Jinitiator for linux???
I want to run oracle apps 11i on mandrake 8 using netscape 4.7
Jinitiator for linux does not exists.
You can try jdk (jre) 1.3.1 plugin and
sign f60web.jar
Visit http://www.snpe.co.yu/index.php?sadrzaj=html/fslin_eng.html
regards
peco -
How to use Linux Print queue in client_text_io.fopen to print from Windows
We have a forms application deploed on LINUX (Oracle application server 10g).
I have to print a file from local windows PC to a linux Print Queue from forms
I have the following code
PROCEDURE file_to_printer (i_filename_output IN VARCHAR2
,i_network_printer IN VARCHAR2) IS
l_line VARCHAR2(2000);
l_fileid_output client_text_io.file_type;
l_fileid_print client_text_io.file_type;
BEGIN
l_fileid_output := client_text_io.fopen (i_filename_output,'R');
l_fileid_print := client_text_io.fopen (i_network_printer,'W');
WHILE 1 = 1 LOOP
client_text_io.get_line (l_fileid_output, l_line);
client_text_io.put_line (l_fileid_print, l_line);
END LOOP;
EXCEPTION
WHEN NO_DATA_FOUND THEN
client_text_io.fclose (l_fileid_output);
client_text_io.fclose (l_fileid_print);
END file_to_printer;
Everything works fine if I use a windows printer like \\machine\printer.
I want to use a Linux printer and specified the print queue as
\\machine\print_queue_name. It's not working
and I get error ORA-302000 on the following line
l_fileid_print := client_text_io.fopen (i_network_printer,'W');
and if I give only the queue name no error but it's not printing.
Could you please tell me how to use a Linux/Unix print queue in this situationthe simplest way is to edit the interface file (look in /etc/lp/interfaces for existing printers). Each script is
run per print job where stdin has your print data, and stdout is going to your print device. You can just
send the output to a file instead (assuming you can create a file in the windows directory from the solaris
box). If it's a network share, you could use smbclient.
-r -
How to run SAP BUSINESS ONE 8.8 clients on windows and use MaxDB on linux/W
Good day,
As the subject shows we have SAP BUSINESS ONE 8.8 and I want to find out how to use it in combination with MaxDB instead of MS SQL. I find a lot of MaxDB stuff on the net but no guides on how to setup SAP BUSINESS ONE 8.8 clients on windows workstations and connect them to MaxDB.
Is this possible and if so how do I go about doing it ?
Any assistance is greatly appreciated .Hi,
I suggest you to check the supported server for B1 in this link:
http://service.sap.com/smb/sbo/platforms
You will know the sap b1 supported platform.
If you really want to use maxDB on linux/W as B1 server, you can send a development request to SAP AG.
JimM -
How to use a .dmg file in Arch Linux
I have a file a friend gave me from his Mac computer with a .dmg file name. I haven't been able to pinpoint exactly how to use this type of file... I believe its an Apple raw disk image or something like that.. sort of like an iso. I need to use this file in order to start an application and download it onto Arch Linux. The problem is that I can't figure out how to use it on Arch Linux and burn it onto a Cd. Has anyone had experience with this sort of thing? I am completely lost.
$ poweriso convert ~/Downloads/lang.rar/Rosetta_Stone_3.4.5.dmg -o ~/Downloads/lang.rar/rose.iso -o t
PowerISO Copyright(C) 2004-2008 PowerISO Computing, Inc
Type poweriso -? for help
/home/user/Downloads/lang.rar/Rosetta_Stone_3.4.5.dmg: The file format is invalid or unsupported.
$
$ poweriso -?
PowerISO Copyright(C) 2004-2008 PowerISO Computing, Inc
Type poweriso -? for help
Usage: poweriso <command> [parameters] [-switches]
<Commands>
list <image file> <directory> List files and directories in image file.
Example: List all files and directories in root direcory of /home/sam/test.iso .
Command: poweriso list /home/sam/test.iso / -r
extract <image file> <dir/file name> Extract files/directories from image file.
Example: Extract all files and directories in root direcory of /home/sam/test.iso
to /home/sam/test recursively.
Command: poweriso extract /home/sam/test.iso / -od /home/sam/test
convert <image file> Convert image file to other format.
Example: Convert /home/sam/test.daa to standard iso file
Command: poweriso convert /home/sam/test.daa -o /home/sam/test.iso -ot iso
<Switches>
-r List or extract recursively.
-o Specify output image file name.
-od Specify output folder.
-ot <iso|daa|bin> Specify output image file type. If not specified,
the image type will be determined by file name suffix.
-volsize <n> Split output image file to multiple volumes, and set volume
size to <n>. Example: -volsize 100M
-setpassword <password> Set password for output image file.
Example: -setpassword 12345678
$
I tried to convert the file .dmg to an .iso so that I can easily burn that onto a disk and get the ball rolling.. am I missing something here? -
How can use linux in my macbook?
how can use linux in my macbook?
You can use various distributions of Linux either by running them under Boot Camp, or in a virtualized environment such as Parallels or VMWare's Fusion. Note that you may have to try several different distros until you find one that works. I settled on Ubuntu running under Parallels.
Best of luck. -
How to use clamav anti-virus for Red Hat linux
I wanted to know how to use clamAV anti-virus solution for RHEL 5.X. I tried to find it online but the information does not seem consolidated. I wanted to understand how to install and use it to scan the system.
Requesting a reply to my query.
RegardsModerator Action:
This question has no relationship whatsoever with functionality involving anything "Oracle".
You should ask your Red Hat Linux questions at a Red Hat support forum.
Thread is now locked because it is outside the scope of this forum discussion space. -
How to run .jar on linux & how to create .jar file using java?
hi, may i know how to run .jar on linux & how to create .jar file using java? Can u provide the steps on doing it.
thanks in advance.Look at the manual page for jar:
# man jar
Also you can run them by doing:
# java -jar Prog.jar -
Can i use itunes on linux ....how
can i use itunes on linux ....how
Yes, although not natively. You can install iTunes under the Wine framework (see http://www.junauza.com/2010/07/how-to-install-itunes-on-ubuntu-linux.html). Wine allows Linux to run Windows applications by doing a translation of Windows APIs to the equivalent Linux system calls.
You could also install a Windows Virtual Box using VMWare or Virtual Box, and then install iTunes in the VM. -
How to compile CrossBridge to using it in Linux?
Hello.
I see that Crossbridge and FlasCC running in Windows throught Cygwin. So, I think it is possile to build it for Linux. How to do this?
Best regards,
NicholasHi,
Thanks, looks promising.
Will give a try right now
2013/8/23 cbakgly <[email protected]>
Re: How to compile CrossBridge to using it in Linux? created by
cbakgly <http://forums.adobe.com/people/cbakgly> in FlasCC - View the
full discussion <http://forums.adobe.com/message/5619598#5619598 -
I used Inkscape on Linux before moved to Mac. Now I am trying to install it
using MacPorts, but libpixman has some problems that has been reported out there.
Does any one know how to fix it without the need to use other way than MacPorts?Start with this comprehensive troubleshooting article:
https://discussions.apple.com/docs/DOC-3521
Look at this one for possible solutions:
https://discussions.apple.com/docs/DOC-3353
Ciao.
Maybe you are looking for
-
Bookmarks are still being updated and saved. Recently closed tabs, Recently closed windows are being recorded as they should. I have a single .json file on my profile directory, search.json. I don't know if there should be another one for the browsin
-
Reg : Hierarchy extraction from Source
Hello Friends, I have an issue with Hiearchy Extraction. I am trying to Load 0WBS_ELEMT ( Hiearchy) data (Full Update) for the first time.Its displaying the following error.(Its extracted from SAP R/3) Diagnosis The hierarchy level of the parent
-
Hi all I have set up a UDF call 'invoice number' on the AR invoice document header to automatically populate the invoice number. Below is the query i have used SELECT $[$8.0.0] I need to modify this query so that it puts a letter eg: D infront of th
-
Dear gurus, This is a simple requirement, as I just need to display a few lines of text data to the topmost part of the report output of tcode ME49. I have already tried user exit AMPL0001, however this does not trigger upon generating the report. Ho
-
Remove lingering objects using Repadmin
This is the query about the GUID. repadmin /removelingeringobjects UKDC1.Contoso.com 5200642e-32fe-485c-bc8d-babfd543f029 dc=Contoso,dc=Com /ADVISORY_MODE In above command we are used the DC GUID. Wondering which GUID we are used there. Is that DSA G