본문 바로가기
정보관리(데이터베이스, DB)/오라클

Oracle returns an error ORA-01031: insufficient privileges

by 3604 2023. 11. 28.
728x90

출처: Oracle returns an error ORA-01031: insufficient privileges (tistory.com)

위 오류는 오라클 설치 후 로그인 과정에서 발생하는 오류로써 본인의 경우 CentOS에 Oracle 11XE를 설치하고 발생한 경우였다.

 

평소처럼 설치 후 아래와 같이 sys 계정으로 접근하려고 했다.

 

# sqlplus "/as sysdba"

 

그러나 위와같은 오류메시지가 출력되었는데... 초기 설치시 passwd 파일이 생성되지 않았기 때문이다.

 

 

 

해결은 아래와 같이 진행되었다.

 

# cd $ORACLE_HOME/dbs

 

# orapwd file=$ORACLE_HOME/dbs/orapwXE.ora password=yourpassword entries=2

 

이렇게 하면 해당 경로에 SID로 password 파일이 생성되고 이후 로그인이 가능하다.

 

# sqlplus

 

SQL*Plus: Release 11.2.0.2.0 Production on Sun Apr 5 23:48:51 2015

 

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

 

Enter user-name: sys@XE as sysdba

Enter password: 

 

Connected to:

Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production

 

SQL >

출처: https://kissdino.tistory.com/entry/Oracle-returns-an-error-ORA01031-insufficient-privileges [탱탱이네:티스토리]

728x90