STRUCT problems after Oracle/JDBC upgrade
Hi,
I was previously using JDBC 9.1.0.4 for an Oracle 8.1.7.3 database with a home made SQL framework.
Everything worked perfectly.
For our new project we deployed a new 9.2.0.5 oracle instance. Accordingly, we migrated our jdbc to 9.2.0.5 (using classes12.jar because we are using JDK 1.3). We use the same SQL framework to manage database data.
Everything is OK except one thing :
- When a stored procedure return an Oracle Type as an output argument.
- When i try to get this Oracle Type through a STRUCT (as I did previously in 8.1.7).
- All my VARCHAR2 variables return "???" values in java. But surprisingly, a NUMBER variable is OK and is correctly converted into a BigDecimal.
For info arguments are set/retrieved by this way :
cStmt.registerOutParameter(1,oracle.jdbc.driver.OracleTypes.STRUCT,"WBGL_PLACE_OBJ_TYP");
cStmt.execute();
STRUCT myStruct = (STRUCT) cStmt.getObject(1);
Object [] attrs = myStruct.getAttributes();
I tried the getStruct method of the OracleCallableStatement but it is not working either. I haven't seen any release notes regarding STRUCT updates...
I have also seen that there is an oracle.jdbc.driver.OracleTypes.JAVA_STRUCT constant, but it changes nothing when i use it...
Can anyone help ?
Thanks.
Christophe
By the way, it is working fine with same JDBC (the new one in 9.2.0.5) when connecting to a 8.1.7.3 database (correct VARCHAR2/String returned values and same procedure on the 2 databases, same JDBC call).
So maybe it comes from a change in the way Oracle 9.2 returns STRUCT to JDBC ???
I haven't been able to find any release note on this, keep searching...
Similar Messages
-
Hidden parameters appears after Oracle 11gR2 upgrade
Platform: HP-UX B.11.31 U ia64
Upgrading from: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
Upgrading to : Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Issue : There are around 130 hidden parameter appear after Oracle 11gR2 upgrade.
Before upgrade I have commented the hidden parameters on the PFILE. PFILE only to start the database for the Oracle 11gR2 upgrade.
Before upgrade, checking the hidden parameter:
SQL> SELECT name,description from SYS.V$PARAMETER WHERE name LIKE '\_%' ESCAPE '\';
optimizerextended_cursor_sharing_rel
optimizer extended cursor sharing for relational operators
allowlevel_without_connect_by
allow level without connect by
I am using client parameter file ( PFILE ) commented the hidden parameters highlighted above.
However after successful upgrade to 11gR2, creating SPFILE from the PFILE ( commented the hidden parameters) now i am getting 132 hidden parameters.
SQL> select count(1) from sys.V$PARAMETER where name like '\_%' escape '\';
COUNT(1)
132
SQL> select name from sys.V$PARAMETER where name like '\_%' escape '\';
name
aggregationoptimization_settings
alwaysanti_join
alwayssemi_join
andpruning_enabled
btree_bitmap_plans
bloomfilter_enabled
bloomfolding_enabled
bloompruning_enabled
complexview_merging
compressioncompatibility
connectby_use_union_all
convertset_to_join
costequality_semi_join
cputo_io
dimensionskip_null
eliminatecommon_subexpr
enabletype_dep_selectivity
fastfull_scan_enabled
firstk_rows_dynamic_proration
gbyhash_aggregation_enabled
generalizedpruning_enabled
globalindexpnum_filter_enabled
gsanti_semi_join_allowed
improvedouterjoin_card
improvedrow_length_enabled
indexjoin_enabled
ksbrestart_policy_times
leftnested_loops_random
localcommunication_costing_enabled
minimalstats_aggregation
mmvquery_rewrite_enabled
newinitial_join_orders
newsort_cost_estimate
nljbatching_enabled
optimadjust_for_part_skews
optimenhance_nnull_detection
optimnew_default_join_sel
optimpeek_user_binds
optimizeradaptive_cursor_sharing
optimizerbetter_inlist_costing
optimizercbqt_no_size_restriction
optimizercoalesce_subqueries
optimizercomplex_pred_selectivity
optimizercompute_index_stats
optimizerconnect_by_combine_sw
optimizerconnect_by_cost_based
optimizerconnect_by_elim_dups
optimizercorrect_sq_selectivity
optimizercost_based_transformation
optimizercost_hjsmj_multimatch
optimizercost_model
optimizerdim_subq_join_sel
optimizerdistinct_agg_transform
optimizerdistinct_elimination
optimizerdistinct_placement
optimizereliminate_filtering_join
optimizerenable_density_improvements
optimizerenable_extended_stats
optimizerenable_table_lookup_by_nl
optimizerenhanced_filter_push
optimizerextend_jppd_view_types
optimizerextended_cursor_sharing
optimizerextended_cursor_sharing_rel
optimizerextended_stats_usage_control
optimizerfalse_filter_pred_pullup
optimizerfast_access_pred_analysis
optimizerfast_pred_transitivity
optimizerfilter_pred_pullup
optimizerfkr_index_cost_bias
optimizerfull_outer_join_to_outer
optimizergroup_by_placement
optimizerimprove_selectivity
optimizerinterleave_jppd
optimizerjoin_elimination_enabled
optimizerjoin_factorization
optimizerjoin_order_control
optimizerjoin_sel_sanity_check
optimizermax_permutations
optimizermode_force
optimizermulti_level_push_pred
optimizernative_full_outer_join
optimizernew_join_card_computation
optimizernull_aware_antijoin
optimizeror_expansion
optimizerorder_by_elimination_enabled
optimizerouter_join_to_inner
optimizerouter_to_anti_enabled
optimizerpush_down_distinct
optimizerpush_pred_cost_based
optimizerrownum_bind_default
optimizerrownum_pred_based_fkr
optimizerskip_scan_enabled
optimizersortmerge_join_inequality
optimizersqu_bottomup
optimizerstar_tran_in_with_clause
optimizersystem_stats_usage
optimizertable_expansion
optimizertransitivity_retain
optimizertry_st_before_jppd
optimizerundo_cost_change
optimizerunnest_corr_set_subq
optimizerunnest_disjunctive_subq
optimizeruse_cbqt_star_transformation
optimizeruse_feedback
orexpand_nvl_predicate
orderednested_loop
parallelbroadcast_enabled
partitionview_enabled
pivotimplementation_method
prerewrite_push_pred
predmove_around
pushjoin_predicate
pushjoin_union_view
pushjoin_union_view2
pxminus_intersect
pxpartition_scan_enabled
pxpwg_enabled
pxual_serial_input
queryrewrite_setopgrw_enable
removeaggr_subquery
replacevirtual_columns
resourcemanager_plan
rightouter_hash_enable
selfjoinmv_duplicates
sqlmodel_unfold_forloops
sqltunecategory_parsed
subquerypruning_enabled
subquerypruning_mv_enabled
tablescan_cost_plus_one
unionrewrite_for_gs
unnestsubquery
usecolumn_stats_for_functionI just came across a similar case: 1 (just one) of our (RAC-) databases has 130-something underscore-parameters set to non-default values.
version is still 11.1.0.7 (e.g. not 11gR2).
All of those hidden parameters seem to be CBO related (list on request).
Weird is: Only one of our (very similar, supposedly same-config) databases have these hidden parameters set.
Colleagues justly wonder: Who, When, What has caused these parameters to be expliclty set for this one system?
Note: we do not have the complete history of this system documented (systems have been managed by 3 different parties already).
It is quite possible they came in with some patch or upgrade (catupgr?) somewhere between 11.1.0.1 and 11.1.0.7, but a confirmation would be nice.
Information welcome.
System info:
Linux hostname 2.6.18-164.9.1.el5 #1 SMP Wed Dec 9 03:27:37 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
Versions
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE 11.1.0.7.0 Production
TNS for Linux: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
5 rows selected. -
Hi,
We are continously getting dumps on our BW Central instance server after we did an Oracle patch upgrade from 9.2.0.6 to 9.2.0.8.
Following is our system environment
SAP Release.............. "640"
Application server....... "abci"
Operating system......... "SunOS"
Release.................. "5.10"
Hardware type............ "sun4v"
Database server.......... "abdb"
Database type............ "ORACLE"
Database name............ "ABP"
Database owner........... "SAPABP"
SAP kernel............... "640"
Database version......... "OCI_920 "
Patch level.............. "175"
Following below is the Core Dump that is generated for any process chains that we schedule on our BW server
Runtime Errors SYSTEM_CORE_DUMPED
Date and Time 14.04.2008 09:26:17
ShrtText
Process terminated by signal 11.
What happened?
The current ABAP program had to be terminated because the
ABAP processor detected an internal system error.
The current ABAP program "SAPMSSY2" had to be terminated because the ABAP
processor discovered an invalid system state.
What can you do?
Make a note of the actions and input which caused the error.
To resolve the problem, contact your SAP system administrator.
You can use transaction ST22 (ABAP Dump Analysis) to view and administer
termination messages, especially those beyond their normal deletion
date.
Error analysis
An SAP System process was terminated by an operating system signal.
Possible reasons for this are:
1. Internal SAP System error.
2. Process was terminated externally (by the system administrator).
Last error logged in SAP kernel
Component............ "Taskhandler"
Place................ "SAP-Server awci_ABP_00 on host awci (wp 5)"
Version.............. 1
Error code........... 11
Error text........... "ThSigHandler: signal"
Description.......... " "
System call.......... " "
Module............... "thxxhead.c"
Line................. 9780
How to correct the error
The SAP System work directory (e.g. /usr/sap/c11/D00/work ) often
contains a file called 'core'.
Save this file under another name.
If you cannot solve the problem yourself and you wish to send
an error message to SAP, include the following documents:
1. A printout of the problem description (short dump)
To obtain this, select in the current display "System->List->
Save->Local File (unconverted)".
2. A suitable printout of the system log
To obtain this, call the system log through transaction SM21.
Limit the time interval to 10 minutes before and 5 minutes
after the short dump. In the display, then select the function
"System->List->Save->Local File (unconverted)".
3. If the programs are your own programs or modified SAP programs,
supply the source code.
To do this, select the Editor function "Further Utilities->
Upload/Download->Download".
4. Details regarding the conditions under which the error occurred
or which actions and input led to the error.
Kindly help.
Regards
Sachin
Edited by: Sachin N on Apr 14, 2008 12:26 PMNo. If the environment would be wrong the system wouldn´t start up.
Core dumps are in 99 % of the cases program errors (in the SAP kernel or in an interface (libdbora*)), misaligend accesses of data etc.
If you encounter such an error have a look in the C-Stack. If you can´t see where the error is happening opening an OSS call. Most of those errors are fixed by installing the latest patches for the kernel and the database interface.
Markus -
Connection Problem using oracle.jdbc.xa.client.OracleXADataSource
Unable to get a connection from connection pool Realm1tx
Actually there are 5 connection intialized but no connection is there in active pool.Sometimes when I
go to weblogic console and refresh the connection comes alive temporarily.Can anyone help me out for
fixing this problem
Driver Used:
oracle.jdbc.xa.client.OracleXADataSource
Error Message
Unknown error occurred: XA error: XAER_RMERR : A resource manager error has occured in the transaction
branch start() failed on resource 'realm1tx' null sql=[SELECT Person$1.id,NULL,Person$1.id,NULL,NULL
FROM Person Person$1 WHERE (Per
son$1.securityId = 'admin')] throttle=[-1]
java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured in the transaction
branch start() failed on resource 'realm1tx' null
Thanks in advance.
Ragavendra.Which version of oracle thin driver are you using? Oracle 920 thin driver has some issues.
Thanks,
Mitesh
Ragavendra wrote:
Unable to get a connection from connection pool Realm1tx
Actually there are 5 connection intialized but no connection is there in active pool.Sometimes when I
go to weblogic console and refresh the connection comes alive temporarily.Can anyone help me out for
fixing this problem
Driver Used:
oracle.jdbc.xa.client.OracleXADataSource
Error Message
Unknown error occurred: XA error: XAER_RMERR : A resource manager error has occured in the transaction
branch start() failed on resource 'realm1tx' null sql=[SELECT Person$1.id,NULL,Person$1.id,NULL,NULL
FROM Person Person$1 WHERE (Per
son$1.securityId = 'admin')] throttle=[-1]
java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured in the transaction
branch start() failed on resource 'realm1tx' null
Thanks in advance.
Ragavendra. -
Problem with Oracle jdbc driver and jdk1.4
Hi
I have some java code which uses Oracle jdbc driver.
This code works with java 1.1.8, 1.2 & 1.3 but not with java 1.4 !
I have that exception :
java.sql.SQLException: The Network Adapter could not establish the connection
at oracle/jdbc/dbaccess/DBError.check_error(DBError.java)
at oracle/jdbc/driver/OracleConnection.<init>(OracleConnection.java)
at oracle/jdbc/driver/OracleDriver.getConnectionInstance(OracleDriver.java)
at oracle/jdbc/driver/OracleDriver.connect(OracleDriver.java)
at java/sql/DriverManager.getConnection(DriverManager.java:529)
at java/sql/DriverManager.getConnection(DriverManager.java:179)
at SimpleQuery.<init>(SimpleQuery.java:21)
at SimpleQuery.main(SimpleQuery.java:56)
when I try a getConnection...
I've tried all the jdbc drivers provided by Oracle, but it's still the same problem !
Any Idea ?
ThanksHave you tried the drivers shipped with Oracle9i Db R2? they should work against JDK 1.4
Kuassi
Hi
I have some java code which uses Oracle jdbc driver.
This code works with java 1.1.8, 1.2 & 1.3 but not with java 1.4 !
I have that exception :
java.sql.SQLException: The Network Adapter could not establish the connection
at oracle/jdbc/dbaccess/DBError.check_error(DBError.java)
at oracle/jdbc/driver/OracleConnection.<init>(OracleConnection.java)
at oracle/jdbc/driver/OracleDriver.getConnectionInstance(OracleDriver.java)
at oracle/jdbc/driver/OracleDriver.connect(OracleDriver.java)
at java/sql/DriverManager.getConnection(DriverManager.java:529)
at java/sql/DriverManager.getConnection(DriverManager.java:179)
at SimpleQuery.<init>(SimpleQuery.java:21)
at SimpleQuery.main(SimpleQuery.java:56)
when I try a getConnection...
I've tried all the jdbc drivers provided by Oracle, but it's still the same problem !
Any Idea ?
Thanks -
Weird problem after the last upgrade(10.4.8)
Hello all,
I am using a 1.66mhz MacMini with intelcoreduo. After the last upgrade
2weeks ago. I begun to encounter weird behaviors(those does not happen
all the time, but happens..) from my mac. I'll try to list those
behaviors below:
- trash can sometime can not empty, I have to open the thrashbin and
delete manaually by selecting each file to delete
-finder failing to open a new window.
- when i take screenshot, it only appears when i try to find it over spotlight
- and worst of them all, recent files downloaded on my desktop disappearing sometimes and only way to reach them ise search on finder, when spotlight finds it, it appears back again).
These are all so weird kinda behaviors. I am curious if any of you
having the same problems, or rather these problems has been allready
pointed.
Kind Regards,
alper,I've seen some of those before but on a G4 Tower, so far never on my Intel Mac Mini.
I've seen screenshots not appear on the desktop until much later or when a new file is brought or created on the desktop. Likewise, I've seen the same behaviour with some files I've downloaded (to a specific downloads folder).
I remember stuffit 9 or 10 had a bug similar to this where when you expanded a an archive it was "empty" until you moved a new file into the folder or made a new file/folder in it, then it would show you the files that were actually in the expanded archive.
Try repairing your permissions and booting from your Mac OS X install disc and running disk repair. -
Problems with Oracle jdbc Driver
Hi... I'm trying to connect to my Oracle Database and I get the folowing error:
"package oracle.jdbc.driver does not exist"
I have installed Oracle 9.1.0.2 Database...
The value of the Classpath variable is:
".;c:\oracle\ora92\jdbc\lib"
What could be the problem???...
Thanks in advance.-
Alberto.-Are you building your application from the command line? Or using a GUI? GUI's will frequently overwrite your CLASSPATH environment variable...
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Hanging problem with Oracle JDBC thin driver
Hi. We have an application running on top of WLS 6.1 accessing Oracle 8I with oracle's
JDBC thin driver. Under stress testing, it appears to hang sometimes. Thread dump
shows that many threads seem to be stuck at the same line of code in JDBC driver
(at oracle.sql.NUMBER._isPositive(NUMBER.java:2882)). Has anyone run into similar
issue? Any help is much appreciated.
"ExecuteThread: '1' for queue: 'default'" daemon prio=5 tid=0xe18960 nid=0xf wai
ting on monitor [0xb3680000..0xb36819d8]
at oracle.sql.NUMBER._isPositive(NUMBER.java:2882)
at oracle.sql.NUMBER._fromLnxFmt(NUMBER.java:2953)
at oracle.sql.NUMBER.toBigDecimal(NUMBER.java:557)
at oracle.sql.NUMBER.bigDecimalValue(NUMBER.java:1872)
at oracle.jdbc.dbaccess.DBConversion.NumberBytesToBigDecimal(DBConversion.ja
va:1771)
at oracle.jdbc.driver.OracleStatement.getBigDecimalValue(OracleStatement.jav
a:3357)
at oracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:41
66)
at oracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:41
23)
at oracle.jdbc.driver.OracleResultSetImpl.getObject(OracleResultSetImpl.java
:401)
at weblogic.jdbc.jts.ResultSet.getObject(ResultSet.java:268)
at weblogic.jdbc.rmi.internal.ResultSetImpl.getObject(ResultSetImpl.java:592
at weblogic.jdbc.rmi.internal.ResultSetStraightReader.getObject(ResultSetStr
aightReader.java:198)
at weblogic.jdbc.rmi.SerialResultSet.getObject(SerialResultSet.java:682)
"ExecuteThread: '6' for queue: 'default'" daemon prio=5 tid=0x6d93a8 nid=0x14
wa
iting on monitor [0xb3180000..0xb31819d8]
at oracle.sql.NUMBER._isPositive(NUMBER.java:2882)
at oracle.sql.NUMBER._fromLnxFmt(NUMBER.java:2953)
at oracle.sql.NUMBER.toBigDecimal(NUMBER.java:557)
at oracle.sql.NUMBER.bigDecimalValue(NUMBER.java:1872)
at oracle.jdbc.dbaccess.DBConversion.NumberBytesToBigDecimal(DBConversion.ja
va:1771)
at oracle.jdbc.driver.OracleStatement.getBigDecimalValue(OracleStatement.jav
a:3357)
at oracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:41
66)
at oracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:41
23)
at oracle.jdbc.driver.OracleResultSetImpl.getObject(OracleResultSetImpl.java
:401)
at weblogic.jdbc.jts.ResultSet.getObject(ResultSet.java:268)
at weblogic.jdbc.rmi.internal.ResultSetImpl.getObject(ResultSetImpl.java:592
at weblogic.jdbc.rmi.internal.ResultSetStraightReader.getObject(ResultSetStr
aightReader.java:198)
at weblogic.jdbc.rmi.SerialResultSet.getObject(SerialResultSet.java:682)Try get the latest thin driver from oracle and place it in the beginning of
the classpath in the server startup script to use it. This seems like a
oracle thin driver bug, the newer driver might help.
sree
"Andrew Dong" <[email protected]> wrote in message
news:[email protected]...
>
Hi. We have an application running on top of WLS 6.1 accessing Oracle 8Iwith oracle's
JDBC thin driver. Under stress testing, it appears to hang sometimes.Thread dump
shows that many threads seem to be stuck at the same line of code in JDBCdriver
(at oracle.sql.NUMBER._isPositive(NUMBER.java:2882)). Has anyone run intosimilar
issue? Any help is much appreciated.
"ExecuteThread: '1' for queue: 'default'" daemon prio=5 tid=0xe18960nid=0xf wai
ting on monitor [0xb3680000..0xb36819d8]
at oracle.sql.NUMBER._isPositive(NUMBER.java:2882)
at oracle.sql.NUMBER._fromLnxFmt(NUMBER.java:2953)
at oracle.sql.NUMBER.toBigDecimal(NUMBER.java:557)
at oracle.sql.NUMBER.bigDecimalValue(NUMBER.java:1872)
atoracle.jdbc.dbaccess.DBConversion.NumberBytesToBigDecimal(DBConversion.ja
va:1771)
atoracle.jdbc.driver.OracleStatement.getBigDecimalValue(OracleStatement.jav
a:3357)
atoracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:41
66)
atoracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:41
23)
atoracle.jdbc.driver.OracleResultSetImpl.getObject(OracleResultSetImpl.java
:401)
at weblogic.jdbc.jts.ResultSet.getObject(ResultSet.java:268)
atweblogic.jdbc.rmi.internal.ResultSetImpl.getObject(ResultSetImpl.java:592
atweblogic.jdbc.rmi.internal.ResultSetStraightReader.getObject(ResultSetStr
aightReader.java:198)
atweblogic.jdbc.rmi.SerialResultSet.getObject(SerialResultSet.java:682)
>
"ExecuteThread: '6' for queue: 'default'" daemon prio=5 tid=0x6d93a8nid=0x14
wa
iting on monitor [0xb3180000..0xb31819d8]
at oracle.sql.NUMBER._isPositive(NUMBER.java:2882)
at oracle.sql.NUMBER._fromLnxFmt(NUMBER.java:2953)
at oracle.sql.NUMBER.toBigDecimal(NUMBER.java:557)
at oracle.sql.NUMBER.bigDecimalValue(NUMBER.java:1872)
atoracle.jdbc.dbaccess.DBConversion.NumberBytesToBigDecimal(DBConversion.ja
va:1771)
atoracle.jdbc.driver.OracleStatement.getBigDecimalValue(OracleStatement.jav
a:3357)
atoracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:41
66)
atoracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:41
23)
atoracle.jdbc.driver.OracleResultSetImpl.getObject(OracleResultSetImpl.java
:401)
at weblogic.jdbc.jts.ResultSet.getObject(ResultSet.java:268)
atweblogic.jdbc.rmi.internal.ResultSetImpl.getObject(ResultSetImpl.java:592
atweblogic.jdbc.rmi.internal.ResultSetStraightReader.getObject(ResultSetStr
aightReader.java:198)
atweblogic.jdbc.rmi.SerialResultSet.getObject(SerialResultSet.java:682)
>
> -
Preparedstatement problem in oracle jdbc 10.1.0, 10.2.0
Hello,
Im using oracle jdbc to connect oracle9.0.1.0.1
i have a table like
id-NUMBER
RESULT-VARCHAR2(100)
E_DATE-DATE
STATE-VARCHAR2(1)
when i write the code like
"update TBMIS_AUDIT_ISSUE_PROJECT set RESULT=? , E_DATE=? where PROJ_ID=? and ISSUE_NO=?"
pstmt.setstring(1, "Test");using preparedstatement, the result column will not be updated correct(ex:%|st).
but if i change the order of columns like:
"update TBMIS_AUDIT_ISSUE_PROJECT set E_DATE=? RESULT=? where PROJ_ID=? and ISSUE_NO=?"
pstmt.setstring(2, "Test");it will be correct.
when i put the column which type is VARCHAR2 in the first place like:
"update TBMIS_AUDIT_ISSUE_PROJECT set STATE=?, E_DATE=? RESULT=? where PROJ_ID=? and ISSUE_NO=?"
pstmt.setstring(1, "1");the same, the state column will not be updated correct(ex:%)
but result column will be correct
looks something wrong in preparedstatement at jdbc 10.1.0 or 10.2.0
it works well when the driver is jdbc 8.1.7(classes12.zip)
or working without preparedstatement
so. is it the bug? or something i missed
thanksand..
it happened when
VARCHAR2( size ) less then 1829
when varchar2 ( size > 1829)
it doen not happend..
my table scheme like this
create table TBMIS_AUDIT (
ID NUMBER(10) not null,
S_DATE DATE,
E_DATE DATE,
NOTE VARCHAR2(200),
STATUS VARCHAR2(1)
);my code is
String sql = "update TBMIS_AUDIT set NOTE=? , S_DATE=?"
+ ", STATUS=? where ISSUE_NO=?";
PreparedStatement pstmt = con.prepareStatement(sql);
pstmt.setString(1, "ok!!");
pstmt.setTimestamp(2, new Timestamp(System.currentTimeMillis()));
pstmt.setString(3, "1");
pstmt.setString(4, "1");the note column will be filled with some wrong character
if NOTE is VARCHAR2(2000), it works well again..
or changing E_DATE to Timestamp in oracle -
Problem using Oracle JDBC Driver
Hi,
I try to configure the Oracle JDBC Driver the following way:
I load the Oracle drivers ojdbc14_g.jar and nls_charset12.jar
I configure the DataSource using the Driver Class oracle.jdbc.driver.OracleDriver, the database URL: jdbc:oracle:thin:@h50a430:1521:WLP1E1A0 and the User with Password.
As soon as its activated I get the following error:
java.rmi.RemoteException: Error occurred while starting application in whole cluster and wait.; nested exception is:
com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Complex error : server ID 4123350:Cannot start DataSource "Oracle".
at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationAndWait(DeployCommunicatorImpl.java:678)
at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationAndWait(DeployCommunicatorImpl.java:660)
at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.startApplication(DataSourceManagerImpl.java:535)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
any hint?I can't create an Oracle datasource too.
Uploaded ojdbc14.jar, used the same Oracle jdbc settings as in my jdbc explorer where everything works fine, set initial connections to 1, set SQL Engine to Native SQL,...
-> won't start.
I restarted the cluster too. The Datasource is still marked with a red cross in the admin tool.
This is with the type 1.x setting, as XA seems to be still broken in WAS 6.40. -
IPad email problem after version 6 upgrade
My email stopped working after accepting the upgrade to version 6. My settings appear right and everything worked before the upgrade. Any suggestions?
I did that, but the service is intermittent. I never know with any certainty whether or not an email will go through.
-
Performance Hit After Oracle Database Upgrade to 10.2.0.4
We have a couple dozen workbooks that took this performance hit after the upgrade of the database/migration to a new server. Worksheets that executed in the ten second range are now running for hours or simply not finishing. We took the new server factor out of the equation by rolling back the database to 10.2.0.3 where a test EUL resides and the problem was resolved. Has anyone seen this issue? Does anyone have an suggestions? An early reply would be greatly appreciated.
Thanks,
JerreRod,
Thanks for the quick reply. We are looking at the different plans and modifying the optimizer settings, switching back and forth, as we speak. We are now starting with the hints. Currently our Server 'optimizer_mode' parameter is ALL_ROWS. We are planning to change the to 'Choose' and see what happens. The workbooks that are impacted are on our oldest business areas of Finance and HR. The former setup was borrowed from another school for a quick, low cost start up. The latter was thrown together by novices. Our true datamarts developed by knowledgeable personnel with star schemas are not impacted. Of course we are planning on redoing the older business areas but time, personnel and money matters slow things down. It is these workbooks on the older business areas that are greatly affected by the migrations and upgrade. We eventually get things to settle down but past actions do not always have the same resolution with newer and better servers and upgrades.
Thanks,
Jerre -
Query modification problem after Business Content upgrade
Hi,
We have upgraded two systems from Business Content 3.1 to BC3.3. After the upgrade we have a problem when opening queries for modification: a dialogue window is opened and system says:
"<i>AUTOMATIC CORRECTION
The following objects were not found when accessing server
Press 'Repair' to correct the problem (incorrect parts of the query are automatically deleted)
Press 'Cancel' to undo the last action
Missing objects:
- InfoObjects
| |- InfoObject 0HIER_VERS
- Affected Items
|- Hierarchy version</i>"
Strange thing is that the problem cannot be reproduced on consultants' laptops, only on clients' PC-s, so we believe there must be something about Windows/Excel security that produces the error message.
Have you ever experienced this (kind of) problem before? Do you have any idea what I should check?
I checked
- Macro security settings in MS Excel,
- logged on to the PC's as Administrator
- logged on to BW with clients'/consultants' user ID's on clients'/consultants' PC's, problem appeared only on client PC-s
- SAP GUI version (it is the same)
- MS Excel, MS Windows version (the same)
I have also checked InfoObject 0HIER_VERS, it really does not exist in the system. But it does not exist in our Production system either, while the query is completely the same in both systems.
0HIER_VERS is a "technical attribute" (as I read in an SAP documentation - however, I don't really understand this term), it is attached to 0CS_GROUP (Consolidation group).
Thanks,
CsabaHi,
Before checking that did u acvtivate and update all the datasources at the source system level.
Thanks
sampath -
24 inch iMac Screen problems after 10.5 upgrade
After upgrading to 10.5 i have had many issues with the display my iMac (white) 24inch Core 2 Duo. I have corruption resulting in horizontal lines across open windows and in some cases on the desktop itself. Some of the button text turns bright green. The iMac in question was purchased with the NVIDIA GeForce 7600 GT graphic card upgrade. I have run the 10.5.1 software update and the firmware is all up to date. Has anyone had the same issues? Does anyone have a fix? Help please.
I have upgraded my MacBook with no issues at all!If your iMac keeps on freezing it could be a hard ware problem, the first thing to do is run Apple Hardware Test on your iMac.
-
Hi all,
We have a problem in OBIEE(11.1.1.6.8) dashboard prompts after the upgrade of Chrome browser.. The values of dashboard prompts are not shown to user ( with message "Please wait" ) We had this problem in Internet Explorer 10. So we had announced the users to have minimum browser versions Chrome 12+ , Firefox 17+ , Internet Explorer 9.x as its is declared in certification matrix. Now after upgrade (automatically)in Chrome version 30.0.1599.101 m , we have the same problem and the only working browser remaining is Mozilla Firefox. What should we do to prevent this without upgrade or patch ? Is there any workaround ?
Thanks ...OBIEE problems with Chrome (update 30) plus patch
Maybe you are looking for
-
Hello, Can anyone help me for this: when i click on a movie clip or a button i open a popup window, for Internet Explorer or Firefox. Thanks Waiting to your answer... Zaki
-
Help w/MaxDB Function; also: how does the "Debug SQL" function work?
Hi there forum folks, In my former life, I was a Basis guy, but I haven't had the pleasure of working directly with SAP applications in a few months. My current project is to attempt to use MaxDB in a real estate environment. We're tracking home li
-
After being redirected by instructions in your forum, to fix a error message that says that I am using a incompatible browser. Went to about:config then, typed "useragent" in filter line, then to right click on preference name, to click reset. The re
-
Auditing user activity in Oracle 9i
I need to provide some kind of measure of user activity in our Oracle DB. Essentially we are trying to find low consumers who perhaps have little or no need for access to the database, perhaps they do one enquiry a day or only access information once
-
Please help me how to download free games from my new mini iPod ..