可使用oracle静默安装,不需要图形界面,命令行配置安装,屡试不爽
安装CentOS7 (光盘安装)
安装前会报错,不影响安装:
ERST:无法获取错误日志地址范围
该错误可能是由bios版本引起的,有待考证开始正式安装
Install Centos 7 安装Centos7
Text this media & install Centos 7 测试并安装Centos7
Troubleshooting 修复故障(1)进入Troubleshooting模式,界面
Install CentOS 7 in basic graphics mod 基本图形化安装
Rescue a CentOS system 修复系统
Run a memory test 运行内存测试系统
Boot from local drive 本地设备启动
Return to main menu 返回主菜单(2)返回主菜单,选着第一项或者第二项均可,在此选择第一项,安装CentOS7操作系统,回车,进入下面的界面(等待过程可能会有checking ,比较慢,在此可以按esc跳过checking)
(3)选择语言:EnglishEnglish(United States) 美式英语
(4)进入一站式安装界面,在此界面,需要将所有带 内容的感叹号全部消除.便可进行安装
接下来开始配置系统:
LOCALIZATION
第一个DATE&TIME 选择 Asia,Shanghai(亚洲,上海),设置完毕点击左上角Done
第二个KEYBOARD 默认选择English(US),不需要做修改
第三个LANGUAGE SUPPORT 默认English(US),再添加一个中文,即可支持中文
SOFTWARE
第一个INSTALLATION SOURCE 本次为光盘安装,已默认,不做修改
第二个 SOFTWARE SELECTION 这是可以选择本次系统安装所安装的软件包,用户可以根据自己的需求来选择.本次安装为GHOME桌面版本,在右侧可以选择需要安装的软件包,
Backup client 备份客户端
GHOME Applocations GHOME应用程序
Internet Applocations 互联网应用程序
Legacy X Windows System Compatibility 传统X Windows 系统的兼容性
Office Suite and Productivity 办公套件和成产率
Smart Card Support 智能卡支持
Compatibility Libraries 兼容性程序
Decelopment Tools 开发工具
Security Tools 安全性工具
SYSTEM
第一个 INSTALLATION DESTINATION 安装位置,
本次安装四个硬盘全选,点击左上角Done,弹出窗口, 提示没有足够的空闲空间来进行安装,点击右下角 reclaim space 释放空间;
点击右下角,delete all 显示:
然后点击右下角reclaim space ,回收全部空间
释放全部空间, [感叹号] 符号消失
第二个KDUMP 保持默认,不做修改
kdump是在系统崩溃、死锁或者死机的时候用来转储内存运行参数的一个工具和服务如果系统一旦崩溃那么正常的内核就没有办法工作了,在这个时候将由kdump产生一个用于capture当前运行信息的内核,该内核会将此时的内存中的所有运行状态和数据信息收集到一个dump core文件中以便于Red Hat工程师分析崩溃原因,一旦内存信息收集完成,系统将自动重启。
第三个NETWORK&HOSTNAME 开启on 状态, 再点击左上角Done,目的是让系统能联网
安装前再次确认所选内容,然后点击右下角蓝色按键 ,开始安装
设置root用户的密码(也可以创建一个普通用户)
等待
安装完成后会确定时间和键盘风格
系统会提示新建一个普通用户,并输入两次密码
最后 欢迎来到Centos!
-----------------------------------------------很倔强的分割线---------------------------------------------
安装完Linux后,ip地址是默认的,我们可以根据自己的需要来更改ip
输入命令
[oacle@bogon root]$ vi /etc/sysconfig/network-scripts/ifcfg-enp6s0f0 ##名字由机器决定
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPVIPV66_ADDR_GEN_MODE=stable-privacy
NAME=enp6s0f0
UUID=ded33a93-8c68-45db-b0f4-b14f68469c9c
DEVICE=enp6s0f0
ONBOOT=yes
IPADDR=192.168.1.** ##一般来讲添加的三条
PREFIX=24
GATEWAY=192.168.1.1
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_PRIVACY=no
[oacle@bogon root]$ service network restart ##重启网络服务
[oacle@bogon root]$ifconfig ##查看当前ip
enp6s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.25 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::e03b:4825:dc5a:3ac0 prefixlen 64 scopeid 0x20<link>
ether 00:26:9e:b5:a1:ee txqueuelen 1000 (Ethernet)
RX packets 2058340 bytes 2930127005 (2.7 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1056632 bytes 67286864 (64.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xdf6e0000-df6fffff
enp6s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:26:9e:b5:a1:ef txqueuelen 1000 (Ethernet)
RX packets 43895 bytes 4072770 (3.8 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 39 bytes 5459 (5.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xdf660000-df67ffff
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 6797 bytes 408362 (398.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6797 bytes 408362 (398.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:09:db:99 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
-----------------------------------------------很倔强的分割线---------------------------------------------
安装oracle
[oacle@bogon root]$ su root ##首先切换到root用户
Password:
[root@bogon ~]# groupadd oinstall ##创建用户组oinstall
[root@bogon ~]# groupadd dba ##创建用户组dba
[root@bogon ~]# useradd -g oinstall -g dba -m oracle ##创建oracle,并加入到oinstall和dba用户组中
[root@bogon ~]# passwd oracle ##设置oracle用户的密码 若不设置,在Centos登录界面将无法登录
Changing password for user oracle.
New password: ##设置新密码
BAD PASSWORD: The password is shorter than 8 characters
Retype new password: ##再次确认密码
passwd: all authentication tokens updated successfully. ##表示设置成功
[root@bogon ~]# id oracle ##查看新用户
uid=1001(oracle) gid=1002(dba) groups=1002(dba)
为啥要创建oinstall用户组及dba组? 参考:
http://www.oracle.com/technetwork/cn/articles/hunter-rac11gr2-iscsi-2-092412-zhs.html#13
理论上单例按照需要3种用户组,实际只建两个oinstall和dba,后面再安装oracle数据库的时候把OSOPER组也设置是dba组。
a.oracle 清单组(一般为oinstall):
OINSTALL组的成员被视为Oracle 软件的“所有者”,拥有对 Oracle中央清单 (oraInventory) 的写入权限。在一个 Linux 系统上首次安装 Oracle 软件时,OUI 会创建 /etc/oraInst.loc 文件。该文件指定 Oracle 清单组的名称(默认为 oinstall)以及 Oracle 中央清单目录的路径。
b.数据库管理员(OSDBA,一般为 dba):
OSBDA 组的成员可通过操作系统身份验证使用SQL 以 SYSDBA身份连接到一个Oracle 实例。该组的成员可执行关键的数据库管理任务,如创建数据库、启动和关闭实例。该组的默认名称为dba。SYSDBA 系统权限甚至在数据库未打开时也允许访问数据库实例。对此权限的控制完全超出了数据库本身的范围。不要混淆 SYSDBA 系统权限与数据库角色 DBA。DBA 角色不包括 SYSDBA 或 SYSOPER 系统权限。
c.数据库操作员组(OSOPER,一般为 oper):
OSOPER 组的成员可通过操作系统身份验证使用 SQL 以 SYSOPER 身份连接到一个 Oracle 实例。这个可选组的成员拥有一组有限的数据库管理权限,如管理和运行备份。该组的默认名称为oper。SYSOPER 系统权限甚至在数据库未打开时也允许访问数据库实例。对此权限的控制完全超出了数据库本身的范围。要使用该组,选择 Advanced 安装类型来安装 Oracle 数据库软件。
-2-创建oracle数据库的安装目录:
[root@bogon ~]# mkdir -p /data/oracle ##oracle数据库安装目录
[root@bogon ~]# mkdir -p /data/oraInventory ##oracle数据库配置文件目录
[root@bogon ~]# mkdir -p /data/database ##oracle数据库软件包解压目录
[root@bogon ~]# cd /data
[root@bogon data]# chown -R oracle:oinstall /data/oraInventory ##设置目录所有者为oinstall用户组的oracle用户
[root@bogon data]# chown -R oracle:oinstall /data/oracle
[root@bogon data]# chown -R oracle:oinstall /data/database/
-3-修改OS系统标识
Oracle不支持CentOS系统安装
修改文件/etc/redhat-release
[root@bogon data]# cat /proc/version ##查看当前linux版本
Linux version 3.10.0-514.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Tue Nov 22 16:42:41 UTC 2016
[root@bogon data]# cat /etc/redhat-release ##查看redhat-release文件内容
CentOS Linux release 7.3.1611 (Core)
[root@bogon data]# vi /etc/redhat-release ##修改redhat-release,将内容更改为redhat-7
[root@bogon data]# cat /etc/redhat-release
redhat-7
-4-安装oracle数据库所需的软件包
binutils-2.23.52.0.1-12.el7.x86_64
compat-libcap1-1.10-3.el7.x86_64
gcc-4.8.2-3.el7.x86_64
gcc-c+±4.8.2-3.el7.x86_64
glibc-2.17-36.el7.i686
glibc-2.17-36.el7.x86_64
glibc-devel-2.17-36.el7.i686
glibc-devel-2.17-36.el7.x86_64
ksh
libaio-0.3.109-9.el7.i686
libaio-0.3.109-9.el7.x86_64
libaio-devel-0.3.109-9.el7.i686
libaio-devel-0.3.109-9.el7.x86_64
libgcc-4.8.2-3.el7.i686
libgcc-4.8.2-3.el7.x86_64
libstdc+±4.8.2-3.el7.i686
libstdc+±4.8.2-3.el7.x86_64
libstdc+±devel-4.8.2-3.el7.i686
libstdc+±devel-4.8.2-3.el7.x86_64
libXi-1.7.2-1.el7.i686
libXi-1.7.2-1.el7.x86_64
libXtst-1.2.2-1.el7.i686
libXtst-1.2.2-1.el7.x86_64
make-3.82-19.el7.x86_64
sysstat-10.1.5-1.el7.x86_64
第一个方法,一个一个命令,也不多,敲起来很刺激,要细心
[root@bogon data]# yum install libstdc++
第二个方法,配置yum本地源,参考:
-5-关闭防火墙,
[root@bogon data]# systemctl status firewalld.service 查看防火墙状态,运行中
irewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2017-09-06 14:29:53 CST; 3h 55min ago
Docs: man:firewalld(1)
Main PID: 985 (firewalld)
CGroup: /system.slice/firewalld.service
└─985 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
Sep 06 14:29:52 localhost.localdomain systemd[1]: Starting firewalld - dynami....
Sep 06 14:29:53 localhost.localdomain systemd[1]: Started firewalld - dynamic....
Hint: Some lines were ellipsized, use -l to show in full.
[root@bogon data]# systemctl stop firewalld.service 关闭防火墙
[root@bogon data]# systemctl status firewalld.service 再次查看防火墙状态
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Wed 2017-09-06 18:26:57 CST; 8s ago
Docs: man:firewalld(1)
Process: 985 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
Main PID: 985 (code=exited, status=0/SUCCESS)
Sep 06 14:29:52 localhost.localdomain systemd[1]: Starting firewalld - dynami....
Sep 06 14:29:53 localhost.localdomain systemd[1]: Started firewalld - dynamic....
Sep 06 18:26:56 bogon systemd[1]: Stopping firewalld - dynamic firewall daemon...
Sep 06 18:26:57 bogon systemd[1]: Stopped firewalld - dynamic firewall daemon.
Hint: Some lines were ellipsized, use -l to show in full.
[root@bogon data]# systemctl disable firewalld.service 禁止使用防火墙(重启也是禁止)
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
-6-关闭selinux
[root@bogon data]# vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled ##此处修改为disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
-7-修改内核参数
[root@bogon data]# vi /etc/sysctl.conf
[root@bogon data]# cat /etc/sysctl.conf
# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
#
# Vendors settings live in /usr/lib/sysctl.d/.
# To override a whole file, create a new file with the same in
# /etc/sysctl.d/ and put new settings there. To override
# only specific settings, add a file with a lexically later
# name in /etc/sysctl.d/ and put new settings there.
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
---------------------##此处为添加的##------------------------
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.rp_filter = 1
fs.file-max = 6815744 #设置最大打开文件数
fs.aio-max-nr = 1048576
kernel.shmall = 2097152 #共享内存的总量,8G内存设置:2097152*4k/1024/1024
kernel.shmmax = 2147483648 #最大共享内存的段大小
kernel.shmmni = 4096 #整个系统共享内存端的最大数
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500 #可使用的IPv4端口范围
net.core.rmem_default = 262144
net.core.rmem_max= 4194304
net.core.wmem_default= 262144
net.core.wmem_max= 1048576
vm.max_map_count=655360
---------------------##此处为添加的##------------------------
使配置参数生效
[root@bogon data]# sysctl -p
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.rp_filter = 1
sysctl: setting key "fs.file-max": Invalid argument
fs.file-max = 6815744 #设置最大打开文件数
fs.aio-max-nr = 1048576
sysctl: setting key "kernel.shmall": Invalid argument
kernel.shmall = 2097152 #共享内存的总量,8G内存设置:2097152*4k/1024/1024
sysctl: setting key "kernel.shmmax": Invalid argument
kernel.shmmax = 2147483648 #最大共享内存的段大小
sysctl: setting key "kernel.shmmni": Invalid argument
kernel.shmmni = 4096 #整个系统共享内存端的最大数
kernel.sem = 250 32000 100 128
sysctl: setting key "net.ipv4.ip_local_port_range": Invalid argument
net.ipv4.ip_local_port_range = 9000 65500 #可使用的IPv4端口范围
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
-8-对orcale用户设置限制,提高软件运行性能
[root@bogon data]# vi /etc/security/limits.conf
# /etc/security/limits.conf
#
#This file sets the resource limits for the users logged in via PAM.
#It does not affect resource limits of the system services.
#
#Also note that configuration files in /etc/security/limits.d directory,
#which are read in alphabetical order, override the settings in this
#file in case the domain is the same or more specific.
#That means for example that setting a limit for wildcard domain here
#can be overriden with a wildcard setting in a config file in the
#subdirectory, but a user specific setting here can be overriden only
#with a user specific setting in the subdirectory.
#
#Each line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - a user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
# - the wildcard %, can be also used with %group syntax,
# for maxlogin limit
#
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#
#<item> can be one of the following:
# - core - limits the core file size (KB)
# - data - max data size (KB)
# - fsize - maximum filesize (KB)
# - memlock - max locked-in-memory address space (KB)
# - nofile - max number of open file descriptors
# - rss - max resident set size (KB)
# - as - address space limit (KB)
# - maxlogins - max number of logins for this user
# - maxsyslogins - max number of logins on the system
# - priority - the priority to run user process with
# - locks - max number of file locks the user can hold
# - sigpending - max number of pending signals
# - msgqueue - max memory used by POSIX message queues (bytes)
# - nice - max nice priority allowed to raise to values: [-20, 19]
# - rtprio - max realtime priority
#
#<domain> <type> <item> <value>
#
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
---------------------##此处为添加的##------------------------
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
---------------------##此处为添加的##------------------------
# End of file
-9- 配置用户的环境变量
[root@bogon data]# vi /home/oracle/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
---------------------##此处为添加的##------------------------
export ORACLE_BASE=/data/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export ORACLE_SID=orcl
export ORACLE_TERM=xterm
export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export LANG=C
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
---------------------##此处为添加的##------------------------
[root@bogon oracle]# source /home/oracle/.bash_profile ##上述配置立即生效
-10-上传安装包,将oracle上传到/data/database
-11-解压安装包
[root@bogon oracle]#cd /data/database
[root@bogon database]#unzip linux.x64_11gR2_database_2of2.zip
[root@bogon database]#unzip linux.x64_11gR2_database_1of2.zip
[root@bogon database]# chown -R oracle:oinstall /data/database/database
正式安装oracle
跳转到database目录下
[root@bogon oracle]#cd /data/database/database
[root@bogon oracle]# su oracle 换回oracle用户进行安装
[oracle@bogon oracle]$./runInstaller 执行runInsraller
1.弹出界面,将中间的钩去掉,不需要自动接收Oracle的安全更新,Next
点击next会弹窗,点击yes
2.下一步,创建一个数据库,选择第一个, Next
3.本次安装oracle的服务端,选择第二个, Next
4.选择单例安装,前面的所有配置均为单例安装,Next
5.选择第二个,预安装,该类型安装里面会让用户设置不同的用户名和密码, Next
6.添加语言, Next
7.默认安装版本企业版-Enterprise Edition, Next
8.数据软件的安装路径,自动读取前面oracle环境变量中配置的值,可以不做修改, Next
9.路径一样会自动获取oracle环境变量里配置的值,GroupName选择dba, Next
10.使用dba用户组, Next
11.选择第一个,通用事务管理, Next
12.默认值,我们已设置好环境变量ORACLE_SID,所以此步无需修改, Next
13.可使用的最大内存,Oracle建议使用自动内存管理,点击第二个选项卡Character sets选择字符集
选择第二个,UTF-8作为数据库字符集, Next
14.根据需求,本次安装没有修改, Next
15.此步可选择数据文件的存储方式,我选了简单的文件系统,Next
16是否启用自动备份,在生产环境还是启用的好Next
17.为四个账户设置密码,设置完后,Next
18.安装检查, Next
19,这一步要按照最下面的提示一步一步检查,安装却缺少的包
Swap空[root@bogon ~]# free -m ##查看当前内存
total used free shared buff/cache available
Mem: 15875 867 161 12 14845 14586
Swap: 8063 0 8063一个名为swap的8G文件用于扩展swap空间
[root@bogon ~]# dd if=/dev/zero of=/home/swapbs=8192 count=8192000 回车等待
8192000+0 records in
8192000+0 records out
4194304000 bytes (4.2 GB) copied, 22.0697 s, 190 MB/s
[root@bogon ~]# mkswap /home/swap ##开启虚拟内存
Setting up swapspace version 1, size = 8710620 KiB
no label, UUID=b1c1ec6b-c6db-4206-8d75-dc7aa52f8306
[root@bogon ~]# swapon /home/swap ##启用虚拟内存
swapon: /home/swap: insecure permissions 0644, 0600 suggested.
[root@bogon ~]# free -m
total used free shared buff/cache available
Mem: 15875 870 165 12 14839 14584
Swap: 16570 0 16570
20.依次检查包, 下载缺少的包,由于版本问题一些包下不到,便可以勾上右上角忽略全部, Next
21.Finish
等待……安装过程会出现一些警告,但是显示不全,暂且先鼠标右键close或者点确定,安装结束再看日志.
22.等待安装的过程中会弹出一个小窗口并且不能操作,当时很奇怪,后来查寻得知
是一个拷贝过程的进度条,等一会就行
23.进度条到头就会出现新的弹窗,点ok,
24.点完ok会出现第二个弹窗继续点ok
25.最后会出现这个弹窗,在终用root用户执行这两个命令,然后点ok
26.最后提示安装成功
27.登录网址http://lyylapp:1158.em
并用system用户登录,oracle安装成功,
然后在命令行输lsnrctl status 判断监听器的状态,如果没有监听器,则需要配置监听器
---------------------------------------------又一条顽皮的分割线------------------------------------------
配置监听器
[root@bogon ~]# netca ##如果执行netca 报错
原因:安装操作系统的默认主机名是localhost造成的错误
[root@bogon ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
[root@bogon ~]# vi /etc/hosts ##增加lyylapp
[root@bogon ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 odb-sonny
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.25 lyylapp
[root@bogon ~]# hostname lyylapp ##执行
在执行代码
[root@bogon ~]#netca ##页面正常,配置监听器
若服务没有监听,可以修改监听文件,文件为 $ORACLE_HOME/network/admin/listrener.ora
参考下面代码:
LISTENER =
(DESCRIPTION_LIST=
(DESCRIPTION =
(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.**)(PORT=1521))
)
)
ADR_BASE_LISTENER = /data/oracle
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /home/oracle/app/product/11.2.0/dbhome_1)
(SID_NAME = orcl)
)
)
最后,在只能ssh登陆服务器的情况下,推荐使用
静默安装,省时省力