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
Similar Messages
-
Some J2ME midlets doubts!! help needed urgently!!!
Hi,
I am currently working in a company where it does wireless technology like WAP and I am assigned a task of creating a screensaver midlet. I have some doubts on the midlets.
1) How do i use a midlet suites? From what I heard from my colleagues & friends, a servlet is needed for midlets to interact with one another. is it true?
2) How do I get the startin midlet to take note the phone is idling so that the screen saver midlet can be called?
Help needed urgently... if there is any source codes for me to refer to would be better... Thanks...
Leonardindicates that MIDlet suites are isolated (on purpose) from each other, so you can't write over another one's address space.
Also, I believe (at least on cell phones) that you have to specifically enter the Java Apps mode; unless you do the app won't execute. If you are in Java apps mode and a call comes in, the cell's OS puts the Java app currently executing on "Pause" mode and switches back to phone mode.
Not sure if you will be able to have a Java app do that automatically.
BTW why do you need a screensaver on an LCD display? Is it really intended to show an advertisement?
Download and real all the docs you can from Sun, once you get over the generic Java deficiencies MIDlet's aren't that hard. -
HT201210 i have an error of no 11. kindly help, needed urgently
i have an error of no 11. kindly help, needed urgently
when i try to upgrage my
iphone 3gs wit 4.1 to new latest 5.1
it gives the erorr of 11. what that mean? Reply as soon as you can !
thnxError -1 may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.
-
How to connect java with oracle
can any body show me the code of how to connect java with oracle database.
thank youTo configure Oracle JDBC:
1. Add Oracle JDBC JAR file classes12.zip or ojdbc14.zip to classpath.
2. Load and register the JDBC driver.
Class.forName("oracle.jdbc.driver.OracleDriver");
3. Obtain a connection:
String url="jdbc:oracle:thin:@<host>:1521:<database>
Connection con = DriverManager.getConnection(url,
"myLogin", "myPassword");
4. Create a SQL statement.
Statement stmt = con.createStatement();
5. Obtain a result set.
ResultSet rs = stmt.executeQuery(
"SELECT ..."); -
Off topic :Newcomer in Java with Oracle
Hi
Please What books/Forums about Java with Oracle
Thank you in advancehttp://download-east.oracle.com/docs/cd/B10501_01/java.920/a96656/toc.htm
http://download-east.oracle.com/docs/cd/B10501_01/java.920/a96659/toc.htm
http://download-east.oracle.com/docs/cd/B10501_01/java.920/a96657/toc.htm -
Macbook pro two days old...bought logic from app store...logic has installed partly each time i open it up it wants to download rest of programme then stops half way thru and gets error message 'logic is unable to continue with download' help needed !
Hello:
I would trot back into the Apple store and have them fix the problem (or call Applecare with a warranty issue). There is no sense in you wasting your time trying to troubleshoot things on a new computer.
Barry -
Load bar at start up, then shut down. HELP NEEDED URGENTLY!!! plss..
The startup disk may need repairing.
Startup your Mac while holding down the Command + R keys so you can access the built in utiliites to repair the startup disk if necessary or restore OS X using OS X Recovery -
Unable to connect JAVA with Oracle
I have jdk1.6 and oracle installed on my machine but unable to connect java with database
have classes12.jar and ojdbc14.jar
my environmental variables in respect to this are :
JAVA_HOME= C:\Java\jdk1.6.0_04
JRE_HOME=C:\Java\jdk1.6.0_04
PATH=J:\oracle\ora92\lib;
J:\oracle\ora92\bin;
C:\Program Files\Oracle\jre\1.3.1\bin;
C:\Program Files\Oracle\jre\1.1.8\bin
CLASSPATH=J:\oracle\ora92\jdk\jre\bin\JdbcOdbc.dll;
J:\oracle\ora92\jdbc\lib\classes12.jar;
J:\oracle\ora92\jdbc\lib\ojdbc14.jar
The code is
import java.sql.*; public class dat1 { public static void main(String[] args)throws SQLException,ClassNotFoundException { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Class.forName("com.oracle.jdbc.OracleDriver"); } catch (ClassNotFoundException e) { System.out.println("unable to load driver"); return; } } }
the error message is
Error in thread "main" java.lang.NoClassDefFoundError
Please Help Me
Thanks For Reading
Thanks a lot in Advance For your ANSWERSmaybe if you asked nicely instead of ordering people around we might tell you.
As it is all you're going to hear is that you don't need both those jars, as they contain different versions of the same driver.
I'm not going to tell you which you need, as you should have the documentation to tell you that. But then you also should have the documentation to tell you how to set your classpath properly and you failed to read that too. -
Help needed urgently on a problem..plzzz
hi..this is a linear congruential generator. I have to implement it and i need the execution time for the program.
for your understanding i'm providing an example below.
Xn=(( a* xn-1 )+b) mod m
If X0=7 ; a = 7 ; b =7 ; m=10
Then
X0 = 7
X1 =((7 * 7) + 7))mod 10 = 6
X2 = ((6*7)+7))mod 10 = 9
X3 = ((9*7)+7) mod 10 = 0
X4 = ((0*7)+7) mod 10 = 7
Now since the cycle is being repeated i.e 7 appears again�so the period is 4 coz there are 4 diff nos. i.e 7,6,9,0�..
help required urgently....your help will be appreciated...thankyou..Hi,
I wrote the code so that it catches any cycle (not only the "big" one).
Otherwise it will enter infinite loop...
The time complexity is O(N*logN): it can do at most N iterations (here N is your 'm'), and in each iteration there can be O(log N) comparisons (since I maintain TreeSet).
Interesting issue: is it possible to supply such (x0, a, b, m) tuple such that all possible values from 0 to m-1 will be output? I think no :)
Here is the program:
package recurr;
import java.util.TreeSet;
import java.util.Comparator;
public class Recurrences {
private static long x0, a, b, m;
private static TreeSet theSet;
public static void main(String[] args)
long l0, l1, l2, l3;
try {
x0 = Long.parseLong(args[0]);
a = Long.parseLong(args[1]);
b = Long.parseLong(args[2]);
m = Long.parseLong(args[3]);
} catch(NumberFormatException nfe) {
nfe.printStackTrace();
System.out.println("X[0]: " + x0 + "\n");
long curr = x0;
boolean cut = false;
int i;
// initialize the set
theSet = new TreeSet(new LongComparator());
// we can get at most m distinct values (from 0 to m-1) through recurrences
for(i=1; i <= m; ++i) {
// iterate until we find duplicate
theSet.add(new Long(curr));
curr = recurrence(curr);
if(theSet.contains(new Long(curr))) {
cut = true;
break;
System.out.println("X[" + i + "]: " + curr + "\n");
if(cut) {
System.out.println("Cycle found: the next will come " + curr + "\n");
} else {
System.out.println("No cycle found!");
System.out.println("----------------------------------");
System.out.println("Totally " + (i-1) + " iterations");
private static long recurrence(long previous)
return (a*previous + b)%m;
static class LongComparator implements Comparator
public int compare(Object o1, Object o2)
if(((Long)o1).longValue() < ((Long)o2).longValue()) {
return -1;
} else if(((Long)o1).longValue() > ((Long)o2).longValue()) {
return 1;
} else return 0;
} -
Help needed Urgently- Rebate based on collected amount
Dear all,
I come across scenario while discussiion with client that they require rebate with collection. Details of the requirement are given below:
1. SAP rebates run on billed values & set the accrual in rebate agreement on the rate what we have specified in the rebate agreement. Requirement is that, If i have billed on 1000$ & my accrual value is 100$ with the rate of 10%. If i collected 800$ instead of 1000$, then i need to pay the accrual on the basis of 800$ not on the basis of 1000$. It means i have to adjust accrual amount on the basis of 800$. Conclusion is that i have to pay not 100$ accrual instead less then 100$ on the basis of 800$ which i collected.
2. In month 1 have billed on 5000$, my accrual amount is 500$ with rate of 10%. In the 2nd month i have to bill 1000$ and i have given an discount of 500$, it means my billed value is 500$ and my accrual amount is 50$@10%. In month 3 again i billed 500$ and my accrual amount is 50$@10%.
Requirement is that, when i am going to pay the accrual to client, i should pay correct accrual for which he is entitled for. Means i should pay 100$ accrual not 600$ because i have already given an discount of 500$. Discount which i have given already of 500$ should need to be offest with the first month accrual of 500$. So remaning accrual is 100$.
Great if somebody can help me out for the solutioning of the above requirements.Thanks Ivano,
Somebody has started the conversation.
Let me put my questions again.
This requirement is nothing to do with Payment procedure in the agreement type.
1. In any month if i billed 1000$, so my account receivable would be 1000$. My rebate for that month is 100$ at the rate of 10%. During customer receipt if i collected against my invoice 900$ instead of 1000$, my accrual needs to be corrected 90$ instead of 100$.
I know this can not be fullfilled by standard SAP, by any thoughts on this welcomed.
2. I know Rebate can be settled partially or full settlement by payment method( by cheque, bank transfer, or by credit memo) we have configure in rebate agreement type. But here requirement is totally different.
Here, i need to pay the Rebate as a Discount instead of by cheque or by credit memo. While doing the partial or full settlement system will take into account collected accrual up to that day & apply as a discount to the final bill.
Scenario is like that sometimes customer asked to give us the discount on bill for whatever they accrued so far.
This is again cannot solved by standard SAP, but any thought by any body welcome. We have already thought that we need to enhance the solution.
Solution needed urgently. -
Help Needed Urgently !! weblogic portal , webflow, cookies
Hello!!
I am new to java related technology, I need help asap,
Using webflow, I need to make a portlet within a portal with 3 JSP
pages (login.jsp,welcome.jsp,logout.jsp)
Login.jsp
It should have form with 2 textboxes (Username & password) and a
submit button
Upon clicking submit button a cookie for username and password should
be created and the displayed in "welcome.jsp" page.
welcome.jsp
Everytime his page is called by the browser it should read the
username and password from the cookie and display.
It should have a Button upon clicking which the cookie containing the
username and password is deleted.
logout.jsp
This page should confirm the deletion of cookie and should have a link
to login.jsp page
NOTE: PLEASE I NEED THE ENTIRE CODE ASAP.you know what ... i need the entire money ... all 3 million $ for that job bevore
I will write a line :)
[email protected] wrote:
Hello!!
I am new to java related technology, I need help asap,
Using webflow, I need to make a portlet within a portal with 3 JSP
pages (login.jsp,welcome.jsp,logout.jsp)
Login.jsp
It should have form with 2 textboxes (Username & password) and a
submit button
Upon clicking submit button a cookie for username and password should
be created and the displayed in "welcome.jsp" page.
welcome.jsp
Everytime his page is called by the browser it should read the
username and password from the cookie and display.
It should have a Button upon clicking which the cookie containing the
username and password is deleted.
logout.jsp
This page should confirm the deletion of cookie and should have a link
to login.jsp page
NOTE: PLEASE I NEED THE ENTIRE CODE ASAP. -
Anyone used Quadralay Webworks with Oracle Help?
I'm an expert Quadralay Webworks user looking at creating a template for Oracle Java Help.
Has anyone out there tried this? Would you be willing to share some tips?
I've already created/customized a Webworks Java Help template so I generally know what I'm doing. Just wondering if there are any surprises I should look out for.
Any help greatly appreciated!
NaomiNaomi,
The Oracle Help has not authored help using WebWorks, but we have heard about this process from both internal and external consumers.
You can use the templates for JavaHelp or MS HTML Help that are included in WebWorks. With both, at least, I know you can then utilize our Oracle Help authoring wizard, import the MS HTML Help TOC and keyword index files and then generate the helpset (in the case of JavaHelp this is already available) and full-text search files.
One gotcha with WebWorks is that it doesn't automate the generation of the Oracle Help map file. You will have to make this by hand. We know that WebWorks has looked into an Oracle Help template. You might try contacting them to see if it is available.
Cheers,
Craig. -
Using Java with Oracle Spatial
I am using the JDBC (Java classes dowloaded from
technet.oracle.com - (sdoapi.zip)) together with Oracle Spatial
8.1.6. I am writing a collection of Linestrings into Oracle
Spatial using the supplied java classes(sdoapi.zip). I use the
function createGeometryCollection(myCollection)to write the
Linestring collection to Oracle Spatial and they are written to
the database without error. However, when I try to read the
object back I get the following error:
Exception in thread "main"
oracle.sdoapi.geom.InvalidGeometryException
at oracle.sdoapi.adapter.AdapterSDO.importGeometry
(AdapterSDO.java:101)
at
MapInfoToOracleSpatial.MapInfoToOracleSpatial.main
(MapInfoToOracleSpatial.java:211)
I do not have a listing of this code so can you please tell me
what the error is (line of code) at line 211. Also, when I use
the Oracle Spatial Index Advisor to view the spatial data, it
only displays a quarter of the data. When I use MapInfo to view
it's equivalent TAB (Table) file it views correctly all the
data.
I can't understand why this is happening because the writing to
oracle and creation of each individual linestring does not
throw an error. It is only when I try to read back larger
objects from the database (2500 points) that it gives an error.
Is there a limitation on the size one can create linestrings?
Thanks
Regards
Stephen Syrett
Mobile Telecommunications Network
(MTN) South AfricaLatest Oracle Openworld Spatial/MapViewer activities list:
http://www.oracle.com/us/products/database/options/spatial/ssLINK/oow10-focuson-spatial-169204.pdf
thanks
LJ -
Accessing BAPI's using JAVA with out using webdynpro URGENT
hi Experts,
What is the procedure for calling RFC/BAPI's using JAVA with out using the webdynpro. Please let me know what are the possibilities with step by step implementation.
Regards
VijayHi Boris Rubarth,
Thaks for relavant information.
I have kind of the requirement. The clinet is asking for connecting the SAP RFC using java application. The build Jar or .war or .Ear for which are going to develop should be compatible for running on any of the Applications server like they have Tom cat, weblogic, websphere server.
so the .jar for or .ear file which we are going to develop should be able to run accessing the RFC/ BAPIs from any of these servers other than SAP WAS that is what their target.
Please give me your suggestion, which is better approach. currently their SAP system is 4.6c . So presently it is not possible the webservice approach. But they have plans to go for upgrade to ECC6.0
In that case only JCO option is possible. If use this option . Is it possible to access application which is deployed irrespective of the WAS by doing the required configuration.
Basically i am aware of the ABAP webservice work bech steps and also the JAVA coding also.
Please suggest me what is the better way to achieve this.
Regards -
hi
in my production database in getting this error..
ORA-04031: unable to allocate 27160 bytes of shared memory ("shared
pool","unknown object","sga heap(1,0)","session param values")
help needed urgentlyIf you have a program that does not use bind variables you can get this error.
In such cases you do not want to increase the size of the shared pool, but reduce it, and flush regularly. This is a bug in the application and should be fixed to use bind variables.
Another possible workaround is setting cursor_sharing = force, but this can cause other problems, so should only be used as a last resort. If the apps connections can be distinguished by user account or machine, then a log on trigger could be set cursor_sharing just for that application, to limit the damage until the vendor can fix it.
Maybe you are looking for
-
How to move elements within the master region of a Master/Detail spry data set?
Hi there, I am unsure of how to move the different items within the master region of a master/detail spry dataset. The default style is such that if I include 3 or more elements e.g. Thumb, etc., they are stacked vertically : How do I move them so th
-
Error in importing multiple excel sheets to SQL Server
I have a package which imports multiple excel sheets to SQL server using a For each Container. However I am getting the following error message "Excel Source failed validation and returns validation status "VS-NEEDSNEWMETADATA". Can you please advise
-
Since install PE12 I cannot open raw files by default
When I double click on a raw file to open, it opens in PE11 by default instead of newly installed PE12. If I right click on any image file to select OPEN WITH PE11 shows by default. I have added PE12 however, when I select it to OPEN WITH, PE12 lau
-
Hi, I'm trying to organise my beatport files according to release date in Itunes. The filenames hold numbers, for example: 379980Electrostatic_OriginalRemastered.mp3 The problem is that Itunes doesn't provide a way to order the files according to fil
-
Can you order by label of select list in tabular form?
Imagine this scenario, you have an updateable tabular report based on a query like the following: select emp_id ,ename ,dept_id from employeesAnd you define the dept_id column as a query based lov, so you see a select list for departments