在Ubuntu上安装Oracle数据库可以通过多种方式实现,以下是使用一键安装脚本的方法:
root@ubuntu22:/soft# cat /etc/os-release
pretty_name="ubuntu 22.04.4 lts"
name="ubuntu"
version_id="22.04"
version="22.04.4 lts (jammy jellyfish)"
version_codename=jammy
id=ubuntuid_like=debian
home_url="https://www.ubuntu.com/"
support_url="https://help.ubuntu.com/"
bug_report_url="https://bugs.launchpad.net/ubuntu/"
privacy_policy_url="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
ubuntu_codename=jammy
root@ubuntu22:/soft# ip a
2: ens160: <broadcast,multicast,up,lower_up> mtu 1500 qdisc mq state up group default qlen 1000 link/ether 00:0c:29:e9:de:06 brd ff:ff:ff:ff:ff:ff altname enp3s0 inet 192.168.6.123/24 brd 192.168.6.255 scope global dynamic noprefixroute ens160 valid_lft 84800sec preferred_lft 84800sec inet6 fe80::d5b7:70e3:c953:9b59/64 scope link noprefixroute valid_lft forever preferred_lft forever
root@ubuntu22:/soft# ping www.baidu.com
PING www.baidu.com (180.101.50.188) 56(84) bytes of data.
64 bytes from 180.101.50.188 (180.101.50.188): icmp_seq=1 ttl=53 time=5.32 ms
64 bytes from 180.101.50.188 (180.101.50.188): icmp_seq=2 ttl=53 time=5.24 ms
64 bytes from 180.101.50.188 (180.101.50.188): icmp_seq=3 ttl=53 time=5.75 ms
64 bytes from 180.101.50.188 (180.101.50.188): icmp_seq=4 ttl=53 time=5.79 ms
64 bytes from 180.101.50.188 (180.101.50.188): icmp_seq=5 ttl=53 time=5.91 ms
64 bytes from 180.101.50.188 (180.101.50.188): icmp_seq=6 ttl=53 time=5.76 ms
root@ubuntu22:/soft# ls -l
-rwx------ 1 root root 3059705302 Jun 6 12:21 linux.x64_193000_db_home.zip
-rwxr-xr-x 1 root root 218544 Jun 6 12:20 oracleshellinstall
# 根据脚本 readme 或者 -h 命令提示,编辑好一键安装命令,进入 /soft 目录执行安装:
./oracleshellinstall -lf ens160 `# local ip ifname` -n ubuntu22 `# hostname` -op oracle `# oracle password` -d /u01 `# </
请注意,以上步骤可能因具体的Ubuntu版本和Oracle版本而有所不同。建议参考Oracle官方文档以获取最准确的安装指南。
辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读: ubuntu怎么调整字体大小