# groupadd oinstall # groupadd dba # useradd -g oinstall -G dba ora # passwd ora |
# vi /etc/sysctl.conf kernel.shmall - 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 262144 net.core.rmem_max = 262144 net.core.wmem_default = 262144 net.core.wmem_max = 262144 # sysctl -p -> 확인 # sysctl -w -> 적용 |
# vi /etc/pam.d/login session required /lib/security/pam_limits.so |
# vi /etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 |
# vi /etc/profile fi [ $USER = "ora" ]; then ulimit -u 16384 -n 65536 fi |
# vi /etc/redhat-release #CentOs realase 5(Fianl) -> #을 붙여 주석 처리한다. redhat-4 -> 를 추가한다. |
# yum -y install libXp # yum -y install libaio # yum -y install libaio-devel # yum -y install openmotif |
# startx |
# xhost + -> 실행 후에 나오는 메시지는 무시한다. 'access control disablec, clients can connect from any host' 가 뜨면 따로 xhost + 를 실행하지 않아도 된다. # su - ora -> ora 계정으로 사용자를 변경 |
$ vi ~/.bash_profile export PATH # 여기부터 추가합시다. export ORACLE_BASE=$HOME/oracle export ORACLE_SID=orcl -> oracle 설치시 생성하는 db 아이디와 같도록 한다.(안그러면 db 시작이 되지 않는다.) export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1 export ORACLE_OWNER=ora export LANG=C export PATH=$PATH:$ORACLE_HOME/bin $ . ~/bash_profile -> 환경변수를 적용한다. |
$ unzip oracle_install.zip $ cd database $ ./runInstaller |
# /ora/oracle/product/10.2.0/db_1/root.sh -> 실행후, 경로를 물어보면 enter.. |
# vi /etc/oratab orcl:$ORACLE_HOME:Y -> 오라클이 설치된 경로가 적혀있다.. N을 Y로 변경하면 된다. |
$ sqlplus "/as sysdba" SQL> alter user scott account unlock; SQL> alter user scott identified by tiger; SQL> conn scott/tiger; SQL> set linesize 120; SQL> select * from emp; |
$ lsnrctl start $ dbstart |
Oracle SQL*Loader (0) | 2017.09.21 |
---|---|
오라클 테이블 복사 (0) | 2015.02.23 |
ORA-01861: literal does not match format string (0) | 2015.01.15 |
WM_CONCAT, XmlAgg , Listagg (0) | 2014.11.11 |
오라클 9i / 10g용 관리 명령어(sql) 요약 (0) | 2009.09.23 |