Babie steps - self-learning java

i'm currently going through the book "     JavaScript Programming for the Absolute Beginner by Andy Harris".
can anyone spot my problem with the few lines below? i'm thinking it's at the "dieRoll = " line and thw way i've multiplied a variable ... not too sure though.
<script>
// m.j. lorente
// Multisided Die Roller
var dieSides = 0;
var dieRoll = 0;
// request variable inputs
dieSides = (prompt("How many sides would you like your die?", ""));
// roll the die
dieRoll = Math.floor(math.random() * + dieSides +) +1;
// display roll results
alert ("You rolled a " + dieSides + " sided die and rolled" + dieRoll +);
</script>

Stay away from Horton, IMHO. Here are my recommendations for learning Java (you should see some overlap with jverd's suggestions):
Installation Notes - JDK 5.0 Microsoft Windows (32-bit)
Your First Cup of Java
The Java� Tutorial - A practical guide for programmers
The Java� Tutorial - Trail: Learning the Java Language
New to Java Center
Java Programming Notes - Fred Swartz
How To Think Like A Computer Scientist
Introduction to Computer Science using Java
The Java Developers Almanac 1.4
Object-Oriented Programming Concepts
Object-oriented language basics
Don't Fear the OOP
Books:
The Java Programming Language - 4th Edition
Head First Java, by Bert Bates and Kathy Sierra
Thinking in Java (Free online), by Bruce Eckel
Core Java, by Cay Horstmann and Gary Cornell
Effective Java, by Joshua Bloch
http://java.sun.com/developer/Books/javaprogramming/

Similar Messages

  • For all the newbies who wants to learn Java

    I was a newbie like 4 months ago. i have some skills of OOP in C++ like 2 years back but since then i did'nt took any of programming language courses. I have experience in MSaccess and MYsql. i did my internship Last summer with Tennessee Education Lottery as a Database Analyst. At that time i realized what a Corporate Enviorment looks like. Trust me it was a formal interview and i passed it and they placed me in the IT department to write some scripts for the GUI terminal and at the same time create a Company Security Database. i did completed my project but i had to Learn Mysql. and then i realized Java was getting very popular. alot of people told me in the forums to go Java tutorial but i will not agree to start from the sun tutorial. you can do it only if you have a good or may be medium experience of OOP. it was really tough for me and then this magic guy came on the forum and told me to go on this website if you want to learn Java.
    http://chortle.ccsu.edu/java5/cs151java.html
    This site is a brilliant site specially the exercise problems and the quizes really attracted me to Java alot and now i came to realize how easy it is to program in Java rather than C++. Java forums have helped me alot in solving those exercise problems (not with the code but with a good explanation) which was very helpful for me. out of my 210 post i guess i have helped 30 people out and the rest of the questions are regarding those exercises. i came to know encapsulation, inheritance and all that stuff. though i am still not very perfect like i am still having trouble with ComparTo thing but it takes more practice. the more you practice the more you learn. so all the newbies if you really want to learn java even if you dont have any experience in OOp this is the site where you need to start. Hope this will definitely help you alot. thanks to all the Senior members navycoder, captain, paulcw, duffy, turingpest and others also who have helped me in the past. without you i would have not achieved the goal of learning java. now my next step is going to be learn GUI programming Swing. looks fun to me. but at the same time i have my final project for this semester to make on ONline Testing program which will have a database, php scripting and html and xml.
    I will post if i have any problems

    I was a newbie like 4 months ago. i have some skills
    of OOP in C++ like 2 years back but since then i
    did'nt took any of programming language courses. I
    have experience in MSaccess and MYsql. i did my
    internship Last summer with Tennessee Education
    Lottery as a Database Analyst. At that time i
    realized what a Corporate Enviorment looks like.
    Trust me it was a formal interview and i passed it
    and they placed me in the IT department to write some
    scripts for the GUI terminal and at the same time
    create a Company Security Database.Wow they really must like to gamble if they put you in charge of a security database - no offense meant, but that isn't the sort of thing you would want a brand new person working on, unless of course they were giving really high odds ;-)

  • Learning Java proxies - landscape question

    Hi guys,
    I could use a little help to learn Java Proxies, I'm just starting to get familiar with Java, I'm coming from the ABAP side.
    First and foremost what do I need from the system point view?
    We have an XI box and using file/FTP/IDoc adapters and also ABAP Proxies, I wrote some Java (mapping)functions, I am familiar with these.
    But for a Java proxy, I would need a separate Java server(?) to run the application on, is this correct?
    Can I use my own PC for this? (for learning purposes), I have NWDS installed on my PC.
    What are the steps to write a small simple Java Proxy.
    I would very much appreciate some help, guys, how do I start?
    Thanks a lot,
    Viktor

    Hi Viktor,
    You can work from your own machine. Becuase in Java Proxy scenarios, you are deploying EAR files in the XI server, and thru XI , you are executing the method written in the Java Application.
    Just check these links-
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    /people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
    /people/rashmi.ramalingam2/blog/2005/06/25/an-illustration-of-java-server-proxy
    Demo ~
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/110ff05d-0501-0010-a19d-958247c9f798#jdi [original link is broken]
    Hope this helps,
    Regards,
    Moorthy

  • Why learn Java now?

    I'm new to Java programming and have developed some small demo classes.
    I have exp with other Visual languages and I feel like I'm taking a step back in time writing code in Notepad and compiling and running from dos etc.
    I have several classes and lots of code lines to do a simple thing in swing like create a frame and a simple menu panel.
    I thought Java required less code but so far it requires 3 times an much as other languages!
    What visual tools or IDE�s exist for Java development other than Sun ONE Studio?
    Why learn java now? The number of jobs posted online seams to be higher for Java that any other language out there like vb.net, C++ etc.
    Any Comments of the Future of Java Jobs?
    Running Java:
    My apps run slow on XP, 384M ram.
    Do production Java applications suffer from slow execution of the JVM layer?

    Java code is easier to understand and more stable than "faster" languages. There is more flexibility and extensibility than in other languages, and the error-processing system is quite advanced. There are also very powerful tools you can use out-of-the-box, like JOptionPane:
    import javax.swing.*;
    public class Foo
        public static void main(String[] args)
            String pass = JOptionPane.showInputDialog(null, "Please enter your password");
            System.out.println("Password="+pass);
    Also see javax.swing.JColorChooser.
    -Tim                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to learn Java!!(help me!)

    I am a beginner.I've learned Java for 6 months.But I still don't konw what is Java.Can somebody tell me how to learn Java step by step?For instance,which one should I learn first,and then what to learn next?Thank you!!!!

    I've learned Java for 6 months.But I
    still don't konw what is Java.I take it by "learned Java for 6 months" you don't mean programming with it. If you've done programming with it, you should have some idea of what you're actually doing. If not, here is a basic idea of what Java IS:
    1. Java is a virtual machine (it's kind of like a "fake" operating system running on top of your own operating system (like Windows XP).
    2. Any operating system that has a copy of the Java Runtime Environment ported to it can run Java programs. This allows Java programs to be cross-platform.
    3. Java is also the name of the language used to write programs for this virtual machine.
    4. Try clicking on the Documentation link at the left of this forum for more information about Java :P

  • If you're new to learning Java ...

    Don't waste your money on the Complete Java Technology Web Bundle [http://suned.sun.com/US/catalog/courses/WJB-000-180.html]. Like myself, you might be thinking it's a complete learning package teaching you everything from A-Z and you'd be ready for the Certification Exam. Instead, it's one (expensive) lumping of all the random courses Sun teaches on Java Technology. It has almost no flow between the modules.
    I'm not saying that the modules themselves are bad - just be aware that this is not a step-by-step course into Java that I thought it would be.
    So, I suppose it wasn't falsely advertised, but I'm frustrated because I spent $1,800 for a course that still requires supplemental reading and research - very disappointing. Of course, the best part, is I can't cancel the course because I've completed just enough of it to figure this stymie out too late.

    Hehe. Yah, luckily it wasn't my money. But, even still, I feel bad about it.
    The money would, I think, would be worth it if, by completion of the tutorial, you're ready to take the Certification test.
    The problem with (most?) programming books is that they follow:
    Chapter 1:
    This is a keyboard, here is your mouse. When you press keys, characters show up on the screen.
    Chapter 2:
    Programming is just like learning any language, it's easy!
    Chapter 3:
    Basic programming, understanding syntax.
    Chapter 4:
    Loops, arrays and conditional statements.
    Chapter 5:
    Classes and methods.
    Chapter 6:
    Now that you've mastered the language, we'll continue on with arcane stuff you'll never figure out, completely skipping 5 chapters in between.
    Chapters 7~12:
    Way above your head.
    So few actually stick to a path. And unfortunately this course (bundle) is exactly the same. I'm going to give Head First Java (http://www.oreilly.com/catalog/hfjava/) and Beginning Java 2 (http://www.wrox.com/books/0764543652.shtml) a try.
    To me, there's three things you should learn well:
    1. the concept of OOP
    2. java's syntax and its OOP design
    3. HOW TO USE THE API DOCUMENTATION
    To me, learning a language is mostly about understanding the basics and knowing where to look for answers (be it classes, methods, functions according to the language) and how to understand that source of answers. To a beginner, that API doc might as well be in Swahili.

  • I need an opinion guys - Oracle guy learning Java Here.......

    Hi all,
    I was laid off about 6 weeks ago from the consulting firm I worked for for 7 years ....... I did Oracle
    Custom Development using PL/SQL and Oracle Forms/Reports on a Web Apps Server.... this I did for about 2 years. Prior to that I was a COBOL guy with about 20 years experience. I've heard
    that the way of the future in Oracle DB programming will be a transition from PL/SQL to JAVA so
    that's why I'm learning JAVA .
    I have started to teach myself JAVA during my un-employment and am having a great time (although trying to remember the nomenclature is "kindOfHard" ;-) )...
    Once I finish this self-study course (Deitel and Deitel JAVA 2 - How to Program... very good btw)
    I plan on taking the JCP test... I'm about 1/4 thru the book and have been writing 5 of the hardest programs that the book has as exercises at the end of each chapter.
    Has anyone out there ever experienced a transition such as this and is getting the JCP going
    to help me get a JAVA job with little-to-none JAVA programmin Business experience ?????
    I guess I'm a tad down today as I've never been unemployed and getting some opinions from
    the great folks out there sure makes the day go wonderfully.....
    Thanks for letting me ramble on,
    Mike
    Cleveland Ohio

    Hi Mike,
    have a look at :
    http://forum.java.sun.com/thread.jsp?forum=361&thread=234679
    that might give you some hints. I am not certified, did Oracle PL/SQL as well but also C++ so the transition to Java was (fairly) easy. Anyhow best of luck and keep going.
    Phil

  • Learning Java SE 7 / Newbie

    Dear Java Community,
    I'm real life I find that most professional programmers are rather selfish or inpatient personality types, and I'm interested in learning Java, and possibly becoming a good programmer. It's just a personal hobby, and something that's mostly an intellectual pursuit. My question is this, how do you compile a folder filled with Java files ? There are 27 files in this particular folder. Half are .java files. The others are .class files.
    I really want to learn how to program, but as I read all these programming textbooks, they're good (conception-ally speaking), and give you nice gold nuggets of information. But I don't know how to bridge what I want, which what I need to learn, in order to accomplish it. I know that don't become a master overnight, and I guess the question should further be, how long will it take me to actually learn to program Java 7 ?
    How do I compile all these files ? I downloaded the free source code from Planet Source Code, but I think these are rather old programs, and maybe they're not backwards compatible. Since I can't find anyone with enough patience to teach myself, then I'll just have to teach myself. But I learn best through backwards engineering. I need to know why this does that, and why that does this.
    Can someone help ?
    Edited by: user13816154 on Jan 24, 2013 9:10 PM
    Edited by: user13816154 on Jan 24, 2013 9:11 PM

    First of all don't blame all professional programmer.This is not right place for it
    Second this category is spcly for Jdeveloper and ADF. IF you have any question regarding you can put in right category.
    Regarding learning java and becoming master.I wil suggest you to step by step.Don't download free code from some site and execute it.First write small program then gradually raise ur level.Within 2 or 3months you will bw confident about java.
    There are lot of other place you can ask about ur java question

  • Tips on learning java.....

    Hi,
    I have been learning java for quite some time now (i learned it in school as well but that was simply theory and fundamentals). I want to ask the experts that how did you people proceed to master this language or any language in general. I mean sometimes i get stuck at problems and spend hours on it. Can you all share your experiences and the strategies that you followed (learning by doing, creating new programs on your own) and the things that you did that helped you understand the subtleties of the language ?
    Edited by: roaan on Jul 21, 2009 8:20 AM

    The way I see it, there are a few steps to really mastering a language. Some of them are overlapping for multiple languages, but generally, no matter how good you are at another, there are a few things you end up doing in order. And by you, I mean me:
    1) Learn the basics. Work out how the language operates. There are going to be some syntax issues that look like things you know but work differently. Write a Hello World and then get it to loop. Write some basic programs based on the introductory tutorials.
    2) Learn what sets the language apart. No language is the same, even if they look similar. The more languages you know, the more you'll be able to tell them apart, but if you only know one or two make sure you understand what it is makes people use this language. In Java's case, maybe it's the memory management, or the object-oriented principles. Learn the basics of that power. Write some programs and play around with it. Take one of your basic programs and think about whether it can be improved by applying what makes the language special. This is the point where you should really be making sure you understand OO, if you're learning Java.
    3) Build a reasonably complicated program at your level. Design an application that you can think of how to do 80% of, but that you'll have to research the other 20%. Make it something you'd really like to use, if you can, or at least something you'd show off. It doesn't have to be perfect. You may not even finish it, but you'll try. Make it something that you can get working in some way, even if it doesn't end up doing everything you wanted it to do. Get comfortable with an IDE and get to know the debugging features.
    4) In the course of writing your app from step 3, find some article or tip that points out that your entire design was wrong. That's okay. This is a learning experience. There is always a better way to do something. If you're still early on in the process, see if you can incorporate what you've learned. If you're far along, finish what you can and apply your newfound knowledge to your next project.
    5) Now you've written some things you're proud of, and they work. (Trust me: There are bugs. But don't worry about them so much.) You're convincing yourself you're a good programmer. Let it sink in. Now read up on techniques. Study Design Patterns. Look at other people's sample or production code (open source helps). Realize that half of the things they talk about make no sense to you.
    6) Keep building stuff. Keep applying something new. Look up Best Practices in your language and make sure you're following a clean, maintainable style. Run into a problem you didn't expect in your design and then have a flash: "So THAT'S what the Factory pattern is good for!" Get really comfortable with your IDE. Fix a bug in someone else's code because you're able to follow their logic even though it's not your own.
    7) By now, there's a new release of Java out or a new hot technology that makes all the nifty tricks you got good at obsolete. Embrace it. Consider the new technology the best thing for development that you've ever seen.
    8) Use the hot new technology for a while, then realize it's still crap. In fact, it's just the same crap wrapped in a neater package. Start learning the underground technology that's not hot yet, still has a lot of bugs, but is going to be so cool when it's done.
    9) Go back and finish your project from step 3. And by finish, I mean rewrite from scratch, after you realize your original code can't be saved.
    10) Discover that there's another language that does everything you've been trying to do, but much more easily. Repeat at step 1, and start recognizing that every language has its place.
    So, to recap:
    * Program.
    * Read about programming.
    * Program.
    * Ask people for help.
    * Program.
    * Realize that everyone gets stuck on problems and it doesn't mean they're bad programmers, just still learning.
    * Get some sun to prevent vitamin deficiency.
    * Program.
    Then again, your experiences may vary. But you specifically asked for procedures on mastering programming. To which the answer is, it's just like anything else. Always be learning something new and always be pushing yourself. Don't be afraid to fail, because you will sometimes, but that's the only way to improve. And this is where I really wish I'd learned this earlier: Remember that your code can always be improved, and you're always going to be horrified by the code you wrote even months ago. Let it be, unless it really prevents you from getting it to do what you want.

  • Im Trying To Learn Java :o(

    Hey All,
    I have decided to get my mind active and randomly learn Java. I say randomly because i am going to be a student again in IT but i like the kinda 3D side and modelling and nice pictures and flash actionscript lol not all this stuff.
    Anways i would just start by saying that Java offends me massivly, i know something happened with M$ and Sun and ever since then all i have had with the sun download is problem after problem and crashing and all iw as tryin to do was play some Jippii games. This aint a recent problem, it always happens and i must have reformatted xp around 7 times. So i stay away from applets!!!
    Anyways in 2002 when i started learning Flash it was because i seen a site i liked and wanted to do that. The equivelent is kinda like me saying "OK GUYS I HAVE JAVA NOW HOW DO I MAKE DOOM" anyways 2 and a half years later im happy with what i can do and have used alot of different apps and learned alot from 3dsmax to aftereffects etc.
    Anyways my goal out of this whole Java thing is to make a game like one i used to play when i was younger on the Amiga 500. No where has this game and a modern one would be great to play. The graphics suck but the physics were really nice.
    So my questions are:
    1) Java. Ok im going to be honest, i know nothing about Java, i dont even know if it can do what i want and what i really dont want is to spend a while learning this to be stuck with no effects for my game, ie are small particle effects possible in Java? I know Java is pretty slow for a proper language compared to C/C++ but how slow? Can you shift a hundred particles around the screen and still add physics in the background?
    2) Java. The whole thing confuses me massivly. Im not a big posting person as i tend to prefer searching but i dont even know where to begin. I will bite the bullet and say i aint going to have alot of problems with the syntax of the language itself. It all looks kinda how i expect it, obviously i dont mean i aint gonna have problems and lot of them but it is not REALLY alien to me to look at a bit code. At the same time it is. I need to know alot of stuff, things that the 2 ebooks i have just ignored. For example, when i compile something, i thought that meant it compiled to the EXE but infact it turned my "heyworld.java" into a "heyworld.class" file. This just makes no sense to me atall because i HATE command line stuff, i see it as reinventing the wheel so im trying to follow through on first of all netbeans (an that went off almost instantly) and a free one that got my hey world to work (well, class). I need to know if a compiler dont make a exe then whats the class for and what exactly is a class file. You know just stuff like that? Does anyone know i kinda dictionary so to speak? baby talk i mean, so far all i seem to get is explainations with words i dont understand.
    3) How difficult is it to make a 2D game in Java? To make this plainer, i aint having an applet run somewhere, i want a nice downloadable exe. Of course i will need to start at the beginning but i mean to get a ship on the screen with keys to move it and a "cave" roof to crash into, is this going to take a long long long time to get to that stage? You see, as i said before unless after a few days i have a object on screen to work with, i just get too bored to continue. for example "the object of this is to make a red circle move across the screen" REALLY interests me where as "today we are going to make a mock system for a small business user" sends me back to 3Dmax and the lighting i was reading about lol I tend to look at a piece of code and be devestated by its complexity then try and make it make sense over time. Is this possible with Java? It does work for me this, i was picking apart a isometric code in actionscript before i knew what a tween was.
    4) Theres so many different J*** J"EE things floating around that i dont actually know what one i am meant to use? I got 1.4.2 i think but thats all i know. Id like any other things that helped yourselfs start off in Java?
    Sorry to go into a bit detail here, its just that with this degree im starting, it soon branches off into 2 groups. Programmers and Designers. I feel i know the design side well enough to make a comparison but it would be rude to leave this side of the things out and write it off without atleast giving it a shot.
    Thank you very much for your time :o)
    Kind regards,
    Clarky.

    If you want an idea of what's possible with Java, do a google search for "java games" or something like that. I've seen occasional postings of what are supposed to be pretty cool games that have been written in Java, but I'm not into games, so I've never bothered to check 'em out personally.
    As to whether you can do it, well, you'll have to figure that out. Learning Java well enough to create a video game is not a trivial task. I don't just mean the syntax of the language, I mean the many APIs you'll be using, concepts like multithreading and exception handling, good OO principles, etc. Without a good handle on that stuff, your code will quickly turn into a morass that will be difficult to enhance, maintain, or debug.
    I suspect that the code to make a particular graphical event occur will be more verbose and complex in Java than in ActionScript, given that Java is a general purpose language and AS is more geared to GUIs. Nonetheless, I'm sure there are APIs out there (some free, some not) that will provide some higher level constructs than the core APIs to make some of that easier. You'll still be operating in the idiom of a general programming language though.
    There may also be a hybrid solution available--where you use Java to express the game logic and another language to express the graphics. I don't know anything about this kind of stuff though, so that's just speculation.
    You may get more precise advice in the GUI Building forums on http://forum.java.sun.com/ than here.
    Here are some resources to get you started on Java in general.
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.

  • Error in Solution Manager 4.0 Installation u0096 Step 32 Create JAVE users

    Hi All,
    I am installing Solution Manager 4.0 on WIN server 2003 & Oracle10g. The installation has been successful so far but at Step 32 (Create JAVA users) the installation errors and the error log is as follows:
    ERROR 2016-09-10 06:39:28
    CJS-30197  . For more details see output of logfile:
    ERROR 2016-09-10 06:39:28
    FCO-00011  The step createJSF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Doublestack|ind|ind|ind|ind|2|0|createJSF was executed with status ERROR .
    Critical Error
    Launching program failed
    -> Invalid JDK (rc = -17)
    Entries in the log file (UserCheck.log)
    Critical Error
    Launching program failed
    -> Invalid JDK (rc = -17)
    The Java version I’m using is - j2re1.4.2_12 – windows.
    Any guidance will be appreciated
    Thanks
    Frank

    Dear all
    use j2re1.4.2_16 – windows.
    case1-if sapjsf user not craeted  login to 001 clint with sap* delete
    case2- if sapjsf user not craete a sapjsf user createand then  delete  
    agin proceed
    i am trouble this problem within week
    but at last complte of the installation
    thanks
    regards
    venkat

  • BAPI step by step to connect JAVA for catsdb table

    BAPI step by step to connect JAVA for catsdb table,
    Points will be rewarded,
    full points with example of catsdb table in bapi for JCO JAVA
    Thank you,
    Regards,
    Jagrut BharatKumar Shukla

    Hi,
    Check the thread..
    https://forums.sdn.sap.com/click.jspa?searchID=3587428&messageID=3647918
    Regards,
    Omkar.

  • Should I learn JAVA or C#?

    Should I learn JAVA or C#? Or...both of them!?

    For the record, C# does not support multiple
    inheritance. It is very much like Java except that it
    has a few extra goodies thrown in. For my tastes, it
    is not as pure as Java, but it is an improvement over
    C++ and it has a few things, like operator
    overloading, that would look nice in Java. Hey! Wait!
    Stop! Stop the tomatoes! Please!Ugghh, operator overloading. What a nasty nasty thing that was. Why change something you have been seeing since you were in diapers to mean something else. + should alwalys be plus because we have all grown up knowing that. Imagine if you had a child and for the fun of it you taught him growing up that his left hand was his right hand,think of all the confusion he would have when he is learning how to drive and his instructor tells him to take a left. Even though he may learn that what he believes is left is now right he will always first think of his left hand as his right.

  • How I can begin to start on self learning basis PL/SQL I mean writing block

    Could you please let me know about how One can get the expertise and start on self learning basis PL/SQL procedural on which actually HTML DB is written
    I am very much interested in learinig this language please provide me any useful link books online material in a proper way.
    Thanks in advance

    www.google.com.
    You'll find plenty of resources about pl/sql.

  • Solution Manager 7.1 Step 19 Import Java Dump stopped.

    Hi collegues, we are installing SolMan 7.1 under Solaris 10, Oracle 11.2.0.2.
    Sapinst in step 19 Import Java Dump stop, it seems that can't connect with DB, DB it's started and also listener.
    Dec 28, 2011 2:26:29 AM                      com.sap.inst.dbtools [Thread[main,5,main]] Info: Executing batch. Rows inserted : 64, lob size : 94915222
    Dec 28, 2011 2:27:15 AM                      com.sap.inst.dbtools [Thread[main,5,main]] Info: Executing batch. Rows inserted : 3, lob size : 106195204
    Dec 28, 2011 2:28:04 AM                      com.sap.inst.dbtools [Thread[main,5,main]] Error: DB Error during import of J2EE_CONFIGENTRY
    As the problem is just after import J2EE_CONFIGENTRY, I just applied recommendations of Sapnote:
    Note 1173398 - jload export fails with OutOfMemoryException
    If the problem occurs during a sapinst run (systemcopy for example), stop the sapinst, and edit control.xml.
    Search for the line
       var jloadHeap = "-Xmx1024m";
    and replace it by
       var jloadHeap = "-Xmx1540m";
    (In my case fixed to  -Xmx2048m)
    Save control.xml.
    Restart sapinst.
    It doesn't work, the same error occurs.
    R3trans -d also it's wrong, the same error occurs:
    4 ETW000  [dev trc     ,00000]  Assigning server context 102aa6b28 to service context 102aa3398        35711  0.092247
    4 ETW000  [dev trc     ,00000]     OCIHandleAlloc(OCI_HTYPE_SESSION, con=0, usrhp=102b04bc0)             151  0.092398
    4 ETW000  [dev trc     ,00000]  Starting user session: OCISessionBegin(con=0, usr='/',svc=102aa3398, srv=102aa6b28, usr=102b04bc0)
    4 ETW000                                                                                40  0.092438
    4 ETW000  [dev trc     ,00000]     OCISessionBegin(OCI_DEFAULT) failed with -1=OCI_ERROR                3765  0.096203
    4 ETW000  [dev trc     ,00000]     OCISessionBegin(OCI_DEFAULT) failed with SQL error 1034:              137  0.096340
    4 ETW000  [dev trc     ,00000]     ORA-01034: ORACLE not available                                        34  0.096374
    4 ETW000                        ORA-27101: shared memory realm does not exist
    4 ETW000                        SVR4 Error: 2: No such file or directory   
    4 ETW000  [dev trc     ,00000]  server_detach(con=0,stale=1,srvhp=102aa6b28)                              46  0.096420
    4 ETW000  [dev trc     ,00000]  Detaching from DB Server (con=0,svchp=102aa3398,srvhp=102aa6b28)          30  0.096450
    4 ETW000  [dev trc     ,00000]  Deallocating server context handle 102aa6b28 from con=0                  216  0.096666
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '1034'                         65  0.096731
    4 ETW000  [dev trc     ,00000]     set_ocica() -> SQL error code 1034                                  17066  0.113797
    4 ETW000  [dev trc     ,00000]  -->oci_get_errmsg (con=0, rc=1034)                                        41  0.113838
    4 ETW000  [dev trc     ,00000]     OCIErrorGet -> SQL error code: 1034                                   101  0.113939
    4 ETW000  [dev trc     ,00000]     ORA-01034: ORACLE not available                                        36  0.113975
    4 ETW000                        ORA-27101: shared memory realm does not exist
    4 ETW000                        SVR4 Error: 2: No such file or directory   
    4 ETW000  [dev trc     ,00000]  SAPUSER or connect error 99=DBSL_ERR_DB, oerr=1034.                       51  0.114026
    4 ETW000  [dev trc     ,00000]     DbSlConnect(con=-1) -> orc=0, 99=DBSL_ERR_DB                           30  0.114056
    4 ETW000  [dblink      ,00000]  ***LOG BY2=>sql error 1034   performing CON                             7411  0.121467
    4 ETW000  [dblink      ,00000]  ***LOG BY0=>ORA-01034: ORACLE not available                               61  0.121528
    4 ETW000                        ORA-27101: shared memory realm does not exist
    4 ETW000                        SVR4 Error: 2: No such file or directory
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'SMP'"
    jload.log
    WARNING    2011-12-28 13:02:06.671
               CJSlibModule::writeWarning_impl()
    Execution of the command "/usr/j2sdk/bin/java -classpath /tmp/sapinst_instdir/SOLMAN71/SYSTEM/ORA/CENTRAL/AS/install/sharedlib/launcher.jar -showversion -Xmx1024m -d64 com.sap.engine.offline.OfflineToolStart com.sap.inst.jload.Jload /tmp/sapinst_instdir/SOLMAN71/SYSTEM/ORA/CENTRAL/AS/install/lib/iaik_jce.jar:/tmp/sapinst_instdir/SOLMAN71/SYSTEM/ORA/CENTRAL/AS/install/sharedlib:/oracle/client/10x_64/instantclient/ojdbc14.jar -sec SMP,jdbc/pool/SMP,/usr/sap/SMP/SYS/global/security/data/SecStore.properties,/usr/sap/SMP/SYS/global/security/data/SecStore.key -dataDir /net/nashville2/vol/volSAP/SAP_SW/Instalaciones/SolutionManager71/D51040039_SolutionManager_71_JavaBasedSWComp/DATA_UNITS/SOLMAN_JAVA_EXPORT_JDMP -job /tmp/sapinst_instdir/SOLMAN71/SYSTEM/ORA/CENTRAL/AS/IMPORT.XML -log jload.log" finished with return code 1. Output:
    java version "1.4.2_32"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_32-b03)
    Java HotSpot(TM) 64-Bit Server VM (build 1.4.2_32-b03, mixed mode)
    Jload R 7.12 V 0 A 0
    Jload -sec SMP,jdbc/pool/SMP,/usr/sap/SMP/SYS/global/security/data/SecStore.properties,/usr/sap/SMP/SYS/global/security/data/SecStore.key -dataDir /net/nashville2/vol/volSAP/SAP_SW/Instalaciones/SolutionManager71/D51040039_SolutionManager_71_JavaBasedSWComp/DATA_UNITS/SOLMAN_JAVA_EXPORT_JDMP -job /tmp/sapinst_instdir/SOLMAN71/SYSTEM/ORA/CENTRAL/AS/IMPORT.XML -log jload.log
    Connecting to database
    Couldn't connect to DB
    com.sap.inst.common.exception.DBConnectionException: java.sql.SQLException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 Error: 2: No such file or directory
            at com.sap.inst.common.db.DBConnection.connect(DBConnection.java:157)
            at com.sap.inst.jload.Jload.main(Jload.java:222)
            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:331)
            at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    Caused by: java.sql.SQLException: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 Error: 2: No such file or directory
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
            at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
            at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:283)
            at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:278)
            at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOsesskey(T4CTTIoauthenticate.java:294)
            at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:358)
            at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:441)
            at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:166)
            at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
            at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
            at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(NativeConnectionFactory.java:215)
            at com.sap.sql.connect.OpenSQLDataSourceImpl.createConnection(OpenSQLDataSourceImpl.java:522)
            at com.sap.sql.connect.OpenSQLDataSourceImpl.getConnection(OpenSQLDataSourceImpl.java:276)
            at com.sap.inst.common.db.DBConnection.connectViaSecureStore(DBConnection.java:111)
            at com.sap.inst.common.db.DBConnection.connect(DBConnection.java:151)
            ... 6 more
    An error occured during execution. Please consult SAP note 942766 for first steps on troubleshooting the problem.
    Any idea?
    Best regards.
    Jose Angel Herranz

    Thanks collegues, there was a problem with link to listner, I retry and continue, but know there is another problem:
    28-dic-2011 17:08:45 com.sap.inst.common.size.provider.OraObjectSizeProvider getTableSizesFromDb
    INFO: Calculated size for table J2EE_CONFIGENTRY : 1744830464
    Trying to create table JCS_MONMESSAGE0
    com.sap.dictionary.database.dbs.JddRuntimeException: Table JCS_MONMESSAGE0 could not be created in database.
    Version: dev 19.03.2010 19:30:00
    Protocol:
    17:08:45 2011-12-28 dbs-Info:  <<< Begin of phase: Analysis
    17:08:45 2011-12-28 dbs-Info:  <<< Analyze table JCS_MONMESSAGE0 >>>
    17:08:45 2011-12-28 ora-Info:  Table JCS_MONMESSAGE0 not found on DB
    17:08:45 2011-12-28 dbs-Info:  Action: CREATE
    17:08:45 2011-12-28 dbs-Info:  <<< End of phase: Analysis
    17:08:45 2011-12-28 dbs-Info:  <<< Begin of phase: Execution of statements
    17:08:45 2011-12-28 dbs-Info:  <<< Modify JCS_MONMESSAGE0 >>>
    E R R O R ******* (DbSqlStatement dev 19.03.2010 19:30:00)
    17:08:46 2011-12-28 dbs-Error:  Exception caught during SQL execution ORA-00604: se ha producido un error a nivel 1 de SQL recursivo
    ORA-01655: no se ha podido ampliar el cluster SYS.C_COBJ# con 128 en el tablespace SYSTEM
    CREATE TABLE "JCS_MONMESSAGE0"
    "A_UNIQUEID" NUMBER(19)  NOT NULL,
    "A_TYPE" NUMBER(19)  NOT NULL,
    "A_OBJECTID" NUMBER(19)  NOT NULL,
    "A_OBJTYPEHASH" NUMBER(19)  NOT NULL,
    "A_FIELDNAMEHASH" NUMBER(19)  ,
    "A_STRINGVALUE" NVARCHAR2(1024)  ,
    "A_NUMBERVALUE" DECIMAL(31,7)  ,
    "A_LONGVALUE" NUMBER(19)  ,
    "A_OBJDELETED" NVARCHAR2(1) DEFAULT 'f' NOT NULL,
    "A_MONOBJID" NUMBER(19)  ,
    "A_PARENTID" NUMBER(19)  ,
    "A_CREATEDTS" NUMBER(19) DEFAULT 0 NOT NULL,
    "A_LASTMODIFTS" NUMBER(19)  ,
    "F_CRTIMEZONE" NUMBER(19)  ,
    "F_LASTMODSUB" NUMBER(19)  ,
    "A_LLPVERSION" NUMBER(19) DEFAULT 0 NOT NULL,
    "A_BEHAVIOUR" NUMBER(19) DEFAULT 0 NOT NULL
    E R R O R ******* (DbModifier dev 19.03.2010 19:30:00)
    17:08:46 2011-12-28 dbs-Error:  Statements could not be executed
    17:08:46 2011-12-28 dbs-Info:  <<< End of phase: Execution of statements
    17:08:46 2011-12-28 dbs-Info:  Analysis and adjustment of tables finished with errors
            at com.sap.dictionary.database.opentools.DbTableOpenTools.createTable(DbTableOpenTools.java:90)
            at com.sap.dictionary.database.opentools.DbTableOpenTools.createTable(DbTableOpenTools.java:69)
            at com.sap.inst.jload.db.opentools.DbTableOpenTools.createTable(DbTableOpenTools.java:21)
            at com.sap.inst.jload.db.DBTable.createObject(DBTable.java:61)
            at com.sap.inst.jload.db.AbstractDBObject.create(AbstractDBObject.java:101)
            at com.sap.inst.jload.executor.JobExecutor.dbImport(JobExecutor.java:327)
            at com.sap.inst.jload.executor.JobExecutor.executeJob(JobExecutor.java:766)
            at com.sap.inst.jload.Jload.main(Jload.java:273)
            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:331)
            at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    An error occured during execution. Please consult SAP note 942766 for first steps on troubleshooting the problem.
    root@napa #

Maybe you are looking for

  • Proper Way to Set Up DNS

    Windows Server 2008. I have two domains (goodnewsjail.org and gnbristol.org).  Workstations in one domain are assigned IPs of the form 10.251.0.x and in the other 192.168.1.x.  I have installed DNS, DHCP, and WINS on the domain controllers in both do

  • Run Rapid Install error:InDbCtxFile.uploadCtx()

    Hi, We are upgrading from 11.5.10.2(Database 10.2.0.3) to 12.0.4,while doing the Rapid Install wizard to lay down the file system,i have seen the errors in logfile as below. 1)Attempting upload of Context file and templates to database...ERROR: InDbC

  • BB APP WORLD IN APPLICATIONS BUT NOT SHOWING UP IN DOWNLOADS !!!!!!!!!!! HELP

    BB app world is in my applications so it is downloaded but i cant actually open it be cause it is not in my downloads help

  • Dynamic JNLP - displaying using java web start

    Hi, I am creating a dynamic JNLP in a servlet at the server side. Please see below. String someJnlpString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \n" +                                             "<jnlp .....    >    </jnlp>";                St

  • How to make my font thinner

    I am using the "Italia" font.. just using it to create a simple logo with company name.. the font is a little chunky and want to thin it out a bit.. can anyone offer some suggestions on making the font look thinner ...maybe using the transform or ske