728x90
반응형
LIST
◆ 오라클 계정 생성
1. SQL Plus에 접속
sqlplus "/as sysdba"
[oracle@namhun /usr/lib/oracle/xe]$ sqlplus "/as sysdba"
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> conn /as sysdba
Connected.
2. 계정생성 :
ex)
SQL> create user inpion identified by "imsi00";
User created.
3. 접속권한 부여 :
grant resource, connect to 계정;
resource, connect는 일반적인것을 다 사용 할 수 있음. DDL, DML 사용가능
ex)
SQL> grant resource, connect to inpion;
Grant succeeded.
4. 작업 tablespace 지정 : alter user 유저네임 default tablespace users;
5. 임시 tablespace 지정 : alter user 유저네임 temporary tablespace temp;
ex)
SQL> alter user inpion temporary tablespace temp;
User altered.
◆ 오라클 계정 삭제
1. SQL Plus 에 접속
sqlplus system/비밀번호
2. 사용자 삭제 : SQL drop user inpion cascade;
cascade 를 명시하면 유저네임과 관련된 모든 데이터 베이스 스키마가
데이터 사전으로부터 삭제되고 모든 스키마 객체도 물리적으로 삭제됨.
◆ 오라클 패스워드 강제 변경
sqlplus "/as sysdba"
SQL> alter user sys identified by 암호;
SQL> alter user system identified by 암호
ex) SQL> alter user sys identified by "123456";
User altered.
ex) SQL> alter user system identified by "123456";
User altered.
728x90
반응형
LIST
'IT개발/정보 > DB ( Oracle )' 카테고리의 다른 글
Tablespace 생성, 삭제 (0) | 2021.12.26 |
---|---|
테이블 스크립트 조회 (0) | 2021.12.26 |
테이블에 대한 참조 테이블 및 프로시저, 함수 추출 (0) | 2021.12.26 |
Oracle DB Link (0) | 2021.12.26 |
SQL문에 쓰이는 함수 및 연산자들 (0) | 2021.12.26 |