12create user test1identified by test1;cs 12grant create session, create tableto test1;cs1conn test1/test1cs 12345create table emp( id number(10), name varchar2(10)); => OKcs create table 권한 주어도 공간이 할당되어있지않으면 생성이 되지 않는다. 12insert into empvalues (10, 'AAA'); => ERRORcs 1conn sys/oracle as sysdbacs 1desc v$tablespacecs 12select namefrom v$tablespace;cs 1234create user test2identified by test2defau..
1. 새 T/S 생성(=Detafile 추가) - EM 적용 안 하였을 시123create tablespace appuserdatafile '/u01/app/oracle/oradata/ORCL/datafile/appuser01.dbf' size 100Mautoextend on next 10M maxsize 500M;Colored by Color Scriptercs 2. 기존 T/S에 Datafile 추가 3. 기존 Datafile의 사이즈 늘리기 4. Datafile에 자동 확장 옵션 설정
1lsnrctl startcs 1sqlplus /nologcs 1conn sys/oracle as sysdbacs 1startupcs 1!cs 1emctl start dbconsolecs 1exitcs 1show usercs 12select namefrom v$datafile;cs Data file - 물리적인 저장영역 구조 * ★(필수) system ( System T/S(Tablespace) ) : Data Dictionary * ☆(필수는 아니나 필수라고 할 수 있다) sysaux ( System T/S(Tablespace) ) : 통계 데이터 * ☆(필수는 아니나 필수라고 할 수 있다) temp ( Temp T/S(Tablespace) ) : 임시 데이터. 쿼리 구문 실행할 때 임시 데이터 저장할..
1lsnrctl startcs 1sqlplus /nologcs 1conn sys/oracle as sysdbacs 1startupcs 1show usercs 1!cs 1emctl start dbconsolecs 1exitcs db 끄기 1shut abortcs 1startupcs 1shut abortcs 1startup nomountcs 12select statusfrom v$instance;cs 1alter database mount;cs 12select statusfrom v$instance;cs 1alter database open;cs 12select statusfrom v$instance;cs 1shut abortcs 1conn sys/oracle as sysdbacs 1shut abortcs ..
1!cs 1cd $ORACLE_HOME/dbscs 1pwdcs 1lscs 1exitcs 1show parameter db_block_sizecs 1show parameter control_filecs 1show parameter undocs 1show parameter memorycs 1show parametercs parameter 값 변경 123alter system set db_cache_size = 512M scope = memory; both(default); spfile;cs 1) memory : 현재 DB에만 적용하고 spfile에는 적용 X DB 재시작 시 원래값으로 되돌림2) both : 현재 DB와 spfile에 모두 적용함 DB 재시작 시 변경된 값이 유지됨3) spfile : 현재 ..