보통 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에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8130 | 9년 전 | 576 | ||
| 8129 |
|
9년 전 | 689 | |
| 8128 | 9년 전 | 544 | ||
| 8127 |
|
9년 전 | 591 | |
| 8126 | 9년 전 | 525 | ||
| 8125 | 9년 전 | 779 | ||
| 8124 |
|
9년 전 | 539 | |
| 8123 | 9년 전 | 524 | ||
| 8122 | 9년 전 | 456 | ||
| 8121 | 9년 전 | 562 | ||
| 8120 | 9년 전 | 482 | ||
| 8119 | 9년 전 | 571 | ||
| 8118 |
|
9년 전 | 648 | |
| 8117 |
|
9년 전 | 416 | |
| 8116 |
PASKRAN
|
9년 전 | 474 | |
| 8115 | 9년 전 | 470 | ||
| 8114 |
kiplayer
|
9년 전 | 608 | |
| 8113 | 9년 전 | 467 | ||
| 8112 |
|
9년 전 | 576 | |
| 8111 | 9년 전 | 414 | ||
| 8110 | 9년 전 | 457 | ||
| 8109 | 9년 전 | 388 | ||
| 8108 |
|
9년 전 | 566 | |
| 8107 |
|
9년 전 | 454 | |
| 8106 |
|
9년 전 | 456 | |
| 8105 | 9년 전 | 486 | ||
| 8104 |
|
9년 전 | 451 | |
| 8103 |
|
9년 전 | 451 | |
| 8102 |
|
9년 전 | 424 | |
| 8101 |
snshero
|
9년 전 | 811 | |
| 8100 | 9년 전 | 857 | ||
| 8099 | 9년 전 | 834 | ||
| 8098 | 9년 전 | 736 | ||
| 8097 | 9년 전 | 541 | ||
| 8096 | 9년 전 | 738 | ||
| 8095 | 9년 전 | 878 | ||
| 8094 | 9년 전 | 550 | ||
| 8093 | 9년 전 | 825 | ||
| 8092 | 9년 전 | 775 | ||
| 8091 | 9년 전 | 1161 | ||
| 8090 | 9년 전 | 785 | ||
| 8089 | 9년 전 | 999 | ||
| 8088 | 9년 전 | 661 | ||
| 8087 | 9년 전 | 789 | ||
| 8086 | 9년 전 | 536 | ||
| 8085 | 9년 전 | 501 | ||
| 8084 | 9년 전 | 619 | ||
| 8083 | 9년 전 | 593 | ||
| 8082 | 9년 전 | 782 | ||
| 8081 | 9년 전 | 493 | ||
| 8080 | 9년 전 | 587 | ||
| 8079 | 9년 전 | 546 | ||
| 8078 | 9년 전 | 465 | ||
| 8077 | 9년 전 | 556 | ||
| 8076 | 9년 전 | 425 | ||
| 8075 | 9년 전 | 458 | ||
| 8074 | 9년 전 | 424 | ||
| 8073 | 9년 전 | 478 | ||
| 8072 | 9년 전 | 469 | ||
| 8071 |
o1o111
|
9년 전 | 919 | |
| 8070 | 9년 전 | 427 | ||
| 8069 | 9년 전 | 365 | ||
| 8068 | 9년 전 | 616 | ||
| 8067 | 9년 전 | 415 | ||
| 8066 | 9년 전 | 443 | ||
| 8065 | 9년 전 | 402 | ||
| 8064 | 9년 전 | 396 | ||
| 8063 | 9년 전 | 364 | ||
| 8062 | 9년 전 | 334 | ||
| 8061 | 9년 전 | 369 | ||
| 8060 | 9년 전 | 413 | ||
| 8059 | 9년 전 | 345 | ||
| 8058 | 9년 전 | 283 | ||
| 8057 | 9년 전 | 411 | ||
| 8056 | 9년 전 | 330 | ||
| 8055 | 9년 전 | 377 | ||
| 8054 | 9년 전 | 383 | ||
| 8053 | 9년 전 | 436 | ||
| 8052 | 9년 전 | 306 | ||
| 8051 | 9년 전 | 356 | ||
| 8050 | 9년 전 | 413 | ||
| 8049 | 9년 전 | 347 | ||
| 8048 | 9년 전 | 452 | ||
| 8047 | 9년 전 | 388 | ||
| 8046 | 9년 전 | 332 | ||
| 8045 | 9년 전 | 281 | ||
| 8044 | 9년 전 | 366 | ||
| 8043 | 9년 전 | 323 | ||
| 8042 | 9년 전 | 313 | ||
| 8041 | 9년 전 | 375 | ||
| 8040 | 9년 전 | 300 | ||
| 8039 | 9년 전 | 338 | ||
| 8038 | 9년 전 | 281 | ||
| 8037 | 9년 전 | 428 | ||
| 8036 | 9년 전 | 515 | ||
| 8035 | 9년 전 | 447 | ||
| 8034 | 9년 전 | 407 | ||
| 8033 | 9년 전 | 369 | ||
| 8032 | 9년 전 | 474 | ||
| 8031 | 9년 전 | 365 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기