Please give me some advice

I want analyze data,it will return collection of oracle user-defined type.
I want to find a efficient solution !
thanks

>I want to find a efficient solution !
Write as little code as possible. Modularise everthing. And RTFM frequently.
if you expected better advice than this, provide some info. There are many roads to Rome. Which one to travel depends on many things, including just from what direction you're travelling to Rome.

Similar Messages

  • I'm trying to downgrade my storage on my ipod but when I chose my new storage i'm not able to complete the choice because the 'done' button doesn't do anything. can someone please give me some advice?

    I'm trying to downgrade my storage on my ipod but when I chose my new storage i'm not able to complete the choice because the 'done' button doesn't do anything. can someone please give me some advice?

    Are you choosing a different plan before tapping Done?
    To downgrade, you should be doing the following:
    Go to Settings > iCloud > Storage & Backup.
    Tap Change Storage Plan.
    Tap Downgrade Options and enter your Apple ID password.
    Choose a different plan to use when your current storage plan expires.
    Tap Done.

  • I can not read any contents in my yahoo inbox messages? It is blank when i opened my message. Are there any setting or updated that i missed? Please give me some advices? Thank you. Phuong

    Question:
    I can not read any contents in my yahoo inbox messages? It is blank when i opened my message. Are there any setting or updated that i missed? Please give me some advices? Thank you. Phuong

    Hi AM_Kidd.
    Thanks for your reply.
    I have done a complete uninstall and re install of iTunes and all related apple programs from my laptop through control panel, add remove programs and also by going through program files and deleting all tracers of any left over folders remove programs may have missed.
    My apologies for forgetting to add this in my original post.
    Thanks again

  • Urgent!!! please give me some advice

    i quite new in J2ME programming. i encountered a problem that my MIDlet cannot pass parameter to servlet. i had tried to not using os.flush(), but it's still not working. please give me some suggestion!
    MIDlet
    * Login.java
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.io.Connector;
    import javax.microedition.io.HttpConnection;
    import javax.microedition.io.StreamConnection;
    import java.io.DataOutputStream;
    import java.io.DataInputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.IOException;
    import java.util.*;
    public class Login extends MIDlet implements CommandListener {
    Display display;
    boolean commandAvailable;
    // String idPassword;
    CommandThread commandThread;
    Form inputForm;
    Form outputForm;
    TextField userid;
    TextField password;
    StringItem response;
    Command cmdExit;
    Command cmdOK;
    public void startApp() {
    display = Display.getDisplay(this);
    inputForm = new Form("Authorization");
    userid = new TextField("User",null,25, TextField.ANY);
    inputForm.append(userid);
    password = new TextField("Password",null, 15, TextField.PASSWORD);
    inputForm.append(password);
    cmdOK = new Command("OK",Command.SCREEN,1);
    cmdExit = new Command("Exit",Command.EXIT,1);
    inputForm.addCommand(cmdOK);
    inputForm.addCommand(cmdExit);
    inputForm.setCommandListener(this);
    outputForm = new Form("Student Option");
    response = new StringItem(null,null);
    outputForm.append(response);
    outputForm.addCommand(cmdExit);
    outputForm.setCommandListener(this);
    commandAvailable = false;
    commandThread = new CommandThread(this);
    commandThread.start();
    display.setCurrent(inputForm);
    public void pauseApp() {
    public void destroyApp(boolean unconditional) {
    public void commandAction(Command cmd, Displayable d) {
         if (cmd == cmdExit) {
    destroyApp(false);
    notifyDestroyed();
    else if (cmd == cmdOK)
    synchronized (this) {
    commandAvailable = true;
    notify();
    class CommandThread extends Thread {
    MIDlet parent;
    boolean exit = false;
    public CommandThread(MIDlet parent) {
    this.parent = parent;
    public void run() {
    while (true) {
    synchronized(parent) {
    while(!commandAvailable) {
    try {
    parent.wait();
    catch (InterruptedException e) {
    commandAvailable = false;
    performLogin();
    public void performLogin() {
    HttpConnection conn = null;
    InputStream is = null;
    OutputStream os = null;
    byte[] receivedData = null;
    try {
    String url = getAppProperty("Login.URL");
    conn = (HttpConnection)Connector.open(url);
         byte[] postData = createPostData();
    conn.setRequestMethod(HttpConnection.POST);
    conn.setRequestProperty("User-Agent", "Profile/MIDP-1.0 Configuration/CLDC-1.0");
    conn.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
         conn.setRequestProperty ( "Content-Length", Integer.toString (postData.length));
    // conn.setRequestProperty("Accept", "application/octet-stream" );
    conn.setRequestProperty("Connection", "close" );
    // byte[] postData = createPostData();
    System.out.println("postData="+postData);
    conn.setRequestProperty("Content-length",Integer.toString(postData.length));
         os = conn.openOutputStream();
         os.write(postData);
    for (int i=0;i<postData.length;i++)
              os.write(postData);
    //     os.flush();
         os.close();
         is = conn.openInputStream();
         String contentType = conn.getType();
    int len = (int)conn.getLength();
    if (len > 0) {
    receivedData = new byte[len];
    int nb = is.read(receivedData);
    else {
    receivedData = new byte[1024];
    int ch;
    len = 0;
    while ((ch = is.read()) != -1) {
    receivedData[len++] = (byte)ch;
    response.setText(new String(receivedData,0,len));
    display.setCurrent(outputForm);
    catch (IOException e) {
    System.out.println(e.getMessage());
    e.printStackTrace();
    finally {
    try {
    if (is != null) {
    is.close();
    if (os != null) {
    os.close();
    if (conn != null) {
    conn.close();
    catch (IOException e) {
    public byte[] createPostData() {
    StringBuffer sb = new StringBuffer();
    sb.append("userid=");
    sb.append(userid.getString());
    sb.append("&password=");
    sb.append(password.getString());
    System.out.println("sb = <" + sb.toString() + ">");
    return sb.toString().getBytes();
    servlet
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class LoginServlet extends HttpServlet {
    static final String dbURL = "jdbc:mysql://localhost/projectdb?" + "user=wongyuenmei&password=wongyuenmei";
    public void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException {
    Connection conn = null;
    String nextJSP = null;
    try {
    Class.forName("org.gjt.mm.mysql.Driver");
    catch (ClassNotFoundException e) {
    throw new ServletException("Unable to load JDBC driver");
    try {
    String id = request.getParameter("userid").trim();
    String pass = request.getParameter("password").trim();
         if (id==null)
    String tempid=id;
    String temppass=pass;
    conn = DriverManager.getConnection(dbURL);
    Statement stmt = conn.createStatement();
    String query = "SELECT cno, idno " + "FROM student " + "WHERE idno = '" + id + "'AND password ='" + pass + "'";
    ResultSet rs = stmt.executeQuery(query);
    if (rs.next()) {
    StringBuffer fullName = new StringBuffer();
    fullName.append(rs.getString(1));
    fullName.append(" ");
    fullName.append(rs.getString(2));
    request.setAttribute ("fullName", fullName.toString());
    nextJSP = "/LoginOK.jsp";
    else {
         StringBuffer temptest = new StringBuffer();
         temptest.append(tempid);
         temptest.append(&temppass);
         request.setAttribute("temptest", temptest.toString());
    nextJSP = "/LoginFailed.jsp";
    conn.close();
    ServletConfig config = getServletConfig();
    ServletContext context = config.getServletContext();
    RequestDispatcher rd = context.getRequestDispatcher(nextJSP);
    rd.forward(request, response);
    catch (SQLException e) {
    throw new ServletException("SQL call failed");
    catch (Exception e) {
    throw new ServletException(e.getMessage());
    finally {
    if (conn != null) {
    try {
    conn.close();
    catch (SQLException e) {
    throw new ServletException("connection close failed");
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
    doPost(request, response);
    ur help is very appreciated!

    Still the same problem. All the parameter get by server are null.
    Using GET, and add parameter to url, everything is fine.
    encodedPostData = "E2EE_PAM_ID"+"="+E2EE_PAM_ID+"&"+"E2EE_USER_ID"+"=" E2EE_USER_ID"&"+"E2EE_USER_SEGUID"+"="+E2EE_USER_SEGUID+"&"+"E2EE_RPIN"+"="+E2EE_RPIN
    +"&LoginBtn=Login";
    c = (HttpConnection)Connector.open(request);
    c.setRequestMethod(HttpConnection.POST);
    c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Configuration/CLDC-1.0");
    c.setRequestProperty("Content-Type:","application/x-www-form-urlencoded");
    os = c.openOutputStream();
    os.write(encodedPostData.getBytes());
    //os.flush();
    System.out.println(encodedPostData);
    rc = c.getResponseCode();
    if (rc != HttpConnection.HTTP_OK) {
    throw new IOException("HTTP response code: " + rc);
    is = c.openInputStream();
    ..........

  • Need help in Seding sound stream on UDP, please give me some advice!

    I'm a newbie in this. I try to do VoIP on mobile, and I did finish Register, Invite and Record voice in to output stream. But I don't know where to go next.
    I knew that most cell phone doesn't support RTSP, so it I must do it in UDP instead. But how? How to put Output Stream in UDP, and how to get it back?
    And I don't know how to put those things together.
    Please please, help me.
    Tanan
    from Thailand
    p = Manager.createPlayer("capture://audio?encoding=pcm&rate=8000&bits=16");
    p.realize();
    // Get the RecordControl, set the record stream,
    rc = (RecordControl)p.getControl("RecordControl");
    output = new ByteArrayOutputStream();
    rc.setRecordStream(output);
    rc.startRecord();
    p.start();

    Welcome to Discussions, ddalki_kiss!
    Most important thing first. You didn't list the "Boot ROM Version," which is after the Bus Speed in System Profiler. I ask due to the fact that, according to this Apple Support article:
    Firmware updates for Intel-based Macs
    your MacBook probably required the installation of this firmware update:
    MacBook EFI Firmware Update 1.1
    It isn't a question of whether or not that update was downloaded, but whether it was installed. Checking how System Profiler shows the "Boot ROM Version" is one way to find out if it was successfully installed. If it was not, download and install it, being careful to follow instructions and cautions.
    It is also getting very hot to the touch...
    First, the firmware update might help. Second, it is getting very hot due to the fans not being able to keep it cool enough despite running at higher speed. Can we assume that you are not using the MacBook as a laptop, but are following the cautions that it is a notebook and must have air circulation beneath it?
    ...sometimes when I push the power button to turn it on, all I see is a blank white/grey screen and nothing happens...
    You should boot into safe mode:
    http://docs.info.apple.com/article.html?artnum=107392
    http://docs.info.apple.com/article.html?artnum=107393
    http://docs.info.apple.com/article.html?artnum=107394
    Booting into safe mode could be remedial for your MacBook. You should then restart your MacBook to return to normal use, as you will be unable to remain in safe mode and have normal use of your Mac.
    If you have further problems, or if you resolve the current ones, please repost:)
    Message was edited by: myhighway

  • There's Something Very Wrong With My Macbook... Please Give Me Some Advice

    I bought a new black macbook about 7 months ago:
    Here are the specs:
    Model Name: MacBook
    Model Identifier: MacBook2,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.16 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache (per processor): 4 MB
    Memory: 2 GB
    Bus Speed: 667 MHz
    Basically, the fan noise is getting incredibly loud and very whiny, even with just microsoft word on... It is also getting very hot to the touch... And apparently, the bottom part of my macbook (the case) has a defect- its slightly popped out... I never dropped my macbook and it has always been in a case so apparently I must have bought it like that... Also, the computer won't wake up from sleep mode sometimes, and sometimes when I push the power button to turn it on, all I see is a blank white/grey screen and nothing happens...
    It has only been a couple of months and I've already been to the apple store about three times... I am a student so I don't have the time to send it in for the approx. 7 to 10 wait period... and I am concerned that if I do not send my computer in soon, the computer will crash and all my school work will go with it. I do not have an alternate computer and I will have no time to turn it in for repair until june... I do not know what to do... When I went to the apple store, they tested it and said that there was nothing wrong with the sound (however this only happens when it's taken in), I know for certain that there is something wrong with the fan noise... My suitemates and friends who have the same computer as I do, do not have this problem... What should I do? Is there any way I would be able to get this computer replaced? I really do not have the time to send it in for repairs... What should I do?? Any help would be appreciated... Thank You!

    Welcome to Discussions, ddalki_kiss!
    Most important thing first. You didn't list the "Boot ROM Version," which is after the Bus Speed in System Profiler. I ask due to the fact that, according to this Apple Support article:
    Firmware updates for Intel-based Macs
    your MacBook probably required the installation of this firmware update:
    MacBook EFI Firmware Update 1.1
    It isn't a question of whether or not that update was downloaded, but whether it was installed. Checking how System Profiler shows the "Boot ROM Version" is one way to find out if it was successfully installed. If it was not, download and install it, being careful to follow instructions and cautions.
    It is also getting very hot to the touch...
    First, the firmware update might help. Second, it is getting very hot due to the fans not being able to keep it cool enough despite running at higher speed. Can we assume that you are not using the MacBook as a laptop, but are following the cautions that it is a notebook and must have air circulation beneath it?
    ...sometimes when I push the power button to turn it on, all I see is a blank white/grey screen and nothing happens...
    You should boot into safe mode:
    http://docs.info.apple.com/article.html?artnum=107392
    http://docs.info.apple.com/article.html?artnum=107393
    http://docs.info.apple.com/article.html?artnum=107394
    Booting into safe mode could be remedial for your MacBook. You should then restart your MacBook to return to normal use, as you will be unable to remain in safe mode and have normal use of your Mac.
    If you have further problems, or if you resolve the current ones, please repost:)
    Message was edited by: myhighway

  • My head is done in, someone please give me some advice...

    Hey guys,
    I ve just created my account on here and i desperately need some help if any of you guys can help me.
    My ipod is doing my head in, what happens is i try to turn it on and i get the folder and explanation mark, now i have looked at the article on this and it doesnt really help ypu know?
    I think i may have to get it in for a service, have any of you done this in the past? Will it sort out the problem and can it be serviced without removing the music files i have on it?
    Hope someone can advise me on this.
    Thanks

    Presumably, you've already seen these?
    iPod shows a folder icon with exclamation point after disconnecting.
    iPod shows a folder icon with exclamation point when you turn it on.
    If you send your iPod in for service, and Apple determines that there is a problem, you will be sent a replacement iPod so your music files will not be preserved.

  • Am unable to Install Adobe Flash, 2. I have a warning saying Jarva script void, could someone please give me some advice with these problems, I am new to Firefox and I am Trying to set up a new home page. Kind Regards, briansheree

    I have installed Firefox 8 and I am trying to set up a Homepage with downloads,Plugins and extension sidebar plus Bookmarks toolbar, with named folders containing my favorite sites, but when as instructed to upgrade Adobe Flash to the latest version the install fails. And I also had a warning in my search bar saying Java script void.

    I have installed Firefox 8 and I am trying to set up a Homepage with downloads,Plugins and extension sidebar plus Bookmarks toolbar, with named folders containing my favorite sites, but when as instructed to upgrade Adobe Flash to the latest version the install fails. And I also had a warning in my search bar saying Java script void.

  • Give me some advice

    hi,all
    I began to learn BW a little more than three months ago. During this time,
    I found myself becoming interested in it. I, therefore, am determined to
    learn it well.
    But our project is just at the start, and the external consultants seem unwilling
    to teach me .
    what should i do.
    Please give me some advice on how to do a good job in it and how to get along well with the consultants.

    Hi Lawrence,
    Try to use SDN as much as you can... Search in forums what ever doubts you have and post your doubts... Try to do some test developments if you have a Development system... It will take time for you to work like the other consultants... but Only way to learn BW is to acquire the Practical Knowledge....search all How to do stuff in forum...
    All the Best
    Cheers,
    Sudhakar.

  • Nano 1 generation or nano 2 generation ?give  me some advice

    I want to buy a ipod recently ,I hesitate to choose a definite one.I focus on nano 1 generation and nano 2 generation,please give me some advice.
    thanx!

    It would have to depend on what your needs are; Capacity, features etc. W/ the 2nd gen nano, you can get a choice of colors, instead of just black or white.
    The nano forum will probably have more qualified opinions.

  • I lost my iPhone 3 days ago.. it wasn't connet to internet and I don't know how find it without the connection.. please help me and give me some advices!!

    I lost my iPhone 3 days ago.. it wasn't connet to internet and I don't know how find it without the connection.. please help me and give me some advices!!

    Change your passwords.

  • I lost my password and i could get into my phone, i tried but it said connect to itune. i did, but i did not get any result. please give me some advises how do i get my password back or reset with a new one?

    Ipjone6, silver, 64GB
    I lost my password and i could get into my phone, i tried but it said connect to itune. i did, but i did not get any result. please give me some advises how do i get my password back or reset with a new one?

    how to reset password:
    https://iforgot.apple.com/password/verify/appleid

  • I have downloaded DNG Profile Editor 1_0_4 and prepared a profile which I can not see in my Camera Raw 6.0 (I have photoshop CS5). Could you please give me an advice?

    I have downloaded DNG Profile Editor 1_0_4 and prepared a profile which I can not see in my Camera Raw 6.0 (I have photoshop CS5). Could you please give me an advice?

    Uninstall Trusteer software
    http://www.trusteer.com/support/uninstalling-rapport-mac-os-x
    Remove Sophos
    https://discussions.apple.com/message/21069437#21069437

  • Received apple tv as gift, my tv/home theater situation has no HDMI input capabilities.  My only option is an optical connection, please give me some inexpensive optical cable suggestions???

    Received apple tv as gift, my tv/home theater situation has no HDMI input capabilities.  My only option is an optical connection, please give me some inexpensive optical cable suggestions???

    Welcome to the Apple Community.
    HDMI is required to connect the Apple TV to a TV or through a receiver. The optical connection is for audio only.

  • I have a related but different problem... I prefer that the photos/events on my iPhone and iPad be in "date created" order. Does anyone know if this is possible? Apple...please give us some options.

    I have a related but different problem... I prefer that the photos/events on my iPhone and iPad be in "date created" order. Does anyone know if this is possible? Apple...please give us some options!!!

    This response is a little late as I just read about your problem. I have a 2012 Dodge Charger and a 2012 Chrysler Town and Country and both worked flawlessly with the iPhone 5s my wife and I had. However, we just upgraded to the iPhone 6 and Uconnect will receive calls but you cannot answer them. You can callout successfully, however. the annoyance being the inability to answer incoming calls in the HandsFree mode.

Maybe you are looking for

  • Problem with import PS layer in AE CS4

    Hi. I will import an  Photoshop CS4 PSD file with 4 layers  in a new composition in After Effects CS4, but I don't get the new composition with 4 layer....? Here is my workflow: a Photoshop file with four layers are saved as PSD file. In AE I select

  • Oracle 9i and ...

    other platform than rh or suse .... I try to install oracle 9i on linux slackware 8.0 and linux debian woody (both distr are based on glibc 2.2.3). I try - because install is fail on runInstall. My question is: si possible to install oracle 9 on this

  • Bapi/Fn Module for changing Routing

    Hi All, Currently I am working on creation and change of Routing using BAPI's . I could find the routing create bapi BAPI_ROUTING_CREATE and it is working fine. Can some one help in identifying the BAPI/Function Module for modifying /changing the Rou

  • Cancelled phone line order help please

    Where do I start. I ordered telephone broadband and vision on the 4 october was told it would be installed on 28 october but nothing so rang customer services and was told it had been cancelled and would be reordered and I would recive a phone call o

  • IMovie 08 to iMovie 08 Project transfer issues

    I am trying to move and edit a mostly complete project done in iMovie 08 from my laptop to my desktop. I have copied the .rcproject over but i can't import it. I then put in my iMovie project folder and it still didn't recognize it. Any thoughts? I h