EdgarHan
2017. 1. 18. 15:34
Scenario:강의들을 동안은 권한주기 및 계정생성은 한번 밖에 안해봐서, 어느날 새로운 계정으로 들어가 테이블들을 따로 관리하려니까 SQLDEVELOPER ID가 유효하지 않다고 하더라.
이유를 생각해보니 계정 생성및 grant 도 안해줘서 그런거였다. 이런 건 그냥 스크랩 해 두는 게 좋겠다.
solution:
Administrator@WIN-UB18TI2GOTU MINGW64 /
$ sqlplus system/oracle
SQL*Plus: Release 11.2.0.2.0 Production on ±Ý 1¿ù 6 11:35:51 2017
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
SQL> create user itcenter identified by java;
User created.
SQL> grant connect, resource to itcenter;
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
/////////추가로 필요 명령어들/////////////
SQL> SHOW USER;
SQL>SELECT * FROM all_users;
//다른 계정으로 넘어가기
SQL>conn testuser/testuser;
//유저 비밀번호생성
SQL>ALTER USER testuser IDENTIFIED BY "chagepwd";
//유저 삭제
SQL>DROP USER testuser;
//유저명 변경은 어렵다고하니 다음에 알아보도록 하자 -_-;;
//유저 비밀번호 변경
SQL>alter user scott identified by scott;
|