PCC-F-02104, Unable to connect to Oracle 오류 질문입니다.

익명 사용자의 이미지

        sprintf(uid, "%s", lb_get_inifile(INI_FILE,"ORACLE","UID"));
        sprintf(pwd, "%s", lb_get_inifile(INI_FILE,"ORACLE","PWD"));
        sprintf(host,"%s", lb_get_inifile(INI_FILE,"ORACLE","HOST"));
 
        if(argc > 1)
        {
                        char TmStr[5];
                        char ydate[16];
                        GetTmStr(sDate);
 
                        if(ConnectOracle(uid, pwd, host)<0)
                        {
                                Debug("DB접속에러 %d", sqlca.sqlcode);
                                exit(0);
                        }
        }

이렇게 ini 파일에서 오라클 접속 정보를 가지고 오게 소스는 코딩이 되어 있습니다. 컴파일을 하였더니 아래와 같이 오류가 발생하였습니다.

rx3600:/app/src> make all
 
proc iname=manager.pc oraca=yes ireclen=132 oreclen=132 sqlcheck=semantics userid=ABC/ABC@orcl 
sys_include=/usr/include include=/app/shred/include
 
Pro*C/C++: Release 10.2.0.1.0 - Production on Sat Sep 9 17:05:06 2017
 
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
 
System default option values taken from: /oracle/app/oracle/product/client/precomp/admin/pcscfg.cfg
 
PCC-F-02104, Unable to connect to Oracle
 
*** 오류 종료 코드 1
 
종료
 

그러면 제가 혹시 TNSNAME 을 잘못 잡았나 싶어서 이렇게 테스트를 해보니...

rx3600:/app/src> tnsping orcl
 
TNS Ping Utility for HPUX: Version 10.2.0.1.0 - Production on 09-SEP-2017 17:13:10
 
Copyright (c) 1997, 2005, Oracle.  All rights reserved.
 
Used parameter files:
 
 
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS_LIST= (ADDRESS=(PROTOCOL=TCP)(HOST=2xx.1xx.2xx.2xx)(PORT=21521))) 
(CONNECT_DATA= (SERVICE_NAME=orcl) (SID=orcl)))
OK (40 msec)

잘 되네요;; 혹시 ID와 PASSWD를 잘못했나 싶어서 이렇게 해봤더니...

rx3600:/app/src> sqlplus ABC/ABC@orcl
 
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Sep 9 17:15:17 2017
 
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
 
ERROR:
ORA-28002: the password will expire within 7 days
 
 
Error accessing PRODUCT_USER_PROFILE
Warning:  Product user profile information not loaded!
You may need to run PUPBLD.SQL as SYSTEM
 
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
 
SQL> select * from dual;
 
DU
--
X
 
SQL> select * from TEXT01;
YGID JSDT     CRDT           FLNM                           FLGB       CRDS C R PLI CD CPL KJBH  WCOD JCOD C D
---- -------- -------------- ------------------------------ ---- ---------- - - --- -- --- ----- ---- ---- - -
32   20081114 20081114174414 H0971114PAYM1740               PAYM          4 S 1 097    096 99999
31   20081114 20081114174414 E0971114PAYM1740               PAYM         91 S 1 097    096 99999
31   20081114 20081114173411 E0981114LOAD1730               LOAD          0 S 1 098    096 99999
32   20081114 20081114173411 H0981114PAYM1730               PAYM          2 S 1 098    096 99999
 
SQL> 

역시 잘되네요;; 이러면 제가 무엇을 확인해야 저걸 잡을 수 있을까요?ㅠㅠ

지금 이 문제를 계속 못 잡고 있네요...많은 조언 부탁드립니다.ㅠ

문제자의 이미지

문제 해결했습니다. 무슨 이유인지는 모르겠으나, 오라클 비밀번호를 바꾸니 문제가 해결되네요.

땡큐베리의 이미지

위 내용에 보시면 sqlplus 접속시 중간에
ERROR:
ORA-28002: the password will expire with in 7 days
메시지 때문입니다.

패스워드 변경 후 사라집니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.