<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="http://rss.egloos.com/style/blog.xsl" type="text/xsl" media="screen"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
	<title>darkmirr님의 이글루</title>
	<link>http://darkmirr.egloos.com</link>
	<description>새로운 시작중

조금씩 조금씩 

진화중...새로운 인생 

대비중 대비중 대비 방법은 

공부!!!!!</description>
	<language>ko</language>
	<pubDate>Fri, 23 Oct 2009 04:38:20 GMT</pubDate>
	<generator>Egloos</generator>
	<image>
		<title>darkmirr님의 이글루</title>
		<url>http://pds11.egloos.com/logo/200811/24/80/f0004380.gif</url>
		<link>http://darkmirr.egloos.com</link>
		<width>80</width>
		<height>102</height>
		<description>새로운 시작중

조금씩 조금씩 

진화중...새로운 인생 

대비중 대비중 대비 방법은 

공부!!!!!</description>
	</image>
  	<item>
		<title><![CDATA[ sql 프로시져 확인방법 ]]> </title>
		<link>http://darkmirr.egloos.com/1553393</link>
		<guid>http://darkmirr.egloos.com/1553393</guid>
		<description>
			<![CDATA[ 
  <span style="color: rgb(204, 204, 255);">toad 가 없을시 sql+&nbsp; 쿼리 이용하여 계정에 있는 프로시져 확인 하는 방법 </span><br />
<br />
<br />
<span style="color: rgb(255, 204, 187);">select * from DICTIONARY</span><br style="color: rgb(255, 204, 187);"><span style="color: rgb(255, 204, 187);">where TABLE_NAME like '%ALL_PROCEDURES%'</span><br style="color: rgb(255, 204, 187);"><br style="color: rgb(255, 204, 187);"><br style="color: rgb(255, 204, 187);"><span style="color: rgb(255, 204, 187);">select * from ALL_PROCEDURES</span><br style="color: rgb(255, 204, 187);"><span style="color: rgb(255, 204, 187);">where owner='SCOTT'</span>			 ]]> 
		</description>
		<category>DB</category>

		<comments>http://darkmirr.egloos.com/1553393#comments</comments>
		<pubDate>Fri, 23 Oct 2009 04:38:20 GMT</pubDate>
		<dc:creator>darkmirr</dc:creator>
	</item>
	<item>
		<title><![CDATA[ was vs webserver  ]]> </title>
		<link>http://darkmirr.egloos.com/1546510</link>
		<guid>http://darkmirr.egloos.com/1546510</guid>
		<description>
			<![CDATA[ 
  <strong>봐도 봐도 해깔리는 was vs webserver 다시 정리<br />
<br />
Web Server<br />
</strong><br />
<p style="color: rgb(255, 204, 255);" align="left"><span class="std">웹서버는 <a target="_blank" class="con_link" href="http://www.terms.co.kr/clientserver.htm">클라이언트/서버</a> 모델과 웹의 <a target="_blank" class="con_link" href="http://www.terms.co.kr/HTTP.htm">HTTP</a>를 사용하여 웹 페이지가 들어 있는 <br />
</span></p><p style="color: rgb(255, 204, 255);" align="left"><span class="std">파일을 사용자들에게 제공하는 프로그램이다. <br />
</span></p><p style="color: rgb(255, 204, 255);" align="left"><span class="std">웹사이트가 운영되고 있는 <a target="_blank" class="con_link" href="http://www.terms.co.kr/Internet.htm">인터넷</a>상의 모든 컴퓨터들에는 모두 웹서버 프로그램이 설치되어 있다.</span></p><p style="color: rgb(255, 204, 255);" align="left"><span class="std"> 가장 보편적인 웹서버들로는 32 비트 윈도우와 <a target="_blank" class="con_link" href="http://www.terms.co.kr/UNIX.htm">유닉스</a> 기반의 <a target="_blank" class="con_link" href="http://www.terms.co.kr/OS.htm">운영체계</a>에서 모두 쓸 수 있는 <a target="_blank" class="con_link" href="http://www.terms.co.kr/Apache.htm">아파치</a>와, <br />
</span></p><p style="color: rgb(255, 204, 255);" align="left"><span class="std">윈도우 NT에 딸려 나오는 <a target="_blank" class="con_link" href="http://www.terms.co.kr/IIS.htm">IIS</a>, 그리고 <a target="_blank" class="con_link" href="http://www.terms.co.kr/Netscape.htm">넷스케이프</a>의 <a target="_blank" class="con_link" href="http://www.terms.co.kr/enterprise.htm">엔터프라이즈</a> 서버 등이 있다.</span></p><p style="color: rgb(255, 204, 255);" align="left"><span class="std"> 그밖에 <a target="_blank" class="con_link" href="http://www.terms.co.kr/NetWare.htm">네트웨어</a> 운영체계를 쓰는 사용자들을 위한 노벨의 웹서버,</span></p><p style="color: rgb(255, 204, 255);" align="left"><span class="std"> 주로 IBM의 <a target="_blank" class="con_link" href="http://www.terms.co.kr/OS390.htm">OS/390</a>과 <a target="_blank" class="con_link" href="http://www.terms.co.kr/AS400.htm">AS/400</a> 고객들을 위한 IBM의 로터스 도미노 서버를 비롯, 다른 웹서버들도 있다.</span> </p><p style="color: rgb(255, 204, 255);" align="left"><span class="std">웹서버들은 흔히 <a target="_blank" class="con_link" href="http://www.terms.co.kr/e-mail.htm">전자우편</a>, <a target="_blank" class="con_link" href="http://www.terms.co.kr/FTP.htm">FTP</a> 파일의 <a target="_blank" class="con_link" href="http://www.terms.co.kr/download.htm">다운로드</a>, 그리고 웹페이지 구축, 발간 등에 필요한 인터넷 및 <a target="_blank" class="con_link" href="http://www.terms.co.kr/intranet.htm"><br />
</a></span></p><p style="color: rgb(255, 204, 255);" align="left"><span class="std"><a target="_blank" class="con_link" href="http://www.terms.co.kr/intranet.htm">인트라넷</a>과 관련된 프로그램들의 커다란 <a target="_blank" class="con_link" href="http://www.terms.co.kr/package.htm">패키지</a>의 일부로서 나온다.</span></p><p style="color: rgb(255, 204, 255);" align="left"><span class="std"> 웹서버를 고를 때 고려해야할 사항으로는, 운영체계나 다른 서버들과 얼마나 잘 어울려 동작할 것이냐 하는 것과,</span></p><p style="color: rgb(255, 204, 255);" align="left"><span class="std"> 서버 측의 프로그래밍, 퍼블리싱, <a target="_blank" class="con_link" href="http://www.terms.co.kr/searchengine.htm">검색엔진</a> 등을 처리하는 능력, 그리고 함께 따라오는 구축도구 등이 있다.</span></p><p align="left"><span class="std"></span><br />
<strong>&nbsp;WAS</strong> (Web Application Server)<br />
<span style="color: rgb(204, 204, 255);">웹과 기업의 기간 시스템 사이에 위치하면서, 웹 기반 분산 시스템 개발을 쉽게 도와주고</span></p><p style="color: rgb(204, 204, 255);" align="left"> 안정적인 트랙잰션 처리를 보장해 주는 일종의 미들웨어<font style="background-color: rgb(255, 255, 255);">&nbsp;소프트웨어</font> 서버.<br />
<br />
3계층 웹 컴퓨팅 환경에서 기존 클라이언트/서버 환경의 애플리케이션 서버와 같은 역할을 하며, <br />
</p><p style="color: rgb(204, 204, 255);" align="left">클라이언트와 서버 환경에서 트랜잭션 처리및 다른 기존 시스템 간의 <br />
</p><p style="color: rgb(204, 204, 255);" align="left">애플리케이션 연동을 등을 주된 기능으로 하고 있다. <br />
<br />
요즘들어서는 WAS는 주로 데이터베이스 조회나 일반적인 비즈니스 로직에 대한 처리를</p><p style="color: rgb(204, 204, 255);" align="left"> 위해 다양한 언어로 개발된 인터넷/인트라넷환경의 소프트웨어로 많이 불리운다. <br />
</p><p style="color: rgb(204, 204, 255);" align="left">자바스크립트나 JSP 등과 같은 스크립트 및 서비스들은 대개 최신의 데이터를 검색하기</p><p style="color: rgb(204, 204, 255);" align="left"> 위해데이터베이스에 접근하고, 브라우저 또는 클라이언트 프로그램을 통해 <br />
</p><p style="color: rgb(204, 204, 255);" align="left">사용자들에게 검색 결과를 제공한다.<br />
<br />
WAS를비롯한 애플리케이션 서버들은, 웹서버 즉 HTTP 서버와 같은 컴퓨터를 공유할 수도 있지만 <br />
</p><p style="color: rgb(204, 204, 255);" align="left">별개의 컴퓨터를 독립적으로 사용하는경우도 많다. 대규모 사이트에서는, 오히려 WAS와 웹서버 <br />
</p><p style="color: rgb(204, 204, 255);" align="left">등을 위해 여러 대의 컴퓨터가 동원되기도 한다. <br />
넷스케이프의Netscape Application Server, Bea의 Weblogic Enterprise,</p><p style="color: rgb(204, 204, 255);" align="left"> 볼랜드의 Appserver,그리고 IBM의 Websphere Application Server 등의 WAS 대표적인 제품들이다.<br />
</p><p style="color: rgb(204, 204, 255);"><br />
※Web Server와 WAS와 차이※<br />
<br />
- Web Server 의 정의 : Web Client(웹 브라우저)에게 컨텐츠를 제공하는 서버, <br />
</p><p style="color: rgb(204, 204, 255);">정적인 HTML이나 jpeg, gif 같은 이미지를 HTTP&nbsp;프로토콜을 통해 웹 브라우저에게 전송하는 역할<br />
<br />
- WAS(Web Application Server)의 정의 <br />
&nbsp;&nbsp; ○ Server 단에서 Application을 동작할 수 있도록 지원함 =&gt; Jeus<br />
&nbsp;&nbsp; ○ 기존 웹 서버와 달리 동적인 요구에 대응하기 위해 적합한 형태로 변화, <br />
</p><p style="color: rgb(204, 204, 255);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Web Client(브라우저)에게는 결과값만 전송함.<br />
&nbsp;&nbsp; ○ Container(컨테이너)라는 용어로 쓰이며, 초창기는 CGI, 그 후에서는 Servlet, <br />
</p><p style="color: rgb(204, 204, 255);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; , JSP, ASP 등의 프로그램으로 사용됨<br />
<br />
- Web Server와 WAS의 구성에 따른 분류<br />
&nbsp;&nbsp; ○ WAS와 WebServer를 분리하지 않는 경우&nbsp; <br />
&nbsp;&nbsp; 모든 컨텐츠를 한곳에 집중시켜 웹서버와 WAS의 역할을 동시에 수행, <br />
</p><p style="color: rgb(204, 204, 255);">&nbsp;&nbsp; 스위치를 통한 로드 밸러싱, 사용자가 적을 경우 효율적<br />
&nbsp; <br />
&nbsp;&nbsp; ○&nbsp; WAS와 WebServer를 분리한 경우 <br />
&nbsp;&nbsp; 웹서버와 WAS의 기능적 분류를 통해 효과적인 분산을 유도,</p><p style="color: rgb(204, 204, 255);">&nbsp;&nbsp; 정적인 데이터는 웹서버에서 처리, 동적인 데이터는 WAS가 처리<br />
&nbsp;<br />
&nbsp;&nbsp; ○&nbsp; WAS 여러개와 WebServer를 분리한 경우<br />
&nbsp;&nbsp; WAS단을 프리젠테이션 로직와 비즈니스 로직으로 구분하여 구성, <br />
</p><p style="color: rgb(204, 204, 255);">&nbsp;&nbsp; 특정 logic의 부하에 따라 적절한 대응할 수 있지만 설계단<br />
&nbsp;&nbsp; 계 유지보수 단계가 복잡해 질 수가 있다.&nbsp;<br />
</p><p style="color: rgb(204, 204, 255);"><br />
&nbsp;WAS 와 Web Server 종류<br />
<br />
&nbsp;&nbsp; ○ WAS 종류<br />
&nbsp;&nbsp; tomcat, tMax jeus, BEA Web Logic, IBM Webspere, JBOSS,Bluestone, Gemston,</p><p style="color: rgb(204, 204, 255);">&nbsp;&nbsp; inprise, Oracle, PowerTier,Apptivity, silverStream<br />
&nbsp;&nbsp; ○ Web Server&nbsp; <br />
&nbsp;&nbsp;&nbsp; IIS, apache, tMax, WebtoB<br />
<br />
&nbsp;&nbsp;&nbsp;- tomcat<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 아파치 소프트웨어 재단의 애플리케이션 서버로서, 자바 서블릿을 실행시키고 JSP 코드가 포함되어</p><p style="color: rgb(204, 204, 255);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 있는 웹페이지를 만들 어준다. <br />
</p><p style="color: rgb(204, 204, 255);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 자바 서블릿과 JSP 규격 '참조용 구현'으로 평가되고 있는 톰캣은, <br />
</p><p style="color: rgb(204, 204, 255);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 개발자들의 개방적 협력 작업의 산물로 바이너리 버전과 코어버전 둘 <br />
</p><p style="color: rgb(204, 204, 255);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 모두를 아파치 웹사이트에서 얻을 수 있다. 톰캣은 자체적으로 보유하고 있는 내부 웹서버와 함께 독립<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 적으로 사용 될 수도 있지만 아파치나 넷스케이프 엔터프라이즈 서버, <br />
</p><p style="color: rgb(204, 204, 255);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IIS, 마이크로소프트의 PWS 등 다른 웹서버와 함께 사용할 수도 있다. <br />
</p><p style="color: rgb(204, 204, 255);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 톰캣을 실행시키기 위해서는 jre&nbsp; 1.1&nbsp; 이상에 부합되는 자바 런타입 환경이 필요하다.</p><div class="autosourcing-stub"><p style="margin: 11px 0pt 7px; padding: 0pt; font-size: 12px; font-family: Dotum; font-style: normal; font-weight: normal;"><strong style="padding: 0pt 7px 0pt 0pt;">[출처]</strong> <a href="http://blog.naver.com/skypoohkjs/60078233" target="_blank">Web Server 와 WAS</a><span style="padding: 0pt 7px 0pt 5px;">|</span><strong style="padding: 0pt 7px 0pt 0pt;">작성자</strong> <a href="http://blog.naver.com/skypoohkjs" target="_blank">돌</a></p></div><p><br />
</p>			 ]]> 
		</description>
		<category>JSP/Servlet</category>

		<comments>http://darkmirr.egloos.com/1546510#comments</comments>
		<pubDate>Wed, 14 Oct 2009 01:28:45 GMT</pubDate>
		<dc:creator>darkmirr</dc:creator>
	</item>
	<item>
		<title><![CDATA[ Oracle 자료 ]]> </title>
		<link>http://darkmirr.egloos.com/1535114</link>
		<guid>http://darkmirr.egloos.com/1535114</guid>
		<description>
			<![CDATA[ 
  <span style="color: rgb(192, 192, 192);">회사에서 디비 튜닝 공부만 시킨다.-.-</span><br style="color: rgb(192, 192, 192);"><br style="color: rgb(192, 192, 192);"><span style="color: rgb(192, 192, 192);">쏠쏠히 재미있기는 하다 ㅎㅎ</span><br />
<br />
<a href="http://pds17.egloos.com/pds/200909/29/80/oracle.zip">oracle.zip</a><br />
			 ]]> 
		</description>
		<category>DB</category>

		<comments>http://darkmirr.egloos.com/1535114#comments</comments>
		<pubDate>Tue, 29 Sep 2009 07:25:54 GMT</pubDate>
		<dc:creator>darkmirr</dc:creator>
	</item>
	<item>
		<title><![CDATA[ UNION 두 테이블 내용을 함께 가져오기 ]]> </title>
		<link>http://darkmirr.egloos.com/1535052</link>
		<guid>http://darkmirr.egloos.com/1535052</guid>
		<description>
			<![CDATA[ 
  <span style="color: rgb(255, 204, 187);">DB 작업을 하다 보면 때로,</span><div style="color: rgb(255, 204, 187);">서로 다른 데이터가 있는 테이블에서 합쳐서 보여줘야 하는 경우가&nbsp;간혹 생깁니다.</div><div style="color: rgb(255, 204, 187);">INNER JOIN 이나 OUTER JOIN 등으로 할 수 없는 상황입니다.<br />
</div><div style="color: rgb(255, 204, 187);"><br />
</div><div style="color: rgb(255, 204, 187);">이런 경우 필요한 것이 바로 UNION 입니다.</div><div style="color: rgb(255, 204, 187);"><br />
</div><div style="color: rgb(255, 204, 187);">UNION은 MySQL에서도 지원하는 것으로 알고 있습니다.</div><div style="color: rgb(255, 204, 187);"><br />
</div><div style="color: rgb(255, 204, 187);">UNION에서 주의할 점은&nbsp;두 테이블을 하나로 합치는 것이기 때문에</div><div style="color: rgb(255, 204, 187);">추출하는 테이블의 필드 이름, 타입, 그리고 필드 갯수가 일치해야 합니다.</div><div><span style="color: rgb(102, 102, 102); font-family: Verdana; font-size: 11px; line-height: normal;"><pre style="border: 1px solid rgb(153, 153, 153); padding: 7pt; font-family: 'Courier New',Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 9pt; line-height: normal; font-size-adjust: none; font-stretch: normal; background-color: rgb(238, 238, 238);"><span style="color: rgb(0, 0, 255);">select f1, f2, f3, f4, "1" as f5<br />
from table1<br />
where f1='aaa'<br />
UNION<br />
select a as f1, b as f2, c as f3, d as f4, "2" as f5<br />
from table2<br />
where a='bbb'</span></pre><div><span style="color: rgb(0, 0, 0); font-family: Dotum; font-size: 12px; line-height: 16px;"><div style="color: rgb(204, 204, 255);">테이블명은 alias를 해서 맞춰 주면 되고, 형변환은... 알아서.. ^^;;</div><div style="color: rgb(204, 204, 255);"><br />
</div><div style="color: rgb(204, 204, 255);">팁으로, 해당 데이터가 어느 테이블에서 왔는지 알고 싶은데,</div><div style="color: rgb(204, 204, 255);">데이터 값만으로는 구분하기 힘든 경우에는</div><div style="color: rgb(204, 204, 255);">"1", "2" 이런 식이나 기타 구분이 가능한 방식으로 고정값을 추가해서</div><div style="color: rgb(204, 204, 255);">그것으로 확인하면 됩니다.</div><div style="color: rgb(204, 204, 255);"><br />
</div><div style="color: rgb(204, 204, 255);">다른 모든 조건은 기존 SELECT 문법을 따르고 있으니,</div><div><span style="color: rgb(204, 204, 255);">그것을 참조하시면 됩니다.</span><br />
<br />
<div class="author"><a href="http://picory.com/category/%EC%B4%88%EB%B3%B4%20%EA%B4%80%EB%A6%AC%EC%9E%90/DB" class="categoryBtn">퍼온곳 : <span style="color: rgb(153, 51, 0);">초보 관리자/DB</span></a><span style="color: rgb(153, 51, 0);">		 </span><span style="color: rgb(153, 51, 0);" class="date">2008/12/30 01:52</span><span style="color: rgb(153, 51, 0);">		 </span><span style="color: rgb(153, 51, 0);" class="ownerBtn">by 비트센스</span>		  </div></div></span></div></span></div>			 ]]> 
		</description>
		<category>DB</category>

		<comments>http://darkmirr.egloos.com/1535052#comments</comments>
		<pubDate>Tue, 29 Sep 2009 05:37:28 GMT</pubDate>
		<dc:creator>darkmirr</dc:creator>
	</item>
	<item>
		<title><![CDATA[ Inner join & Outter join ]]> </title>
		<link>http://darkmirr.egloos.com/1535048</link>
		<guid>http://darkmirr.egloos.com/1535048</guid>
		<description>
			<![CDATA[ 
  <div class="titleWrap">            <h2><a href="http://picory.com/50">[MSSQL] 기준 데이터는 무조건 나와야 한다...OUTER JOIN</a></h2>		  <div class="author">		 <a href="http://picory.com/category/%EC%B4%88%EB%B3%B4%20%EA%B4%80%EB%A6%AC%EC%9E%90/DB" class="categoryBtn"><br />
</a><span class="ownerBtn"></span>		  </div>                      </div>          <!-- titleWrap close -->           <span style="color: rgb(204, 204, 255);">테이블 작업을 하다 보면,</span><div style="color: rgb(204, 204, 255);">여러 테이블의 데이터를 조인해서 가져오도록 설계를 많이 합니다.</div><div style="color: rgb(204, 204, 255);"><br />
</div><div style="color: rgb(204, 204, 255);">그러다 보면 데이터가 기본 1:1 혹은 1:N개로 존재를 해야 하는데,</div><div style="color: rgb(204, 204, 255);">그렇지 않을 경우 즉, 1:0으로 된 데이터를 가져와야 할 경우도 있습니다.</div><div style="color: rgb(204, 204, 255);"><br />
</div><div style="color: rgb(204, 204, 255);">보통의 테이블 조인을 INNER JOIN이라 말을 하고,</div><div style="color: rgb(204, 204, 255);">저런 데이터가 없는 경우에도 가져와야 하는 JOIN을 OUTER JOIN 이라고 합니다.</div><div><br />
</div><div>아래와 같은 테이블이 있습니다.</div><div><span style="border-collapse: collapse; font-family: 돋움; line-height: normal;"><p style="margin: 2px 0px 0px; padding: 0px; line-height: 1.4;"><strong>select * from table1;</strong></p><p style="margin: 2px 0px 0px; padding: 0px; line-height: 1.4;"><strong>field1 &nbsp; &nbsp; &nbsp; &nbsp; field2 &nbsp; &nbsp; &nbsp; field3</strong></p><p style="margin: 2px 0px 0px; padding: 0px; line-height: 1.4;"><strong>200901 &nbsp;1 &nbsp;&nbsp;40</strong></p><p style="margin: 2px 0px 0px; padding: 0px; line-height: 1.4;"><strong>200901 &nbsp;2 &nbsp;&nbsp;40</strong></p><p style="margin: 2px 0px 0px; padding: 0px; line-height: 1.4;"><strong>200901 &nbsp;3 &nbsp;&nbsp;40</strong></p><p style="margin: 2px 0px 0px; padding: 0px; line-height: 1.4;"><strong>200901 &nbsp;4 &nbsp;&nbsp;40</strong></p><p style="margin: 2px 0px 0px; padding: 0px; line-height: 1.4;"><strong>200901 &nbsp;5 &nbsp;&nbsp;40</strong></p><p style="margin: 2px 0px 0px; padding: 0px; line-height: 1.4;"><strong>200901 &nbsp;6 &nbsp;&nbsp;40</strong></p><p style="margin: 2px 0px 0px; padding: 0px; line-height: 1.4;"><strong>200901 &nbsp;7 &nbsp;&nbsp;40</strong></p><p style="margin: 2px 0px 0px; padding: 0px; line-height: 1.4;"><strong>200901 &nbsp;8 &nbsp;&nbsp;40</strong></p><p style="margin: 2px 0px 0px; padding: 0px; line-height: 1.4;">&nbsp;</p><p style="margin: 2px 0px 0px; padding: 0px; line-height: 1.4;"><strong>select * from table2;</strong></p><p style="margin: 2px 0px 0px; padding: 0px; line-height: 1.4;"><strong>field1 &nbsp; &nbsp; &nbsp; &nbsp; field2 &nbsp; &nbsp; &nbsp; field3</strong></p><p style="margin: 2px 0px 0px; padding: 0px; line-height: 1.4;"><strong>200901 &nbsp;1 &nbsp; 50</strong></p><p style="margin: 2px 0px 0px; padding: 0px; line-height: 1.4;"><strong>200901 &nbsp;2 &nbsp; 60</strong></p><p style="margin: 2px 0px 0px; padding: 0px; line-height: 1.4;"><strong>200901 &nbsp;3 &nbsp; 70</strong></p><p style="margin: 2px 0px 0px; padding: 0px; line-height: 1.4;"><strong>200901 &nbsp;4 &nbsp; 80</strong></p></span></div><div><br />
</div><div style="color: rgb(255, 204, 255);">INNER JION의 경우, 평소에 하던 대로 하면 됩니다.</div><div><span style="color: rgb(102, 102, 102); line-height: 18px;"><div><div><span style="color: rgb(102, 102, 102); font-family: Verdana; font-size: 11px; line-height: normal;"><pre style="border: 1px solid rgb(153, 153, 153); padding: 7pt; font-family: 'Courier New',Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 9pt; line-height: normal; font-size-adjust: none; font-stretch: normal; background-color: rgb(238, 238, 238);"><span style="color: rgb(0, 0, 255);">SELECT a.*, b.*<br />
FROM table1 a, table2 b<br />
WHERE a.field1 = a.field1<br />
  AND a.field2 = b.field2<br />
</span></pre></span></div><div style="color: rgb(255, 204, 255);">굳이 다른 방식으로 이해하려 하지 않아도 됩니다.</div><div style="color: rgb(255, 204, 255);"><br />
</div><div style="color: rgb(255, 204, 255);">위 테이블 두개를 묶어서 관련된 데이터 b.field3값도 확인하고 싶습니다. 이때, 없는 레코드의 경우도 보여주고 싶을 때는 OUTER JOIN을 사용하게 됩니다.</div><div style="color: rgb(255, 204, 255);"><br />
</div><div style="color: rgb(255, 204, 255);">OUTER JOIN의 경우는 좀 복잡합니다. 물론 INNER JOIN 의 정확한 것을 배워도 되지만,</div><div style="color: rgb(255, 204, 255);">일단 FM은 아래와 같습니다.</div><div><div><div><span style="color: rgb(102, 102, 102); font-family: Verdana; font-size: 11px; line-height: normal;"><pre style="border: 1px solid rgb(153, 153, 153); padding: 7pt; font-family: 'Courier New',Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 9pt; line-height: normal; font-size-adjust: none; font-stretch: normal; background-color: rgb(238, 238, 238);"><span style="color: rgb(0, 0, 255);">SELECT a.*, b.field3<br />
FROM table1 a OUTER JOIN table2 b ON a.field2 = b.field2<br />
WHERE a.field1 = '200901'<br />
</span></pre></span></div><div style="color: rgb(255, 204, 187);">JOIN 부분은 없어도 NULL 값으로 연결을 해주고,</div><div style="color: rgb(255, 204, 187);">WHERE 이하 구문은 INNER JOIN 형태로 연결을 해줍니다.</div><div style="color: rgb(255, 204, 187);"><br />
</div><div style="color: rgb(255, 204, 187);">현재도 *= 문법을 지원을 하고 있으나,</div><div><span style="color: rgb(255, 204, 187);">몇가지 버그 등의 문제로 추천하는 문법은 아닙니다.</span><br style="color: rgb(255, 204, 187);"><br />
<br />
<div style="color: rgb(102, 51, 0);" class="author">퍼온곳 : <a href="http://picory.com/category/%EC%B4%88%EB%B3%B4%20%EA%B4%80%EB%A6%AC%EC%9E%90/DB" class="categoryBtn">초보 관리자/DB</a>		 <span class="date">2009/02/02 19:22</span>		 <span class="ownerBtn">by 비트센스</span>		  </div><br />
</div></div></div></div></span></div>			 ]]> 
		</description>
		<category>DB</category>

		<comments>http://darkmirr.egloos.com/1535048#comments</comments>
		<pubDate>Tue, 29 Sep 2009 05:33:47 GMT</pubDate>
		<dc:creator>darkmirr</dc:creator>
	</item>
	<item>
		<title><![CDATA[ [TOAD]Plan_Table (Explan Table)  ]]> </title>
		<link>http://darkmirr.egloos.com/1535038</link>
		<guid>http://darkmirr.egloos.com/1535038</guid>
		<description>
			<![CDATA[ 
  <p style="color: rgb(192, 192, 192);">TOAD] PLAN_TABLE</p><p style="color: rgb(192, 192, 192);">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br />
◎ 범례<br />
─────────────────────────────────────────────<br />
&nbsp;&nbsp; 대문자 : Reserved Word (오라클 예약어)<br />
&nbsp;&nbsp; 소문자 : User Define (사용자가 직접 입력해야 하는 부분)<br />
&nbsp;&nbsp; [ ] : Option (지정하지 않아도 되거나 생략시 기본 설정값으로 대체됨)<br />
&nbsp;&nbsp; or : Choice(여러가지중 하나를 선택한다)<br />
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</p><p style="color: rgb(192, 192, 192);">&nbsp;</p><p style="color: rgb(192, 192, 192);">◆ 처리방법<br />
─────────────────────────────────────────────</p><p style="color: rgb(192, 192, 192);">&nbsp;</p><p style="color: rgb(192, 192, 192);">1. PLAN 테이블,&nbsp;INDEX&nbsp;생성 및 권한 주기</p><p>&nbsp;</p><p style="color: rgb(255, 204, 255);"><span style="font-family: 돋움;">CREATE TABLE PLAN_TABLE</span><br />
<span style="font-family: 돋움;">(</span><br />
<span style="font-family: 돋움;">&nbsp; STATEMENT_ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VARCHAR2(30 BYTE),</span><br />
<span style="font-family: 돋움;">&nbsp; TIMESTAMP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATE,</span><br />
<span style="font-family: 돋움;">&nbsp; REMARKS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VARCHAR2(80 BYTE),</span><br />
<span style="font-family: 돋움;">&nbsp; OPERATION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VARCHAR2(30 BYTE),</span><br />
<span style="font-family: 돋움;">&nbsp; OPTIONS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VARCHAR2(30 BYTE),</span><br />
<span style="font-family: 돋움;">&nbsp; OBJECT_NODE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VARCHAR2(128 BYTE),</span><br />
<span style="font-family: 돋움;">&nbsp; OBJECT_OWNER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VARCHAR2(30 BYTE),</span><br />
<span style="font-family: 돋움;">&nbsp; OBJECT_NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VARCHAR2(30 BYTE),</span><br />
<span style="font-family: 돋움;">&nbsp; OBJECT_INSTANCE&nbsp;&nbsp;&nbsp; INTEGER,</span><br />
<span style="font-family: 돋움;">&nbsp; OBJECT_TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VARCHAR2(30 BYTE),</span><br />
<span style="font-family: 돋움;">&nbsp; OPTIMIZER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VARCHAR2(255 BYTE),</span><br />
<span style="font-family: 돋움;">&nbsp; SEARCH_COLUMNS&nbsp;&nbsp;&nbsp;&nbsp; NUMBER,</span><br />
<span style="font-family: 돋움;">&nbsp; ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER,</span><br />
<span style="font-family: 돋움;">&nbsp; PARENT_ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER,</span><br />
<span style="font-family: 돋움;">&nbsp; POSITION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER,</span><br />
<span style="font-family: 돋움;">&nbsp; COST&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER,</span><br />
<span style="font-family: 돋움;">&nbsp; CARDINALITY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER,</span><br />
<span style="font-family: 돋움;">&nbsp; BYTES&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER,</span><br />
<span style="font-family: 돋움;">&nbsp; OTHER_TAG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VARCHAR2(255 BYTE),</span><br />
<span style="font-family: 돋움;">&nbsp; PARTITION_START&nbsp;&nbsp;&nbsp; VARCHAR2(255 BYTE),</span><br />
<span style="font-family: 돋움;">&nbsp; PARTITION_STOP&nbsp;&nbsp;&nbsp;&nbsp; VARCHAR2(255 BYTE),</span><br />
<span style="font-family: 돋움;">&nbsp; PARTITION_ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER,</span><br />
<span style="font-family: 돋움;">&nbsp; OTHER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LONG,</span><br />
<span style="font-family: 돋움;">&nbsp; DISTRIBUTION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VARCHAR2(30 BYTE),</span><br />
<span style="font-family: 돋움;">&nbsp; CPU_COST&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER,</span><br />
<span style="font-family: 돋움;">&nbsp; IO_COST&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER,</span><br />
<span style="font-family: 돋움;">&nbsp; TEMP_SPACE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER,</span><br />
<span style="font-family: 돋움;">&nbsp; ACCESS_PREDICATES&nbsp; VARCHAR2(4000 BYTE),</span><br />
<span style="font-family: 돋움;">&nbsp; FILTER_PREDICATES&nbsp; VARCHAR2(4000 BYTE),</span><br />
<span style="font-family: 돋움;">&nbsp; PROJECTION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VARCHAR2(4000 BYTE),</span><br />
<span style="font-family: 돋움;">&nbsp; TIME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER,</span><br />
<span style="font-family: 돋움;">&nbsp; QBLOCK_NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VARCHAR2(30 BYTE)</span><br />
<span style="font-family: 돋움;">);</span></p><p><span style="font-family: 돋움;"></span>&nbsp;</p><p style="color: rgb(204, 204, 255);"><span style="font-family: 돋움;">CREATE UNIQUE INDEX PLAN_INDEX ON PLAN_TABLE</span><br />
<span style="font-family: 돋움;">(STATEMENT_ID, ID);</span></p><p style="color: rgb(204, 204, 255);"><span style="font-family: 돋움;"></span>&nbsp;</p><p style="color: rgb(204, 204, 255);"><span style="font-family: 돋움;">GRANT SELECT ON&nbsp; PLAN_TABLE TO user_id;</span></p><p><br />
<span style="font-family: 돋움;"></span></p><p style="color: rgb(255, 204, 187);">comment on column plan_table.statement_id is 'EXPLAIN PLAN문에서 사용자가 지정한 제목';<br />
comment on column plan_table.timestamp is '실행계획이 수립된 날짜와 시간';<br />
comment on column plan_table.remarks is '사용자가 부여한 주석';<br />
comment on column plan_table.operation is 'OPERATION';<br />
comment on column plan_table.options is 'OPTIONS';<br />
comment on column plan_table.object_node is '사용한 데이터베이스 링크(Database link)';<br />
comment on column plan_table.object_owner is '해당 라인의 오브젝트(Object)를 생성한 사용자 그룹(owner)';<br />
comment on column plan_table.object_name is '테이블이나 인덱스, 클러스터 등의 이름';<br />
comment on column plan_table.object_instance is 'SQL의 FROM절에 기술된 오브젝트를 좌에서 우로 부여한 번호';<br />
comment on column plan_table.object_type is '오브젝트의 종류(예: non-unique index)';<br />
comment on column plan_table.optimizer is '현재의 옵티마이저 모드(CHOOSE, FIRST_ROWS 등)';<br />
comment on column plan_table.search_columns is '시작과 끝키를 가진 인덱스 컬럼의 수';<br />
comment on column plan_table.id is '수립된 각 실행단계에 붙여진 일련번호';<br />
comment on column plan_table.parent_id is '해당 id의 부모의 단계가 가진 id';<br />
comment on column plan_table.position is '같은 부모id를 가지고 있는 자식id간의 처리 순서';<br />
comment on column plan_table.cost is 'CBO에 의해서 추정된 현재의 연산비용';<br />
comment on column plan_table.cardinality is '현재 연산을 통해서 추출될 테이블의 수(CBO의 추정치)';<br />
comment on column plan_table.bytes is '현재 연산을 통해서 추출된 바이트';<br />
comment on column plan_table.other_tag is 'OTHER 컬럼에서 SQL텍스트의 기능을 표현';<br />
comment on column plan_table.partition_start is '파티션 범위 검색을 할 때 시작 파티션';<br />
comment on column plan_table.partition_stop is '앤세스된 파티션의 마지막 파티션';<br />
comment on column plan_table.partition_id is 'PARTITION_START와 PARTITION_STOP컬럼의 값을 계산';<br />
comment on column plan_table.other is '다른 필요한 텍스트를 저장하기 위한 필드';<br />
comment on column plan_table.distribution is '병렬 실행 슬레이브가 어떻게 레코드를 추출하는 방법';&nbsp;</p><div class="autosourcing-stub"><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><strong style="padding: 0px 7px 0px 0px;"></strong></p><p style="color: rgb(192, 192, 192);"><span style="font-family: 돋움;">2, TOAD에서 PLAN Table 설정하기</span></p><p style="color: rgb(192, 192, 192);"><span style="font-family: 돋움;">&nbsp;&nbsp;&nbsp;1) 메뉴에서 Tools메뉴를 선택 후 Option 선택<span style="text-decoration: underline;"><br />
</span></span></p><p style="color: rgb(192, 192, 192);"><img class="image_left" border="0" onmouseover="this.style.cursor='pointer'" alt="" src="http://pds15.egloos.com/pds/200909/29/80/f0004380_4ac1949c4ed09.jpg" width="157" height="308" onclick="Control.Modal.openDialog(this, event, 'http://pds15.egloos.com/pds/200909/29/80/f0004380_4ac1949c4ed09.jpg');" align="left" /><span style="font-family: 돋움;"><span style="text-decoration: underline;"></span></span></p></div><div class="autosourcing-stub"><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
<strong style="padding: 0px 7px 0px 0px;"></strong></p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"></p><p style="color: rgb(192, 192, 192);" dir="ltr"><span style="font-family: 돋움;">2) 좌측 부분에서 Oracle 하위에 General 선택</span></p><p style="color: rgb(192, 192, 192);" dir="ltr"><span style="font-family: 돋움;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 화면 중앙 부분에 Explain Table Name에 생성한 테이블 이름(PLAN_TABLE)을 입력한 후</span></p><p dir="ltr"><span style="font-family: 돋움;"><span style="color: rgb(192, 192, 192);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [OK] 버튼을 클릭한다. <br />
</span></span></p><p dir="ltr"><img class="image_left" border="0" onmouseover="this.style.cursor='pointer'" alt="" src="http://pds15.egloos.com/pds/200909/29/80/f0004380_4ac195110d98f.jpg" width="400" height="317.090909091" onclick="Control.Modal.openDialog(this, event, 'http://pds15.egloos.com/pds/200909/29/80/f0004380_4ac195110d98f.jpg');" align="left" /><br />
<span style="font-family: 돋움;"><span style="color: rgb(192, 192, 192);"></span><div class="autosourcing-stub"><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
<strong style="padding: 0px 7px 0px 0px;"></strong></p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><br />
</p></div></span></p></div>			 ]]> 
		</description>
		<category>DB</category>

		<comments>http://darkmirr.egloos.com/1535038#comments</comments>
		<pubDate>Tue, 29 Sep 2009 05:03:36 GMT</pubDate>
		<dc:creator>darkmirr</dc:creator>
	</item>
	<item>
		<title><![CDATA[ Oracle DB import / export ]]> </title>
		<link>http://darkmirr.egloos.com/1534174</link>
		<guid>http://darkmirr.egloos.com/1534174</guid>
		<description>
			<![CDATA[ 
  <p><strong><font color="#e31600">1. Select 쿼리를 파일로&nbsp;저장해서 Import! 하기</font></strong></p><p style="color: rgb(204, 204, 255);">Export :</p><p style="color: rgb(204, 204, 255);">prompt&gt; mysql -uDB_USER -pPASSWD DB_NAME -e 'SELECT NAME,EMAIL FROM MEMBER_T' &gt; member.txt</p><p style="color: rgb(204, 204, 255);"><br />
</p><p style="color: rgb(204, 204, 255);">Import! :</p><p style="color: rgb(204, 204, 255);">prompt&gt; mysqlimport! --localhost -uDB_USER -pPASSWD DB_NAME TB_NAME.txt</p><p style="color: rgb(204, 204, 255);">#import!시에는 파일 이름을 데이터를 부어 넣을 테이블 이름과 같게 해줘야 한다.</p><p>&nbsp;</p><p>출처 : <a href="http://ardentdreams.tistory.com/291" target="_blank">http://ardentdreams.tistory.com/291</a></p><p>&nbsp;</p><p><strong><font color="#e31600">2. mysqldump 사용해서 Import! 하기</font></strong></p><p style="color: rgb(255, 204, 255);"><font face="verdana,arial,helvetica,sans-serif" size="2"><font><span style="font-family: Gulim;">a. 우선 backup을 수행해도 되는지 확인을 해보도록 합니다.</span></font><br />
<span style="font-family: Gulim;">&nbsp; &nbsp; &gt; 만일 DB가 InnoDB 방식이라면 아래와 같은 명령어가 통한답니다.</span><br />
<span style="font-family: Gulim;">&nbsp; &nbsp; &nbsp; mysql&gt;show table status&nbsp;</span><br />
<span style="font-family: Gulim;">&nbsp;&nbsp;&nbsp; &gt; 만일 InnoDB 가 아니라면...</span><br />
<span style="font-family: Gulim;">&nbsp; &nbsp; &nbsp; [neouser@neouserdb-1 data]$ du --max-depth=1</span><br />
<br />
<span style="font-family: Gulim;">b. 검토해본 결과 별다른 무리가 없다면 mysql을 backup을 받습니다.</span><br />
<span style="font-family: Gulim;">&nbsp; 저에 경우에는 &nbsp;backup후 개발 장비에 데이터를 모두 뿌려넣고 싶었기 때문에 dump를 뜨도록 했습니다.</span><br />
<br />
<span style="font-family: Gulim;">&nbsp; &gt; BACKUP</span><br />
<span style="font-family: Gulim;">&nbsp;&nbsp; 데이터베이스명 : neouserdb </span><br />
<span style="font-family: Gulim;">&nbsp;&nbsp; 생성할 sql파일명 : neouserdb.sql </span><br />
<span style="font-family: Gulim;">&nbsp;&nbsp; shell&gt;$ mysqldump -uroot -p neouserdb &gt; neouserdb.sql</span><br />
<br />
<span style="font-family: Gulim;">&nbsp; &gt; RESTORE</span><br />
<span style="font-family: Gulim;">&nbsp;&nbsp; 데이터베이스명 : neouserdb2 </span><br />
<span style="font-family: Gulim;">&nbsp;&nbsp; 생성할 sql파일명 : neouserdb.sql </span><br />
<span style="font-family: Gulim;">&nbsp; &nbsp; &nbsp;※ 선행작업으로 데이터베이스는 만들어 놓으셔야 합니다.</span><br />
<span style="font-family: Gulim;">&nbsp;&nbsp; shell&gt;$ mysql -uroot -p neouserdb2 &lt; neouserdb.sql </span><br />
<br />
<span style="font-family: Gulim;">c. 추가!!</span><br />
<span style="font-family: Gulim;">&nbsp;뭐든 뭔가 또다른 방법이 있기 마련이죠.</span><br />
<span style="font-family: Gulim;">&nbsp;mysql&gt; load data local infile 'data.txt' into table table_name;</span><br />
</font><font face="verdana,arial,helvetica,sans-serif" size="2"><span style="font-family: Gulim;">&nbsp;shell&gt;$ </span></font><code><font face="verdana,arial,helvetica,sans-serif" size="2"><span style="font-family: Gulim;">mysql -e "source </span><code><span style="font-family: Gulim;">/path-to-backup/backup-file.sql</span></code><span style="font-family: Gulim;">" </span></font><code><font face="verdana,arial,helvetica,sans-serif" size="2"><span style="font-family: Gulim;">db_name</span></font></code></code></p><p><font color="#474747"><code><code><font face="verdana,arial,helvetica,sans-serif" size="2"><span style="font-family: Gulim;"></span></font></code></code></font>&nbsp;</p><p><font color="#474747"><code><code><font face="verdana,arial,helvetica,sans-serif" size="2"><span style="font-family: Gulim;">출처 : <a href="http://indirock.egloos.com/1577202" target="_blank">http://indirock.egloos.com/1577202</a></span></font></code></code></font></p><p><br />
<font color="#474747"><code><code><font face="verdana,arial,helvetica,sans-serif" size="2"><span style="font-family: Gulim;"></span></font></code></code></font></p><p style="color: rgb(255, 204, 187);">----------------------------------------TOAD에서 ---------------------<br />
<code><code><font face="verdana,arial,helvetica,sans-serif" size="2"><span style="font-family: Gulim;"></span></font></code></code></p><p style="color: rgb(255, 204, 187);"><br />
<code><code><font face="verdana,arial,helvetica,sans-serif" size="2"><span style="font-family: Gulim;"></span></font></code></code></p><p style="color: rgb(255, 204, 187);">** 관리자 모드(DBA connect) 에서 실행한 경험입니다. <br />
<br />
1. Export ( DB 전체를 옮기는 경우)<br />
<br />
- Toad 메뉴 -&gt; DBA -&gt; Data Import/Export&nbsp; 에서&nbsp; Export Utility Wizard&nbsp;&nbsp;실행<br />
- Table, user, db 전체, 사용되는 parameter file 중 에서 db 전체(Export this database) 선택<br />
&nbsp;&nbsp;&nbsp;&nbsp;-&gt; Export this database</p><p style="color: rgb(255, 204, 187);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exports this entire database. EXP_FULL_DATABASE role required. <br />
- 그 후 옵션들은 Next 후 <br />
- Export 파일명 입력 시에&nbsp; 경로 및 파일명&nbsp;설정 <br />
- Finish<br />
<br />
2. Import (DB 전체를 옮기는 경우)<br />
- Toad 메뉴 -&gt; DBA -&gt; Data Import/Export&nbsp; 에서&nbsp; Import Utility Wizard&nbsp;&nbsp;실행<br />
- Table, user, db 전체, tablespaces,&nbsp;사용되는 parameter file 중 에서 db 전체(Import database) 선택<br />
&nbsp;&nbsp;&nbsp;&nbsp;-&gt;&nbsp;Import database</p><p style="color: rgb(255, 204, 187);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Imports the entire export file<br />
- 그 후 옵션들은 Next 후 <br />
- Export 파일명(Import 시킬 파일)&nbsp;입력 시에&nbsp; 경로 및 파일명&nbsp;설정 <br />
- Finish</p>			 ]]> 
		</description>
		<category>DB</category>

		<comments>http://darkmirr.egloos.com/1534174#comments</comments>
		<pubDate>Mon, 28 Sep 2009 05:06:30 GMT</pubDate>
		<dc:creator>darkmirr</dc:creator>
	</item>
	<item>
		<title><![CDATA[ 계층형 쿼리 ]]> </title>
		<link>http://darkmirr.egloos.com/1534150</link>
		<guid>http://darkmirr.egloos.com/1534150</guid>
		<description>
			<![CDATA[ 
  <p style="margin: 3pt 0cm 2pt 37pt; text-indent: -20pt; color: rgb(204, 204, 255);" class="MsoNormal"><span style="font-family: 굴림체; font-size: 12pt;" lang="EN-US"><span style="">1. </span></span><span style="font-family: 굴림체;"><font size="2">개요<span lang="EN-US"><o:p></o:p></span></font></span><span style="font-family: Wingdings; font-size: 12pt;" lang="EN-US"><span style=""></span></span></p><p style="margin: 3pt 0cm 2pt 37pt; text-indent: -20pt; color: rgb(204, 204, 255);" class="MsoNormal"><span style="font-family: Wingdings; font-size: 12pt;" lang="EN-US"><span style=""><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp; &nbsp;&nbsp; </span></span></span><span style="font-family: 굴림체;" lang="EN-US"><font size="2"><span style=""></span>테이블이 계층형 구조를 가지고 있거나, 또는 계층형 구조를 표현하기 위한 <br />
</font></span></p><p style="margin: 3pt 0cm 2pt 37pt; text-indent: -20pt; color: rgb(204, 204, 255);" class="MsoNormal"><span style="font-family: 굴림체;" lang="EN-US"><font size="2">&nbsp;컬럼을 가지고 있다면,계층형 쿼리를 사용하여, 그 계층형 구조 순으로, <br />
</font></span></p><p style="margin: 3pt 0cm 2pt 37pt; text-indent: -20pt;" class="MsoNormal"><span style="font-family: 굴림체;"><font size="2"><span style="color: rgb(204, 204, 255);">“SELECT”하는게 가능하다. </span><span lang="EN-US"><o:p></o:p></span></font></span></p><p style="margin: 3pt 0cm 2pt;" class="MsoNormal"><span style="font-family: 굴림체;" lang="EN-US"><o:p><font size="2">&nbsp;</font></o:p></span></p><p style="margin: 3pt 0cm 2pt 17pt; text-indent: -17pt;" class="MsoNormal"><span style="font-family: 굴림체; font-size: 12pt;" lang="EN-US"><span style="">&nbsp;&nbsp; <span style="color: rgb(153, 255, 255);">2. </span></span></span><span style="font-family: 굴림체; color: rgb(153, 255, 255);"><font size="2">문법<span lang="EN-US"><o:p></o:p></span></font></span></p><p style="margin: 3pt 0cm 2pt 17pt; color: rgb(153, 255, 255);" class="MsoNormal"><a class="con_link" name="2053943" target="_blank"><span lang="EN-US"><v:shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></v:path><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype><v:shape style="width: 299.25pt; height: 33.75pt;" id="_x0000_i1025" alt="Text description of queries3.gif follows" type="#_x0000_t75"><!-- localfile --><v></v></v:shape></span></a><span style=""></span><span style="font-family: 굴림체;" lang="EN-US"><o:p></o:p></span></p><p style="margin: 3pt 0cm 2pt 40pt; text-indent: -20pt; color: rgb(153, 255, 255);" class="MsoNormal"><span style="font-family: Wingdings;" lang="EN-US"><span style=""><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 굴림체;" lang="EN-US"><font size="2"><span style=""></span>[START WITH condition] CONNECT BY condition<o:p></o:p></font></span></p><p style="margin: 3pt 0cm 2pt 40pt; text-align: left; text-indent: -20pt; color: rgb(153, 255, 255);" class="MsoNormal" align="left"><a class="con_link" name="2060576" target="_blank"></a><span style="font-family: Wingdings;" lang="EN-US"><span style=""><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><font size="2"><span style="font-family: 굴림체;" lang="EN-US">START</span><span style="font-family: 굴림체;" lang="EN-US"> </span><span style="font-family: 굴림체;" lang="EN-US">WITH</span><span style="font-family: 굴림체;" lang="EN-US"> 계층구조를 시작하는 특정 row(s)를 가르킨다.<o:p></o:p></span></font></p><p style="margin: 3pt 0cm 2pt 40pt; text-indent: -20pt; color: rgb(153, 255, 255);" class="MsoNormal"><span style="font-family: Wingdings;" lang="EN-US"><span style=""><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><font size="2"><span style="font-family: 굴림체;" lang="EN-US">CONNECT</span><span style="font-family: 굴림체;" lang="EN-US"> </span><span style="font-family: 굴림체;" lang="EN-US">BY</span><span style="font-family: 굴림체;" lang="EN-US"> 는 부모 계층형 쿼리에서 부모노드와 자식노드 <br />
</span></font></p><p style="margin: 3pt 0cm 2pt 40pt; text-indent: -20pt; color: rgb(153, 255, 255);" class="MsoNormal"><font size="2"><span style="font-family: 굴림체;" lang="EN-US">&nbsp;특정한 관계를 나타내는데 사용한다. 부모노드가 되는 쪽에 </span><span style="font-family: 굴림체;" lang="EN-US">PRIOR</span><span style="font-family: 굴림체;" lang="EN-US"> operator <br />
</span></font></p><p style="margin: 3pt 0cm 2pt 40pt; text-indent: -20pt; color: rgb(153, 255, 255);" class="MsoNormal"><font size="2"><span style="font-family: 굴림체;" lang="EN-US">&nbsp;가 반드시 명시 되어야 한다. <o:p></o:p></span></font><span style="font-family: Wingdings;" lang="EN-US"><span style=""></span></span></p><p style="margin: 3pt 0cm 2pt 40pt; text-indent: -20pt; color: rgb(153, 255, 255);" class="MsoNormal"><span style="font-family: Wingdings;" lang="EN-US"><span style=""><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><font size="2"><span style="font-family: 굴림체;" lang="EN-US">Connect by 에 들어가는 조건은 오직 하나 만 가능하다. </span><span style="font-family: 굴림체;" lang="EN-US"><o:p></o:p></span></font></p><p style="margin: 3pt 0cm 2pt 40pt; text-indent: -20pt; color: rgb(153, 255, 255);" class="MsoNormal"><span style="font-family: Wingdings;" lang="EN-US"><span style=""><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><font size="2"><span style="font-family: 굴림체;" lang="EN-US">SIBLINGS는 계층형 구조에서만 사용되는 정렬을 위한 키워드로, <br />
</span></font></p><p style="margin: 3pt 0cm 2pt 40pt; text-indent: -20pt;" class="MsoNormal"><font size="2"><span style="font-family: 굴림체; color: rgb(153, 255, 255);" lang="EN-US">&nbsp;같은 레벨의 노드 끼리 비교하여 정렬 할 때 사용한다. </span><span style="font-family: 굴림체;" lang="EN-US"><o:p></o:p></span></font></p><p style="margin: 3pt 0cm 2pt 40pt; text-indent: -20pt; color: rgb(153, 255, 153);" class="MsoNormal"><span style="font-family: Wingdings;" lang="EN-US"><span style="">ex)<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> &nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><font size="2"><span style="font-family: 굴림체;">예 </span><span style="font-family: 굴림체;" lang="EN-US"><o:p></o:p></span></font></p><p style="margin: 0cm 0cm 0pt 40pt; text-align: left; color: rgb(153, 255, 153);" class="MsoNormal" align="left"><span style="font-family: 굴림체;" lang="EN-US"><font size="2">SELECT last_name, employee_id, manager_id, LEVEL<o:p></o:p></font></span></p><p style="margin: 0cm 0cm 0pt 40pt; text-align: left; color: rgb(153, 255, 153);" class="MsoNormal" align="left"><a class="con_link" name="2062890" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FROM employees<o:p></o:p></font></span></p><p style="margin: 0cm 0cm 0pt 40pt; text-align: left; color: rgb(153, 255, 153);" class="MsoNormal" align="left"><a class="con_link" name="2062891" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>[START WITH employee_id = 100]<o:p></o:p></font></span></p><p style="margin: 0cm 0cm 0pt 40pt; text-align: left; color: rgb(153, 255, 153);" class="MsoNormal" align="left"><a class="con_link" name="2062892" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>CONNECT BY PRIOR employee_id = manager_id<o:p></o:p></font></span></p><p style="margin: 0cm 0cm 0pt 40pt; text-align: left;" class="MsoNormal" align="left"><a style="color: rgb(153, 255, 153);" class="con_link" name="2062893" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2"><span style="color: rgb(153, 255, 153);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ORDER [SIBLINGS] BY last_name;</span><o:p></o:p></font></span></p><p style="margin: 0cm 0cm 0pt 40pt; text-align: left;" class="MsoNormal" align="left"><span style="font-family: 굴림체;" lang="EN-US"><o:p><font size="2">&nbsp;</font></o:p></span></p><p style="margin: 0cm 0cm 0pt 80pt; text-align: left; color: rgb(192, 192, 192);" class="MsoNormal" align="left"><span style="font-family: 굴림체;" lang="EN-US"><font size="2">LAST_NAME<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>EMPLOYEE_ID MANAGER_ID<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>LEVEL<o:p></o:p></font></span></p><p style="margin: 0cm 0cm 0pt 80pt; text-align: left; color: rgb(192, 192, 192);" class="MsoNormal" align="left"><a class="con_link" name="2062912" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2">------------------------- ----------- ---------- ----------<o:p></o:p></font></span></p><p style="margin: 0cm 0cm 0pt 80pt; text-align: left; color: rgb(192, 192, 192);" class="MsoNormal" align="left"><a class="con_link" name="2062913" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2">King<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>100<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>1<o:p></o:p></font></span></p><p style="margin: 0cm 0cm 0pt 80pt; text-align: left; color: rgb(192, 192, 192);" class="MsoNormal" align="left"><a class="con_link" name="2062914" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2">Cambrault<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>148<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>100<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>2<o:p></o:p></font></span></p><p style="margin: 0cm 0cm 0pt 80pt; text-align: left; color: rgb(192, 192, 192);" class="MsoNormal" align="left"><a class="con_link" name="2062915" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2">Bates<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>172<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>148<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>3<o:p></o:p></font></span></p><p style="margin: 0cm 0cm 0pt 80pt; text-align: left; color: rgb(192, 192, 192);" class="MsoNormal" align="left"><a class="con_link" name="2062916" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2">Bloom<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>169<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>148<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>3<o:p></o:p></font></span></p><p style="margin: 0cm 0cm 0pt 80pt; text-align: left; color: rgb(192, 192, 192);" class="MsoNormal" align="left"><a class="con_link" name="2062917" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2">Fox<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>170<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>148<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>3<o:p></o:p></font></span></p><p style="margin: 0cm 0cm 0pt 80pt; text-align: left;" class="MsoNormal" align="left"><a style="color: rgb(192, 192, 192);" class="con_link" name="2062918" target="_blank"></a><a style="color: rgb(192, 192, 192);" class="con_link" name="2062919" target="_blank"></a><a style="color: rgb(192, 192, 192);" class="con_link" name="2062920" target="_blank"></a><a style="color: rgb(192, 192, 192);" class="con_link" name="2062921" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2"><span style="color: rgb(192, 192, 192);">ae Haan&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 102&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 170&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4</span><o:p></o:p></font></span></p><p style="margin: 3pt 0cm 2pt;" class="MsoNormal"><span style="font-family: 굴림체;" lang="EN-US"><o:p><font size="2">&nbsp;</font></o:p></span></p><p style="margin: 3pt 0cm 2pt;" class="MsoNormal"><span style="font-family: 굴림체;" lang="EN-US"><font size="2"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(255, 204, 187);">특정 레벨만 가져오기 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p style="color: rgb(255, 204, 187);"></o:p></font></span></p><pre style="color: rgb(255, 204, 187);"><span style="font-family: 굴림체;" lang="EN-US"><span style=""><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></span></span><a class="con_link" name="119938" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2">SELECT v.employee_id, v.last_name, v.lev <o:p></o:p></font></span></pre><p style="margin: 0cm 0cm 0pt 30pt; text-align: left; color: rgb(255, 204, 187);" class="MsoNormal" align="left"><a class="con_link" name="119939" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2"><span style="">&nbsp;&nbsp; </span>FROM <o:p></o:p></font></span></p><p style="margin: 0cm 0cm 0pt 30pt; text-align: left; color: rgb(255, 204, 187);" class="MsoNormal" align="left"><a class="con_link" name="119940" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>(SELECT employee_id, last_name, LEVEL lev <o:p></o:p></font></span></p><p style="margin: 0cm 0cm 0pt 30pt; text-align: left; color: rgb(255, 204, 187);" class="MsoNormal" align="left"><a class="con_link" name="119941" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FROM employees v<o:p></o:p></font></span></p><p style="margin: 0cm 0cm 0pt 30pt; text-align: left; color: rgb(255, 204, 187);" class="MsoNormal" align="left"><a class="con_link" name="119942" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>START WITH employee_id = 100 <o:p></o:p></font></span></p><p style="margin: 0cm 0cm 0pt 30pt; text-align: left; color: rgb(255, 204, 187);" class="MsoNormal" align="left"><a class="con_link" name="119943" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2"><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>CONNECT BY PRIOR employee_id = manager_id) v <o:p></o:p></font></span></p><p style="margin: 0cm 0cm 0pt 30pt; text-align: left; color: rgb(255, 204, 187);" class="MsoNormal" align="left"><a class="con_link" name="119944" target="_blank"></a><span style="font-family: 굴림체;" lang="EN-US"><font size="2"><span style="">&nbsp;&nbsp; </span>WHERE v.lev = 2;<o:p></o:p></font></span></p><p style="margin: 3pt 0cm 2pt;" class="MsoNormal"><span style="font-family: 굴림체;" lang="EN-US"><font size="2"><span style="color: rgb(255, 204, 187);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></font></span></p><p style="margin: 3pt 0cm 2pt;" class="MsoNormal"><span style="font-family: 굴림체;" lang="EN-US"><o:p><font size="2">&nbsp;</font></o:p></span></p><p style="margin: 3pt 0cm 2pt;" class="MsoNormal"><span style="font-family: 굴림체;" lang="EN-US"><o:p><font size="2">&nbsp;</font></o:p></span></p><p style="margin: 3pt 0cm 2pt 50pt; text-indent: -20pt;" class="MsoNormal"><span style="font-family: 굴림체;" lang="EN-US"><span style=""><font size="2">3.</font><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 굴림체;"><font size="2">장점과 단점 <span lang="EN-US"><o:p></o:p></span></font></span></p><p style="margin: 3pt 0cm 2pt 62.55pt; text-indent: -20pt;" class="MsoNormal"><span style="font-family: Wingdings;" lang="EN-US"><span style=""><span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: rgb(153, 51, 0);"> </span></span></span></span><span style="font-family: 굴림체; color: rgb(153, 51, 0);"><font size="2">장점<span lang="EN-US"> <o:p></o:p></span></font></span></p><p style="margin: 3pt 0cm 2pt 82.55pt; text-indent: -20pt; color: rgb(153, 51, 0);" class="MsoNormal"><span style="font-family: Wingdings;" lang="EN-US"><span style="">1.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 굴림체;"><font size="2">테이블에서 계층형 구조를 표현하기 위한<span lang="EN-US">, 컬럼이나, <br />
</span></font></span></p><p style="margin: 3pt 0cm 2pt 82.55pt; text-indent: -20pt; color: rgb(153, 51, 0);" class="MsoNormal"><span style="font-family: 굴림체;"><font size="2"><span lang="EN-US">&nbsp;&nbsp;&nbsp; 긴 데이터를 제거 하거나 줄일 수 있다.<o:p></o:p></span></font></span></p><p style="margin: 3pt 0cm 2pt 82.55pt; text-indent: -20pt; color: rgb(153, 51, 0);" class="MsoNormal"><span style="font-family: Wingdings;" lang="EN-US"><span style="">2.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 굴림체;"><font size="2">간단한 쿼리로<span lang="EN-US">, 계층구조의 테이터를 가져올 수 있다. <o:p></o:p></span></font></span></p><p style="margin: 3pt 0cm 2pt 82.55pt; text-indent: -20pt;" class="MsoNormal"><span style="font-family: Wingdings; color: rgb(153, 51, 0);" lang="EN-US"><span style="">3.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 굴림체;"><font size="2"><span style="color: rgb(153, 51, 0);">계층구조의 변화를 쉽게 적용할 수 있다</span><span lang="EN-US"><span style="color: rgb(153, 51, 0);">. </span><o:p></o:p></span></font></span></p><p style="margin: 3pt 0cm 2pt 62.55pt;" class="MsoNormal"><span style="font-family: 굴림체;" lang="EN-US"><o:p><font size="2">&nbsp;</font></o:p></span></p><p style="margin: 3pt 0cm 2pt 62.55pt; text-indent: -20pt;" class="MsoNormal"><span style="font-family: Wingdings;" lang="EN-US"><span style="">&nbsp;<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(102, 102, 0);"> </span></span></span><span style="font-family: 굴림체; color: rgb(102, 102, 0);"><font size="2">단점<span lang="EN-US"> <o:p></o:p></span></font></span></p><p style="margin: 3pt 0cm 2pt 82.55pt; text-indent: -20pt;" class="MsoNormal"><span style="font-family: Wingdings; color: rgb(102, 102, 0);" lang="EN-US"><span style="">1<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-family: 굴림체;"><font size="2"><span style="color: rgb(102, 102, 0);">오라클에서만 사용 가능하다</span><span lang="EN-US"><span style="color: rgb(102, 102, 0);">. </span><o:p></o:p></span></font></span></p><p style="margin: 3pt 0cm 2pt;" class="MsoNormal"><span style="font-family: 굴림체;" lang="EN-US"><o:p><font size="2">&nbsp;</font></o:p></span></p><p style="margin: 3pt 0cm 2pt;" class="MsoNormal"><span style="font-family: 굴림체;" lang="EN-US"><o:p><font size="2">&nbsp;<span style="font-family: 'Times New Roman'; font-size: 10pt;" lang="EN-US"><v:shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"> <v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></v:path><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype></span>참고 : <a class="con_link" href="http://www.javanuri.com/devforum/boardView.jsp?menuId=10&amp;Id=653&amp;gb=tip" target="_blank">http://www.javanuri.com/devforum/boardView.jsp?menuId=10&amp;Id=653&amp;gb=tip</a><div class="autosourcing-stub"><p style="margin: 11px 0px 7px; padding: 0px; font-style: normal; font-family: Dotum; font-size: 12px; font-weight: normal;"><a class="con_link" href="http://www.javanuri.com/devforum/boardView.jsp?menuId=10&amp;Id=653&amp;gb=tip" target="_blank"><strong style="padding: 0px 7px 0px 0px;">[출처]</strong> </a><a href="http://blog.naver.com/saojung50/120065853689" target="_blank">[SQL ORACLE] 계층형 쿼리</a><span style="padding: 0px 7px 0px 5px;">|</span><strong style="padding: 0px 7px 0px 0px;">작성자</strong> <a href="http://blog.naver.com/saojung50" target="_blank">써니</a></p></div></font></o:p></span></p>			 ]]> 
		</description>
		<category>DB</category>

		<comments>http://darkmirr.egloos.com/1534150#comments</comments>
		<pubDate>Mon, 28 Sep 2009 04:24:24 GMT</pubDate>
		<dc:creator>darkmirr</dc:creator>
	</item>
	<item>
		<title><![CDATA[ Oracle 함수  ]]> </title>
		<link>http://darkmirr.egloos.com/1530894</link>
		<guid>http://darkmirr.egloos.com/1530894</guid>
		<description>
			<![CDATA[ 
  <span style="color: rgb(102, 255, 153);"><br />
Oracle 함수 정리 해 놓은 SITE</span><br />
<br />
<br />
<a target="_blank" href="http://www.statwith.pe.kr/ORACLE/functions001.htm">http://www.statwith.pe.kr/ORACLE/functions001.htm</a>			 ]]> 
		</description>
		<category>DB</category>

		<comments>http://darkmirr.egloos.com/1530894#comments</comments>
		<pubDate>Thu, 24 Sep 2009 01:45:39 GMT</pubDate>
		<dc:creator>darkmirr</dc:creator>
	</item>
	<item>
		<title><![CDATA[ Framework에 대한 고찰 ]]> </title>
		<link>http://darkmirr.egloos.com/1525201</link>
		<guid>http://darkmirr.egloos.com/1525201</guid>
		<description>
			<![CDATA[ 
  <span style="color: rgb(255, 204, 255);">이글루스 블러거 써니 님의 블러그에서 발취한 내용입니다.</span><br style="color: rgb(255, 204, 255);"><br style="color: rgb(255, 204, 255);"><span style="color: rgb(255, 204, 255);">신입사원에게 조사시킨 내용이라고 하시는 군요</span><br style="color: rgb(255, 204, 255);"><br style="color: rgb(255, 204, 255);"><span style="color: rgb(255, 204, 255);">내용이 참 잘 정리 되어있습니다.</span><br style="color: rgb(255, 204, 255);"><br style="color: rgb(255, 204, 255);"><span style="color: rgb(255, 204, 255);">저도 얼마전 한 과장님께 똑같은 질문을 받았습니다. Framework가 뭐냐고요 ㅎㅎㅎㅎ</span><br style="color: rgb(255, 204, 255);"><br style="color: rgb(255, 204, 255);"><span style="color: rgb(255, 204, 255);">이것만 잘 읽어보고 차이점을 분명히 가지시고 계시면 될거 같습니다.</span><br />
<br />
<a href="http://pds16.egloos.com/pds/200909/17/80/what_is_framework.doc">what_is_framework.doc</a><br />
			 ]]> 
		</description>
		<category>FRAME WORK</category>

		<comments>http://darkmirr.egloos.com/1525201#comments</comments>
		<pubDate>Thu, 17 Sep 2009 00:47:18 GMT</pubDate>
		<dc:creator>darkmirr</dc:creator>
	</item>
</channel>
</rss>
