Home  >  Article  >  Database  >  What should I do if Oracle cannot connect?

What should I do if Oracle cannot connect?

hzc
hzcOriginal
2020-06-08 16:11:255640browse

What should I do if Oracle cannot connect?Solutions for oracle failure to connect:

If you encounter the same problem, then you might as well take a look at some of the solutions I introduce here

1. Cause: The database is not closed properly

Solution: Close the database and then restart it. Every time our CRM reports this error, it is usually caused by the failure to close it properly last time, so as long as it is closed after Just open it again. The details are as follows:

Open the command window:

sqlplus “sys/dba as sysdba”[这里sys是用户名,dba是密码,如果用系统用户,即sys登陆,则必须后面跟上as sysdba]

In this step, you can also directly open the sqlplus command window and enter the user name and password

What should I do if Oracle cannot connect?

shutdown abort

Directly use the strongest method of abort to close it, because the amount of data in our oracle database is already relatively large. If you use a gentle method immediately, it may get stuck there. Don't move. Of course, if your data volume is relatively small, you can choose a gentle method, which will not easily damage the database.

startup

The database will now be started. Try accessing it again. There should be no problem.

Recommended tutorial: "Oracle Tutorial

The above is the detailed content of What should I do if Oracle cannot connect?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn