当前位置:网站首页>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 !
边栏推荐
- Peking University ACM problems 1005:i think I need a houseboat
- Jerry's touch key recognition process [chapter]
- jfinal中如何使用过滤器监控Druid监听SQL执行?
- PHP require/include differences
- 1045 error occurred in MySQL login. Modification method [easy to understand]
- The Commission is so high that everyone can participate in the new programmer's partner plan
- PHP require/include 区别
- 哈夫曼樹(一)基本概念與C語言實現
- Jerry's determination of detection sensitivity level [chapter]
- Jenkins can't pull the latest jar package
猜你喜欢
随机推荐
C文件指针
Peking University ACM problems 1004:financial management
亚马逊在阿拉伯联合酋长国限制LGBTQ相关的搜索和产品销售
Peking University ACM problems 1003:hangover
Game 81 biweekly
Evolution of screen display technology
北京大学ACM Problems 1002:487-3279
Go learning notes
PHP require/include differences
Lumiprobe无铜点击化学解决方案
Study on PEGylation of lumiprobe and PEG linker - iodine-peg3-acid
大神詳解開源 BUFF 增益攻略丨直播
偏向锁/轻量锁/重级锁锁锁更健康,上锁解锁到底是怎么完成实现的
Informatics Olympiad 1362: family problems
RP原型资源分享-购物类App
STL的基本组成部分
PHP获取Opcode及C源码
Basic concepts of tree
1. Introduction to generating countermeasures network
Document contains & conditional competition








