基于docker搭建oracle服务器
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
免费下载资源
·
拉取镜像
docker pull wnameless/oracle-xe-11g
这个比较耗时,中间可能会中断,继续拉取即可
启动实例
注意将selinux关掉,不然实例启动失败
修改/etc/selinux/config文件,设置为disable
# disabled - No SELinux policy is loaded.
SELINUX=disable
启动
docker run -d -p 49160:22 -p 49161:1521 wnameless/oracle-xe-11g
49160是ssh访问端口,初始密码admin
49161是数据库访问端口
实例信息
hostname: localhost
port: 49161
sid: xe
username: system/sys
password: oracle
至此服务端安装完成
客户端访问
Oracle 11G Client 客户端安装步骤(图文详解)
http://blog.csdn.net/lanchengxiaoxiao/article/details/39251947
安装完成client,启动pl-sql
设置oracle安装路径
然后登录页会出现
配置服务名
也可以直接写文件oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora
# tnsnames.ora Network Configuration File: F:\installsoft\oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
XE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.201)(PORT = 49161))
)
(CONNECT_DATA =
(SERVICE_NAME = xe)
)
)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
当然也可以直接用ip和端口访问
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
已为社区贡献2条内容
所有评论(0)