보통 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에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 1030 | 18년 전 | 1794 | ||
| 1029 | 18년 전 | 2228 | ||
| 1028 | 18년 전 | 2638 | ||
| 1027 | 18년 전 | 1805 | ||
| 1026 | 18년 전 | 1542 | ||
| 1025 | 18년 전 | 1548 | ||
| 1024 | 18년 전 | 1474 | ||
| 1023 | 18년 전 | 3235 | ||
| 1022 | 18년 전 | 2922 | ||
| 1021 | 18년 전 | 1684 | ||
| 1020 | 18년 전 | 3426 | ||
| 1019 | 18년 전 | 1851 | ||
| 1018 | 18년 전 | 1501 | ||
| 1017 | 18년 전 | 1967 | ||
| 1016 | 18년 전 | 2103 | ||
| 1015 | 18년 전 | 1643 | ||
| 1014 | 18년 전 | 2353 | ||
| 1013 | 18년 전 | 2010 | ||
| 1012 | 18년 전 | 1636 | ||
| 1011 | 18년 전 | 1790 | ||
| 1010 | 18년 전 | 2050 | ||
| 1009 | 18년 전 | 1810 | ||
| 1008 | 18년 전 | 1628 | ||
| 1007 | 18년 전 | 1672 | ||
| 1006 | 18년 전 | 3140 | ||
| 1005 | 18년 전 | 2010 | ||
| 1004 | 18년 전 | 1878 | ||
| 1003 | 18년 전 | 4373 | ||
| 1002 | 18년 전 | 5001 | ||
| 1001 | 18년 전 | 3172 | ||
| 1000 | 18년 전 | 2917 | ||
| 999 | 19년 전 | 3510 | ||
| 998 | 19년 전 | 2058 | ||
| 997 | 19년 전 | 2422 | ||
| 996 | 19년 전 | 2707 | ||
| 995 | 19년 전 | 2769 | ||
| 994 | 19년 전 | 2357 | ||
| 993 | 19년 전 | 1626 | ||
| 992 | 19년 전 | 3390 | ||
| 991 | 19년 전 | 2000 | ||
| 990 | 19년 전 | 2394 | ||
| 989 | 19년 전 | 2466 | ||
| 988 | 19년 전 | 2893 | ||
| 987 | 19년 전 | 5228 | ||
| 986 |
|
19년 전 | 2501 | |
| 985 |
|
19년 전 | 3352 | |
| 984 | 19년 전 | 4282 | ||
| 983 |
느낌좋은날
|
19년 전 | 2515 | |
| 982 | 19년 전 | 2479 | ||
| 981 | 19년 전 | 4047 | ||
| 980 | 19년 전 | 2753 | ||
| 979 |
Sinpre
|
19년 전 | 3005 | |
| 978 | 19년 전 | 2217 | ||
| 977 | 19년 전 | 2227 | ||
| 976 | 19년 전 | 1996 | ||
| 975 | 19년 전 | 3277 | ||
| 974 | 19년 전 | 2116 | ||
| 973 |
|
19년 전 | 2802 | |
| 972 |
|
19년 전 | 1751 | |
| 971 | 19년 전 | 5327 | ||
| 970 | 19년 전 | 3584 | ||
| 969 | 19년 전 | 4334 | ||
| 968 | 19년 전 | 3076 | ||
| 967 | 19년 전 | 2533 | ||
| 966 | 19년 전 | 3936 | ||
| 965 | 19년 전 | 2669 | ||
| 964 | 19년 전 | 3005 | ||
| 963 | 19년 전 | 2975 | ||
| 962 | 19년 전 | 4193 | ||
| 961 | 19년 전 | 3135 | ||
| 960 | 19년 전 | 3035 | ||
| 959 | 19년 전 | 3688 | ||
| 958 | 19년 전 | 2983 | ||
| 957 | 19년 전 | 2196 | ||
| 956 | 19년 전 | 2231 | ||
| 955 | 19년 전 | 2186 | ||
| 954 | 19년 전 | 2778 | ||
| 953 | 19년 전 | 2488 | ||
| 952 | 19년 전 | 3358 | ||
| 951 | 19년 전 | 3216 | ||
| 950 | 19년 전 | 1831 | ||
| 949 | 19년 전 | 2743 | ||
| 948 | 19년 전 | 7832 | ||
| 947 |
|
19년 전 | 2508 | |
| 946 |
DeepnBlue
|
19년 전 | 3119 | |
| 945 |
pearly
|
19년 전 | 2895 | |
| 944 | 19년 전 | 3034 | ||
| 943 |
|
19년 전 | 2243 | |
| 942 | 19년 전 | 2458 | ||
| 941 |
|
19년 전 | 4081 | |
| 940 | 19년 전 | 2238 | ||
| 939 |
|
19년 전 | 4223 | |
| 938 |
|
19년 전 | 2388 | |
| 937 | 19년 전 | 2088 | ||
| 936 |
|
19년 전 | 2336 | |
| 935 | 19년 전 | 1884 | ||
| 934 |
|
19년 전 | 2413 | |
| 933 | 19년 전 | 2207 | ||
| 932 |
|
19년 전 | 3083 | |
| 931 | 19년 전 | 1869 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기