oracle
). 이름은 중요하지 않지만 그룹은 중
요하다!! 이것은 있어야 한다 : dba
.
mkdir /opt/oracle chown oracle.dba /opt/oracle이제 (사용자
oracle
이 되어) 설치 스크립트를 실행한다 :
/cdrom/orainst/install스크립트를 설치할 때 Oracle 그룹의 이름을 입력한다. 이렇게 입력할 것을 요구한다 :
dba이제 Oracle 디렉토리를 입력할 필요가 있다 :
/opt/oracle스크립트는 이제 ORACLE_SID가 필요하다. 이것은 설치하려는 데이터베이스의 이름이다. 이것을 우리의 예에서는
OracleDB
라고 할 것이다.
root
로 되어서 다음을 실행한다 :
/opt/oracle/orainst/root.sh이 프로그램은
ORACLE_HOME
, ORACLE_SID
그리고
PATH라는 환경변수를 설정했다고 가정한다! 가장 쉬운 방법은 $ORACLE_HOME/.env
파일을 원본으로 하는 것이다:
cd /opt/oracle . ./.env
/opt/oracle/bin/svrmgrl Oracle Server Manager Release 3.0.5.0.0 - Production (c) Copyright 1997, Oracle Corporation. All Rights Reserved. Oracle8 Release 8.0.5.0.0 - Production PL/SQL Release 8.0.5.0.0 - Production SVRMGR> connect system/manager Connected. SVRMGR>테스트할 목적으로 하나의 표를 만들고 이 표에 값들을 넣었다. 그 후에 우리는 이 값들을 읽을 수 있고 그 다음엔 표를 삭제할 수도 있다.
SVRMGR> create table test (number int, text varchar(100)); Statement processed. SVRMGR> insert into test values (1,'This is our first Oracle test entry'); 1 row processed. SVRMGR> select * from test; NUMBER TEXT ----------------------------------------------------------------- 1 This is our first Oracle test entry 1 row selected. SVRMGR> drop table test; Statement processed. SVRMGR> quit Server Manager complete.이제 데이터베이스가 사용할 준비가 되었다.