Oracle sqlloader notes command:
Sqlldr userid = username/pwd control = file log = logfile load data -- syntax keyword infile 'filename' -- data file for data import. The default format is. dat. If you want to import data from multiple files, then you can add infile in sequence to enable infile 'filename' -- and so on inifile * -- the data to be imported will be in the control file, And the begindata will gu
(do you want to alter TABLE table1 nologging?). This option can only be used with direct.4) for the import of oversized data files it is necessary to use concurrent operation, that is, running multiple import tasks at the same time.Sqlldr userid=/control=result1.ctl direct=true parallel=trueSqlldr userid=/control=result2.ctl direct=true parallel=trueSqlldr userid=/control=result2.ctl direct=true parallel=trueWhen loading large amounts of data (approximately 10GB), it is best to suppress the gen
;.390 404johnrichardson205 17-MAY-015000 0110select* from Scott.prod_my; View all information then import the external table into the databasea Create a table of entities firstCREATE Tablescott.ldr (
C1 Number (5),
C2 Varchar2, C3 varchar2), C4 varchar2 (+
),
c5 Number (5),
C6 date,
C7 number (8,3),
C8 number (5,2),
C9 Number (5,2), C10 varchar2
(())
;two re-create Sqlloader Control Files$ cd dir
$ vi ldr.ctl
load data
infile ' Prod_my.data '
append
into L_clob;
L_bfile: = Bfilename (' DIR1 ', ' test.txt ');
Dbms_lob.fileopen (l_bfile);
Dbms_lob.loadfromfile (L_clob, L_bfile, Dbms_lob.getlength (L_bfile));
Dbms_lob.fileclose (l_bfile);
End;
Select Dbms_lob.getlength (Theclob), Theclob from demo;
Note:
The directory you create defaults to uppercase DIR1, and if the directory is written as Dir1, you will be prompted for an error, and if you want to use a mixed case directory name, you should have quoted identifiers when you create
Step: 1.cmd into the Oracle installation Bin directory, you can use Oracle multiple self-brought programs, such as SQLLDR.2. Write the CTL command control file as follows:Load'E:\test1.csv'intotable by 'by' "' ( Zonelevel, Zonecode, ZONENAME, zoneshort)Enter CMD to execute as follows:D:\Oracle\product\10.2. 0\db_1\bin>sqlldr wjw/zkr_123#embed@192. 168.200. W
> Use sqlloader to import data
Environment Description:Database: oracle8.1.6oem;System: Windows2000 Server.**************************************** **************************************** ***********Use NotePad to create the control file input. CTL. The content is as follows:Load dataInfile 'test.txt '-- Data FileAppend into Table TestFields terminated by '|' -- or '09', that is, the field termination and Tab(-- Field nameCp
Label:1. Sqlloader Control File//********************************************************************************//Basic format:LOAD DATAINFILE ' T.DAT '//Data file to import (format 1)INFILE ' TT. DAT '//import multiple files (can be used in parallel with format 1)INFILE *//the content to be imported is in the control file the following begindata is the imported content (and format 1 mutex use)APPEND into table table_name//Specify the loaded table (h
1. Sqlloader Control File Basic format:OPTIONS (errors=1000)LOAD DATAINFILE ' T.DAT '//Data file to import (format 1)INFILE ' TT. DAT '//import multiple files (can be used in parallel with format 1)INFILE *//the content to be imported is in the control file the following begindata is the imported content (and format 1 mutex use) APPEND into table table_name//Specify the loaded table (here are several loading methods) Here are 4 ways to load tablesAPPE
1. Create a table:Sql> conn Scott/[email protected];is connected.Sql> CREATE TABLE EMP2 as SELECT * from EMP WHERE 1=2;The table is created.Sql> SELECT * from EMP2;Row not selected====================2. Import data in control file mode= = Write
oracle sqlloader used to load the contents of the data file on the operating system into the oracle database . to use sqlloader, , inside tell sqlloader started sqlloader After the policy of loading data .
For the following content, see Oracle space database development and application guide (HE yuanrong and others) oralcespail's shapefile Conversion Tool: After shp2sdo (provided by oracle) is converted, sqlloader can be uploaded. Mapinfo interchange format files. mif and. mid (the interchange file format is similar to esri shapefile files ).
For the following con
sql> Create or replace directory Dir_dt as '/home/oracle ';Directory created.Sql> Grant Read,write on directory Dir_dt to Scott;Grant succeeded.Sql*loaderTest One: infile *Common parameters
Parameter name
Meaning
Userid
ORACLE Username/password
Control
Control files
Log
Log file for logging
Bad
Bad data file
Oracle
[Oracle] History of the Oracle ――oracle company legend
Author: fenng
Date: Sep 09 2004
The origins of Oracle Company
It is hard to imagine the Oracle Company's saga starting with IBM.
1970 June, IBM researcher Edgar Caut
The following article describes how to quickly generate a large amount of relevant data in Oracle databases. The following describes how to generate a large amount of relevant test data. The following describes the relevant content.
1. Use plsql developer to generate a csv file
2. Use> output redirection to append it to a cvs file.
3. Use SQL loader to quickly load data.
Run in plsql developer
SQL code
SELECT object_id, object_name FROM dba_objects;
R
Nohup./command.sh > Output 2>1 SQL Migration to Oracle instanceIn daily operations, we often have different types of migrations of databases, much of which is migrating from SQL Server to Oracle, with a similar project in the previous phase, and I've documented some of these considerations.First, the programme of migrationPreviously, the SQL---Oracle migration,
Tags: http io ar using SP for on file dataThe problem to the machine environment:Oracle 11gR2 64bitNavicat for Oracle 11.0.10According to the practices of some of the great gods on the internet and some of the personal speculations, the following are summarized:The problem occurs because the navicat is inconsistent with the number of bits of Oracle, the former 32bit, the latter 64bitSome of the online pract
Resume oracle.sh in/etc/profile.d/
The contents are as follows in Nls_lang setup encoding
1 oracle_home=/usr/lib/oracle/12.1/client642 c_include_path=/usr/include/ oracle/12.1/client643 ld_library_path= $ORACLE _home/lib4# RememberThis was the client Nls_lang not the server one5 nls_lang=6 Export Oracle_ho ME Ld_library_path Nls_lang
Then modify the/ETC/INIT.D
, starting at m and intercepting N characters consecutively.---need to note: The database subscript is starting from 1!!!---n is truncated to the end of the current string if the number that is not specified or specified exceeds the actual character length that can be intercepted. n is the length.---if M is negative, it is intercepted from the countdown position. The number at the end cannot be negative.SELECT SUBSTR (' thinking in from dual;--->inSELECT SUBSTR (' thinking in from dual;--->in---
Oracle learning path (5) ----- General oracle data type operations, oracle ----- oracle1. Some common Operators
Operator
Meaning
=
Equal
Not equal
Less
>
Greater
Less than or equal
> =
Greater than or equal
+
Plus sign
-
Minus sign
Oracle BASICS (9) Oracle architecture and oracle infrastructure
1. Oracle Architecture Overview:
Oracle architecture refers to the composition, working process and principle of the database, as well as the organization and management mechanism of data in the database. To und
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.