Terribly help needed pls.......

Hi
I have problem in implementing this banker's algorithm
Resource- Request algorithm
1.If Request <= Need[i][j] go to step2.
else raise ERROR condition process exceeded its maximum claim.
2.If Request[i]<= Available, go to step 3.
else Pi must wait since resources are not available.
3. Available := Available - Request[i];
Allocation += Request[i];
Need[i] -= Request[i];
If the resulting resource-allocation state is safe, the transaction is completed and process Pi is allocated resources. However if the new state is unsafe, then Pi must wait for Request[i] and the old resource-allocation state is restored.
Safety Algorithm:
1. Initalize Work := Availabe and Finish[i]:=false for i=1,2,....p
2.Find an i such that both a.) Finish[i] ==false b) Need[i] <= Work
If such i exists, go to step 4.
3. Work := Work + Allocation[i]
Finish[i] := true
go to step2
4 if Finish[i] == true for all i, then the system is in a safe state
My code is as follows --->
inal int r = 3, p = 5;
         int[][] need = new int[p][r];
         int[][] work = new int[1][r];
         boolean[] finish = new boolean[p];
         System.out.println( "Allocation");
         System.out.println( "----------\n ");
         int[][] allocation = {{0, 1, 0}, {3, 0, 2}, {3, 0, 2},{2, 1, 1},{0, 0, 2}};
         System.out.println( "Max");
         System.out.println( "----\n ");
          int[][] max = {{7, 5, 3},{3, 2, 2},{9, 0, 2},{2, 2, 2},{4, 3, 3}};
         System.out.println( "Available");
     System.out.println( "---------\n ");
     int[][] available = {{2, 3, 0}};
// initializing Work = Availabe
    System.arraycopy(available, 0, work, 0, available.length);
    System.out.println( "Need");
    System.out.println( "----\n ");
       for(int i = 0; i < allocation.length; i++){
          for(int j = 0; j < allocation.length; j++){
need[i][j] = max[i][j] - allocation[i][j];
System.out.println( "Request");
System.out.println( "-------\n ");
int[][] request = {{3, 3, 0}};
System.out.println( "Finish");
System.out.println( "-------\n ");
for(int i =0; i<p; i++){
     finish[i] = false;
// Resource Request Algorithm starts here
for(int i=0; i < request.length;i++){
     for(int j=0; j <request[i].length; j++){
if(request[0][j] > need[3][j]){
System.out.println(" Process has exceeded its maximum claim. ");
}//end if
else if(request[0][j] > available[0][j])
System.out.println("P"+i+" process must wait since the resources are not available.");
else{
available[0][j] = available[0][j] - request[0][j];
allocation[i][j] = available[0][j] + request[0][j];
need[i][j] = need[i][j] - request[0][j];
}//end else
// Safety Algorithm starts here
step2:
for(int m=0; m <= i; m++){
for(int n=0; n <= m; n++){
if(!(finish[i] == false && need[3][j] <= work[0][j])){
     finish[i] = true;
     System.out.println("The system is in safe state when process P3 request "
               + request[0][j] +" from resource "+ need[3][j]);
}//end if
else{
     work[0][j] = work[0][j] + allocation[i][j];
finish[i] = true;
continue step2;
}// end else
} // end j for loop
}// end i for loop

i'm getting wrong output.
when request exceed maximum its not in safe state.
But my code is printing its in safe stateHow about using a debugger or System.out.printlns to verify the internal values that led to this output?

Similar Messages

  • Urgent help needed pls regarding LOGO

    hello friends this is sudhakar . i really need help
    pls urgent
    i wrote scjp 5.0 certification in august and cleared succesfully
    i got all certificates but for logo i have to send the mail which cost me around 620/- rupess to them. but,
    can u any one tell how can v say to sun pupil tat i got all my cetificaties and i need the logo for my resume
    i heard we can do with online in www.sun.com only so can u help me out pls it is urgent.....

    http://www.sun.com/training/certification/faq/index.html#logos
    This part should be relevant to you -
    All customers that reside outside US and Canada: Once you have successfully passed one of our Java platform exams, a certification kit will be mailed to you that includes a Sun Logo Agreement. Please sign the agreement and mail it back to the address supplied. Depending from which country you mail the agreement, it may take up to month for you to receive the logo. We are currently working to provide an online logo for our International customers.
    This means you send the mail to them or wait for them to go online (which might mean months).

  • Urgent help needs - pls help me

    i have four group in my template.
    each group have subtotal at the end of it's group.
    after each group total, i need to display total (which is differance between current group and previous) right below of group total.
    and this difference need to show from second group.
    example -
    Group 1 Year
    A ( total amount for Group 1)
    Group 2 Year
    B ( total amount for Group 2 )
    Total differance C (which is B - A )
    Group 3 Year
    D ( total amount for Group 3 )
    Total differance E ( which is D - C)
    Group 4 Year
    F ( total amount for Group 4)
    total difference G (which is F - E)
    G G1
              G G2
    G 999.00E
    G1
    G 999.00
    <?xdoxslt:set_variable($_XDOCTX,’px’,xdoxslt:get_variable($_XDOCTX, 'y'))?><?xdoxslt:set_variable($_XDOCTX,’y’,xdoxslt:get_variable($_XDOCTX, 'x'))?><?xdoxslt:set_variable($_XDOCTX,’x’,sum ($G1[(./FISCAL_YEAR=current()/FISCAL_YEAR)]/AMOUNT))?>
    E
    <?xdoxslt:set_variable($_XDOCTX,’py’,xdoxslt:get_variable($_XDOCTX, 'y'))?>
    Val is
    Px is <?xdoxslt:get_variable($_XDOCTX, 'px')?>
    <?xdoxslt:get_variable($_XDOCTX, 'x')?>
    <?xdoxslt:get_variable($_XDOCTX, 'y')?>
    Diff is
    <?xdofx:xdoxslt:get_variable($_XDOCTX, 'y')-xdoxslt:get_variable($_XDOCTX, 'px')?>E
              E
    above code does not give me subtraction.
    in above code pls omit that --- http -- in code but mistake it display in post.
    any help is greatly appreciated.
    thanks.
    Edited by: user6767417 on Apr 3, 2009 5:02 PM

    Hi ,
    thanksfor reply me.
    your suggestion is working.
    but now it gives me differance between two column of same group.
    but i need differance between same column of differant group ?
    ant kind of helpis greatly apprecidated.
    thanks.

  • HELP NEED PLS

    I HAV A ZEN MICRO PROBLEM
    WHAT IS IS
    I CHARGE IT ALL NIGHT (VIA USB ON MY PC) & THIS MORNING THE BATT. IS DEAD SAYIN LOW BATT WHEN I PLUG IT OUT
    ITS ONLY STAYIN ON WHEN ITS ON CHARGE ...
    2
    WHEN ITS PLUGED IN & I TURN THE ZEN ON IT ONLY GOES IN TO THE RECOVERY MENU & I CANT GET OUT OF IT NO MATTER HOW MUCH I TURN IT OFF OR ON
    CUD SOME PLS HELP ME
    PS IM FRM THE UK
    CUD SOME ALSO GIVE ME A CUSTOMER SUPPORT NUMBER
    THE UK NUMBER ON THE SITE DONT WORK WHEN I TRY 2 CALL IT 4 SOME REASON
    THANKS IN ADVANCE

    robert,
    If your player are using firmware version ..0, then slide the lock switch to lock position when charging. If you are using other firmware version, the player would need to be properly recognize by the computer first before it will start to charge properly.
    It doesn't bode well if the player are stuck at the recovery mode. Have you try the cleanup option and then the reboot option.
    Jason

  • Opinions and help needed Pls.

    I am seeking some opinion and help.
    I need to setup and control both 9i and 10g databases using EM.
    The 9i databases will also be DataGuarded . I have successfully tested this using 9i EM with a repository
    and Intelligent Agents and the DataGuard Wizard to create logical standby databases. An interesting experience.
    Now that our first 10g database is in development, I would like to control it in a similar fashion. It will 'go' production
    in November and will also need to be DataGuarded.
    I am aware that each 10g Instance can have it's 'own' web interface, but to use the Dataguard wizard, I will need to use Grid control.
    Q1. Can someone confirm or refute that Grid control, with it's own applicaton server & DB instance, is permitted
    without ANY additional licenses at all, provided it is being used to control
    other fully licensed EE databases only?
    Q2. As 10gR1 Grid was the first release of the product, and we will be controlling 10gR2 databases (apparently patch 10.1.0.4 can do it),
    do YOU think we should use 10.1.0.4 GC now,
    or just use the 9i EM product and 10g Dataguard Broker command line tool 'DGMRGL' (not tested here yet), and wait for the 10gR2 GC hopefully early next year?
    Below are all the processes that were started by installing 10G grid (10.1.0.3) in Solaris 64.
    I will be attempting to apply the 10.1.0.4 EM Grid patch to this and controlling a 10.2.0.1 DB.
    I have successfully connected to the Grid Control ("as is" installed 10.1.0.3) using netscape.
    ( initially using http://localhost:7780:em which automatically became http://dandrutl02:7780/em/console/logon/sdk/incompatible;jsessionid=c0a89b1fce6b5d53d63770647e38909ad251f1b02be.n65In79Pr6KKaxCNaN0McybtahyM-x4Qc2SLbhiIaN4Iah1vbA5zawSLa3mPn39AahqQb2SHbQnAnwb5pBfzqB1Molbzhk5Imkrzqx0In65In79Pr6KKawaLaxiKc3uPbxeM8OexhOaOgzX5hgbynknvrkLOlQzNp65In0__ ) Click ok a few times.....
    Eventually I get to "http://dandrutl02:7780/em/console/logon/logon" and can login OK.
    I have successfully installed an agent for 10g GC on a remote host, and can control it from the Grid host. It could control
    a 9.2.0.7 instance on the remote host. 10.2.0.1 is also installed on the remote host but no Db has been created yet.
    Now, can someone tell me the commands I need, - and the correct order - to:
    Q3. Stop all Grid Web, application server, database, and local agent processes on the Grid host.
    Q4. Start-up of same.
    Q5. Start and stop of processes for the Grid Agent on the Remote agent host.
    Q6. What is the preference for the installation order of the 10g Agent and Oracle 10gR2 software ?
    Grid master processes
    ============
    /data/oracle/product/10.1.0.4EM/opmn/bin/opmn -d
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    ora_qmn0_REPOS10
    /data/oracle/product/10.1.0.4EM/jdk/bin/java -Xmx256m -Doracle.ias.sysmgmt.logg
    /data/oracle/product/10.1.0.4EM/bin/tnslsnr LISTENER -inherit
    ora_dbw0_REPOS10
    ora_lgwr_REPOS10
    ora_pmon_REPOS10
    ora_reco_REPOS10
    /data/oracle/product/10.1.0.4EM/opmn/bin/opmn -d
    ora_smon_REPOS10
    ora_cjq0_REPOS10
    ora_ckpt_REPOS10
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/jdk/bin/java -server -Djava.security.policy=/da
    /data/oracle/product/10.1.0.4EM/webcache/bin/webcached -A -OPMN -U 1250885641
    /bin/sh -c /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/rotatelogs /data/o
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/rotatelogs /data/oracle/produ
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/rotatelogs /data/oracle/produ
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /bin/sh -c /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/rotatelogs /data/o
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/rotatelogs /data/oracle/produ
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/jdk/bin/java -server -Xnoclassgc -Xmx256m -DORA
    /data/oracle/product/10.1.0.4EM/perl/bin/perl /data/oracle/product/10.1.0.4EM/b
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/bin/emagent
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/jdk/bin/java -server -Djava.security.policy=/da
    oracleREPOS10 (LOCAL=NO)
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    ora_j000_REPOS10
    ora_j001_REPOS10
    ora_j002_REPOS10
    ora_j003_REPOS10
    ora_j004_REPOS10
    ora_j005_REPOS10
    /bin/sh /data/oracle/product/9.2.0.6/bin/dbsnmpwd
    /opt/local/sbin/sshd
    /data/oracle/product/9.2.0.6/bin/dbsnmp
    oracleREPOS10 (LOCAL=NO)
    oracleREPOS10 (LOCAL=NO)
    oracleREPOS10 (LOCAL=NO)
    oracleREPOS10 (LOCAL=NO)
    oracleREPOS10 (LOCAL=NO)
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    oracleREPOS10 (LOCAL=NO)
    -ksh
    oracleREPOS10 (LOCAL=NO)
    /data/oracle/product/agent/bin/emagent
    oracleREPOS10 (LOCAL=NO)
    oracleREPOS10 (LOCAL=NO)
    /data/oracle/product/agent/perl/bin/perl /data/oracle/product/agent/bin/emwd.pl
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/webcache/bin/webcached -OPMN -U 1250885643
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
    oracleREPOS10 (LOCAL=NO)
    ora_j006_REPOS10
    oracleREPOS10 (LOCAL=NO)
    oracleREPOS10 (LOCAL=NO)
    Grid AGENT host processes
    ==========
    /data/oracle/product/10.1.0.4EM/bin/emagent
    /data/oracle/product/9.2.0.6/bin/tnslsnr LISTENER -inherit
    -ksh
    /data/oracle/product/10.1.0.4EM/perl/bin/perl /data/oracle/product/10.1.0.4EM/b
    /opt/local/sbin/sshd

    Thank you for the reply, it go me working. Now some additional info and questions.
    On a monitored host were I have both 9.2 and 10.2 databases installed, I was attempting to use just the 10.2 listener and the 10.1.0.4 agent to monitor everything. This worked.
    I Installed 9.2 , 10.2 and 10.1.0.4 Agent software and started a 10.2 listener and 10.1.0.4 agent on a second Unix host.
    But, when I attempted to set up a 9.2 DataGuarded logical databases to the second host, it failed and as far as I can tell it seems to be expecting that I will use a 9.2 listener for 9.2 DB's and a 10.2 listener for 10.2 Db's. (The errors were related to attempting to execute lsnrctl commands against wrong listener version).
    Can someone confirm that Oracle expects that you will use multiple listeners (on different ports of course)?
    I have also had some odd behavior from the 10g Grid application, only corrected by ending the session and restarting, but I am assuming that this is because Grid is still a relatively new product.
    For clarity, I list the order of installation below. Can someone check that I have done it right?
    host 1
    Install 9.2.0.1 software.
    Install Patches to same to get to our production level (9.2.0.4)
    Install several patches related to EM and CritialPatchUpdates etc.
    (as an aside, EM 9.2.0.6 with a management repository will control the above fine)
    Install 10.2.0.1 software
    Created a 9.2 and 10.2 test DB's.
    Configure 10.2 listener for all Db's
    host 2
    Install 9.2.0.1 software.
    Install Patches to same to get to our production level (9.2.0.4)
    Install several patches related to EM and CritialPatchUpdates etc.
    (as an aside, EM 9.2.0.6 with a management repository will control the above fine)
    Install 10.2.0.1 software
    management host
    Install 10.1.0.3 grid control to new database
    (Installes AS , creates a 9.0.? Db for the repository, Agent etc)
    Install 10.1.0.4 grid patch to grid home
    Install 10.1.0.4 grid patch to agent home
    host 1
    Install 10.1.0.3 grid agent
    Install 10.1.0.4 patch to agent
    host 2
    Install 10.1.0.3 grid agent
    Install 10.1.0.4 patch to agent
    Whew! And Oracle thinks this is easy?
    I am seriously considering using 9.2 EM and OMS for the DataGuard on 9.2 Db's only and 10G's database broker command line interface for the 10.2 stuff and banning use of 10g Grid control 10.1.
    I Need a 10gGrid control 2.01 more stable, reliable, simpler, NOW.
    Migrating a 9.2 OMS and repository to 10g Grid when it becomes usable will need to be possible.
    You thoughts?

  • Contract Analysis Report - Help needed pls.

    Hi Gurus,
    I have below requirement.
    To analyze the contracts created in purchasing(in SAP). The report shall help to analyse the Contracts that are due to expire in next 12 months.
    Now I need a suitable datasource and business content ods/cube.
    Required characters are: Contract no, Vendor, Purchasing group, created on,start date,end date etc.
    Report to run for contract end date between today's date and next year. For ex if user is running report on 05-oct-2007, the report should display all the contracts having end date between 05-oct-2007 and 04-oct-2008.
    Please help me.
    Thanks,
    Sasi

    Hi
    Take the <b>VBRK-KNUMV field  and pass it to KONV-KNUMV</b> table field along with all the Condition types (KSCHL) fields to get the amounts (KBETR and KWERT) fields
    Regards
    Anji

  • I pod touch question..help needed pls.

    I have an I pod touch approx 3 yearws old. I have plugged it into my laptop and it says it it updated to the latest version.
    When I try to download an app it tells me that I need to update it. Then I go into itunes and it tells me that there are no updates.
    It is running 4.2.1 (8C148)
    Any advice pls?

    You have an iPod Touch 2nd gen which can only go up to iOS 4.2.1 so you have the latest version for your iPod.
    If you are trying to download Apps that require iOS 4.3 or later you will not be able to do so.

  • Help needed pls!!!!

    1.I have 2 schema a and b
    2.I dont have priviledge to create procedure in schema a but i have in schema b.So I created procedure in schema b which will update the synonyms in schema a
    3.Inside the procedure created under the schema b ? Can I use update a.<synonyn name>
    where <> ;
    Getting error : insufficient privilege to access object
    Can I update another schema's object from another schema ?

    Yes! but what u need is the privillages granted by a. Since a is the owner of the object a must grant the privilleges on that synonym to b.

  • Speaker help needed pls

    I can play music that is stored on my PC but not through the internet i.e. youtube?????
    I have checked all hte speaker settings and it saying they are installed and working properly.
    Anyone any ideas what that might be?

    Download K-Lite codec mega pack from:
    http://www.filehippo.com/download_klite_mega_codec/
    then do this:
    Start > Programs > K-Lite Codec Pack > Configuration > Codec Tweak Tool
    Then check the box next to [Registry] Fix non-working system sound
    It should fix the problem
    ||-Although I am working on behalf of HP, I am speaking for myself and not for HP.-||
    //Click on Kudos if my reply was helpful and answered your question//
    ||-If my answer solved the problem please mark the topic as the accepted solution-||

  • Help needed pls!!! GF4 Ti4800 SE 8X on MSI 845 Ultra?

    Hi folks,
    I just purchased a GF4 Ti4800 SE 128mb 8X.
    I own a MSI 845 Ultra ARU (6398), I understand this board only supports up to 4X AGP, but the GF4 card should be able to "downgrade" to work with a 4x motherboard, I hope.
    Booting up is ok, but graphics start to tear on the window start-up screen. At the desktop, once i click the mouse, the desktop will hang like for 1 sec, then the monitor switch to Black screen, and then back desktop, this repeats when i click the mouse. There are also some weird colors here and there.
    Can anyone pls advise?

    Quote
    Originally posted by wonkanoby
    serious vga card,is your psu in the same bracket
    Hi there, thanks for ur prompt reply :D
    hmm, sorry i don't realli what you mean by "psu in the same bracket"?
    My PSU is a HEC 475W.

  • Help needed pls to set up Homehub 1.0

    Hi, I am new to this forum and am hoping you guys can give me some help to set up a homehub 1.0 which I was given. Tried BT help without success so far.
    I am trying to connect my desktop PC through an ethernet cable but can't get a connection. My current ISP is AOL (who weren't helpful and won't be my ISP much longer). I have downloaded the userguide which didn't help either. I do not have the installation disc. The idea of the router is to enable wireless setup of the Nintendo Wii at the same time as the PC which is at the moment connected via a Voyager modem.
    Can anyone help please? Many thanks,

    it is not the end of the world for the old trusty wireless modem.
    It is possible to install the original 'Speed Touch' software/firmware for the Home Hub 1.
    AOL use to use Speedtouch modems (probably still do) and you can download the firmware from reputable sources.
    if you google Javiser and select homeHubindex link (www.jarviser.co.uk/jarviser/homehubindex.htm) and select Loading Speedtouch firmware this will resolve your issues.  Or click here
    http://www.jarviser.co.uk/jarviser/hubunlocking.html
    CG
    CG Over An Out

  • SQL Exception: Result Set Closed. Help Needed Pls...

    Hi
    I am trying to insert the name field into �TestNoName� table which is randomly retrieved from �UniqueName� table. I am getting SQL exception: result set closed. Please look at the given code and let me know what�s wrong with my code:
    Also please guide me about entering unique (serial numbers) dynamically into
    database using Java. I have to enter customer details into database at some time and some customers details after some time but the customers should be given serial numbers.
    Thank you in advance!
    Ravi
    Here is the Code:
    String query1 = "Select Name from Unique_Names";
    String query2 = "SELECT Number, Name FROM TestNoName";
    Statement stmt;
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    con = DriverManager.getConnection(url,"","");
    System.out.println("Successfully Connected to Database");
    stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    ResultSet rs = stmt.executeQuery(query1);
    ResultSet rs2 = stmt.executeQuery(query2);
    int count=0;
    while (rs.next()) {
    count++;
    rs.beforeFirst();
    for(int i = 0; i < 10; i++) {
    int randomrow = random.nextInt(count)+ 1;
    System.out.println(randomrow);
    String Name2 = rs.getString("Name");
    rs2.moveToInsertRow();
    rs2.updateInt("Number",i);
    rs2.updateString("Name",Name2);
    rs2.insertRow();
    System.out.println("Exececuted SQL Statement- Inserted One Record");
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    }

    I am trying to insert the name field into
    �TestNoName� table which is randomly retrieved from
    �UniqueName� table. I am getting SQL exception:
    result set closed. Please look at the given code and
    let me know what�s wrong with my code: Post the actual exception, not some paraphrase of it. Oh, and let us know which line it actually refers to in the code.

  • Urgent help needed - new to Macs, accidently cut and paste over top of photo folder and now no sign of folder or file, no auto back-up in place, how can I restore photos pls

    Urgent help needed - new to Macs, accidently cut and paste over top of photo folder and now no sign of folder or file, no auto back-up in place, how can I restore photos pls

    Thanks for prompt reply, yes we have tried that but have now closed down the browser we where the photos were.
    We haven't sent up time machine, do you know whether there is any roll-back function on a Mac?
    Thanks

  • *Help Needed* Adding multiple emails/mailing list in the email subscription

    Help Needed
    Hi,
    Can someone help me in adding multiple email address/mailing list in the email subscription for interactive reports in Apex 4.
    pls mail me at [email protected]
    Regards,
    Sunny

    The doc does not mention a separator for the email addresses because we only support one email address per subscription. I have logged a task for our next release to look at expanding it and allowing multiple.
    -- Sharon

  • Help needed

    Help needed
    1. When we use USING clause in execute immediate does it hard parse ?
    2. Is it better to use values stored in SYS_CONTEXT or to use USING clause in Execute Immediate ?
    3. In Dynamic SQL, if i use SYS_CONTEXT does it Hard Parse or Soft Parse ?
    Edited by: Prathamesh on Jun 22, 2010 5:19 AM

    Prathamesh wrote:
    1. When we use USING clause in execute immediate does it hard parse ?Only the first time.
    2. Is it better to use values stored in SYS_CONTEXT or to use USING clause in Execute Immediate ?I think it depends, Tom would say the latter
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1669972300346534908
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1288401763279

Maybe you are looking for

  • Closing balances for Balance sheet

    Hi, We have started enteries a our customer from 01/04/2011 with the opening balance. after audit there balance sheet is finalise in month of september ie current month. can anyone let me know how to enter the adjustment balances if there is any diff

  • Creation of solution is not possible in Solution_manager

    I have connected  the development system in SMSY Tcode.But i am unable to create solution in Solution_manager Tcode .I have tried to create new solution but it is not moving to next screen to create solution .Whether i have to apply any support packa

  • How can I get a list of active savepoints for the current session?

    Hi, In Oracle Applications, we are getting the following error while performing ROLLBACK to a Savepoint. "Unexpected Error: ORA-01086: savepoint 'PTNR_BULK_CALC_TAX_PVT' never establishe d ORA-06510: PL/SQL: unhandled user-defined exception" So how c

  • Photoshop Elements 5.0 are not able to open Catalog.psa

    I have used Photoshop Elements for a while now, and have 13657 picture registered here. But for a few days ago, Photoshop Elemets freeze during startup. I tried to install Photoshop Elements 7.0 (trial version) and got a fault message when this tried

  • Basic Requirements to develop Queries

    Hi, We are going to develop Queries. Please let me know Which type of information we need to get from the user to develop queries. Regards, Chetana...