카테고리 없음
linux 오라클 실행
[czar]
2010. 5. 14. 13:46
ihelpers.x2soft.co.kr/programming/tipntech.php?CMD=view&IDX=115&source=overture#wf
oracle 실행 oracle 은 3단계를 거쳐서 실행이 됩니다. 1.Instance Started 2.Database Mounted 3.Database Opened [oracle@LETS114 oracle]$ sqlplus /nolog SQL*Plus: Release 9.2.0.1.0 - Production on Thu Feb 26 13:21:37 2004 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. SQL> connect /as sysdba Connected to an idle instance. SQL> startup nomount; ORACLE instance started. Total System Global Area 235999352 bytes Fixed Size 450680 bytes Variable Size 201326592 bytes Database Buffers 33554432 bytes Redo Buffers 667648 bytes SQL> alter database mount; alter database mount SQL> alter database open; Database altered. 시작과 관련된 option에는 여러가지가 있습니다. 이와 관련된것은 서적을 참고해 주세요. oracle 종료 종료의 종류에는 3가지가 있습니다. normal,immediate,abort normal 은 기존에 oracle 사용자가 있을 경우 사용자가 모두 종료할때까지 기다립니다. immdiate 는 기존의 사용자를 기다리지 않습니다. 기존의 사용한 모든 SQL은 rollback이 됩니다. abort는 Database를 close하지도 않고 instance만 바로 종료합니다. 가장 빠르지만 가장 하지 말아야 할것중에 하나이지요. SVRMGR> connect internal Connected. SVRMGR> shutdown Database closed. Database dismounted. ORACLE instance shut down. SVRMGR> connect internal Connected. SVRMGR> shutdown IMMEDIATE Database closed. Database dismounted. ORACLE instance shut down. SVRMGR> connect internal Connected. SVRMGR> shutdown abort ORACLE instance shut down. listener는 oracle database에 client 가 connection를 하기 위해 실행을 해 주어야 합니다. 가끔 서버 관리 하시는 분들은 listener를 실행을 하지 않아 프로그램쪽에서 conneciton 에러를 발생하여 담당자에게 전화가 오는 경우가 많이 있지요. 리스너 확인 [oracle@linux oracle]$ ps -ef | grep lsnrctl oracle 4984 4607 0 22:12 pts/1 00:00:00 grep lsnrctl [oracle@linux oracle]$ lsnrctl start LSNRCTL for Linux: Version 8.0.5.0.0 - Production on 16-MAR-01 22:13:11 (c) Copyright 1997 Oracle Corporation. All rights reserved. TNS-01106: Listener using listener name LISTENER has already been started [oracle@linux oracle]$ option으로는 start | status | stop