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
column to be imported as a char type-- // If it is: pub_price filler (Note: This column is ignored when the filler is added here, and this column is not loaded))----------------------------------------------------------------Above -- // and the following content are all comments, which can be removed in actual operations;
If all are ready! Open CMD and enter sqlldr parfile = pub_goods.par.You can see the running result, which may fail and fail n time
1. Create a data file:For example, to create a zhaozhenlong.txt file in D:\, the file content is:11,12,1321,22,2331,32,332. Create the control file:For example, to create a zhaozhenlong.ctl file in D:\, the file content is:Load da taInFile ' D:\zhaozhenlong.txt 'Append into table ZhaozhenlongFields terminated by ', '(C1,C2,C3)3. Create a table in the database:CREATE TABLE Zhaozhenlong (c1 varchar), C2 varch
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
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
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 nls_lang=. Al32utf8--setting character set UTF8CHCP 65001--Conversion code page UTF8@echo offecho Data outputPause@remSqlplus System/[
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/oracle/
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 is SQLLDR, which is generally
identify recoverable statementsResumable_timeout -- waiting time of RESUMABLE (in seconds) (7200 by default)Date_cache -- size of the date-converted high-speed cache (calculated by entries) (1000 by default)Please note: the command line parameters can be specified by the location or keyword.. The former example is 'sqlloadScott/tiger foo '; the next example is 'sqlldr
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
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
Sqlldr is a recommended method for processing large data volumes. It has many performance switches to minimize redo and undo generation, control Data Processing Methods (insert, append, replace, truncate)
Because the project needs to compare the performance of datapump, it is still not ideal, so we still want to use sqlldr. I did a simple test.
According to thomas kyte, the fastest way to load parallel exec
allocatedSkip_unusable_indexes -- useless indexes or index partitions are not allowed/allowed (FALSE by default)Skip_index_maintenance -- indexes are not maintained and the affected indexes are marked as useless (FALSE by default)Commit_discontinued -- submit the rows that have been loaded when loading is interrupted (FALSE by default)Readsize -- size of the read buffer (1048576 by default)External_table -- use external tables for loading; NOT_USED, GENERATE_ONLY, EXECUTE (NOT_USED by default)C
Database Recovery Expert 13352468096 qq:9417901 website: http://www.sosdb.com----- You find the issue as a date format, and then you set Nls_lang to resolve the issue.C:\>set NLS_LANG=AMERICAN_AMERICA.ZHS16GBK C:\>sqlldr Btgl/pass Control=dump002.ctl Direct=true Check to see that the data is fine. Problem solving [Align=right] [Color= #000066] [This post has been edited by admin on 2008-6-16 16:32:28] [/color] [/align]---------Data Recovery Oracle Da
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 Testandon table in manpowertest Testandon table stru
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.csdn.net/hbcui1984/article/details/5125387
This is a small example of sqlldr in the exercise thinking book. It is to save the excel file as csv and load it into the Oracle database through sqlldr. The purpose was to demonstrate the processing method of sqlldr In the csv file and strings in the csv file that contain commas (,) and double quotation marks ("). How
Sqlldr is a recommended method for processing large data volumes. It has many performance switches to minimize redo, undo generation, and control data processing methods.
Sqlldr is a recommended method for processing large data volumes. It has many performance switches to minimize redo, undo generation, and control data processing methods.
Sqlldr is a recomm
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.