Tags: des style blog http color io os ar forThe recent project involves importing the data from the text file into the Oracle database, so we studied the next Sql*loader, the information provided by the official document is not very rich, the statements appearing in many cases can not find the source in the official document. But the case that it offers itself highlights the power of the
Tags: keyword insert database tiger recordSql*loader usage:Sqlldr Keyword=value [, Keyword=value, ...]Sql*loader the processing of records through control files, example command line Sqlldr Scott/tiger control=case.ctl (not database sql>)Case.ctl content is as follows:Load d
Chapter 2 SQL * loader usage
1. SQL * loader Introduction
2. SQL * loader Control FileHow to create and use control files to control the syntax features of Files3. SQL *
Homepage → exp/IMP →>
How to import data exp into SQL Loader
Excerpt: Unknown Exporting table data to SQL * loader files Exporting table data to SQL * loader files The follow
[Oracle] common tool set-SQL * Loader principle SQL * Loader is a tool provided by Oracle for data loading, it is suitable for business analysis databases (data warehouses) and can process flat files in multiple formats. batch data loading is more efficient than traditional data insertion. It is as follows: Control Fil
Sqlloader export Excel data to Oracle
1. Create Sql*loader input data required by the file, are saved to C:\, edited in Notepad:
Control file: Input.ctl, the contents are as follows:
Load data--1, control file identification
InFile ' Test.txt '--2, the data file to enter is named Test.txt
Append into table Test--3, append records to table test
Fields terminated by X ' 09 '--4, field terminated by X '
SQL loader can smoothly import data stored in text format to the oracle database,It is a convenient and common tool for data migration between different databases.The disadvantage is that the speed is relatively slow, and it is a little troublesome for blob and other types of data.Usage: SQLLDR keyword = value [, keyword = value,...]Valid keywords:Userid -- ORACLE username/passwordControl-control FileLog-re
SQL * Loader (SQLLDR) is an Oracle high-speed Batch Data Loading tool. This is a very useful tool for loading data to the Oralce database in multiple flat file formats. SQLLDR can load a large amount of data in a very short time. It has two operation modes.Traditional path(Conventional path): SQLLDR uses SQL insert to load data for us.Direct path: In this mode, S
Sqlloader export Excel data to Oracle
1. Create Sql*loader input data required by the file, are saved to C:\, edited in Notepad:
Control file: Input.ctl, the contents are as follows:
Load data--1, control file identification
InFile ' Test.txt '--2, the data file to enter is named Test.txt
Append into table Test--3, append records to table test
Fields terminated by X ' 09 '--4, field terminated by X '
1. The control file contains the data to be loaded. First, create a test table SQLgt; showuserUSER is INGSQLgt; createtabledept2
1. The control file contains the data to be loaded. first create a test table SQLgt; show user USER is ING SQLgt; create table dept 2
1. The control file contains the data to be loaded.
First, create a test table.
Create a control file (including the loaded data)
Then execute the load command in the command line.
View dept table
View the demo1.log Log File
2. Separ
Sql*loader (SQLLDR) is a high-speed batch data loading tool for Oracle. This is a useful tool for loading data into the Oralce database in a variety of flat file formats. SQLLDR can load large amounts of data in a very short period of time. It has two modes of operation.
Traditional Path: (Conventional path): Sqlldr uses SQL inserts to load data for us.
Direct p
This article describes how to use SQL loader to insert data from an Oracle database into an Excel file.
Implementation purpose: Insert data from an Excel file into an Oracle database
Implementation steps:
1. Open Microsoft Excel 2000
2, file (F) → new (N) → workbook →
3, after the input data, save for Test.xls,
4, document (F) → Save As (A) →
Save type is: Tab delimited, named Text.txt, save to C: \
"," C2 "," C3 ",) VALUES (Null,null,null,null) /*+ Sys_dl_cursor */is the way SQL loader, which means that bulkcopy needs to be used with caution because he will invalidate the index of the table. An exclusive lock on the table is executed before the SQL loader is executed: Lock table "LC0079999". " Jkl_test "in EXCLU
Run
Sqlldr username/password control = 'tbl _ EMP. CTL'
An error occurred while importing data.
SQL * loader-522: lfiopn failed for file (sqlldr. Log)
The cause of this error is that the command is not executed in the directory where the file is located.
------------------------------------------------
For example, the file directory structure is as fol
Sql*loader is an Oracle data-loading tool that is typically used to migrate operating system files to an Oracle database. Sql*loader is a large data
The Load method that the warehouse chooses to use.
Under NT, the Sql*loader com
The following experiment shows a TXT text file. Based on this text file, use SQL * loader to create an external table.
1. Create a control file
[Oracle @ vmoel5u4 ~] $ VI car. ControlLoad dataInfile 'car.txt'Badfile 'car. bad'Discardfile 'car. Discard'AppendInto Table car_info_testFields terminated ","Trailing nullcols(Maker,Model,No_cyl,First_built_date 'yyyy/MM/dd ',Engine,HP,Price)
2. Create an External
This article is worth noting. I will try again tomorrow. Today is so tired!
How to use SQL * loader?
Dragon2> sqlldr userid = C/C control = lc2.ctl log = lc2.log bad = lc2.bad
SQL * Loader: Release 9.2.0.1.0-production on Wed Jun 4 18:03:53 2003
Copyright (c) 1982,200 2, Oracle Corporation. All rights reserved.
Commit
Environment: Oracle 10g 10.2
There is a text data in the following format:
HLR_CODE HLR_TYPE REGION_CODE AREA_CODE PROV_CODE BUREAU_CODE VALID_DATE EXPIRE_DATE MODIFY_DATE1 1302309 1 565 565 551 Z00 2000-1-1 2020-12-31 23:59:59 20:22:562 1302310 1 210 21 210 Z00 2000-1-1 2020-12-31 23:59:59 20:22:563 1302311 1 210 21 210 Z00 2000-1-1 2020-12-31 23:59:59 20:22:564 1302312 1 210 21 210 Z00 2000-1-1 2020-12-31 23:59:59 20:22:56
You need to import the data to a table:
Create table BS_HLR_INFO(HLR_CO
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.