当前位置:网站首页>Solve the problem that Oracle needs to set IP every time in the virtual machine
Solve the problem that Oracle needs to set IP every time in the virtual machine
2022-04-23 13:12:00 【ArchieSean】
The blogger's name is taken from 《 Shaun the Sheep 》 Shawn the lamb in the , The name is : Sean , Transliterated as Sean, Take your own last name : Archie , In order to conform to our reading habits , Connected to form ArchieSean. Bloggers aim to build blogs into a technology stack for personal online notes , Be convenient for yourself and others . If there are any mistakes in the blog , Please point out , Thank you. .
I installed it on the local virtual machine Oracle, But when using graphical tools to link , Every time I need to set up a virtual machine ip To oracle Go to the file of , To solve this problem , You can use the computer name instead of the original ip
- To configure listener
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = Computer name )(PORT = 1521))
)
)
- To configure tnsnames
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Computer name )(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
Another solution
- First, we can set vm Of ip It's static ip, The modification steps are as follows

Do a few operations in this picture :
(1) Choose vm8, Click change settings
(2) Modify subnet IP And subnet mask
(3) Click on NAT Set up , Set up the gateway , Here's the picture

here , The static state of the virtual machine ip Setup completed , You can turn on the virtual machine , Set up the ip. What I use here is win7 Virtual machine ( Installed Oracle), The modification steps are as follows :
- Open the network and Sharing Center
- Change adapter settings
- Click local connection , Right click Properties
- Find... In attributes IPV4 Editing , Here's the picture

Click ok , The advantage of this is , In the use of Oracle When , adopt PL/SQL When the connection , You can configure fixed ip To connect , You don't have to view the virtual machine every time ip Address and then establish a connection , It's more convenient .
If there are any questions , Please comment ..
版权声明
本文为[ArchieSean]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231306322375.html
边栏推荐
- [wechat applet] flex layout usage record
- STD:: shared of smart pointer_ ptr、std::unique_ ptr
- Golang implements MD5, sha256 and bcrypt encryption
- Kernel error: no rule to make target 'Debian / canonical certs pem‘, needed by ‘certs/x509_ certificate_ list‘
- Temperature and humidity monitoring + timing alarm system based on 51 single chip microcomputer (C51 source code)
- Important knowledge of transport layer (interview, retest, final)
- C语言之字符串与字符数组的区别
- Hanlp word splitter (via spark)
- 2020最新Android大厂高频面试题解析大全(BAT TMD JD 小米)
- Office 2021 installation package download and activation tutorial
猜你喜欢

C语言之字符串与字符数组的区别

The use of dcast and melt in R language is simple and easy to understand

Recovering data with MySQL binlog

Imx6ull QEMU bare metal tutorial 1: GPIO, iomux, I2C

9419页最新一线互联网Android面试题解析大全

【动态规划】221. 最大正方形

The filter() traverses the array, which is extremely friendly

【官宣】长沙软件人才实训基地成立!

MySQL -- 16. Data structure of index

EMMC / SD learning notes
随机推荐
mui 关闭其他页面,只保留首页面
Byte jump 2020 autumn recruitment programming question: quickly find your own ranking according to the job number
GIS practical tips (III) - how to add legend in CASS?
【行走的笔记】
MySQL5.5安装教程
Imx6ull QEMU bare metal tutorial 1: GPIO, iomux, I2C
STD:: shared of smart pointer_ ptr、std::unique_ ptr
鸿蒙系统是抄袭?还是未来?3分钟听完就懂的专业讲解
Hbuilderx + uniapp packaging IPA submission app store stepping on the pit
hbuilderx + uniapp 打包ipa提交App store踩坑记
数据仓库—什么是OLAP
Nodejs + Mysql realize simple registration function (small demo)
The use of dcast and melt in R language is simple and easy to understand
Data warehouse - what is OLAP
FatFs FAT32 learning notes
超40W奖金池等你来战!第二届“长沙银行杯”腾讯云启创新大赛火热来袭!
Design of body fat detection system based on 51 single chip microcomputer (51 + OLED + hx711 + US100)
「玩转Lighthouse」轻量应用服务器自建DNS解析服务器
web三大组件之Filter、Listener
ESP32 VHCI架构传统蓝牙设置scan mode,让设备能被搜索到