<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ko">
	<id>https://devcafe.co.kr/w/index.php?action=history&amp;feed=atom&amp;title=%EA%B0%9C%EB%B0%9C%EB%85%B8%ED%8A%B8_%ED%85%8C%EC%8A%A4%ED%8A%B8</id>
	<title>개발노트 테스트 - 편집 역사</title>
	<link rel="self" type="application/atom+xml" href="https://devcafe.co.kr/w/index.php?action=history&amp;feed=atom&amp;title=%EA%B0%9C%EB%B0%9C%EB%85%B8%ED%8A%B8_%ED%85%8C%EC%8A%A4%ED%8A%B8"/>
	<link rel="alternate" type="text/html" href="https://devcafe.co.kr/w/index.php?title=%EA%B0%9C%EB%B0%9C%EB%85%B8%ED%8A%B8_%ED%85%8C%EC%8A%A4%ED%8A%B8&amp;action=history"/>
	<updated>2026-11-12T13:57:47Z</updated>
	<subtitle>이 문서의 편집 역사</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://devcafe.co.kr/w/index.php?title=%EA%B0%9C%EB%B0%9C%EB%85%B8%ED%8A%B8_%ED%85%8C%EC%8A%A4%ED%8A%B8&amp;diff=2761&amp;oldid=prev</id>
		<title>Devcafe: 핵심 정리 항목 추가</title>
		<link rel="alternate" type="text/html" href="https://devcafe.co.kr/w/index.php?title=%EA%B0%9C%EB%B0%9C%EB%85%B8%ED%8A%B8_%ED%85%8C%EC%8A%A4%ED%8A%B8&amp;diff=2761&amp;oldid=prev"/>
		<updated>2026-11-12T03:22:59Z</updated>

		<summary type="html">&lt;p&gt;핵심 정리 항목 추가&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ko&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← 이전 판&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2026년 11월 12일 (목) 12:22 판&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;1번째 줄:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;1번째 줄:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{개발노트&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{개발노트&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|요약=python-oracledb Thin 모드로 Oracle 19c에 접속하고 쿼리를 실행하는 기본 예제&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|요약=python-oracledb Thin 모드로 Oracle 19c에 접속하고 쿼리를 실행하는 기본 예제&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|핵심=Thin 모드는 Oracle Client 설치 없이 바로 접속할 수 있다&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;with 문을 쓰면 커서와 연결이 자동으로 닫힌다&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;쿼리 값은 반드시 바인드 변수(:name)로 넘긴다&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;접속 오류는 리스너 상태와 서비스명부터 확인한다&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|분야=Python&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|분야=Python&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|난이도=초급&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|난이도=초급&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Devcafe</name></author>
	</entry>
	<entry>
		<id>https://devcafe.co.kr/w/index.php?title=%EA%B0%9C%EB%B0%9C%EB%85%B8%ED%8A%B8_%ED%85%8C%EC%8A%A4%ED%8A%B8&amp;diff=2752&amp;oldid=prev</id>
		<title>Devcafe: 개발노트 양식 테스트 문서</title>
		<link rel="alternate" type="text/html" href="https://devcafe.co.kr/w/index.php?title=%EA%B0%9C%EB%B0%9C%EB%85%B8%ED%8A%B8_%ED%85%8C%EC%8A%A4%ED%8A%B8&amp;diff=2752&amp;oldid=prev"/>
		<updated>2026-11-12T03:12:52Z</updated>

		<summary type="html">&lt;p&gt;개발노트 양식 테스트 문서&lt;/p&gt;
&lt;p&gt;&lt;b&gt;새 문서&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{개발노트&lt;br /&gt;
|요약=python-oracledb Thin 모드로 Oracle 19c에 접속하고 쿼리를 실행하는 기본 예제&lt;br /&gt;
|분야=Python&lt;br /&gt;
|난이도=초급&lt;br /&gt;
|환경=Windows 11 / Python 3.12 / Oracle 19c&lt;br /&gt;
|키워드=oracledb, Oracle, DB 접속&lt;br /&gt;
|작성일=2026-11-12&lt;br /&gt;
}}&lt;br /&gt;
== 개요 ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;python-oracledb&amp;#039;&amp;#039;&amp;#039;는 cx_Oracle의 후속 드라이버입니다. 기본값인 &amp;#039;&amp;#039;&amp;#039;Thin 모드&amp;#039;&amp;#039;&amp;#039;는 Oracle Client(Instant Client) 설치 없이 바로 접속할 수 있어 간단한 자동화 스크립트에 적합합니다.&lt;br /&gt;
&lt;br /&gt;
== 준비 사항 ==&lt;br /&gt;
* Python 3.8 이상&lt;br /&gt;
* 패키지 설치: &amp;lt;code&amp;gt;pip install oracledb&amp;lt;/code&amp;gt;&lt;br /&gt;
* 접속 정보: 호스트, 포트, 서비스명, 계정&lt;br /&gt;
&lt;br /&gt;
== 본문 ==&lt;br /&gt;
=== 1단계 : 접속 ===&lt;br /&gt;
&amp;lt;code&amp;gt;oracledb.connect()&amp;lt;/code&amp;gt;에 계정과 DSN(&amp;lt;code&amp;gt;호스트:포트/서비스명&amp;lt;/code&amp;gt;)을 넘깁니다.&lt;br /&gt;
&lt;br /&gt;
=== 2단계 : 쿼리 실행 ===&lt;br /&gt;
&amp;lt;code&amp;gt;with&amp;lt;/code&amp;gt; 문을 쓰면 커서와 연결이 자동으로 닫힙니다. 값은 반드시 &amp;#039;&amp;#039;&amp;#039;바인드 변수&amp;#039;&amp;#039;&amp;#039;로 넘기세요.&lt;br /&gt;
&lt;br /&gt;
== 예제 코드 ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import oracledb&lt;br /&gt;
&lt;br /&gt;
dsn = &amp;quot;dbhost:1521/ORCLPDB&amp;quot;&lt;br /&gt;
&lt;br /&gt;
with oracledb.connect(user=&amp;quot;scott&amp;quot;, password=&amp;quot;tiger&amp;quot;, dsn=dsn) as conn:&lt;br /&gt;
    print(&amp;quot;DB 버전:&amp;quot;, conn.version)&lt;br /&gt;
    with conn.cursor() as cur:&lt;br /&gt;
        cur.execute(&amp;quot;SELECT ename, sal FROM emp WHERE deptno = :d&amp;quot;, d=10)&lt;br /&gt;
        for ename, sal in cur:&lt;br /&gt;
            print(ename, sal)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 문제 해결 ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! 증상 !! 원인 !! 해결 방법&lt;br /&gt;
|-&lt;br /&gt;
| DPY-6005 / ORA-12541 || 리스너 미기동 또는 포트 차단 || &amp;lt;code&amp;gt;lsnrctl status&amp;lt;/code&amp;gt;, 방화벽 확인&lt;br /&gt;
|-&lt;br /&gt;
| ORA-12514 || 서비스명 오류 || &amp;lt;code&amp;gt;lsnrctl services&amp;lt;/code&amp;gt;로 서비스명 확인&lt;br /&gt;
|-&lt;br /&gt;
| DPY-3015 || 구버전 DB의 비밀번호 검증자(10G) || 비밀번호 재설정 또는 Thick 모드 사용&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== 참고 자료 ==&lt;br /&gt;
* [https://python-oracledb.readthedocs.io/ python-oracledb 공식 문서]&lt;/div&gt;</summary>
		<author><name>Devcafe</name></author>
	</entry>
</feed>