본문 바로가기
데이터베이스

Oracle XE R2 설치 후 계정 접근법

by 하센세 2014. 4. 25.

 

일반적으로 실습용 계정으로 접속을 많이 한다.

다음과 같이 하면 된다.

SQLPLUS에서 다음과 같이 하면된다.

SQL> @C:\oraclexe\app\oracle\product\11.2.0\server\rdbms\admin\scott.sql<enter>

위 길이가 너무 길면 scott.sql파일을 c:\로 복사한 다음

SQL> @C:\scott.sql<enter> 로 줄여서 실행하여도 된다

 

하지만 여전히 실습용 계정 scott는 닫혀 있다. 다음과 같이 실행해서 수정하면 된다.

SQL> conn system/orcl<enter>

SQL> alter user scott identified by tiger;<enter>

SQL> conn scott/tiger;<enter>

SQL> select * from emp;<enter>