Scenario:강의들을 동안은 권한주기 및 계정생성은 한번 밖에 안해봐서, 

어느날 새로운 계정으로 들어가 테이블들을 따로 관리하려니까 SQLDEVELOPER ID가 유효하지 않다고 하더라.


이유를 생각해보니 계정 생성및 grant 도 안해줘서 그런거였다. 이런 건 그냥 스크랩 해 두는 게 좋겠다.


solution:


Bash 0.96 KB
  1. Administrator@WIN-UB18TI2GOTU MINGW64 /
  2. $ sqlplus system/oracle
  3.  
  4. SQL*Plus: Release 11.2.0.2.0 Production on ±Ý 1¿ù 6 11:35:51 2017
  5.  
  6. Copyright (c) 19822014, Oracle.  All rights reserved.
  7.  
  8.  
  9. Connected to:
  10. Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
  11.  
  12. SQL> create user itcenter identified by java;
  13.  
  14. User created.
  15.  
  16. SQL> grant connect, resource to itcenter;
  17.  
  18. Grant succeeded.
  19.  
  20. SQL> exit
  21. Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
  22.  
  23.  
  24.  
  25.  
  26. /////////추가로 필요 명령어들/////////////
  27. SQL> SHOW USER;
  28. SQL>SELECT * FROM all_users;
  29. //다른 계정으로 넘어가기
  30. SQL>conn testuser/testuser;
  31. //유저 비밀번호생성
  32. SQL>ALTER USER testuser IDENTIFIED BY "chagepwd";
  33. //유저 삭제
  34. SQL>DROP USER testuser;
  35.  
  36. //유저명 변경은 어렵다고하니 다음에 알아보도록 하자 -_-;;
  37.  
  38. //유저 비밀번호 변경
  39. SQL>alter user scott identified by scott;


+ Recent posts