보통 DB 서버가 따로 있기에, 웹서버에 클라이언트만 설치하고
웹서버 설정과 jdbs 설정만 하면 되죠.
다들 아시리라 생각되는 것 정리(이곳저곳,그리고프로젝트) 하여 올려 드립니다.
[ Oracle Instant Client 설치 -예제는 solaris64]
1. 다운로드 후 설치 파일 임의 디렉토리에 FTP 이용하여 올리기
http://www.oracle.com/technology/global/kr/tech/oci/instantclient/instantclient.html
(해당 클라이언트를 선택하여, 다운 받으시고 ftp 이용해 서버로 옮기시길...)
Instant Client Package - Basic
Instant Client Package - JDBC Supplement
Instant Client Package - SQL*Plus
Instant Client Package - SDK
2. 압축 해제 및 실행폴더로 복사
# unzip instantclient-basic-solaris64-10.2.0.3-20070101.zip
# unzip instantclient-jdbc-solaris64-10.2.0.3-20070101.zip
# unzip instantclient-sdk-solaris64-10.2.0.3-20070101.zip
# unzip instantclient-sqlplus-solaris64-10.2.0.3-20070101.zip
# cd instantclient_10_2
# mkdir /usr/lib/oracle
# mv * /usr/lib/oracle/
3. profile 및 tnsnames 파일 수정
# vi /etc/profile
-----------------------------------------------------------------
# for Oracle Instant Client
if [ -d /usr/lib/oracle ]
then
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/oracle;export LD_LIBRARY_PATH
PATH=$PATH:/usr/lib/oracle;export PATH;
NLS_LANG=Korean_Korea.KO16KSC5601;export NLS_LANG;
TNS_ADMIN=/usr/lib/oracle; export TNS_ADMIN;
SQLPATH=/usr/lib/oracle; export SQLPATH;
fi
-----------------------------------------------------------------
# vi /usr/lib/oracle/tnsnames.ora
-----------------------------------------------------------------
ORA=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =211.XXX.XXX.XXX)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ora)
)
)
-----------------------------------------------------------------
혹시 재접속 에러가 발생하면 ^M 이 문자열에 있을 것입니다. 아마 복사해서 사용할 경우
발생할수도 있습니다. vi로 직접 입력하시던지 editplus를 이용해서...
4. 로그아웃 후 재접속. 테스트
# sqlplus user/passwd@ORA
SQL*Plus: Release 10.2.0.2.0 - Production on 화 10월 21 16:47:39 2007
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
다음에 접속됨:
Oracle10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 10.2.0.1.0 - Production
SQL>
웹서버 설정과 jdbs 설정만 하면 되죠.
다들 아시리라 생각되는 것 정리(이곳저곳,그리고프로젝트) 하여 올려 드립니다.
[ Oracle Instant Client 설치 -예제는 solaris64]
1. 다운로드 후 설치 파일 임의 디렉토리에 FTP 이용하여 올리기
http://www.oracle.com/technology/global/kr/tech/oci/instantclient/instantclient.html
(해당 클라이언트를 선택하여, 다운 받으시고 ftp 이용해 서버로 옮기시길...)
Instant Client Package - Basic
Instant Client Package - JDBC Supplement
Instant Client Package - SQL*Plus
Instant Client Package - SDK
2. 압축 해제 및 실행폴더로 복사
# unzip instantclient-basic-solaris64-10.2.0.3-20070101.zip
# unzip instantclient-jdbc-solaris64-10.2.0.3-20070101.zip
# unzip instantclient-sdk-solaris64-10.2.0.3-20070101.zip
# unzip instantclient-sqlplus-solaris64-10.2.0.3-20070101.zip
# cd instantclient_10_2
# mkdir /usr/lib/oracle
# mv * /usr/lib/oracle/
3. profile 및 tnsnames 파일 수정
# vi /etc/profile
-----------------------------------------------------------------
# for Oracle Instant Client
if [ -d /usr/lib/oracle ]
then
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/oracle;export LD_LIBRARY_PATH
PATH=$PATH:/usr/lib/oracle;export PATH;
NLS_LANG=Korean_Korea.KO16KSC5601;export NLS_LANG;
TNS_ADMIN=/usr/lib/oracle; export TNS_ADMIN;
SQLPATH=/usr/lib/oracle; export SQLPATH;
fi
-----------------------------------------------------------------
# vi /usr/lib/oracle/tnsnames.ora
-----------------------------------------------------------------
ORA=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =211.XXX.XXX.XXX)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ora)
)
)
-----------------------------------------------------------------
혹시 재접속 에러가 발생하면 ^M 이 문자열에 있을 것입니다. 아마 복사해서 사용할 경우
발생할수도 있습니다. vi로 직접 입력하시던지 editplus를 이용해서...
4. 로그아웃 후 재접속. 테스트
# sqlplus user/passwd@ORA
SQL*Plus: Release 10.2.0.2.0 - Production on 화 10월 21 16:47:39 2007
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
다음에 접속됨:
Oracle10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 10.2.0.1.0 - Production
SQL>
[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 377 | ||
| 7929 | 9년 전 | 268 | ||
| 7928 | 9년 전 | 379 | ||
| 7927 | 9년 전 | 299 | ||
| 7926 | 9년 전 | 648 | ||
| 7925 | 9년 전 | 317 | ||
| 7924 | 9년 전 | 293 | ||
| 7923 | 9년 전 | 323 | ||
| 7922 | 9년 전 | 347 | ||
| 7921 | 9년 전 | 377 | ||
| 7920 | 9년 전 | 301 | ||
| 7919 | 9년 전 | 314 | ||
| 7918 | 9년 전 | 477 | ||
| 7917 | 9년 전 | 318 | ||
| 7916 | 9년 전 | 385 | ||
| 7915 | 9년 전 | 371 | ||
| 7914 | 9년 전 | 385 | ||
| 7913 | 9년 전 | 509 | ||
| 7912 | 9년 전 | 384 | ||
| 7911 | 9년 전 | 334 | ||
| 7910 | 9년 전 | 368 | ||
| 7909 | 9년 전 | 472 | ||
| 7908 | 9년 전 | 371 | ||
| 7907 | 9년 전 | 326 | ||
| 7906 | 9년 전 | 340 | ||
| 7905 | 9년 전 | 331 | ||
| 7904 | 9년 전 | 302 | ||
| 7903 | 9년 전 | 306 | ||
| 7902 | 9년 전 | 518 | ||
| 7901 |
|
9년 전 | 718 | |
| 7900 | 9년 전 | 543 | ||
| 7899 | 9년 전 | 352 | ||
| 7898 | 9년 전 | 341 | ||
| 7897 | 9년 전 | 299 | ||
| 7896 | 9년 전 | 322 | ||
| 7895 | 9년 전 | 428 | ||
| 7894 | 9년 전 | 351 | ||
| 7893 | 9년 전 | 287 | ||
| 7892 | 9년 전 | 332 | ||
| 7891 | 9년 전 | 722 | ||
| 7890 | 9년 전 | 1178 | ||
| 7889 | 9년 전 | 735 | ||
| 7888 |
limsy1987
|
9년 전 | 531 | |
| 7887 | 9년 전 | 506 | ||
| 7886 | 9년 전 | 397 | ||
| 7885 | 9년 전 | 365 | ||
| 7884 | 9년 전 | 377 | ||
| 7883 | 9년 전 | 364 | ||
| 7882 | 9년 전 | 374 | ||
| 7881 | 9년 전 | 403 | ||
| 7880 | 9년 전 | 526 | ||
| 7879 | 9년 전 | 423 | ||
| 7878 | 9년 전 | 1165 | ||
| 7877 | 9년 전 | 714 | ||
| 7876 | 9년 전 | 444 | ||
| 7875 | 9년 전 | 515 | ||
| 7874 |
|
9년 전 | 785 | |
| 7873 | 9년 전 | 485 | ||
| 7872 | 9년 전 | 621 | ||
| 7871 | 9년 전 | 450 | ||
| 7870 | 9년 전 | 575 | ||
| 7869 | 9년 전 | 395 | ||
| 7868 | 9년 전 | 386 | ||
| 7867 | 9년 전 | 384 | ||
| 7866 | 9년 전 | 445 | ||
| 7865 | 9년 전 | 406 | ||
| 7864 | 9년 전 | 471 | ||
| 7863 | 9년 전 | 459 | ||
| 7862 | 9년 전 | 440 | ||
| 7861 | 9년 전 | 597 | ||
| 7860 | 9년 전 | 595 | ||
| 7859 | 9년 전 | 371 | ||
| 7858 | 9년 전 | 674 | ||
| 7857 | 9년 전 | 1027 | ||
| 7856 | 9년 전 | 488 | ||
| 7855 | 9년 전 | 705 | ||
| 7854 | 9년 전 | 701 | ||
| 7853 | 9년 전 | 547 | ||
| 7852 | 9년 전 | 475 | ||
| 7851 | 9년 전 | 451 | ||
| 7850 | 9년 전 | 552 | ||
| 7849 | 9년 전 | 320 | ||
| 7848 | 9년 전 | 371 | ||
| 7847 | 9년 전 | 595 | ||
| 7846 | 9년 전 | 411 | ||
| 7845 | 9년 전 | 374 | ||
| 7844 | 9년 전 | 369 | ||
| 7843 | 9년 전 | 381 | ||
| 7842 | 9년 전 | 372 | ||
| 7841 | 9년 전 | 356 | ||
| 7840 | 9년 전 | 364 | ||
| 7839 | 9년 전 | 401 | ||
| 7838 | 9년 전 | 483 | ||
| 7837 | 9년 전 | 325 | ||
| 7836 | 9년 전 | 365 | ||
| 7835 | 9년 전 | 444 | ||
| 7834 |
|
9년 전 | 1172 | |
| 7833 | 9년 전 | 383 | ||
| 7832 | 9년 전 | 378 | ||
| 7831 | 9년 전 | 514 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기