当前位置:网站首页>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
边栏推荐
- jmeter操作redis
- STM32 tracking based on open MV
- Important knowledge of transport layer (interview, retest, final)
- AUTOSAR from introduction to mastery 100 lectures (51) - AUTOSAR network management
- 「玩转Lighthouse」轻量应用服务器自建DNS解析服务器
- Scons build embedded ARM compiler
- 叮~ 你的奖学金已到账!C认证企业奖学金名单出炉
- MySQL5.5安装教程
- Mui + hbuilder + h5api simulate pop-up payment style
- pyqt5 将opencv图片存入内置SQLlite数据库,并查询
猜你喜欢

CMSIS cm3 source code annotation

nodejs + mysql 实现简单注册功能(小demo)

Imx6ull QEMU bare metal tutorial 2: usdhc SD card

AUTOSAR from introduction to mastery 100 lectures (52) - diagnosis and communication management function unit

vscode小技巧

filter()遍历Array异常友好

Design and manufacture of 51 single chip microcomputer solar charging treasure with low voltage alarm (complete code data)

缘结西安 | CSDN与西安思源学院签约,全面开启IT人才培养新篇章

9419 page analysis of the latest first-line Internet Android interview questions

ESP32 VHCI架构传统蓝牙设置scan mode,让设备能被搜索到
随机推荐
Important knowledge of transport layer (interview, retest, final)
MySQL basic statement query
Introduction to metalama 4 Use fabric to manipulate items or namespaces
Imx6ull QEMU bare metal tutorial 2: usdhc SD card
SSM整合之pom.xml
uniapp image 引入本地图片不显示
51 single chip microcomputer stepping motor control system based on LabVIEW upper computer (upper computer code + lower computer source code + ad schematic + 51 complete development environment)
基于uniapp异步封装接口请求简介
Request和Response及其ServletContext总结
7_ The cell type scores obtained by addmodule and gene addition method are compared in space
Navicat远程连接数据库 出现 1130- Host xxx is not allowed to connect to this MySQL server错误
内核错误: No rule to make target ‘debian/canonical-certs.pem‘, needed by ‘certs/x509_certificate_list‘
SQL exercise question 1
MySQL -- 16. Data structure of index
Melt reshape decast long data short data length conversion data cleaning row column conversion
nodeJs + websocket 循环小案例
4.22学习记录(你一天只做了水题是吗)
100 lectures on practical application cases of Excel (VIII) - report connection function of Excel
three. JS text ambiguity problem
【官宣】长沙软件人才实训基地成立!