Hi,
I have a little problem in my development using oracle and C++.
I need to modify a type in my Database. I used the "Alter type" function, and succeed in add a new attribute in my table.
The problem is, when i launch my program the function "createConnection()" fail and throw an exeption. I use createConnection's fonction from the
"Environment" class.
- Environment *occiEnv = NULL
- Connection *occiConnection = occiEnv->createConnection("someuser", "somepasswd", "database")
I have to specify that this ligne was working properly before my Database modification.
I dont realy know how Oracle works, so i have maybe forget to do something essential before launching my program (like update a configuration file maybe) because as i said earlier this program works properly before the "alter type".
After some search i found that oracle crash on the "createConnection()" and print this lines in a log file :
Fri Mar 07 13:13:52 2014
Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x2E8] [PC:0x18791EC, kzpchkc()+5114] [flags: 0x0, count: 1]
Errors in file /oracle/diag/rdbms/project/PROJECT/trace/PROJECT_ora_23317.trc (incident=108208):
ORA-07445: Exception aufgetreten: CORE Dump [kzpchkc()+5114] [SIGSEGV] [ADDR:0x2E8] [PC:0x18791EC] [Address not mapped to object] []
Incident details in: /oracle/diag/rdbms/project/PROJECT/incident/incdir_108208/PROJECT_ora_23317_i108208.trc
Fri Mar 07 13:13:53 2014
Trace dumping is performing id=[cdmp_20140307131353]
Fri Mar 07 13:13:56 2014
Sweep [inc][108208]: completed
Sweep [inc2][108208]: completed
I have read lines in the : /oracle/diag/rdbms/project/PROJECT/incident/incdir_108208/PROJECT_ora_23317_i108208.trc :
Trace file /oracle/diag/rdbms/project/PROJECT/trace/PROJECT_ora_23317.trc
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /oracle/product/11.2.0/db_1
System name: Linux
Node name: localhost.localdomain
Release: 2.6.18-348.18.1.el5
Version: #1 SMP Thu Sep 26 15:01:07 EDT 2013
Machine: x86_64
Instance name: PROJECT
Redo thread mounted by this instance: 1
Oracle process number: 21
Unix process pid: 23317, image: oracle@localhost.localdomain
*** 2014-03-07 13:13:52.391
*** SESSION ID:(146.98) 2014-03-07 13:13:52.391
*** CLIENT ID:() 2014-03-07 13:13:52.391
*** SERVICE NAME:(PROJECT) 2014-03-07 13:13:52.391
*** MODULE NAME:(middleware_PROJECT.exe@localhost.localdomain (TNS V1) 2014-03-07 13:13:52.391
*** ACTION NAME:() 2014-03-07 13:13:52.391
Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x2E8] [PC:0x18791EC, kzpchkc()+5114] [flags: 0x0, count: 1]
Incident 108208 created, dump file: /oracle/diag/rdbms/project/PROJECT/incident/incdir_108208/PROJECT_ora_23317_i108208.trc
ORA-07445: Exception aufgetreten: CORE Dump [kzpchkc()+5114] [SIGSEGV] [ADDR:0x2E8] [PC:0x18791EC] [Address not mapped to object] []
ssexhd: crashing the process...
Shadow_Core_Dump = PARTIAL
When we read this log, it's obvious i tried to access on a null element. But i didn't write any code after my alter table. That's mean oracle is trying access to a null variable ? i dont understand ...
Thanks for reading and i hope somebody will be able to help me to solve my problem.