보통 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에서 이동 됨]
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 1530 |
1111111
|
18년 전 | 1972 | |
| 1529 |
행복속네잎크로버
|
18년 전 | 3475 | |
| 1528 |
행복속네잎크로버
|
18년 전 | 1861 | |
| 1527 |
1111111
|
18년 전 | 7655 | |
| 1526 |
1111111
|
18년 전 | 3290 | |
| 1525 |
행복속네잎크로버
|
18년 전 | 1272 | |
| 1524 |
행복속네잎크로버
|
18년 전 | 2314 | |
| 1523 |
행복속네잎크로버
|
18년 전 | 3517 | |
| 1522 |
행복속네잎크로버
|
18년 전 | 2373 | |
| 1521 |
행복속네잎크로버
|
18년 전 | 2154 | |
| 1520 |
행복속네잎크로버
|
18년 전 | 2767 | |
| 1519 |
행복속네잎크로버
|
18년 전 | 3725 | |
| 1518 |
행복속네잎크로버
|
18년 전 | 3493 | |
| 1517 |
행복속네잎크로버
|
18년 전 | 2575 | |
| 1516 |
행복속네잎크로버
|
18년 전 | 1928 | |
| 1515 |
행복속네잎크로버
|
18년 전 | 1947 | |
| 1514 |
행복속네잎크로버
|
18년 전 | 2517 | |
| 1513 |
행복속네잎크로버
|
18년 전 | 1995 | |
| 1512 | 18년 전 | 2886 | ||
| 1511 | 18년 전 | 1674 | ||
| 1510 | 18년 전 | 2209 | ||
| 1509 | 18년 전 | 1686 | ||
| 1508 | 18년 전 | 2142 | ||
| 1507 | 18년 전 | 2372 | ||
| 1506 | 18년 전 | 2302 | ||
| 1505 | 18년 전 | 2252 | ||
| 1504 | 18년 전 | 2179 | ||
| 1503 | 18년 전 | 3494 | ||
| 1502 | 18년 전 | 1677 | ||
| 1501 | 18년 전 | 3445 | ||
| 1500 | 18년 전 | 2036 | ||
| 1499 | 18년 전 | 5300 | ||
| 1498 | 18년 전 | 2164 | ||
| 1497 |
hsp1980
|
18년 전 | 2349 | |
| 1496 |
hsp1980
|
18년 전 | 1735 | |
| 1495 |
hsp1980
|
18년 전 | 2136 | |
| 1494 |
hsp1980
|
18년 전 | 3651 | |
| 1493 | 18년 전 | 1509 | ||
| 1492 | 18년 전 | 1752 | ||
| 1491 | 18년 전 | 4326 | ||
| 1490 | 18년 전 | 3715 | ||
| 1489 | 18년 전 | 3272 | ||
| 1488 | 18년 전 | 3372 | ||
| 1487 |
mixdesign
|
18년 전 | 3869 | |
| 1486 |
mixdesign
|
18년 전 | 4331 | |
| 1485 | 18년 전 | 4263 | ||
| 1484 | 18년 전 | 2706 | ||
| 1483 |
hsp1980
|
18년 전 | 2318 | |
| 1482 |
hsp1980
|
18년 전 | 3251 | |
| 1481 |
hsp1980
|
18년 전 | 3170 | |
| 1480 |
hsp1980
|
18년 전 | 3323 | |
| 1479 | 18년 전 | 3258 | ||
| 1478 |
|
18년 전 | 4926 | |
| 1477 |
|
18년 전 | 5220 | |
| 1476 | 18년 전 | 3414 | ||
| 1475 |
mixdesign
|
18년 전 | 2725 | |
| 1474 |
mixdesign
|
18년 전 | 2946 | |
| 1473 |
mixdesign
|
18년 전 | 2278 | |
| 1472 |
mixdesign
|
18년 전 | 2088 | |
| 1471 |
mixdesign
|
18년 전 | 2046 | |
| 1470 |
|
18년 전 | 3077 | |
| 1469 |
mixdesign
|
18년 전 | 2363 | |
| 1468 |
mixdesign
|
18년 전 | 2386 | |
| 1467 |
mixdesign
|
18년 전 | 2067 | |
| 1466 |
mixdesign
|
18년 전 | 2434 | |
| 1465 |
mixdesign
|
18년 전 | 3161 | |
| 1464 | 18년 전 | 4091 | ||
| 1463 | 18년 전 | 3387 | ||
| 1462 |
|
18년 전 | 2010 | |
| 1461 |
|
18년 전 | 1949 | |
| 1460 | 18년 전 | 2867 | ||
| 1459 | 18년 전 | 1664 | ||
| 1458 |
|
18년 전 | 2017 | |
| 1457 |
mixdesign
|
18년 전 | 2315 | |
| 1456 |
mixdesign
|
18년 전 | 2177 | |
| 1455 | 18년 전 | 2298 | ||
| 1454 | 18년 전 | 4050 | ||
| 1453 | 18년 전 | 1793 | ||
| 1452 | 18년 전 | 4409 | ||
| 1451 | 18년 전 | 2944 | ||
| 1450 | 18년 전 | 2232 | ||
| 1449 | 18년 전 | 3269 | ||
| 1448 | 18년 전 | 2912 | ||
| 1447 | 18년 전 | 2837 | ||
| 1446 | 18년 전 | 5642 | ||
| 1445 | 18년 전 | 2309 | ||
| 1444 | 18년 전 | 3423 | ||
| 1443 |
|
18년 전 | 3337 | |
| 1442 | 18년 전 | 3722 | ||
| 1441 | 18년 전 | 3272 | ||
| 1440 | 18년 전 | 2455 | ||
| 1439 | 18년 전 | 2102 | ||
| 1438 | 18년 전 | 2557 | ||
| 1437 | 18년 전 | 6122 | ||
| 1436 | 18년 전 | 2742 | ||
| 1435 | 18년 전 | 4548 | ||
| 1434 | 18년 전 | 2053 | ||
| 1433 | 18년 전 | 10055 | ||
| 1432 | 18년 전 | 2500 | ||
| 1431 |
Psychedelico
|
18년 전 | 1562 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기