Import data via a network link in Oracle 10g
Takeaway: Oracle 10g's import utility can use a network connection to directly import data from another Oracle database. Bob Watkins explains how it's done.
Oracle's export and import utilities have historically used a disk file as intermediate storage when unloading or reloading the database. For large databases, this "dump file" was an issue because operating system limits on file size could be exceeded, making export impossible.
Creative DBAs have used file compression utilities, such as compress on UNIX, to get the most capacity from the dump file. Later versions of import and export allowed the use of multiple dump files to get around the limits.
In Oracle 10g, the Data Pump version of import can eliminate the dump file entirely by importing directly from another database instance.
The first step is to define a database link object to identify the source database and provide login credentials. For example, a source database in Chicago might be identified by the Oracle network service name CHI. A user in that instance, ADMIN1, logs in using the password WINDY and has the correct privileges to access the data to be imported. The following CREATE DATABASE LINK command, then, could be used to define the source database:
CREATE DATABASE LINK chicago
CONNECT TO admin1 IDENTIFIED BY windy
USING 'CHI';
The Data Pump import command, impdp,
can now use this database link to directly access remote data. The command line
parameter NETWORK_LINK points to the source database via its database link. On
the local database instance in
impdp admin2/market TABLES=customers,sales DIRECTORY=dpump1
NETWORK_LINK=chicago
Note that no export operation is performed first on the instance in Chicago, and no dump file is created during the process.
For more information on imports via a network link, consult the Oracle Database 10g Utilities book in the Oracle documentation set.
Miss a tip?
Check out the Oracle archive, and catch up on our most recent Oracle tips.
TechRepublic's free Oracle newsletter, delivered each Wednesday, covers automating Oracle utilities, generating database alerts, solving directed graph problems, and more. Automatically subscribe today!
Bob Watkins (OCP, MCDBA, MCSE, MCT) is a computer professional with 25 years of experience as a technical trainer, consultant, and database administrator. Visit Bob's site.
White Papers, Webcasts, and Downloads
- Service Management Resource Center IBM Corp. This buyer's guide provides assistance in evaluating identity and access ... Download Now
- Enabling Device-Independent Mobility with Dynamic Virtual Clients Intel Intel IT is investigating a model where users can access their ... Download Now
- Nucleus Research Guidebook: Leveraging Value from SAP with IBM Cognos IBM Are you an SAP user preparing to invest in business intelligence (BI) or ... Download Now
- The Compelling Case for Conferencing Microsoft Organizations are looking for ways to improve their businesses while ... Download Now
- Volume Activation Planning Guide Microsoft Volume Activation helps Volume Licensing customers automate and manage the ... Download Now
Article Categories
- Security
- Security Solutions, IT Locksmith
- Networking and Communications
- E-mail Administration NetNote, Cisco Routers and Switches
- CIO and IT Management
- Project Management, CIO Issues, Strategies that Scale
- Desktops, Laptops & OS
- Windows 2000 Professional, Microsoft Word, Microsoft Excel, Microsoft Access, Windows XP,
- Data Management
- Oracle, SQL Server
- Servers
- Windows NT, Linux NetNote, Windows Server 2003
- Career Development
- Geek Trivia
- Software/Web Development
- Web Development Zone, Visual Basic, .NET
