Invalid datatype in OCI call ?
Hello,
Why i got
ORA-01024: invalid datatype in OCI call
when i'm trying to select a clob column from a table? that column contains 'hello world'. i don't know what causes this error..
Thanks
ORA-01024: invalid datatype in OCI call
Cause: An OCI program call specified an invalid datatype. In OCI calls, Oracle datatypes are specified as numbers between 1 and 7.
Action: Check the datatype description and enter the correct number for the datatype. Please use search, before posting.
Similar Messages
-
HR_BUSINESS_UNIT_WID": invalid identifier at OCI call
Hi Guys,
I am getting the below error the column in does not exists in the Production Environement also, The Production is a vanilla implementation. Anybody has any idea how to map and poppulate this column in the table WC_RCRTMNT_AGING_MONTH_F.
HR_BUSINESS_UNIT_WID": invalid identifier at OCI call
Regards,
AmitSwati:
"C2" is probably referring to the column alias as opposed to the column name itself. It is the second column that you are displaying. You can view the Session Log to see the exact sql query that is being issued to the database and that should show you what column "C2" is referring to.
Rajesh -
Hi Friends,
I am getting this error : ORA-00932: inconsistent datatypes: expected DATE got NUMBER at OCI call OCIStmtExecute when I am trying to put the filter condition on the date column.
"Dim-Time"."Day" <= cast(MAX("Dim-Time"."Day") as date) and "Dim-Time"."Day" >= TIMESTAMPADD(SQL_TSI_MONTH, -1,cast(MAX("Dim-Time"."Day") as date).
I have casted the max date but though I am getting the above error. I am thinking max(date) is creating the problem.
Please suggest your on opinion this.
Thanks.Not sure why you need cast in your statement if at all it is required then you need to do as below
cast("Dim-Time"."Day" as date)<= cast(MAX("Dim-Time"."Day") as date) and cast("Dim-Time"."Day" as date) >= TIMESTAMPADD(SQL_TSI_MONTH, -1,cast(MAX("Dim-Time"."Day") as date).
~ http://cool-bi.com -
All,
The program has set of OCI datatype converion calls from C native to Oracle types. The program crashes in OCI calls specifically in OCINumberFromReal. Below is the stack for the core dump created.
In call to OCINumberFromReal, when it refences lnxren function, the program crashes with SIGBUS.
The application in on solaris 10 and Oracle 11g.
pstack corecore 'core' of 163: quartzCABT -C dom=seirel620 -g 1 -i 127 -u sei4800 -U /home3/seirel620
f2520b7c _kill (2, ffbfb374, 1, f4517e90, f43e1c74, ffbfb370) + 8
f37fcfc0 skgesig_sigactionHandler (1, 9a400, 9bd08, 0, 0, 1) + 25c
f24656c8 __sighndlr (a, ffbfc898, ffbfc5e0, f37fcd64, 0, 0) + c
f245f320 call_user_handler (a, ffbfc898, ffbfc5e0, 0, 0, 0) + 234
f245f4d0 sigacthandler (a, ffbfc898, ffbfc5e0, de79ff, 44, 80ee8) + 64
--- called from signal handler with signal 10 (SIGBUS) ---
f341ebcc lnxren (d6694c, 8, de7b42, 0, 0, caee98) + 514
f36617f4 OCINumberFromReal (f432df90, caed70, 3, de7b42, 13d4, 0) + 5d4
ff3653f0 __1cPedbCreateCommit6FpnIxlDArray_r1rpc_nMMESSAGE_TYPE__ (d66ab0, ffbfd950, ffbfd7dc, fffffff8, 0, dc5da8) + 948
ff36cc8c __1cUinvokeExtnlDBService6FipnIxlDArray_r1_nMMESSAGE_TYPE__ (1, d66ab0, ffbfd950, 1, 2, abc14d) + 8c
002b9b48 __1cUCA_GLOBAL_SUBCA_LINKXCABT4003ModGlblSubCALnk6MpnIxlDArray__nMMESSAGE_TYPE__ (abc152, d64ae0, 13b88, b49cac, f476a08c, 20) + bb0
002ba774 sh_CABT4003ModG (ffbfdc44, abc1ea, ffbfdc2c, abc1f4, ffbfdbf4, abc209) + 9cc
Please suggest on how to resolve this.
Thanks in advance
satishhi Nikeda,
I replaced the sizeof(double) to DBL_DIG/FLT_DIG constant, now the program doesn't crashes but the conversion is not happening properly.
The result of any number after conversion is "0".
Any suggestions, Thanks in advance .. below is the code snippet u asked for ..
class ABC
double qty ;
ott structure
struct abc_ott
OCINumber qty ;
// pro*c code
EXEC SQL BEGIN DECLARE SECTION ;
abc_ott * abc_ott_inst ;
EXEC SQL END DECLARE SECTION ;
EXEC SQL ALLOCATE :abc_ott_inst ;
ABC * abc = new ABC ;
abc->qty = 100.0 ;
OCINumberFromReal(ociError, &abc->qty, (uword)sizeof(double), &abc_ott_inst->qty ) ;
// call with DBL_DIG
OCINumberFromReal(ociError, &abc->qty, DBL_DIG, &abc_ott_inst->qty ) ;
Edited by: user3894537 on May 20, 2010 8:25 AM
Edited by: user3894537 on May 20, 2010 8:38 AM -
Unable to connect to 11i client to 11i server through OCI calls
Hello All,
We have a C++ application which uses oci calls to connect to Oracle database. The application is built with 9i libraries. When we connect we try 11i client and 11i server combination, we are not able to connect to the db. We are able to connect to the db via sqlplus but not via our application.
The same application works fine when we use Oracle 9i client and 10gR2 server. What is the change from 9i to 11i that is causing this problem. Do I need to rebuild the product with 11i headers and libraries?
The error message in our log file is: oci.so: invalid mode for dlopen(): Invalid argument
Any help is appreciated.
O.S: Redhat Linux
DB: 11i
Thanks in advance
RadhikaHi Radhika, I think you picked the wrong forum. See the forum called 'Call Interface' for OCI questions
Oracle Call Interface (OCI) -
Unable to connect to 10gR2 client to 10gR2 server through OCI calls
Hello All,
We have a C++ application which uses oci calls to connect to Oracle database. The application is built with 9i libraries. When we connect we try 10gR2 client and 10gR2 server combination, we are not able to connect to the db. We are able to connect to the db via sqlplus but not via our application.
What is the change from 9i to 10gR2 that is causing this problem. Do I need to rebuild the product with 10gR2i headers and libraries?
The error message in our log file is: oci.so: invalid mode for dlopen(): Invalid argument
Any help is appreciated.
O.S: Redhat Linux
DB: Oracle 10.2.0.1.0
Thanks in advance
Radhikarebuild the image with 10g
-
Fetching whole table using OCI calls
I am new to OCI programming .I am writing an appliaction in C# to fetch data from ORACLE using OCI calls,Using that application i can able to fecth single row,
but i need to load/ fetch the entire table data from the database using the single fetch?
I have created a scrollable resultset by using the below give statement
and i can able to fetch single coloumn.
short paramSizee = 20;
IntPtr TestNo = GetPointer((int)paramSizee);
rc = OCI.OCIDefineByPos(hStatement, out HDefine, hError, 1, TestNo, paramSizee, OCI.DATATYPE.VARCHAR2, OCI.NullHandleRef, OCI.NullHandleRef, OCI.NullHandleRef, OCI.MODE.OCI_DEFAULT);
if (rc != 0)
Console.WriteLine(CheckError(hError));
throw new Exception("OCI Define Failed...");
rc = OCI.OCIStmtExecute(hServiceContext, hStatement, hError, iters, 0, OCI.NullHandleRef, OCI.NullHandleRef, OCI.MODE.OCI_STMT_SCROLLABLE_READONLY);
rc = OCI.OCIStmtFetch(hStatement, hError,50, OCI.FETCH.OCI_FETCH_NEXT, OCI.MODE.OCI_DEFAULT);
if (rc != 0)
Console.WriteLine(CheckError(hError));
throw new Exception("OCI Fetch Failed...");
Using above calls i can able to fetch arround 100 rows per fetch but my customer table has 16000 rows .
So it will be great if someone suggest proper way to fetch entire table data in single fetch.
Thanks,
RajFor fetching large number of rows in single Db roundtrip use the following
To get the bulk Data use the following.MAX_PREFETCH_ROWS is the integer value you want fetch in BULK
(void) OCIAttrSet((dvoid *)DBctx->stmthp, (ub4) OCI_HTYPE_STMT,
(dvoid *)&MAX_PREFETCH_ROWS,(ub4)sizeof(MAX_PREFETCH_ROWS),
(ub4) OCI_ATTR_PREFETCH_ROWS, DBctx->errhp); -
OCI CALLS : Oracle 8.1.5 to Oracle 8.1.6
Hi
I am working on messaging product which was compiled and linked with Oracle 8.1.5. It was working on HPUX 11.0 machine. That product is a CORBA product which uses ORCALE to store message database. This product uses OCI calls to access ORACLE.
But I am having a new task of running that product on oracle 8.1.6 version. When I ran old bineries(compiled and built with oracle 8.1.5 libs) with oracle 8.1.6 product, I am getting following runtime errors. DBINIT is a executable.
$PROMPT>DBINIT -v
/usr/lib/dld.sl: Unresolved symbol: LhtStrCreate (code) from /opt/oracle/8.1.6/lib/libwtc8.sl
/usr/lib/dld.sl: Unresolved symbol: LhtStrInsert (code) from /opt/oracle/8.1.6/lib/libwtc8.sl
/usr/lib/dld.sl: Unresolved symbol: nauzaoss (code) from AmOraDbInit
/usr/lib/dld.sl: Unresolved symbol: nauzaoss (code) from /opt/TPBroker/AM/lib/libAmdOra.sl
Whether I need to compile and build whole product with oracle 8.1.6.
In my product I am using OCI calls, so whether I need to change those calls.
$PROMPT>chatr DBINT
shared executable
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path disabled second Not Defined
shared library list:
dynamic /usr/lib/libpthread.1
dynamic /vobs/TPBroker/hpux/TPBroker/lib/libots_r.sl
dynamic /vobs/TPBroker/hpux/TPBroker/lib/libdcpmsg.sl
dynamic /vobs/bldenv/hp11/Visigenic/vbroker/lib/liborb_r.sl
dynamic /vobs/bldenv/hp11/Oracle/lib/libclntsh.sl.8.0
dynamic /usr/lib/libstd.2
dynamic /usr/lib/libstream.2
dynamic /usr/lib/libCsup.2
dynamic /usr/lib/libm.2
dynamic /usr/lib/libcl.2
dynamic /usr/lib/libc.2
static /usr/lib/libdld.2
shared library binding:
immediate
global hash table disabled
plabel caching disabled
global hash array size:1103
global hash array nbuckets:3
shared vtable support disabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
I haven't got any documents for this thing.
If anybody gone thru this problem, please help me for solving this problems.
Thank you
-Pravinapplets can only use jdbc thin drivers.
-
Problem with OCI call and how to install and use 'DEBUG_EXTPROC' on Linux
Hi,
Can any one let me know how I can install and use this debug_extproc package. I have installed oracle XE server on Linux machine(32-bit).
When I use : DEBUG_EXTPROC.STARTUP_EXTPROC_AGENT' ... i get an error saying that : it is not declared.
I tried looking in all the directories but did not find the dbgextp.sql(which is required in order to install that package).And tried searching on google but could not get any relevant information.
Also I am newbie to OCI call interface and also to C programming too: I have coded a external procedure or custom user aggregate in C. But since I was using C++ : 'set' STL. I have compiled my program using g++ instead of gcc and I have correspondingly modified the make file in public/demo directory.
So, is it fine to do it that way: using OCI (instead of OCCI(C++)) but again compiling the pgm as a regular C++ using g++ instead of gcc.(But rest of the pgm including printf statements : everything is in C).
Also I have created the library from my : custagg.so library:
SQL> create or replace library custagg is '$ORACLE_HOME/lib/custagg.so'
But my aggregate function implemented as external C function using OCI is either not recognised or else : if recognized then there is some error because of which i am getting the following errors : ORA-06522
SQL> select MinDistance(TT) from egg1;
select MinDistance(TT) from egg1
ERROR at line 1:
ORA-06520: PL/SQL: Error loading external library
ORA-06522: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/custagg.so:
cannot dynamically load executable
Please kindly answers my queries and trying to resolve this for almost 4 days now and could not find any clue on how to get this done.
Thanks,
-NN#/bin/make
# Make file for OCI,OCCI and ODBC demos
# Usage :
# For compiling & linking the cdemo81.c file
# make -f demo_xe.mk buildoci CDEMOEXE=cdemo81 CDEMOOBJS=cdemo81.o
.SUFFIXES: .o .c .cpp
ICINCHOME=$(ORACLE_HOME)/rdbms/public/
ICLIBHOME=$(ORACLE_HOME)/lib
ICLIBPATH=-L$(ICLIBHOME)
THREADLIBS=-lthread
CCLIB=$(ICLIBPATH) -lclntsh $(THREADLIBS)
OCCILIB=$(ICLIBPATH) -locci -lclntsh $(THREADLIBS)
CCINCLUDES = -I$(ICINCHOME)
CCFLAGS=$(CCINCLUDES) -D_REENTRANT -g -xs
LDFLAGS=
SO_EXT=.so
EXTLDFLAGS=$(LDFLAGS) -shared
REMOVE=rm -rf
MKLINK=ln
MAKE=make
MAKEFILE=demo_xe.mk
CDEMOEXE=custagg.so
CDEMOOBJS=custagg.o
OCCIDEMO=occidml
OCCIOBJDEMO=occiobj
OTT=$(ORACLE_HOME)/bin/ott
OCCIOTTUSR=hr
OCCIOTTPWD=hr
ODBCDEMOEXE=odbcdemo
ODBCDEMOOBJS=odbcdemo.o
AQDEMOEXE=ociaqdemo00
AQDEMOOBJS=ociaqdemo00.o
EXTDEMO=extdemo2.so
CC=/usr/bin/g++
echo "LIBCLNT value is :" $(LIBCLNT)
echo "CC value is :" $(CC)
.c.o:
g++ -c -I$(ICINCHOME) $(CCFLAGS) $<
all: clean buildoci
echo "LIBCLNT value is :" $(LIBCLNT)
buildoci: $(LIBCLNT) $(CDEMOOBJS)
g++ -o $(CDEMOEXE) $(LDFLAGS) $(CDEMOOBJS) $(CCLIB)
echo "CC value is :" $(CC)
echo "LIBCLNT value is :" $(LIBCLNT)
clean:
$(REMOVE) $(CDEMOOBJS) $(CDEMOEXE)
# This port-specific file is currently empty on Solaris. Product
# lines may use this file to override compiler definitions and
# flags used in occi.mk.
# Linux compiler definitions
CC=/usr/bin/gcc
cc=/usr/bin/gcc
CCFLAGS=$(CCINCLUDES) -DLINUX -D_GNU_SOURCE -D_REENTRANT -g
LDFLAGS=-g
# This macro CCINCLUDES has to be redefined on Linux because of
# the existence of the 'new' directory in t_work. The name new
# clashes with a system header file.
CCINCLUDES = -idirafter .
THREADLIBS=-lpthread
ifdef BUILD_CCC296
CC=/usr/bin/g++296
endif
And I am executing the make file using the command :
make -f demo12.mk buildoci CDEMOEXE=custagg.so CDEMOOBJS=custagg.o
I am not getting any error while running this make file.
Can you please tell me whether PLSQL/Oracle is able to locate the file or not. Incase, if it is locating the file but due to some error in the custagg.so it is throwing that error. If this is the case, is there any way that i can debug the C program .....how can i install the debug_extproc package.. I am really new to C & OCI ... if the custagg.so is being located then there might be some problem with the way I am dynamically allocating memory to some variables.
Please kindly reply to this Post/response.
Please let me know if you also want to see my program code.
Thanks & Regards,
-NN -
OCI calls failing for Oracle 11g 11.1.0.7 (64 bit)
Hi,
I have a 32bit app which we build and compile in a 32 bit OS, we then deploy this in a 64 bit Windows 2008 R1 machine which has a 11g 64 bit DB;
when the code make the OCI calls the app terminates.On debugging we found out that its failing to make OCI calls on the connect() method of a .cpp file.
This connect code is a custom wrapper class created for OCI which only accepts a complete SQL statement mainly used for looking after rollback segments, etc.
The code runs perfectly fine when we internally call the ORACMD of sqlplus and directly execute the sql from a script.
It only fails when our code tries to connect to the DB and make OCI calls.
I have also installed a 32 bit Oracle 11g Client 11.1.0.7 since I am using a 32 bit app.
Is there any compatibility issues between these 2 versions or the dll's?
Why is it failing while making OCI calls and is there any resolution?
My machine and setup details:
OS: Windows 2008 R1
DB : Oracle 11g R1 11.1.0.7 (64 bit)
Client: Oracle 11g R1 11.1.0.7 (32 bit)
Our App: 32 bit
ORACLE_HOME = // this is pointing to the 64 bit DB
I tried pointing the oracle_home to the client still no go.
Any suggestions on this will be appreciated.
Regards
Royuser13376823 wrote:
how do i find that my database is using big file tablespace management or not ?
SQL> select TABLESPACE_NAME,BIGFILE from dba_tablespaces;
TABLESPACE_NAME BIG
SYSTEM NO
UNDOTBS1 NO
SYSAUX NO
USERS NO
UNDOTBS2 NO
TEMP1 NO
TEMP3 NO
TEMP2 NO
8 rows selected.For tablespaces with smallfile datafile maximun datafile size is 32GB, where as bigfile datafile size is 8 exabytes. -
OEHR Sample Objects Installation - ORA-00902: invalid datatype
When I was trying to install the supporting objects, I received a CREATE TYPE privilege error previously. Then the DBA updated APEX to 2.2.1 to fix the problem. It did but know I'm gettingn ORA-00901:invalid datatype and othere errors with creating the tables, views,etc. Can somebody help me. I'm running APEX with database version 9.2
Can somebody help me? I can not install the database objects. I get an invalid datatype error when the install script attempts to install the tables.
Please help! -
Hi,
I am developing a DLL in which i am using OCI calls to interact with Oracle. The Logon oci call "olog" itself fails when it is called from DLL. It is working fine in EXE. Whether OCI calls can be used in DLL? If so, let me know how to use it. If not, whether OCI calls can be used in COM or CORBA components?
Thanks in advance.
Ravi
nullThis is not a forum for OCI, but interMedia. Please look for an appropriate forum and post there. Also, I recommend to include your system envirment information in your post.
-
Invalid argument(s) in call: SetRowBufferAt
The following exception is produced because resultSet.next() was
called on an empty resultSet why ??
Driver = Oracle 8.1.7 thin (current version 8/30/01) for NT.
Thanks
try
m_resultSet = m_statement.executeQuery("SELECT
CODE_DECODE.* FROM CODE_DECODE WHERE 0 = 1");
// NOTE If this statement is not called the code works
fine.
while( m_resultSet.next())
// Does nothing as the resultset is empty
// NOTE If the above statement is not called the code
works fine
// Insert a row
m_resultSet.moveToInsertRow();
m_resultSet.updateObject
("CODE_DECODE.CODE_DECODE_ID",new Double(100000001d));
// Next statement causes the exception
m_resultSet.insertRow();
catch(Exception e)
e.printStackTrace();
gives the following stack trace
java.sql.SQLException: Invalid argument(s) in call:
setRowBufferAt
at oracle.jdbc.dbaccess.DBError.throwSqlException
(DBError.java:168)
at oracle.jdbc.dbaccess.DBError.throwSqlException
(DBError.java:210)
at oracle.jdbc.driver.UpdatableResultSet.setRowBufferAt
(UpdatableResultSet.java:1803)
at oracle.jdbc.driver.UpdatableResultSet.setRowBufferAt
(UpdatableResultSet.java:1785)
at oracle.jdbc.driver.UpdatableResultSet.updateObject
(UpdatableResultSet.java:1574)
at oracle.jdbc.driver.OracleResultSet.updateObject
(OracleResultSet.java:2787)Hi, same problem with insert.
A path exist for Oracle database jdbc support.
see this link for doc.
http://jpsunf01.oracle.co.jp/PATCH/PSR/IBM_RS6000/90PATCHSETS/90130_64/README.html#JDBC
No way to find the patch file !!!!!
See you ... -
Insert error SQLException: Invalid argument(s) in call:
The following exception is produced because resultSet.next() was
called on an empty resultSet why ??
Driver = Oracle 8.1.7 thin (current version 8/30/01) for NT.
Thanks
try
m_resultSet = m_statement.executeQuery("SELECT
CODE_DECODE.* FROM CODE_DECODE WHERE 0 = 1");
// NOTE If this statement is not called the code works
fine.
while( m_resultSet.next())
// Does nothing as the resultset is empty
// NOTE If the above statement is not called the code
works fine
// Insert a row
m_resultSet.moveToInsertRow();
m_resultSet.updateObject
("CODE_DECODE.CODE_DECODE_ID",new Double(100000001d));
// Next statement causes the exception
m_resultSet.insertRow();
catch(Exception e)
e.printStackTrace();
gives the following stack trace
java.sql.SQLException: Invalid argument(s) in call:
setRowBufferAt
at oracle.jdbc.dbaccess.DBError.throwSqlException
(DBError.java:168)
at oracle.jdbc.dbaccess.DBError.throwSqlException
(DBError.java:210)
at oracle.jdbc.driver.UpdatableResultSet.setRowBufferAt
(UpdatableResultSet.java:1803)
at oracle.jdbc.driver.UpdatableResultSet.setRowBufferAt
(UpdatableResultSet.java:1785)
at oracle.jdbc.driver.UpdatableResultSet.updateObject
(UpdatableResultSet.java:1574)
at oracle.jdbc.driver.OracleResultSet.updateObject
(OracleResultSet.java:2787)
at com.aceva.tool.toolbox.dbtool.JDBCAdapter.insertRow
(JDBCAdapter.java:440)
at com.aceva.tool.toolbox.dbtool.DBToolPanel.doInsert
(DBToolPanel.java:289)
at
com.aceva.tool.toolbox.dbtool.DBToolPanel$4.actionPerformed
(DBToolPanel.java:102)
at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1450)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
(AbstractButton.java:1504)
at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:378)
at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:250)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased
(BasicButtonListener.java:216)
at java.awt.Component.processMouseEvent
(Component.java:3717)
at java.awt.Component.processEvent(Component.java:3546)
at java.awt.Container.processEvent(Container.java:1164)
at java.awt.Component.dispatchEventImpl
(Component.java:2595)
at java.awt.Container.dispatchEventImpl
(Container.java:1213)
at java.awt.Component.dispatchEvent(Component.java:2499)
at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:2451)
at java.awt.LightweightDispatcher.processMouseEvent
(Container.java:2216)
at java.awt.LightweightDispatcher.dispatchEvent
(Container.java:2125)
at java.awt.Container.dispatchEventImpl
(Container.java:1200)
at java.awt.Window.dispatchEventImpl(Window.java:912)
at java.awt.Component.dispatchEvent(Component.java:2499)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
at java.awt.EventDispatchThread.pumpOneEvent
(EventDispatchThread.java:103)
at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run
(EventDispatchThread.java:84)The stack trace was:
06/09/06 09:02:52 java.sql.SQLException: Invalid argument(s) in call
06/09/06 09:02:52 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBErro
r.java:189)
06/09/06 09:02:52 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBErro
r.java:231)
06/09/06 09:02:52 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBErro
r.java:294)
06/09/06 09:02:52 at oracle.sql.CLOB.createTemporary(CLOB.java:527)
After that I change a code little bit:
clob = oracle.sql.CLOB.createTemporary(c, true, 1);
Ant it pass through, but it fails with CastException. Then I upgraded JDBC driver, because I'm using Java 1.4
So, now I have this kind of error:
at oracle.jdbc.driver.OracleConnection.physicalConnectionWithin(OracleConnection.java:5174)
at oracle.sql.CLOB.createTemporary(CLOB.java:1009)
at oracle.sql.CLOB.createTemporary(CLOB.java:956)
at my.pack.db.impl.ImportDatabaseDAO_JDBC.execute(ImportDatabaseDAO_JDBC.java:68)
It fails when I'm creating temporaryClob:
clob = oracle.sql.CLOB.createTemporary(c, true, 1);
The problem occurs, because my connection driver is:
com.evermind.sql.OrclCMTConnection and it can't be converted into oracle.jdbc.driver.OracleConnection.
It is datasource config:
<data-source location="jdbc/oooDS"
class="com.evermind.sql.DriverManagerDataSource"
password="iate"
xa-location="jdbc/xa/oooXADS"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="ooo"
url="jdbc:oracle:thin:@192.168.45.14:1526:ooo"
inactivity-timeout="30"
name="oooDS"
ejb-location="jdbc/oooDS"
pooled-location="jdbc/oooPoolDS"
min-connections="3"
max-connections="200"/>
Could you advise, how can I convert my Connection class? -
Hi all,
We are trying to create a BIP Data Model based on an Answer, but after selecting report, it hangs when I try to Apply to create a query based on Oracle BI. When I try to open the query in aswers, going to results tab I'm getting this error (OBIEE 11.1.1.6.2):
ORA-01830: date format picture ends before converting entire input string at OCI call OCIStmtFetch
I suppose that BIP data model is not able to create it because of this error. But this answer is working fine inside dashboards, etc. It only does not work when editing it. Query is doing something like this: "USING "- Collection Attributes"."Due Date" >= TIMESTAMPADD(SQL_TSI_DAY, -30, CAST ('01/04/2009' AS DATE))"
Any ideas?Solved watching date format in generated SQL and changing default date format in presentation variables default values inside criteria according to SQL format.
Maybe you are looking for
-
Composite Primary Key needs Unique ID column or no?
Hello Dears , I have a table that it's primary key is composite key of two columns , and there are like 5 info columns . You think I shall use the two columns as primary key of this table or create unique ID column . Example : Table Employees : Table
-
How to use select a vi function inside a loop?
I am modifying the notifier basics part 2.vi to send a notifier to each of 64 sub-vi's. How can you use the 'select a vi' function inside a loop for 64 iterations to access the individual filenames?? Attachments: Notifier_BASICS_Part_2.vi 87 KB
-
[SOLVED] Can't mount my root file system on boot!
Posting from an Ubuntu install on the same machine. So, my root partition, labeled "arch", is ext4 on /dev/sda5. My home partition is btrfs on /dev/sda1. When I boot, I get this error: http://imgur.com/mzmLIZH Not sure what to do from there. I can mo
-
why Annots:Tool:InkMenuItem removed from acrobat reader x(10.1.2) registry
-
Tried to sync iphone4 to itunes on my comp..not working! now crashed! HELP
Just got my new iphone 4. First thing i tried to do after inserting sim card is to connect it to my computer and itunes. Tells me i cant connect to this computer. then there was an option to restore settings and start over. So i do that, it says it c