当前位置:网站首页>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
边栏推荐
- These vscode extensions are my favorite
- R语言中dcast 和 melt的使用 简单易懂
- Mui close other pages and keep only the first page
- 你和42W奖金池,就差一次“长沙银行杯”腾讯云启创新大赛!
- MySQL 8.0.11下载、安装和使用可视化工具连接教程
- Proteus 8.10 installation problem (personal test is stable and does not flash back!)
- mui picker和下拉刷新冲突问题
- 7_Addmodule和基因加和法add 得到的细胞类型打分在空间上空转对比
- Analysis of the latest Android high frequency interview questions in 2020 (BAT TMD JD Xiaomi)
- Wu Enda's programming assignment - logistic regression with a neural network mindset
猜你喜欢
[51 single chip microcomputer traffic light simulation]
FatFs FAT32 learning notes
100 lectures on practical application cases of Excel (VIII) - report connection function of Excel
[untitled] PID control TT encoder motor
hbuilderx + uniapp 打包ipa提交App store踩坑记
1130 - host XXX is not allowed to connect to this MySQL server error in Navicat remote connection database
Vscode tips
Custom nail robot alarm
Important knowledge of network layer (interview, reexamination, term end)
你和42W奖金池,就差一次“长沙银行杯”腾讯云启创新大赛!
随机推荐
4.22学习记录(你一天只做了水题是吗)
JDBC connection pool
缘结西安 | CSDN与西安思源学院签约,全面开启IT人才培养新篇章
mui + hbuilder + h5api模拟弹出支付样式
Translation of attention in natural language processing
Metalama简介4.使用Fabric操作项目或命名空间
将opencv 图片转换为字节的方式
three.js文字模糊问题
mui 关闭其他页面,只保留首页面
AUTOSAR from introduction to mastery 100 lectures (86) - 2F of UDS service foundation
Office 2021 installation package download and activation tutorial
nodejs + mysql 实现简单注册功能(小demo)
7_ The cell type scores obtained by addmodule and gene addition method are compared in space
Async void caused the program to crash
8086 of x86 architecture
How to convert opencv pictures to bytes
[wechat applet] flex layout usage record
Use Proteus to simulate STM32 ultrasonic srf04 ranging! Code+Proteus
Byte warehouse intern interview SQL questions
这几种 VSCode 扩展是我最喜欢的