RHEL/CentOs 6.x
# cd /etc/yum.repos.d
# wget https://public-yum.oracle.com/public-yum-ol6.repo
RHEL/CentOs 5.x
# cd /etc/yum.repos.d
# wget https://public-yum.oracle.com/public-yum-el5.repo
RHEL/CentOs 4.x
# cd /etc/yum.repos.d
# wget https://public-yum.oracle.com/public-yum-el4.repo
Now perform the following “yum” command to install all the necessary prerequisites automatically.
[root@oracle]# yum install oracle-rdbms-server-11gR2-preinstall
While importing GPG key, you might get “GPG key retrieval failed” error as shown below. Here, you need to import proper GPG key for your OS release.
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Download and verify the appropriate Oracle Linux GPG Key that best matches your RHEL/CentOS compatible OS release.
RHEL/CentOs 6.x
# wget https://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
RHEL/CentOs 5.x
# wget https://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
RHEL/CentOs 4.x
# wget https://public-yum.oracle.com/RPM-GPG-KEY-oracle-el4 -O /usr/share/rhn/RPM-GPG-KEY-oracle
Step 2: Setting Hostname
Open the “/etc/sysconfig/network” file and modify the HOSTNAME to match your FQDN (Fully Qualified Domain Name) host name.
[root@oracle]# vi /etc/sysconfig/network
HOSTNAME=oracle.tecmint.com
Open “/etc/hosts” file and add fully qualified hostname for the server.
[root@oracle]# vi /etc/hosts
192.168.246.128 oracle.tecmint.com oracle
Now you need to restart networking on the server to make sure that changes will be persistent on reboot.
[root@oracle]# /etc/init.d/network restart
Step 3: Oracle User Settings
Set the password for the “oracle” user.
[root@oracle]# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: it is based on a dictionary word
Retype new password:
passwd: all authentication tokens updated successfully.
oralce安装完成,以后基本操作是要知道的。
一.启动
1.#su - oracle 切换到oracle用户且切换到它的环境
2.$lsnrctl status 查看监听及数据库状态
3.$lsnrctl start 启动监听
4.$sqlplus / as sysdba 以DBA身份进入sqlplus
5.SQL>startup 启动db
二.停止
1.#su - oracle 切换到oracle用户且切换到它的环境
2.$lsnrctl stop 停止监听
3.$sqlplus / as sysdba 以DBA身份进入sqlplus
4.SQL>SHUTDOWN IMMEDIATE 关闭db
emctl start dbconsole
分享到:
相关推荐
linux oracle 远程连接oracle服务器时,客服端机器需要安装imp exp命令才可以操作操作数据库导入/导出数据
linux oracle 12c 安装教程
Linux Oracle11g 64位 安装包的百度云下载链接,
Linux oracle重建EM,用于oracle 10g版本
Linux下windows64位 oracle12C安装包 winx64_12102_database_1of2.zip winx64_12102_database_2of2.zip
linux oracle 安装错误解决方法
linux Oracle 19C
Linux oracle 自动备份脚本,学习了
linux oracle jdk 8安装包
linux oracle 建表,表空间以及删除命令
通用Linux Oracle 64位客户端,在OpenSuse 13.2上测试通过,包含以下四个文件: 1.oracle-instantclient11.2-basic-11.2.0.1.0-1.x86_64.rpm 2.oracle-instantclient11.2-devel-11.2.0.1.0-1.x86_64.rpm 3.oracle-...
Linux简介 Linux命令 Linux远程连接工具 Oracle在linux下的安装 Oracle相关配置 Oracle常用命令 PL/SQL连接oracle 问题总结
描述如何在Linux 安装oracle 9i,图文并茂。从网上整理的,非原创。
Linux Oracle下sqlplus无法使用命令退格删除和历史记录的解决方法(使用rlwrap) 附件中有解决方法的具体步骤
linux oracle安装步骤,很详细了
Linux Oracle11.2.0.4安装包全集Linux版本,免去官网下载的大部分时间。百度云盘链接
red hat linux Server4下rac搭建过程。详细展示oracle rac在linux系统环境下如何搭建。
linux oracle10g 详细安装教程
linux oracle创建用户,表空间 资料