4

oraclesqlplusに接続するために作成しようとしています。私がログインするとき:

User: sys as sysdba
Pass:

アイドル状態のインスタンスに接続されていると表示されます。

そして、テーブルを作成しようとすると、エラーが発生します

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

テーブルを作成しないのはなぜですか?

4

1 に答える 1

13

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:

于 2012-12-09T09:54:40.387 に答える