> Conn Scott/tiger connected. Sql> CREATE TABLE Sl_base 2 (ID number (5), fname VARCHAR2 (Ten), lname VARCHAR2); Table created. Sql> exit disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0-64bit Production With The partitioning, OLAP, Data Mining and Real Application testing Options [[emailprotected] adump]$ CD [email protected] ~]$ VI base.ctl Load Data infile * badfile ' Base.bad ' into table sl_base Replace
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
1, the concept of SQL Loader
Import external data (such as text) data into Oracle database. (For data import, different types of database data migrations)
2, Sqlloader Import data principle: In paragraph (segment table) Insert record
1) Normal: Insert the record into the block below the HWM (high watermark) of the segment to first visit the bitmap to determine if the blocks have free spaces
2 Direct: Insert records into unused blocks above the seg
How to efficiently import Excel into Oracle? And the first two days of sqlbulkcopy import into SQL Server correspondence, Oracle has its own approach, just slightly more complicated.
That is using Oracle's Sql*loader feature, and SQLLDR only supports data that resembles CSV format, so you have to transform Excel yourself.
Implementation steps:
Read excel-Save
This case takes China Construction Bank as an example.Download the created transaction table and name it ccb.txt.At this time, you have two options: sqlldr or external table
(I) sqlldrBecause online banking can only be used on win, if your OS is Linux/Unix, you must specify the character set in CTL.Enables UTF-8 to display gb18030
① Create a table
create table t_bank_invoice ( account_number number, sub_number number, transac_date d
Oracle 11g Data Loading Methods
Data Loading:
SQL * LOADER
External table
Import/Export
SQL * LOADER:
SQL * LOADER is an Oracle tool that can load data from external data files to databases.
The command for running SQL * LOADER is sqlldr.
Two Sqlldr usage methods:
1. Use only one control file, which contains data
, separated by white space at the end. 3. Use the sqlldr program to import text files to the database based on the control file and execute sqlldr in windows cmd to quickly load data. Cmd code sqlldr scott/tiger @ elvdb_11g control = d: \ bb_11g.ctl log = d: \ dd_11g.log after execution, remember to check the log file. The log file displays the loaded details. Lo
translation of the official website example, the actual use is still very inconvenient, the following directly said the actual operation:–0. Check to see if the oracle-spatial is installed
sql> desc sdo_georaster;
Element Type
rastertype number
spatialextent mdsys. Sdo_geometry
rasterdatatable VARCHAR2 ()
rasterid number
METADATA SYS. XmlType
This is a loaded, not to install t
10g Enterprise editionrelease 10.2.0.4.0-64bit Production With the partitioning, Real applicationclusters, OLAP, Data Mining and Real Application Testing options Sql>Configure TnspingGo back to the root user and get the necessary files on the other Oracle machines. # cd/opt/oracle/instantclient_11_2/ # SCP [Email protected]:/oracle/orahome/product/11.2.0/bin/tns
I. Basic Knowledge
Oracle SQL * LOADER can load externally formatted text data to database tables. It is usually used in combination with the SPOOL Method for exporting text data.
1. Command Format
SQLLDR keyword = value [, keyword = value,…]
Example: $ sqlldr user/pwd control = emp. ctl data = emp. dat bad = emp. bad log = emp. log
2. Control File
SQL * LOADER c
. sqlldr ImportE: \ test> sqlldr dbmon/dbmon control = e: \ test \ DBMON_DH_ SQL .ctlSQL * Loader: Release 11.2.0.1.0-Production on Tuesday May 1 11:16:43 2007 Copyright (c) 1982,200 9, oracle and/or its affiliates. all rights reserved. reached the submission point-logical record count 64 reached the submission point-logical record count 128 reached the submissio
RHEL6 + Oracle 11g Client Rapid deploymentRequirements: Just use the client's Sqlplus, Sqlldr function.Scenario: Fast deployment of clients with Lite version1. Upload Oracle Lite client to server/tmp directory, unzip to/opt directory, rename to OracleClient# CD/unzip /tmp/oracle_instantclient_11_2_for_linux. Zip mvchown -R orajy:orajy/opt/oracleclient2. Environm
ORACLE db:11.2.0.3.0MYSQL db:5.5.14As a result of the project requirements, there are several ways to migrate data from Oracle production to the MySQL database as initial data:1. ORACLE OGG2. Manually write select "INSERT into" script3, tools, this time I was using the tool (SQLULDR2), tools can go to www.anysql.net to downloadHow to use:Upload the Sqluldr2.bin t
Batch import data to Oracle databases
SQL * LOADER is large data
Repository selection method, because it provides the fastest way (DIRECT, PARALLEL ). Now, let's leave aside its theory and use instances to make
You can quickly learn how to use SQL * LOADER.
First, let's get to know SQL * LOADER.
In NT, the SQL * LOADER command is SQLLDR, and in UNIX it is generally sqll
A. There is a difficult but successful method.1. Create an Access database locally and import Excel Data to access. You can right-click Import and choose import from the shortcut menu. Select the Excel file to be imported as the file type, or use the transferspreadsheet function to create a macro.2. Create ODBC locally and connect to the Oracle database. Create a table to be imported to Oracle in local acce
change suffix name)Use sqlldr to import data. There are many sqlldr parameters, just a few simple ones:Create a control file control.txt:Load dataInfile 'f: \ test.csv'Into table test1(Id char terminated ',',Name char terminated ',',Height char terminated ',',Birth char terminated by whitespace)---- Modify the name and path of the data file as needed. The field names and number of fields in the brackets ar
(connection description tnsnames. ora, listener. ora)
The net8 configuration assistant function is similar to the preceding one. It provides basic configurations. For advanced configuration operations, or for details about configuring other parts of net8 not included in this tool, use net8 assistant Oracle ODBC test to connect to and test Oracle ODBC
6. DOS window utilities
Svrmgrl
SQLLDR ToolsThe Sql*loader client tool is Sqlldr, enter SQLLDR under the command line of the operating system, and then do not take any parameters, and the Help information shown below (a simple description of all command-line arguments and their default values), so you do not need to memorize the following parameters, and when you forget them, You can quickly qu
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.