SlideShare a Scribd company logo
DISTRIBUTED
DATABASE WITH
ORACLE SQL DEVELOPER
Modify admin filesPART 01
Local & Remote DatabasePART 02
Create database linkPART 03
Query FormatPART 04
Contents
Modify OracleXE Admin Files
1. Go to this location:
C:oraclexeapporacleproduct11.2.0servernetworkADMIN
3. Add your IP to the listener.ora
2. Modify these files
listener.ora
tnsnames.ora
4. Add remote databases ip in tnsnames.ora
listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = XE)
(ORACLE_HOME = C:oraclexeapporacleproduct11.2.0server)
)
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:oraclexeapporacleproduct11.2.0server)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:oraclexeapporacleproduct11.2.0server)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = your_desktop_name_here )(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = your_network_ip_here )(PORT = 1521))
)
)
DEFAULT_SERVICE_LISTENER = (XE)
tnsnames.ora
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = DESKTOP-PHFRTLE)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = remote_database_ip_here )(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)
Add Local And Remote Databases
1. Create a local user connection
2. Add a remote user connection
CREATE DATABASE LINK
database_link_here
CONNECT TO remote_username_here
IDENTIFIED BY "remote_password"
USING
'(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST= remote_user_ip_here )
(PORT=1521))
(CONNECT_DATA=
(SID=xe)))';
1. Run the query to local user sql worksheet
This will help to run query in remote database.
Create Database Link
Run query
Query fromat
SELECT *
FROM local_table, remote_table@DATABASE_LINK_NAME

More Related Content

PDF
Oracle database hot backup and recovery
DOCX
Creating a physical standby database 11g on windows
PPT
Oracle Golden Gate
DOCX
Oracle optach update
PDF
Are You Ready for 12c? Data Migration and Upgrade Best Practices
PPTX
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracaleDriver
DOC
Schema replication using oracle golden gate 12c
PDF
Oracle 12c RAC Database Software Install and Create Database
Oracle database hot backup and recovery
Creating a physical standby database 11g on windows
Oracle Golden Gate
Oracle optach update
Are You Ready for 12c? Data Migration and Upgrade Best Practices
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracaleDriver
Schema replication using oracle golden gate 12c
Oracle 12c RAC Database Software Install and Create Database

What's hot (20)

PDF
12c on RHEL7
DOCX
Oracle upgrade
PDF
IRS_DGP_Modernization_Oracle_DB_Naming_Stds
PDF
Standby db creation commands
DOCX
Advanced installation 12c rac
DOCX
Upgrade EBS DB from 11g to 12c.
PPTX
Odv oracle customer_demo
PDF
Oracle Database 11g Product Family
 
PDF
Ebs clone r12.2.4
PDF
Oracle api gateway installation as cluster and single node
PDF
Database decommission process
PDF
MindMap - Forensics Windows Registry Cheat Sheet
PDF
Network Analysis Automation In OpenStack
PDF
576 oracle-dba-interview-questions
PPT
Registry Forensics
PDF
Long Tail Treasure Trove
PDF
Oracle Data Guard Physical Standby Configuration
DOCX
Migrate from database file system to asm
PPTX
Tde oracle customer_demo
PPT
Oracle training institutes in hyderabad
12c on RHEL7
Oracle upgrade
IRS_DGP_Modernization_Oracle_DB_Naming_Stds
Standby db creation commands
Advanced installation 12c rac
Upgrade EBS DB from 11g to 12c.
Odv oracle customer_demo
Oracle Database 11g Product Family
 
Ebs clone r12.2.4
Oracle api gateway installation as cluster and single node
Database decommission process
MindMap - Forensics Windows Registry Cheat Sheet
Network Analysis Automation In OpenStack
576 oracle-dba-interview-questions
Registry Forensics
Long Tail Treasure Trove
Oracle Data Guard Physical Standby Configuration
Migrate from database file system to asm
Tde oracle customer_demo
Oracle training institutes in hyderabad
Ad

Similar to Distrubuted database connection with oracle (20)

PDF
How to create a non managed standby database
PDF
Maa wp-10g-racprimaryracphysicalsta-131940
PDF
Oracle applications 11i hot backup cloning with rapid clone
DOC
Oracle applications 11i hot backup cloning with rapid clone
DOCX
Oracle 12cR2 RAC Database Software Installation and Create Database
PDF
Migrate database to Exadata using RMAN duplicate
PDF
SQL2SPARQL
PDF
Oracle Enterprise Manager 12c - OEM12c Presentation
PPT
ora_sothea
PPTX
Convert single instance to RAC
PPTX
PHP Oracle
PPTX
Oracle Goldengate Architecture & Setup.pptx
PDF
Let your DBAs get some REST(api)
PPTX
Ordina Oracle Open World
PPTX
E business suite r12.2 changes for database administrators
PPTX
E business suite r12.2 changes for database administrators
PDF
Data Base Upgrade
PDF
Create a Database Application Development Environment with Docker
PDF
Step-by-Step: APEX Installation on Tomcat (Windows Server 2016)
PPT
TopicMapReduceComet log analysis by using splunk
How to create a non managed standby database
Maa wp-10g-racprimaryracphysicalsta-131940
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
Oracle 12cR2 RAC Database Software Installation and Create Database
Migrate database to Exadata using RMAN duplicate
SQL2SPARQL
Oracle Enterprise Manager 12c - OEM12c Presentation
ora_sothea
Convert single instance to RAC
PHP Oracle
Oracle Goldengate Architecture & Setup.pptx
Let your DBAs get some REST(api)
Ordina Oracle Open World
E business suite r12.2 changes for database administrators
E business suite r12.2 changes for database administrators
Data Base Upgrade
Create a Database Application Development Environment with Docker
Step-by-Step: APEX Installation on Tomcat (Windows Server 2016)
TopicMapReduceComet log analysis by using splunk
Ad

Recently uploaded (20)

PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Introduction to Artificial Intelligence
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
ai tools demonstartion for schools and inter college
PPTX
Essential Infomation Tech presentation.pptx
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Understanding Forklifts - TECH EHS Solution
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Reimagine Home Health with the Power of Agentic AI​
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Introduction to Artificial Intelligence
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
ai tools demonstartion for schools and inter college
Essential Infomation Tech presentation.pptx
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Upgrade and Innovation Strategies for SAP ERP Customers
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
How to Choose the Right IT Partner for Your Business in Malaysia
Understanding Forklifts - TECH EHS Solution
How to Migrate SBCGlobal Email to Yahoo Easily
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Design an Analysis of Algorithms II-SECS-1021-03
CHAPTER 2 - PM Management and IT Context
VVF-Customer-Presentation2025-Ver1.9.pptx
Odoo POS Development Services by CandidRoot Solutions
Operating system designcfffgfgggggggvggggggggg
Reimagine Home Health with the Power of Agentic AI​
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx

Distrubuted database connection with oracle

  • 2. Modify admin filesPART 01 Local & Remote DatabasePART 02 Create database linkPART 03 Query FormatPART 04 Contents
  • 3. Modify OracleXE Admin Files 1. Go to this location: C:oraclexeapporacleproduct11.2.0servernetworkADMIN 3. Add your IP to the listener.ora 2. Modify these files listener.ora tnsnames.ora 4. Add remote databases ip in tnsnames.ora
  • 4. listener.ora SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = XE) (ORACLE_HOME = C:oraclexeapporacleproduct11.2.0server) ) (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = C:oraclexeapporacleproduct11.2.0server) (PROGRAM = extproc) ) (SID_DESC = (SID_NAME = CLRExtProc) (ORACLE_HOME = C:oraclexeapporacleproduct11.2.0server) (PROGRAM = extproc) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) (ADDRESS = (PROTOCOL = TCP)(HOST = your_desktop_name_here )(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = your_network_ip_here )(PORT = 1521)) ) ) DEFAULT_SERVICE_LISTENER = (XE)
  • 5. tnsnames.ora XE = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = DESKTOP-PHFRTLE)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE) ) ) EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) ) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO) ) ) ORACLR_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) ) (CONNECT_DATA = (SID = CLRExtProc) (PRESENTATION = RO) ) ) (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = remote_database_ip_here )(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE) ) )
  • 6. Add Local And Remote Databases 1. Create a local user connection 2. Add a remote user connection
  • 7. CREATE DATABASE LINK database_link_here CONNECT TO remote_username_here IDENTIFIED BY "remote_password" USING '(DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST= remote_user_ip_here ) (PORT=1521)) (CONNECT_DATA= (SID=xe)))'; 1. Run the query to local user sql worksheet This will help to run query in remote database. Create Database Link
  • 8. Run query Query fromat SELECT * FROM local_table, remote_table@DATABASE_LINK_NAME