杂录

一、Oralce安装记录:

1、安装注意
1)选型:linux和windows选型建议选择windows安装(简单)
2)windows 11g建议(windows server 2006) ,linux 11g/12g 建议CentOS7
3)安装过程中提示桌面版和企业版,生产环境建议企业版
4)安装包上传:注意切分为多个,单个文件容易损坏,如果有条件建立tar分割,如果没有建立zip

合并文件方法1:
zip subbook.zip -s=0 --out single.zip //多个压缩包合并为一个zip
unzip -d ./ single.zip //解压

合并文件方法2:
[root@ops tmp]# cat AnolisOS-8.6-x86_64-dvd.* > a.zip
[root@ops tmp]# unzip a.zip #忽略错误
Archive:  a.zip
error: End-of-centdir-64 signature not where expected (prepended bytes?)
  (attempting to process anyway)
warning [a.zip]:  zipfile claims to be last disk of a multi-part archive;
  attempting to process anyway, assuming all parts have been concatenated
  together in order.  Expect "errors" and warnings...true multi-part support
  doesn't exist yet (coming soon).
warning [a.zip]:  10737418240 extra bytes at beginning or within zipfile
  (attempting to process anyway)
file #1:  bad zipfile offset (local header sig):  10737418244
  (attempting to re-compensate)
 extracting: AnolisOS-8.6-x86_64-dvd.iso  

方法3:
逐个文件解压,然后切换到子目录,mv或者cpu过去,手动合并成一个文件夹

5)安装过程用户选择,建议选择新建oracle用户
6)安装完成后"口令管理"修改SYS和SYSTEM密码

2、linux安装注意
1)可以链接公网尽量使用yum方式
2)安装方式有两种:一种是静默安装需要配置一部分参数,一种是图形化安装(建议,需安装图形化终端)
3)依赖不用一次性安装完,在安装过程中会提示缺少的依赖(如果确认已安装可以尝试更新)
4)依赖包位置:https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/

3、安装步骤
参考博客:
https://www.cnblogs.com/ranke110/p/15233143.html
https://www.cnblogs.com/find-syc/p/12623919.html
https://blog.csdn.net/it_holmes/article/details/115505947
http://wjhsh.net/caozz-p-9590759.html
https://blog.51cto.com/lhrbest/5114734

4、oracle常见操作步骤:

#查看状态
lsnrctl status

#启动和关闭监听
lsnrctl stop|start

#启停和关闭服务
net start|stop  "OracleServiceORCL"
或者右键"service.msc" 找到服务,停止和关闭 (推荐)
posted @ 2022-08-15 09:01  MT_IT  阅读(459)  评论(0)    收藏  举报