Oracle/Oracle Study(42)
-
Datafile resize에 대한 오해(?)
용량이 부족할 때 데이터 파일을 추가 해주는 형식으로 주로 하였기에, resize 할 때 문제를 생각해 보지 않았다. autoextensible 되고 있는 데이터 파일을 resize를 하면 resize 한 만큼의 용량으로 자동 증가가 되는 줄 알았다. 하지만 아래 결과를 보게 된다면 생각이 달라질 것이다. 테이블 스페이스를 생성하고 상태 변경까지 각각의 size를 확인해 볼 것이다. 1. 테이블 스페이스 생성 ### create tablespace tbs_auto ### datafile '/oracle/oradata/orcl/Disk3/tbs_auto.bdf' size 1m ### autoextend on next 8k maxsize 3m; TABLESPACE AUT current(MB) Max exte..
2012.01.20 -
sh 계정 생성
$ORACLE_HOME/demo/sales_history/sql_main.sql 실행. 해당파일이 생성되지 않았으면 개별적으로 다운받아서 실행. 파일 용량이 큰 관계로 올리지 못하였다. 대략 17M 정도되며, 분할하여 올리려고 하였지만 회사 컴퓨터라 분할 할 여유가 되질 못하였다. specify password for SH as parameter 1: --> sh 계정에 대한 password 지정 Enter value for 1: ****** specify default tablespace for SH as parameter 2: --> default tablespace 지정 Enter value for 2: users specify temporary tablespace for SH as paramete..
2011.12.26 -
10g에서 sys_connect_by_path 사용법
create table temp_nation as select 'Seoul' city, 'Korea' country from dual union all select 'Busan' city, 'Korea' country from dual union all select 'Inchon' city, 'Korea' country from dual union all select 'LA' city, 'America' country from dual union all select 'Newyork' city, 'America' country from dual union all select 'Mexicocity' city, 'Mexico' country from dual ; select country, substr(max..
2011.12.01 -
특정 IP만 접속
sqlnet.ora에 설정한다. tcp.validnode_checking = yes tcp.invited_nodes=(127.0.0.1,127.0.0.2) tcp.NODELAY=yes listener 재시작..
2011.11.21 -
Linux 10.2.0.4 upgrade Patch
현재 버젼은 10.2.0.1 이다. metalink 에서 패치 및 업데이트를 클릭하여 10.2.0.4 를 조회하여 다운 받는다. patch number : 6810189 파일명 : p6810189_10204_Linux-x86.zip 1. lsnrctl stop listener 2. shutdown immediate; 3. unzip p6810189_10204_Linux-x86.zip 4. ./runInstaller. - 허가거부라고 하여 실행이 되지 않을 때가 있는데 runInstaller 파일에 권한을 더 추가한다.(chmod 775 runInstaller) - .oui 등 다른 파일들도 권한 문제로 실행이 안되는 경우가 생김. 5. 인스톨 화면에서 10.2.0.1 설치 했을 때와 같은 경로들을 준다...
2011.10.31 -
startup 종류?
1. startup nomount - pfile 또는 spfile을 읽어서 SGA 까지 올라옴. - pfile 또는 spfile들에 구성된 내용들을 볼 수 있다. 2. startup mount - Database의 정보를 가지고 있는Control file 까지 올라옴. - Oracle Dynamic Performance Views 까지 조회할 수 있음. 3. startup - Database open - 정상구동. 4. startup restrict - restrict 권한을 가진 계정만 DB에 접속할 수 있다. - 다른 session들을 막고 open된 상태에서 DB를 조작하여야 할 때 사용.(패치 또는 백업)
2011.08.18