Oracle not available ora-01034

安稳与你 提交于 2019-12-07 07:28:56

问题


I am trying to create to connect with oracle sqlplus. When I login with:

User: sys as sysdba
Pass:

It says Connected to an idle instance.

And when I try to create a table, it gives the error

ORA-01034: Oracle not available
Process ID: 0
Session ID: 0 Serial number: 0

Why is it not creating the table?


回答1:


First - and most importantly:

Only use the SYS account for DBA work. Never use it for "regular" work (e.g. creating tables) - use a dedicated regular user account for that.

Secondly: "connected to an idle instance" means Oracle was not started. So as you are already connected as sysdba (again: which you should only do for DBA tasks) you need to start Oracle using the command

startup

in SQL*Plus.

Then log off, log in with a regular user and create your table.

For details see the manual:

  • Startup Command
  • Administrator's Guide


来源:https://stackoverflow.com/questions/13786346/oracle-not-available-ora-01034

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!