Sqlldr is used to quickly bulk import data,The example steps are as follows:1. Determine connection examples for Oracleusername/[email protected]I'm using:system/ World @ LOCALORCLThe SID is an example of a connection, the service naming in Net Manager, as follows: 2. Create a table with the following statement:CREATE TABLE TT ( ID INTEGER, NAME VARCHAR2
Con column in the table is the combined value of ID and nameDtdate "YYYY-MM-DD" Insert date type data)DescriptionLoad dataTell Sqlldr what to do (in this case, indicate that you want to load the data). Sqlldr can also execute continue_load, that is, continue loading. This option is only available if you continue with a multi-table direct path loadINFILE *: If it is an * number, this will tell
under the master, datasource is the master; DBO owner Needless to say (some articles have been saved, such as datasource .. pub_goods: If I try it, it will waste a lot of time.) pub_goods indicates the table name, out indicates the export, and in indicates the import;
Data/pub_goods.txt stores the exported files in the datadirectory under the current directory, and the name is pub_goods.txt;-S is the database service name,Import Sybase BCP:BCP datasource. DBO. pub_goods in data/pub_goods.txt-u
userid=scott/tiger'. One may specify parameters by position beforeBut notAfter parameters specified by keywords. For example,'sqlldr scott/tiger Control=foo logfile=log' isallowed, but'sqlldr scott/tiger control=foo log' is not, even though the position of the parameter'Log' isCorrect. One of the lines is "errors--number of errors to allow (Default 50)"So it's not surprising that there are problems.Fin
Label:Sql*loader is an Oracle data load tool that is typically used to migrate operating system files to an Oracle database. Sql*loader is a large dataThe warehouse selection uses the Load method as it provides the quickest way (direct,parallel). Now, let's put aside its theory and use examples to makeYou get a quick grasp of how sql*loader is used.First, let's meet Sql*loader.Under NT, Sql*loader's command
headerSet Linesize 32767--Maximum row displaySelect ' # ' | | col1| | ' #,# ' | | col2| | ' #,# ' | | col3| | ' # '--Set the required column format. In this example, columns are separated by commas, and the column contents are caused by #. From Test_data;Exit --Exit SqlplusSpool off--close the poolPause Note: The above command can be executed directly under DOS. 2. write. bat Batch Then write the bat call above the Outputsql file, as follows: cd/Set
Label:First, SQLLDR import txt 1. Preparation a). txt file This is to be saved as unsigned UTF-8. b). Oracle Build Table 2. Write the control file Input_test.ctl LOAD DATA CHARACTERSET ' UTF8 '--Character Set settingsINFILE ' D:\input_test.txt '--The text data path to be imported, can write multipleREPLACE into table Input_test--Empty the original data and Import mode append import with append into table T_
Tags: Sqlldr enclosed byOracle Sqlldr Optionally enclosed by (GCH)If you edit the control file,you would rather add theclause "Optionally enclosed by" inensurance.The following example is, and the clause "optionallyenclosed by". as follows, never use the clause ' optionally enclosed by ' in the control file.OPTIONS (Skip=1)LoadDataINFILE "/home/
control=Foouserid=scott/tiger'. One may specify parameters by position beforeparameters specified by keywords. For example,'sqlldr scott/tiger Control=foo logfile=log'is allowed, but'sqlldr scott/tiger control=foo log'is not, even though theposition of the parameter'Log'is correct. [[Email protected]~]$To create a test table:[Email protected] ~]$ Sqlplus/As Sysdbasql*plus:release11.2.0.3.0Production on Wed
This tool can import data in batches. The usage is as follows: SQLLDRkeywordvalue [, keywordvalue,...] valid Keyword: userid --
This tool can import data in batches. The usage is as follows: SQLLDR keyword = value [, keyword = value,...] valid keyword: userid --
This tool can import data in batches. The usage is as follows:Usage: SQLLDR keyword = value [, keyword = value,...]Valid keywords:Userid --
Label:csv:comma-separated values (comma Separated values) are abbreviated as a comma-delimited field of multiple-line text files Sqlldr is an abbreviation for Sql*loader, a tool that installs the full version of the Oracle client Use SQLLLDR to import regular text data (such as CSV) into a data table Import example: Import a CSV text file andon.txt into a Testand
This tool can be used to import data in batches as follows:Usage: SQLLDR keyword = value [, keyword = value,...]Valid keywords:Userid -- Oracle user name/PasswordControl -- control File NameLog -- log File NameBad -- incorrect file nameData -- data File NameDiscard -- discard file nameDiscardmax -- number of files that can be discarded (all default values)Skip -- number of logical records to be skipped (0 b
Sqlldr is not detailed here.
I usually write data to Oracle and suddenly think of MySQL? Is there any plug-in similar to sqlldr?
I did not find the plug-in, but the MySQL operation is relatively simple. Just import the file directly on the command line.
Mysql-uusername-ppasswd-e "command; command"
References:
1,Shell to operate MySQL
Http://blog
Import data to Oracle
When importing data in Oracle, the file suffix is *. CTL
The command is sqlldr.
Sqlldr username/password control = 'tbl _ EMP, CTL'
Export part of data from postgre
Psql Saison-C 'select user_id, user_name from user order by 1, 2 'user_list.txt-a-f,-T
Generated file user_list.txt
100001, Xiao
Label:1, the command is written in one line: for example, Sqlldr sh/[email protected]connect_string control=ctl_file data=dat_file log= Log_file Direct=yes rows=100000.2, note the file newline character, if it is wind, it is cr/lf, if it is a Mac, then CR, if it is UNIX, then LF, and finally converted to 16, for example, RECORDS delimited by 0X ' 0A '.3, note the
Tags: Oracle Sqlldr
BackgroundTXT text for 900W data, the contents of the file are in the fields "|" Delimited, use Nevicat import too slow
SolutionsUsing SQLLDR to import data,1) Setting up the configuration file Test.ctl[email protected] ~]$ cat Test.ctlLoad dataInFile ' Data.txt 'into table CMCCFields terminated by "|"(id,phone,service_id,time,cmcc_nu
1, the establishment of Oracle installation directory, generally/opt/oracle;2, put the installation package instantclient-basic-linux.x64-11.2.0.3.0.zip into the directory, and extract: Unzip XXX, generate directory:/opt/oracle/instantclient_11 _2;;3. Create a new Tnsnames.ora file in the/opt/oracle/instantclient_11_2
There should be a lot of ways to import data into Oracle, and there are different ways to import different requirements, and the recent use of Oracle's SQLLDR command to import database data feels like a pretty good technical point. Using the SQLLDR command to import a text file into Oracle takes roughly two steps:Firs
Title printing; on by defaultSet heading on/offThat is to say, whether the following information in step 1 is displayedId username date1 money---------------------------------- The number of blank lines before the new page. If it is equal to 0, a line break will appear before the new page's 1st characters.Number of set Newpage rows Input content to fileSpool off/file name Determines whether SQL * Plus is displayed on the screen. The default value is on and the value is off, which indicates t
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.