Java to Oracle, Transfer big object
Hi!
There is the following problem.
There is a large project, which should be in Oracle to transfer large objec with Java. For example profile, which can be 100 fields, and these profiles must also transfer a lot. How it can best be arranged?
How does this question relate to the topic of this forum which is "Advanced Compression?"
If it does please include all relevant information beginning with version numbers and a definition what words such as "large."
Similar Messages
-
Access Oracle Service Bus objects from within a PBL program
Followed instructions from Studio Reference documentation for cataloging Oracle Service Bus objects and embedded sample code but encountered http 404 not found error. Is there anyway to trace the call made to the Service Bus? I change the log message severity level for Workspace application to debug but the call is not logged. The following is the output from the log:
================Oracle® BPM - WorkSpace================
RUNTIME:fuego.papi.exception.ActivityFailedException: Activity '/ExpenseReport#Default-1.0/GlobalCreation[CreateExpenseReport]' task '' could not execute successfully.
RUNTIME:Detail:Method: '', Exception: 'The method 'CIL_createExpenseReportCreateExpenseReportIN' from class 'oracle.ExpenseReport.Default_1_0.Instance' could not be successfully executed.'
RUNTIME:
RUNTIME: at fuego.papi.exception.ActivityFailedException.create(ActivityFailedException.java:66)
RUNTIME: at fuego.server.AbstractProcessBean.createActivityFailedException(AbstractProcessBean.java:3561)
RUNTIME: at fuego.fengine.FEngineProcessBean.createActivityFailedException(FEngineProcessBean.java:371)
RUNTIME: at fuego.server.AbstractProcessBean.runGlobalActivity(AbstractProcessBean.java:2968)
RUNTIME: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
RUNTIME: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
RUNTIME: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
RUNTIME: at java.lang.reflect.Method.invoke(Unknown Source)
RUNTIME: at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
RUNTIME: at fuego.lang.JavaObject.invoke(JavaObject.java:227)
RUNTIME: at fuego.component.Message.process(Message.java:585)
RUNTIME: at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:780)
RUNTIME: at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755)
RUNTIME: at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
RUNTIME: at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
RUNTIME: at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:244)
RUNTIME: at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
RUNTIME: at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
RUNTIME: at fuego.component.CustomExecution.next(CustomExecution.java:176)
RUNTIME: at fuego.papi.impl.rmi.RMIExecution.next(RMIExecution.java:109)
RUNTIME: at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:177)
RUNTIME: at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54)
RUNTIME: at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:223)
RUNTIME: at fuego.web.papi.TaskExecutor.runApplicationTask(TaskExecutor.java:349)
RUNTIME: at fuego.web.papi.TaskExecutor.execute(TaskExecutor.java:95)
RUNTIME: at fuego.workspace.servlet.ExecutorServlet.doAction(ExecutorServlet.java:117)
RUNTIME: at fuego.workspace.servlet.BaseServlet.doPost(BaseServlet.java:229)
RUNTIME: at fuego.workspace.servlet.BaseServlet.doGet(BaseServlet.java:220)
RUNTIME: at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
RUNTIME: at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:83)
RUNTIME: at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
RUNTIME: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
RUNTIME: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
RUNTIME: at fuego.web.filter.SingleThreadPerSessionFilter.doFilter(SingleThreadPerSessionFilter.java:64)
RUNTIME: at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
RUNTIME: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
RUNTIME: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
RUNTIME: at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48)
RUNTIME: at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
RUNTIME: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
RUNTIME: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
RUNTIME: at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
RUNTIME: at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
RUNTIME: at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
RUNTIME: at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
RUNTIME: at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
RUNTIME: at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
RUNTIME: at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
RUNTIME: at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
RUNTIME: at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
RUNTIME: at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
RUNTIME: at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
RUNTIME: at java.lang.Thread.run(Unknown Source)
RUNTIME:Caused by: fuego.lang.ComponentExecutionException: The method 'CIL_createExpenseReportCreateExpenseReportIN' from class 'oracle.ExpenseReport.Default_1_0.Instance' could not be successfully executed.
RUNTIME: at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:519)
RUNTIME: at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:273)
RUNTIME: at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:219)
RUNTIME: at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1280)
RUNTIME: at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:401)
RUNTIME: at fuego.server.execution.GlobalTaskExecution.invoke(GlobalTaskExecution.java:146)
RUNTIME: at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:513)
RUNTIME: at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:697)
RUNTIME: at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:657)
RUNTIME: at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:154)
RUNTIME: at fuego.server.execution.GlobalTaskExecution.executeGlobalCIL(GlobalTaskExecution.java:116)
RUNTIME: at fuego.server.execution.GlobalTaskExecution.executeGlobalCIL(GlobalTaskExecution.java:96)
RUNTIME: at fuego.server.execution.microactivity.GlobalCreationMicroActivity.execute(GlobalCreationMicroActivity.java:109)
RUNTIME: at fuego.server.execution.microactivity.GlobalInteractiveMicroActivity.execute(GlobalInteractiveMicroActivity.java:73)
RUNTIME: at fuego.server.AbstractProcessBean$44.execute(AbstractProcessBean.java:2961)
RUNTIME: at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
RUNTIME: at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
RUNTIME: at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
RUNTIME: at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
RUNTIME: at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
RUNTIME: at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
RUNTIME: at fuego.server.AbstractProcessBean.runGlobalActivity(AbstractProcessBean.java:2954)
RUNTIME: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
RUNTIME: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
RUNTIME: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
RUNTIME: at java.lang.reflect.Method.invoke(Unknown Source)
RUNTIME: at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
RUNTIME: at fuego.lang.JavaObject.invoke(JavaObject.java:227)
RUNTIME: at fuego.component.Message.process(Message.java:585)
RUNTIME: at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:780)
RUNTIME: at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755)
RUNTIME: at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
RUNTIME: at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
RUNTIME: at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:244)
RUNTIME: at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
RUNTIME: at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
RUNTIME:Caused by: fuego.lang.RuntimeCILExecutionException: <?xml version="1.0" encoding="UTF-8" ?>
RUNTIME:<string>return code: 404
RUNTIME:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN">
RUNTIME:<HTML>
RUNTIME:<HEAD>
RUNTIME:<TITLE>Error 404--Not Found</TITLE>
RUNTIME:<META NAME="GENERATOR" CONTENT="WebLogic Server">
RUNTIME:</HEAD>
RUNTIME:<BODY bgcolor="white">
RUNTIME:<FONT FACE=Helvetica><BR CLEAR=all>
RUNTIME:<TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all>
RUNTIME:<FONT FACE="Helvetica" COLOR="black" SIZE="3"><H2>Error 404--Not Found</H2>
RUNTIME:</FONT></TD></TR>
RUNTIME:</TABLE>
RUNTIME:<TABLE border=0 width=100% cellpadding=10><TR><TD VALIGN=top WIDTH=100% BGCOLOR=white><FONT FACE="Courier New"><FONT FACE="Helvetica" SIZE="3"><H3>From RFC 2068 <i>Hypertext Transfer Protocol -- HTTP/1.1</i>:</H3>
RUNTIME:</FONT><FONT FACE="Helvetica" SIZE="3"><H4>10.4.5 404 Not Found</H4>
RUNTIME:</FONT><P><FONT FACE="Courier New">The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.</p><p>If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.</FONT></P>
RUNTIME:</FONT></TD></TR>
RUNTIME:</TABLE>
RUNTIME:
RUNTIME:</BODY>
RUNTIME:</HTML>
RUNTIME:</string>
RUNTIME:
RUNTIME: at fuego.components.ScreenFlow.rethrowUserException(ScreenFlow.java:274)
RUNTIME: at fuego.components.ScreenFlow.propagateParentException(ScreenFlow.java:239)
RUNTIME: at xobject.Fuego__AutoGen__Screenflows__.__SubmitReport.Begin_Invocator(__SubmitReport.xcdl:13)
RUNTIME: at oracle.ExpenseReport.Default_1_0.Instance.CIL_createExpenseReportCreateExpenseReportIN(Instance.xcdl:3)
RUNTIME: at oracle.ExpenseReport.Default_1_0.Instance.CIL_createExpenseReportCreateExpenseReportIN(Instance.xcdl)
RUNTIME: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
RUNTIME: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
RUNTIME: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
RUNTIME: at java.lang.reflect.Method.invoke(Unknown Source)
RUNTIME: at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:512)
RUNTIME: ... 35 moreYou are receiving a 404 error which means that the binding to the SB is not correct or there is a problem with the SB end part of the integration.
Are you able to test this successfully from an automatic activity for example aside from trying to use it within a screenflow ?
Thanks !
eduardoc. -
Internal Error in reading a Table of Oracle custom-defined objects.
Hi,
We are running into an Oracle internal error when trying to extract data from an OUT parameter of a stored procedure. The OUT parameter is of the type TABLE of Oracle custom-defined OBJECT.
Any help on this issue will be greatly appreciated.
Thanks, in advance,
OraNew
Program:
package test;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.ArrayList;
import java.util.List;
import oracle.sql.ARRAY;
import oracle.sql.STRUCT;
import src.vo.ProfileBank;
public class TestOracle {
* @param args
public static void main(String[] args) {
try{
Connection con = getConnection();
ResultSet rsBalance = null;
CallableStatement cs =
con.prepareCall("{ CALL acr_profiles.get_profile_bank( ?, ?, ?)}");
cs.setLong(1, new Long(133).longValue());
cs.setLong(2, new Long(29032).longValue());
cs.registerOutParameter(3,Types.ARRAY,"ACR_USER." + "ACR_PROF_BANK_TAB");
cs.execute();
ARRAY array = (oracle.sql.ARRAY) cs.getObject(3);
System.out.println("length: "+ array.length());
System.out.println("isConvertible: " + array.isConvertibleTo(Object.class));
System.out.println("isInline: " + array.isInline());
rsBalance = array.getResultSet();
showResultSet(rsBalance);
} catch (Exception sql){
System.out.println("Exception "+ sql);
public static void showResultSet (ResultSet rs) throws SQLException
System.out.println("ResultSet = "+ rs.toString());
List profileBanks = new ArrayList();
while (rs != null && rs.next()) {
STRUCT struct = (STRUCT)rs.getObject (2); //getting the Internal Error on this line.
Object[] attribs = struct.getAttributes();
System.out.println("Bank Alias Id"+ (java.math.BigDecimal) attribs[0]);
System.out.println("Bank Name"+ (String)attribs[1]);
System.out.println("Bank set flag "+ (String) attribs[2]);
ProfileBank pBank = new ProfileBank();
pBank.setBankAliasId(new Integer(((java.math.BigDecimal) attribs[0]).intValue()));
pBank.setBankName((String) attribs[1]);
pBank.setSelBankFlag((String) attribs[2]);
profileBanks.add(pBank);
public static Connection getConnection() throws ClassNotFoundException, SQLException {
Class.forName("oracle.jdbc.driver.OracleDriver");
System.out.println("Driver loaded");
// establish a connection
Connection conn = DriverManager
.getConnection(
"jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=10.3.11.201)(Port=1521)) (CONNECT_DATA=(SERVICE_NAME= aada.a.al)))",
"acr_user", "acr_user");
System.out.println("Database connected");
return conn;
Console Output:
Driver loaded
Database connected
length: 2
isConvertible: false
isInline: true
ResultSet = oracle.jdbc.driver.ArrayDataResultSet@1f3aa07
Exception java.sql.SQLException: Internal Error
Partial Stacktrace obtained from the Eclipse Debug window:
oracle.jdbc.driver.DatabaseError.throwSqlException(int) line: 292
oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName() line: 1192
oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(int) line: 1225
oracle.jdbc.oracore.OracleTypeADT(oracle.jdbc.oracore.OracleNamedType).getFullName(boolean) line: 119
oracle.jdbc.oracore.OracleTypeADT(oracle.jdbc.oracore.OracleNamedType).getFullName() line: 93
oracle.sql.StructDescriptor(oracle.sql.TypeDescriptor).initSQLName() line: 497
oracle.sql.StructDescriptor(oracle.sql.TypeDescriptor).getName() line: 392
oracle.sql.StructDescriptor.getClass(java.util.Map) line: 2003
oracle.sql.STRUCT.toJdbc(java.util.Map) line: 983
oracle.jdbc.driver.ArrayDataResultSet.getObject(int, java.util.Map) line: 1379
oracle.jdbc.driver.ArrayDataResultSet.getObject(int) line: 1198
test.TestOracle.showResultSet(java.sql.ResultSet) line: 53
test.TestOracle.main(java.lang.String[]) line: 38
Environment:
Database: Oracle 10g (10.2.0.3)
JDBC Drivers: version 10.2.0.3 (ojdbc14, orai18n)
Database Server: HP-UX
Client machine: Windows XP
<end of thread>hi Thom,
most error relating to table DOKTL are caused by misconfigured network card.
if this is a "home" system, install a loopback adapter from Microsoft and use IP address 127.0.0.1 and also check "hosts" file for inconsistency. do not use the IP adddress provided by your ISP as it may change. -
How does Java structure memory for an object's members?
I'm trying to figure out how Java structures/allocates memory for objects. (Yes this is implementation specific. I'm using the Oracle 1.7 runtime for this.) I did some work on this here and here and the results are confusing.
First off, in both referenced links, when I allocated an array of objects, the equivalent of new Object[10000], it used 4 bytes per object. On a 32-bit system this makes perfect sense. But I'm on a 64-bit system so what's going on here?
Is Java limited to a 32-bit address space even on 64-bit systems?
Is Java limited to a 32-bit address space per array and each array object then has a pointer to where the elements are?
Something else?
Second, I compared the memory footprint of 8 booleans vs. a byte as the variables in a class. The 8 booleans requires 24 bytes/object or 3 bytes/boolean. The single byte approach requires 10 bytes/object.
What is going on with 3 bytes/boolean? I would understand 4 (making each an int) and definitely 1 (making each a byte. But 3?
And what's with expanding a byte to 10 bytes? I would understand 8 where it's expanding a byte to a native int (I'm on a 64-bit system). But what's with the other 2 bytes?
And in the case of different ways to create a RGB class it gets really weird.
For a class composed of 3 byte variables it uses 24 bytes/instance. Expensive but understandable as each uses an int.
So I tried where each class is a single int with the RGB stored in parts of the int (using bit shifting). And it's still 24 bytes/instance. Why on earth is Java taking 3 ints for storage? This makes no sense.
But the weirdest case is where the class has a single variable of "byte[] color = new byte3;" Note that the byte is allocated so it's not just a null pointer. This approach takes less memory than the other two approaches. How???
Any guidance as to what is going on here is appreciated. I have a couple of classes that get allocated a lot and the flywheel pattern won't work (these objects have their values changed all over the place).
And an associated question, does the order of declaring variables matter? Back in the old days when I did C++ programming, declaring "int, byte, int, byte" used 4 int's work of space while "int, int, byte, byte" used 3.
thanks - daveThis is a quadruple crosspost.
-
How to store Java ArrayList or any Collection object
Hi,
How Can I store Java ArrayList or any Collection object into Oracle tables.
In that case what should be the Oracle datatype of that column.
Can anybody tell me in details...
Thanks in advance.
Ashok RAshok,
Search this forum's archives for ARRAY and STRUCT.
Good Luck,
Avi. -
Passing Nested table or Vararray from Java to Oracle store procedure
I have some CSV file with arround 50,000 lines. I need to pass read those lines from Java to Oracle as a collection object.
Pro & cons of both the options.
Need some suggestions...
Regards,
LokanathHi,
why not using External tables. Then you can in Oracle work it out by just using it as a normal table with all the profits.
Herald ten Dam
http://htendam.wordpress.com -
Jdeveloper Load Errors: oracle.jbo.dt.objects.JboException
I am trying to extend a view object in Jdeveloper 10.1.3.1
I get the following errors when starting Jdeveloper:
Error 1:
Load error.
Object: oracle.apps.xdo.oa.schema.server.TemplatesVIEOView.DataSourceId
Project: C:\Jdev10g\jdev\myprojectsXXPERProjAsgEnd.jpr
Entity Attribute for this View Attribute cannot be found.
oracle.apps.xdo.oa.schema.server.TemplatesVIEO.DataSourceId
oracle.apps.xdo.oa.schema.server.TemplatesVIEOView.DataSourceId
Exception: oracle.jbo.dt.objects.JboException
Error 2:
Load error.
Object: oracle.apps.fnd.wf.worklist.server.GranteeListVO
Project: C:\Jdev10g\jdev\myprojectsXXPERProjAsgEnd.jpr
For input string: "False"
Exception: oracle.jbo.dt.objects.JboException (java.lang.NumberFormatException)
Please help.Hi,
There is no blank line before the <?xml. statement.It is the 1st line in the server.xml file.An note the server.xml file that I am trying to load now just after creating the project is the one that I have dowloaded from the application server.
Regards,
Krishnan -
Java with oracle ...Help needed urgently.?
I want to store my java object into oracle .my question is how to get mapping of java with oracle object done.Please if anyone reads and knows abt it plz help me.
Give more details.
are you talking about java stored procedures? or using oracle as ordbms?
version of oracle??
In any case you can get documentation from http://otn.oracle.com
Saifuddin -
Oracle.jbo.dt.objects.JboException
Hi,
I get the following exception when choosing "OK" in the EntityObject wizard, using JDev9.0.3.3 on EO created with a previous version of JDev.
The error disappears after a couple of retries.
oracle.jbo.dt.objects.JboException
void oracle.jbo.dt.jdevx.JDev9iUtils.writeDataToURL(java.net.URL, char[], boolean)
JDev9iUtils.java:74
void oracle.jbo.dt.jdevx.JdvIde.writeDataToURL(java.net.URL, char[])
JdvIde.java:578
void oracle.jbo.dt.objects.JboBaseObject.saveToXMLFile()
JboBaseObject.java:1917
void oracle.jbo.dt.objects.JboBaseObject.saveObject(boolean, boolean)
JboBaseObject.java:2069
void oracle.jbo.dt.ui.entity.EOWizard.doGenerateEntity(oracle.jbo.dt.objects.JboEntity, java.util.ArrayList, java.util.ArrayList, boolean, boolean, boolean, oracle.jbo.dt.ui.main.dlg.DtuLongOpThread)
EOWizard.java:474
void oracle.jbo.dt.jdevx.ui.entity.XEOWizard.doGenerateEntity(oracle.jbo.dt.objects.JboEntity, java.util.ArrayList, java.util.ArrayList, boolean, boolean, boolean, oracle.jbo.dt.ui.main.dlg.DtuLongOpThread)
XEOWizard.java:73
void oracle.jbo.dt.ui.entity.EOWizardDoneThread.run()
EOWizard.java:620Hi,
There is no blank line before the <?xml. statement.It is the 1st line in the server.xml file.An note the server.xml file that I am trying to load now just after creating the project is the one that I have dowloaded from the application server.
Regards,
Krishnan -
Cannot locate Java class oracle.tip.adapter.db.DBWriteInteractionSpec
I have created a BPEL process in which i have used DB Adapter when i try to deploy the soa suite coposite i am getting the following error.
[09:36:10 PM] Error deploying archive sca_TicketBooking_rev1.0.jar to partition "default" on server soa_server1 [http://utl-7c8735e613f:8001]
[09:36:10 PM] HTTP error code returned [500]
[09:36:10 PM] Error message from server:
There was an error deploying the composite on soa_server1: [JCABinding] [TicketBooking.TicketBooking/1.0]Unable to complete unload due to: Cannot locate Java class oracle.tip.adapter.db.DBWriteInteractionSpec: Cannot locate Java class oracle.tip.adapter.db.DBWriteInteractionSpec.
[09:36:10 PM] Check server log for more details.
[09:36:10 PM] Error deploying archive sca_TicketBooking_rev1.0.jar to partition "default" on server soa_server1 [http://utl-7c8735e613f:8001]
[09:36:10 PM] #### Deployment incomplete. ####
[09:36:10 PM] Error deploying archive file:/D:/Personal/OracleWork/RnDProjects/TicketBooking/TicketBooking/deploy/sca_TicketBooking_rev1.0.jar
(oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
I already created the data source and JNDI Name in the DBAdapter but still getting the error while deploying the application.
One mistake that i think i have made after creating the data source now the DBAdapter.rar file taking the path as follows.
Source Path: C:\ Oracle\ Middleware\ Oracle_SOA1\ soa\ connectors\ was\ DbAdapter. rar
Deployment Plan: C:\ Oracle\ Middleware\ Oracle_SOA1\ soa\ connectors\ was\ Plan. xml
initially the path was as follows:
Source Path: C:\ Oracle\ Middleware\ Oracle_SOA1\ soa\ connectors\ DbAdapter. rar
Deployment Plan: C:\ Oracle\ Middleware\ Oracle_SOA1\ soa\ connectors\ Plan. xml
Please help me i have googled a lot but can't find the answer anywhere.
Thanks in advanceMate ,
Just check the health status and state of DB Adapter in the deployments of WLAdminConsole.
If its inactive , redeploy and update it ,also make sure its targeted to the right server. -
How can I find out the java version Oracle has ?
How can I find out the java version Oracle has built in?
I've tried with ..
SELECT comp_id, comp_name, version
FROM dba_registry ;
But I get.."table doesn't not exist".
Thenks in advance!Pl post details of OS and database versions. Pl see this MOS Doc
What Version of Java is Compatible With The Database JVM? [ID 438294.1]
and these Oracle docs
11gR2 - http://docs.oracle.com/cd/E11882_01/appdev.112/e25518/adfns_environments.htm#ADFNS654
11gR1 - http://docs.oracle.com/cd/B28359_01/java.111/b31225/whatsnew.htm
HTH
Srini -
Java.sql.SQLException: ORA-08103: object no longer exists
hi, Everyone:
i want to insert one colume to a temp table,
so i did the following
1: drop the table
2: recreate the table with the new colume in it.
we i run my application, there is a
"java sql exception ORA-08103: object no
longer exists ". looks like the table
doesn't exist in database any more. but
it is really still there.
thanks
hongjie
nullI was able to resolve this error by using on commit preserve rows, instead of on commit delete.
-
i have to tried to make programs using java and oracle. if i give the values in the 'insert' statement it is getting updated in the original table in oracle but how to take the values from the text fields of java and insert into the tables in oracle. do we have any methods to convert the values into sql type. pl reply.
Here is a sample of a Java program that uses JDBC and a PreparedStatement. This particular program does a select, but you can also use this for inserts. I'm not 100% this is what you are looking for, but if it isn't just let me know. I'll help if I can.
Joel
For inserts, just replace this code:
ResultSet rs = ps.executeQuery();
while (rs.next()) {
System.out.println(rs.getInt(rs.findColumn("CNT")));
}with this code (and obviously change the Select string to an Insert String):
int rowcnt = ps.executeUpdate();Here is the whole program:
import java.sql.*;
import java.util.*;
import java.text.*;
class dbtest {
public static void main(String args[]) throws SQLException {
try {
String timeString = new String("2000-11-01 23:59:59");
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd H:m:s");
java.util.Date date = format.parse(timeString);
Timestamp timestamp = new Timestamp(date.getTime());
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn =
DriverManager.getConnection(
"jdbc:oracle:thin:@riker:1521:mydb",
"myusername",
"mypassword");
String sql =
"SELECT COUNT(*) CNT FROM SERVICE_ALARM "
+ "WHERE TRANS_STREAM_NODE_ID = ? "
+ "AND SERVICE_ID = ? "
+ "AND ALARM_ID = ? "
+ "AND RAISED > TO_DATE(?,'YYYY-MM-DD HH24:MI:SS')";
PreparedStatement ps = conn.prepareStatement(sql);
ps.setString(1, "ROW1");
ps.setInt(2, 1);
ps.setString(3, "ROW1");
String myDate =
timestamp.toString().substring(0, timestamp.toString().length() - 2);
System.out.println("myDate=(" + myDate + ")");
ps.setString(4, myDate);
ResultSet rs = ps.executeQuery();
while (rs.next()) {
System.out.println(rs.getInt(rs.findColumn("CNT")));
rs.close();
ps.close();
} catch (Exception e) {
System.out.println("Java Exception caught, error message=" + e.getMessage());
} -
hello frnds...i have installed oracle 10g in ubuntu 11.04....now i want to make database connection between java and oracle...so how can i do it??i know the java code..but the main problem is database driver..how can i give the classpath for specific jdbc dirver...pls tell me the steps to set classpath for jdbc driver...
thnx in advance..884540 wrote:
hello frnds...i have installed oracle 10g in ubuntu 11.04....now i want to make database connection between java and oracle...so how can i do it??i know the java code..but the main problem is database driver..how can i give the classpath for specific jdbc dirver...pls tell me the steps to set classpath for jdbc driver...
thnx in advance..You can mention the classpath using the javac and java options:
javac -cp .;<path> <ClassName>.java
and
java -cp .;<path> <ClassName>
Or refer the below link to avoid mentioning classpath everytime you run/ compile the program
http://www.linuxquestions.org/questions/linux-software-2/j2sdk-install-174483/#post898715 -
Java in oracle 8.1.7
Hello,
How can I check if java is installed (available) on database?
I have 2 oracle 817 and in dba studio in one is "JServer" in second not -
this means on first I have installed java on second not ?
and how to install java on oracle ? I have jre 1.1.8 on operating system...
do I have to run oracle installer from cd and add "some java component" ?
regards
LukaszHi Mayu,
Short answer (according to my experience) is "no"! But there is
something that I have been meaning to try and haven't gotten
around to yet, so you may want to try it (if you like).
Try loading the OC4J JAR files -- "orion.jar","ejb.jar",
"jndi.jar" and the JAR file containing you EJBs -- into the
Oracle 8.1.7 database (using the "loadjava" tool). Then you can
try calling your EJB (deployed in OC4J) from your java stored
procedure. Note that your java stored procedure needs to work
with the EJB in exactly the same way as a normal stand-alone
java application client does. I know I have explained in detail
how a normal stand-alone java application client works with an
EJB deployed to OC4J in a previous post. I just don't remember
what forum I posted it to. It may have been this forum or it may
have been the forum at the ElephantWalker site:
http://www.elephantwalker.com
And since I'm feeling a bit lazy, perhaps you could search for
it. Anyway, briefly what you need do in your java client is:
1. Use the RMIInitialContextFactory class
2. Use the actual JNDI lookup name (the way it appears in your
"ejb-jar.xml" file) when looking up your EJB.
Good luck! And please let us know how you get on!
Hope this has helped you,
Avi.
Maybe you are looking for
-
Java Doesn't Recognize Something That Exists?
I'm writing an XML checker for a homework assignment. I'm using a stack which uses a double linked list which uses nodes with a generic data type. I ran into a problem after testing the program for the first time. I got a NullPointerException error a
-
HT5634 Boot Camp 4 vs. Parallels 8
I have an iMac, 21.5-inch, Mid 2011 OS X 10.8.3 and I want to run Quicken and some other PC software. Should I use Boot Camp 4 or Parallels 8 for Mac. I want the easiest solution (in terms of installation and usage)? Also is Wiindows 7 Home Premiu
-
When the database user is in locked status or the user's password has expired the Apache logon returns a generic screen 'Database Log In Failed' after three attempts. When you logon outside the web interface then you get the error number and message
-
My OS System: linux7.2+tomcat3.2+oracle8.17 error messages: HotSpot Virtual Machine Error, Internal Error Please report this error at http://java.sun.com/cgi-bin/bugreport.cgi Error ID: 43113F32554E54494D45110E43505002C5 Problematic Thread: prio=1 ti
-
VERIFY your library prior to update: iPhoto Library Manager
I am a believer. Please, verify your iPhoto library prior to updating. In fact, verify it every few months. I did this with my iPhoto 5 Libraries prior to updating and I'm so happy I'm buying a SECOND license to IPLM just to say thanks. [1] How do yo