sqlloader

sql loader log file result

I am using SQLloader in ASP.NET appliaction to automate the bulk upload data to oracle db from CSV/EXCEL. Sqlloader creates a log file that shows the result of import that is created on server. I want to show some info to my users How many rows read? How many successfully imported? on an aspx page How do I do that? ...

SQL*Loader - How can i ignore certain rows with a specific charactre

Hi guys, If i have a CSV file that is in the following format "fd!","sdf","dsfds","dsfd" "fd!","asdf","dsfds","dsfd" "fd","sdf","rdsfds","dsfd" "fdd!","sdf","dsfds","fdsfd" "fd!","sdf","dsfds","dsfd" "fd","sdf","tdsfds","dsfd" "fd!","sdf","dsfds","dsfd" Is it possible to exclude any row where the first column has an exclamation mark...

Oracle sqlldr: column not allowed here

Can anyone spot the error in this attempted data load? The '\\N' is because this is an import of an OUTFILE dump from mysql, which puts \N for NULL fields. The decode is to catch cases where the field might be an empty string, or might have \N. Using Oracle 10g on Linux. load data infile objects.txt discardfile objects.dsc truncate in...

Prevent password leakage while using sql* loader

I have shell script calling Sql*loader utility which inturn uses username/password as arguments. This details cannot be stored on server in any form due to security related policies. i got 2 approaches to handle this situation, 1. create hidden parameter file with login details and limit the access to owner. again the implication is i ...

using sql loader in ruby

Hi, I just wonder if you know where to find a tutorial or samples of a Ruby script using sql *loader? ...

Populate an SQL Server 2k8 with Oracle Loader files

Hi folks. Here's the problem: I have a project that needs to be migrated to Microsoft SQL Server 2008. We have data in text files for the Oracle SQL Loader and now we need to get that data into the SQL Server DB. I could write a program that converts everything into INSERT statements but there has to be a more comfortable way to so t...

Loading large amounts of data to an Oracle SQL Database

Hey all, I was wondering if anyone had any experience with what I am about to embark on. I have several csv files which are all around a GB or so in size and I need to load them into a an oracle database. While most of my work after loading will be read-only I will need to load updates from time to time. Basically I just need a good ...

Using Oracle Sequence in SQL Loader?

Hi, I am using SEQUENCE keyword in SQL Loader control file to generate primary keys. But for a special scenario I would like to use Oracle sequence in the control file. The Oracle documentation for SQL Loader doesn't mentioned anything about it. does SQL Loader support it? ...

How can I truncate data to fit into a field using SQL*Loader? (ORA-12899)

Using Oracle SQL*Loader, I am trying to load a column that was a variable length string (lob) in another database into a varchar2(4000) column in Oracle. We have strings much longer than 4000 characters, but everyone has agreed that these strings can and should be truncated in the migration (we've looked at the data that goes beyond 400...

Convert date from one format to another using SQL*Loader control file

The data from the infile is in the format MM/DD/YYYY how do I tell the control file to load it into the database as YYYYMM? ...

SQL Loader script help with adding SYSDATE, USER

I'm trying to load data from a file and I want to set CREATED_DATE and UPDATED_DATE to SYSDATE and CREATE_BY and UPDATED_BY to USER Here the table that I'm working with: CREATE TABLE CATALOG (CNO NUMBER, CTITLE VARCHAR2(25), CREATED_BY VARCHAR2(10) NOT NULL, CREATED_DATE DATE NOT NULL, UPDATED_BY VARCHAR2(10) NOT NULL, UPDATED_DATE DAT...

How do I use sqlldr to load data from multiple files at once?

I need to load data into an oracle DB using SQLLDR, but I need to pull parts of my table from two different INFILES using the different positions from those infiles? ...

Can variables be passed to a SQL*Loader control file?

Suppose you have a table: CREATE TABLE Customer ( batch_id NUMBER, customer_name VARCHAR2(20), customer_address VARCHAR2(100) ) And suppose you have a control file to populate this table: LOAD DATA INFILE 'customers.dat' REPLACE INTO TABLE Customer ( batch_id ??????, customer_name POSITION(001:020), ...

46 Control Files for SQL Loader

I have to load 46 tables with data using SQL Loader for Oracle. All the data files are CSV. The column order in the CSV matches the column order in the table. I need to create a control file for each table. What is the best way for me to mass produce these files? ...

Load a structured text data file using only one control file.

I have a text file need to be loaded have structure like this (badly, I don't have permit to change): MM/DD/YYYY 24HH:MI:SS NO_OF_REC EMP_ID,EMPNAME,SALARY ..... Ex: 12/24/2010 20:30:10 number_of_datarow_below E0001,SMITH,5000 E0002,JOHN,7000 E0003,KEWELL,9000 Into one Table: EMP(ISHEADER, HEAD_DATA_TIME, NO_OF_REC, EMP_ID,EMPNAM...