글

라벨이 cx_oracle인 게시물 표시

Installing Python 2.4.1 and cx_Oracle on AIX

http://agiletesting.blogspot.kr/2005/07/installing-python-241-and-cxoracle-on.html (Large Open Source Software Archive for AIX) http://www.bullfreeware.com/toolbox.php   You can download opensource rpm for AIX from here.

우분투 cx_Oracle 설치

우분투 cx_Oracle 설치 cx_Oracle 을 설치 하기위해서는 Python.h 헤더 파일이 필요하다. python-dev  패키지를 설치 하면 된다. 1) sudo apt-get install python-dev 2) Python installer 설치 sudo apt-get install python-setuptools 3)sudo -E easy_install cx_Oracle -E 옵션을 주지 않으면 ORACLE_HOME 같은 환경 변수가 설치 쉘로 전달되지 않는다. cx_Oracle 사용법  방법1)tns 접속 … connection = cx_Oracle.connect(user,password,tns)          cursor=connection.cursor() … 방법2)direct 접속 … dsn=cx_Oracle.makedsn(host,port,sid) connection = cx_Oracle.connect(user,password,dsn) cursor=connection.cursor() 만일 아래와 같은 에러가 떨어지면..... ImportError: libaio.so.1: cannot open shared object file: No such file or directory sudo   apt-get  install   -y libaio-dev libaio-dev 을 설치 해주면 됨  [출처]   [cx_Oracle]Oracle 접속하기 | 작성자   돌