当前位置:网站首页>oracle中dblink操作
oracle中dblink操作
2022-06-11 23:14:00 【爱人间】
1、创建dblink
create public database link dblinkname
connect to user identified by passwd
using '(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = ip)(PORT = 1521)))
(CONNECT_DATA = (SERVICE_NAME = servicename)))';
其中可自定义参数
dblinkname - dblink远程连接名称
user - 远程数据库用户名
passwd - 远程数据库密码
IP - 远程数据库IP地址
1521 - Oracle默认端口
servicename - 远程数据库服务名
2、查询dblink
select owner,object_name from dba_objects where object_type='DATABASE LINK';--只查询权限和dblink名称
select * from dba_db_links;--查询dblink的所有信息,包含权限,dblink名称,用户名,host,创建时间
3、访问测试
select * from [email protected]的名字
4、删除dbilnk
drop public database link dblink名称;--删除权限为public的dblink
drop database link dblink名称;--删除权限为私有的dblink
边栏推荐
- Deconstruction of volatile | community essay solicitation
- MySQL 8.0 解压版安装教程
- A new product with advanced product power, the new third generation Roewe rx5 blind subscription is opened
- Here we go! Dragon lizard community enters PKU classroom
- 【Day6-7 文献精读】A unifying Bayesian framework accounting for spatiotemporal interferences with a ...
- Leetcode must review 20 lintcode (5466421166978227)
- 【Day4 文献精读】Space–time interdependence: Evidence against asymmetric mapping between time and space
- Unity3d C#开发微信小游戏音频/音效播放问题解决过程分享
- Wireless communication comparison of si4463, si4438 and Si4432 schemes of wireless data transmission module
- 【Day3 文献精读】Asymmetrical time and space interference in Tau and Kappa effects
猜你喜欢

Here we go! Dragon lizard community enters PKU classroom

Are you still struggling with the gold content of PMP

Inventory | more than 20 typical security incidents occurred in February, with a loss of nearly $400million

Deconstruction of volatile | community essay solicitation

2022年安全员-A证考题模拟考试平台操作

Super Codex from the open source world, the authoritative release of China's open source Codex list!

2022年安全员-A证考题模拟考试平台操作

The second bullet of in-depth dialogue with the container service ack distribution: how to build a hybrid cloud unified network plane with the help of hybridnet

2022 R1 quick opening pressure vessel operation test questions and online simulation test

Why can't Google search page infinite?
随机推荐
GMN of AI medicine article interpretation
2022年安全员-B证理论题库及模拟考试
我的创作纪念日
Stack (C language)
What are the pitfalls of redis's current network: using a cache and paying for disk failures?
Huawei cloud, OBS
Inventory | more than 20 typical security incidents occurred in February, with a loss of nearly $400million
Jetpack architecture component learning (3) -- activity results API usage
Meetup review how Devops & mlops solve the machine learning dilemma in enterprises?
Google搜索為什麼不能無限分頁?
小程序启动性能优化实践
[technology sharing] after 16 years, how to successfully implement the dual active traffic architecture of zhubajie.com
Are you still struggling with the gold content of PMP
Some problems about Tencent domain name resolution and Alibaba cloud server
双向带头循环链表(C语言)
How to make scripts executable anywhere
Analysis on the market prospect of smart home based on ZigBee protocol wireless module
2022 low voltage electrician certificate and online simulation examination
一文读懂Logstash原理
mysql——find_in_set用法