Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

Perform Export and import with database link.

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • User AvatarKiran Dalvi
  • 18 Oct, 2023
  • 0 Comments
  • 1 Min Read

Perform Export and import with database link.

What is database Link ? 
A database link is a connection from the Oracle database to another remote database. The remote database can be an Oracle Database or any ODBC-compliant database such as SQL Server or MySQL.

STEP 1: Configure Static Listener

Make entries of both database on tnsnames.ora file

On Source Database

vi

$ORACLE_HOME/network/admin/listener.ora——————–(make both database
entry)



vi
$ORACLE_HOME/network/admin/tnsnames.ora



On Target Database:
Make same entries in listener.ora and tnsnames.ora file as source database as above.
 
START LISTENER
lsnrctl start
lsnrctl status———————————-should be ready
Check connection between both database
From source ping target and from target ping source database.

STEP 2:

On source database create schema which you have to backup / you can go with existing schema also. Grant dba permission to schema — it is not necessarygarnt according to your requirement.


 

STEP 3: ON TARGET DATABASE Create directory
1
2
mkdir –p /data/dump_area
SQL> create or replace directory test_dir as ‘/data/dump_area’;
CREATE DATABASE LINK
Connect to target database and from pdb level create Database link
1
2
3
CREATE DATABASE LINK <LinkName> CONNECT TO <User> IDENTIFIED BY <Password> USING<ConnectionString>;
 
SQL> create database link remote connect to system identified by oracle using ‘pdbprim’;

STEP-4
With the DBlink we did not need to take export it will perform automatically.
IMPORT STEP
1
Impdp schemas=u2 directory=test_dir logfile=link_remote.log network_link=remote

Hope it Helps!