oracle卸载步骤教程 oracle彻底卸载并重装( 二 )

9.静默安装Oracle 11gR2操作用户:oracle操作目录:/home/oracle/database
./runInstaller-silent-ignoreSysPrereqs-responseFile/home/oracle/db_install.rsp接下来,就是默默的等待Oracle自行安装了,等待一段时间后,如果输出如下信息,则表明Oracle数据库已经安装成功 。
Thefollowingconfigurationscriptsneedtobeexecutedasthe"root"user.#!/bin/sh#Rootscriptstorun/home/oracle/tools/oraInventory/orainstRoot.sh/home/oracle/tools/oracle11g/product/11.2.0/dbhome_1/root.shToexecutetheconfigurationscripts:1.Openaterminalwindow2.Loginas"root"3.Runthescripts4.Returntothiswindowandhit"Enter"keytocontinueSuccessfullySetupSoftware.10.安装完成操作用户:root
根据上一步完成信息提示,执行以下两行命令,具体位置需要根据你的安装位置决定:
/home/oracle/tools/oraInventory/orainstRoot.sh/home/oracle/tools/oracle11g/product/11.2.0/dbhome_1/root.sh11.创建连接用户操作用户:oracle
sqlplus/nologconn/assysdbastartup接下来,执行如下命令 。
alterusersystemidentifiedbysystem;alterusersysidentifiedbysys;创建连接用户 。
createuserSYNCidentifiedbySYNC;grantconnect,resource,dbatoSYNC;验证安装结果1.启动数据库启动已经安装的数据库orcl 。
操作用户oracle
sqlplus/nolog使用dba权限连接Oralce
connect/assysdba启动数据库
startup确认启动结果:
ORACLEinstancestarted.TotalSystemGlobalArea534462464bytesFixedSize2215064bytesVariableSize373293928bytesDatabaseBuffers150994944bytesRedoBuffers7958528bytesDatabasemounted.Databaseopened.2.验证数据库这里,我们使用Navicat连接Oracle数据库,如下所示 。

oracle卸载步骤教程 oracle彻底卸载并重装


oracle卸载步骤教程 oracle彻底卸载并重装


oracle卸载步骤教程 oracle彻底卸载并重装


可以看到,Oracle数据库连接成功 。
手动卸载Oracle1.停止监听[oracle@binghe101~]$lsnrctlstop[oracle@binghe101~]$lsnrctlstatus2.停止数据库[oracle@binghe101~]$sqlplus/assysdbaSQL>shutdownimmediate3.删除oracle的inventory 目录[root@binghe101app]#rm-rf/home/oracle/tools/oraInventory/4.删除Oracle的base目录下所有的目录[root@binghe101oracle]#rm-rf/home/oracle/tools/oracle11g/*5.删除临时目录/tmp[root@binghe101tmp]#rm-rf/tmp/*6.删除Oracle的配置文件[root@binghe101tmp]#rm-f/etc/ora*7.删除oracle产生命令[root@binghe101tmp]#rm-f/usr/local/bin/*8.其他的文件[root@binghe101.oracle]#rm-rf/usr/tmp/.oracle/9.删除用户和组[root@binghe101tmp]#userdel-roracle[root@binghe101tmp]#groupdeloper[root@binghe101tmp]#groupdeldba[root@binghe101tmp]#groupdeloinstall[root@binghe101tmp]#groupdelasmadmin10.撤销oracle的资源限制文件[root@binghe101tmp]#vi/etc/security/limits.conf11.内核参数[root@binghe101tmp]#vi/etc/sysctl.conf[root@binghe101tmp]#sysctl-p12.删除oracle base[root@binghe101~]#rm-rf/home/oracle/tools/oracle11g重磅福利关注「 冰河技术 」微信公众号,后台回复 “设计模式” 关键字领取《深入浅出Java 23种设计模式》PDF文档 。回复“Java8”关键字领取《Java8新特性教程》PDF文档 。回复“限流”关键字获取《亿级流量下的分布式限流解决方案》PDF文档,三本PDF均是由冰河原创并整理的超硬核教程,面试必备!!
好了,今天就聊到这儿吧!别忘了点个赞,给个在看和转发,让更多的人看到,一起学习,一起进步!!

推荐阅读