当前位置:网站首页>CentOS - enable / disable Oracle
CentOS - enable / disable Oracle
2022-06-30 20:43:00 【Focus on writing bugs】
List of articles
Reference
centos7 Virtual machine start Oracle Database and shutdown command line operation instructions
Own operation experience
Because of the power failure , This causes the test server to shut down and restart ,oracle Didn't start . Then start oracle.
start-up oracle The following sequence must be ensured :
Stop listening – Log into the database — Stop the database service – Start database service — Start listening
Stop listening
Stop listening , Need to put root Switch account to oracle Account , Use the following command :
[[email protected] ~]#
su - oracle

Log into the database
The login database here , It's using sqlplus Log in . First use sqlplus /nolog Sign in sqlplus, Reuse conn / as sysdba With sysdba Log in to the database . In fact, the above two commands can be abbreviated as follows :
sqlplus / as sysdba

stop oracle service
After the above command is executed , There will be one sqlplus Command window for , Enter the following command in the window :
SQL> shutdown immediate;
Just stop oracle service .
Start database service
take startup Command to start the database service :
SQL> startup;
When the command is executed , The following message appears in the window , Indicates successful startup :
Turn on monitoring
When the database service is started , You need to enable service listening again . The command is still there SQL> in , You need to exit first , Then execute the monitor on command :
lsnrctl start
The complete process is as follows :
And at that point it goes through lsnrctl status You can see that Status information of current listening .
The problem record —— long-range pl/sql Connection timeout
This kind of problem , If the connection operation on the local machine of the server can succeed , The remote connection will time out , We need to pay attention to A firewall Set up .
Open designated port .
Do not use iptables -F, This command can be used without shutting down the firewall , Release all port restrictions , But it's still not safe !
边栏推荐
- QT qstringlist usage
- PHP require/include differences
- Black apple server system installation tutorial, black apple installation tutorial, teach you how to install black apple in detail [easy to understand]
- Based on the open source stream batch integrated data synchronization engine Chunjun data restore DDL parsing module actual combat sharing
- AVL balanced binary tree (I) - concept and C language implementation
- Encoding type of Perl conversion file
- Informatics Olympiad 1362: family problems
- 【数字IC应届生职业规划】Chap.1 IC行业产业链概述及代表企业大厂汇总
- 请问海量数据如何去取最大的K个
- The newly born robot dog can walk by himself after rolling for an hour. The latest achievement of Wu Enda's first disciple
猜你喜欢

基于开源流批一体数据同步引擎ChunJun数据还原—DDL解析模块的实战分享

obsidian配合hugo的使用,让markdown本地编辑软件与在线化无缝衔接

Is the project manager a leader? Can you criticize and blame members?

树基本概念

左值引用和右值引用

The newly born robot dog can walk by himself after rolling for an hour. The latest achievement of Wu Enda's first disciple

RP原型资源分享-购物类App

基于开源流批一体数据同步引擎ChunJun数据还原—DDL解析模块的实战分享

SQL优化

Binary search tree (1) - concept and C language implementation
随机推荐
Lumiprobe cell biology - dia, instructions for lipophilic tracer
注册设备监理师难考吗,和监理工程师有什么关系?
Jerry's long press reset [chapter]
杰理之关于长按开机检测抬起问题【篇】
How do I get the largest K massive data
Openfire在使用MySQL数据库后的中文乱码问题解决
Lumiprobe染料酰肼丨BDP FL 酰肼方案
RP原型资源分享-购物类App
有趣网站汇总
请指教在线开户需要什么银行卡?另外想问,现在在线开户安全么?
The Commission is so high that everyone can participate in the new programmer's partner plan
BioVendor sRAGE Elisa试剂盒测试原理和注意事项
Jerry's touch key recognition process [chapter]
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
PHP require/include 区别
Peking University ACM problems 1003:hangover
AVL平衡二叉树(一) - 概念与C语言实现
Heartbeat uses NFS to make MySQL highly available based on CRM
Lumiprobe 聚乙二醇化和 PEG 接头丨碘-PEG3-酸研究
Analysis of breakpoint continuation and download principle