「Oracle21c」ORA-28009: SYSでの接続はSYSDBAまたはSYSOPERエラーの対応方法

環境
Windows 11 Pro 21H2 64bit
Oracle Database 21c Express Edition Release 21.0.0.0.0
SQL*Plus: Release 21.0.0.0.0

現象

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
c:\>sqlplus sys/arkgame@xe
SQL*Plus: Release 21.0.0.0.0 - Production on 土 93 20:38:45 2022
Version 21.3.0.0.0
Copyright (c) 1982, 2021, Oracle. All rights reserved.
ERROR:
ORA-28009: SYSでの接続はSYSDBAまたはSYSOPERで行う必要があります
ユーザー名を入力してください:
c:\>sqlplus sys/arkgame@xe SQL*Plus: Release 21.0.0.0.0 - Production on 土 9月 3 20:38:45 2022 Version 21.3.0.0.0 Copyright (c) 1982, 2021, Oracle. All rights reserved. ERROR: ORA-28009: SYSでの接続はSYSDBAまたはSYSOPERで行う必要があります ユーザー名を入力してください:
c:\>sqlplus sys/arkgame@xe

SQL*Plus: Release 21.0.0.0.0 - Production on 土 9月 3 20:38:45 2022
Version 21.3.0.0.0

Copyright (c) 1982, 2021, Oracle.  All rights reserved.

ERROR:
ORA-28009: SYSでの接続はSYSDBAまたはSYSOPERで行う必要があります


ユーザー名を入力してください:

解決方法
sqlplus ユーザー名/パスワード@SID名 as sysdba

操作例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
c:\>sqlplus sys/arkgame@xe as sysdba
SQL*Plus: Release 21.0.0.0.0 - Production on 土 93 20:46:08 2022
Version 21.3.0.0.0
Copyright (c) 1982, 2021, Oracle. All rights reserved.
Oracle Database 21c Express Edition Release 21.0.0.0.0 - Production
Version 21.3.0.0.0
に接続されました。
SQL>
c:\>sqlplus sys/arkgame@xe as sysdba SQL*Plus: Release 21.0.0.0.0 - Production on 土 9月 3 20:46:08 2022 Version 21.3.0.0.0 Copyright (c) 1982, 2021, Oracle. All rights reserved. Oracle Database 21c Express Edition Release 21.0.0.0.0 - Production Version 21.3.0.0.0 に接続されました。 SQL>
c:\>sqlplus sys/arkgame@xe as sysdba

SQL*Plus: Release 21.0.0.0.0 - Production on 土 9月 3 20:46:08 2022
Version 21.3.0.0.0

Copyright (c) 1982, 2021, Oracle.  All rights reserved.



Oracle Database 21c Express Edition Release 21.0.0.0.0 - Production
Version 21.3.0.0.0
に接続されました。
SQL>

 

Oracle 21c

Posted by arkgame