Prepared Statement Slow. ~Baffled~. Will the sun rise again?

HELP! (PANIC), Disaster
Problem?: Its slow.
How can you help?: Explain why and make suggestions to fix it.
NOTES:
1) there are indices on pd_idnum and pd_nappi_product_id
2) over 92000 records in the product table
Code Follows:
import java.sql.*;
import java.text.SimpleDateFormat;
public class DBTest
static PreparedStatement pstmtNewNappi = null;
ResultSet rsNappi6=null;
Connection myConn = null;
int pd_idnum=0;
SimpleDateFormat sDateFmt = new SimpleDateFormat("yyyyMMdd");
SimpleDateFormat sTimeFmt = new SimpleDateFormat("hhmmss");
* Constructor for DBTest.
public DBTest()
super();
try
Class.forName("org.gjt.mm.mysql.Driver");
myConn = DriverManager.getConnection(
"jdbc:mysql://carl-lin:3306/mxprod", "carl", "lrac1234");
pstmtNewNappi = myConn.prepareStatement(
"SELECT pd_idnum FROM product WHERE pd_nappi_prod_id=?");
catch(ClassNotFoundException cnfe){cnfe.printStackTrace();}
catch(SQLException sqle){sqle.printStackTrace();}
public boolean isNewNappi(String nappi) throws SQLException
if(nappi != null)
pstmtNewNappi.setInt(1, Integer.parseInt(nappi));
System.out.println("before execute"
+new java.util.Date().getTime());
// This single line of code takes 2 seconds!! Why?
rsNappi6 = pstmtNewNappi.executeQuery();
System.out.println("after execute"
+new java.util.Date().getTime());
if(rsNappi6.next())
//if im in here the nappi is not new
pd_idnum = Integer.parseInt(rsNappi6.getString("pd_idnum"), 10);
return false;
return true;
public static void main(String[] args)
try
DBTest dbt = new DBTest();
boolean yes = dbt.isNewNappi("43");
System.out.println("yes: " + yes);
catch(SQLException sqle)
sqle.printStackTrace();
Maybe PreparedStatements are only fast for inserts(Forgive me for guesing)
Any help would be greatly appreciated

Oh that came back like lighting allright but i got my hands on some more code here that (if my reasoning is correct) suggest that I'm using the prepared statement in the wrong way, but I can still not figure out why it is wrong. The DB is not the problem and I think the code below and its output is testament to that. Now that i've got fast code, I'm still not content because I still cant see what is wrong with the original code. In order for me to keep my sanity as a programmer I HAVE to know --WHAT IS WRONG aaaargh
Thanx for the help so far
Dewet
optimal code follows:
import java.sql.*;
public class Fix
public static void main(String[] args)
ResultSet prodSet = null;
String nappi = null;
String sql = null;
try
Class.forName("org.gjt.mm.mysql.Driver");
Connection myConn = DriverManager.getConnection("jdbc:mysql://carl:3306/mxprod?user=carl&password=lrac1234");
sql = "select pd_prod_name, pd_prod_name_mk from product where pd_nappi_prod_id = ?";
PreparedStatement stmt2 = myConn.prepareStatement(sql);
nappi = "43";
for (int i= 0; i < 10; i++)
               System.out.println(i);
System.out.println(new java.util.Date().getTime());
stmt2.setString(1, nappi); // Nappi
prodSet = stmt2.executeQuery();
if(prodSet.next())
{*nappi found*/}     
System.out.println(new java.util.Date().getTime());
if (stmt2 != null) stmt2.close();
myConn.close();
catch( Exception e )
e.printStackTrace();
output:
0
1055320536664
1055320536694
1
1055320536694
1055320536694
2
1055320536704
1055320536704
3
1055320536704
1055320536714
4
1055320536714
1055320536714
5
1055320536714
1055320536714
6
1055320536724
1055320536724
7
1055320536724
1055320536724
8
1055320536734
1055320536734
9
1055320536744
1055320536744

Similar Messages

  • When will the Sun Ray 3 DTU  be released?

    Hi ,
    I heared that the Sun Ray 3 will be released on Feb. 2010.
    Is it true&#65311;
    Thanks
    Edited by: tigerofcn on Feb 20, 2010 12:19 AM

         Nobody knows when the iPod touch 6th generation is coming out. My best guess is this fall because according to the history, every iPod touch model was released in fall. I am like u too, I want an iPod 5 but I want to know when the 6th generation is coming out so I can get it.
                                                                  Hope this helped,
                                                                             Jojome54

  • Prepared statement - setDate(index, sql.Date, Cal) Help!

    Hi everyone, I'm creating a form to query an Oracle table. I'm setting up the search criteria which includes a start and end date. (in this example I've just used the start date)
    I get all the search parameters into my JSP and I created the following Calendar objects:
    // Calendar creation
    Calendar startCal = Calendar.getInstance();
    startCal.set(start_year, start_month, start_day, start_hour, start_minute);
    Calendar endCal = Calendar.getInstance();
    endCal.set(end_year, end_month, end_day, end_hour, end_minute);
    //define a sql.Date value for start and end date
    java.sql.Date startDate = null;
    java.sql.Date endDate = null;I then create a string that contains my SQL statement:
    String sqlStmt = "select dateValue, value3 from someTable where dateValue >= ? and value2 = ?";In my Prepared Statement I pass in the following information:
    ps = c.prepareStatement(sqlStmt);
    ps.setDate(1, startDate, startCal);
    ps.setString(2, searchValue);My question is the following - I define the hour and minute in my Cal object - will that information get passed into my "startDate" sql.Date object? According to the API it should work (at least that's my understading of it):
    http://java.sun.com/j2se/1.4.2/docs/api/java/sql/PreparedStatement.html#setDate(int,%20java.sql.Date,%20java.util.Calendar)
    My search does not blow up or report any errors but it never finds a match - even when I put in parameters that I know are a match.
    Any feedback is appreciated.

    I think I got it. my java.sql.Date can't be null.
    java.sql.Date startDate = null;
    java.sql.Date endDate = null;needs to be:
    java.util.Date startCalendarDate = startCal.getTime();
    java.util.Date endCalendarDate = endCal.getTime();
    java.sql.Date startDate = new java.sql.Date(startCalendarDate.getTime());
    java.sql.Date endDate = new java.sql.Date(endCalendarDate.getTime());

  • Performance issue doing a prepare statement with LIKE

    Hi
    I'm doing a preparestatement like this
    select foo
    from bar
    where des like ?
    and then do the prepare with the string 'foo%'
    If I do the prepare of this variable, the query is very slow. If I don't do the prepare, the query is very fast. Can anyone help me out on this? DBA's will kill me if I don't use prepare statements but users will kill be if the query is slow...
    Thank you!
    HappyGuy

    As indicated in the last reply this probably has to do with use of string literals over bound variables
    With a prepared statement the optimiser dosen't get the chance to use histograms against your data... so whilst it might be more efficent to drive off an index for some of the searches it looses access to the data (histograms) that enable it to make this decission...
    Hints are probably the way to go... if your sure that driving off a index is always going to be the most efficent...
    Using explain (inside of JDeveloper9i or turning on the autotrace functionality inside of sqlplus) will give you some idea of how Oracle would drive the query if you use a string literal
    Dom

  • Connection/ResultSets/Prepared Statement opening and closing

    Hi all another question that was sparked by a thread that I recently read. I believe it was duffmo who got the code from jverd. The code I am referring to is to have an open and close connection specified in a Utility or Database class. I wanted to know if there was any issues with having methods that open and close connections/result sets/ preparedStatements. Currently I am putting the finally blocks inside each of my methods. There is obvious benefits to putting the methods in a class on their own (namely code re-use) but I wanted to know if there are any dangers. (This may seem like a dumb question, but I've found from experience it's the things that you don't know that will cost you loads of time).
    thanks again.

    Hi all another question that was sparked by athread
    that I recently read. I believe it was duffmo who
    got the code from jverd. Generally speaking it's fine.
    But as always you may have some long term design
    issues to think about. If you build a simple
    framework that consists of one class and that does
    all that your program does then great.
    Once you start add more complexity though you'll want
    to be careful that you aren't reinventing the Spring
    wheel or even ending up implementing your own
    connection pool. Both of which, judging from posts
    here seem to happen from time to time.
    So I guess all in all, yes it's much better than
    scattering the code all about but depending on what
    you are going to be doing with it you may want to
    look at the various ORM frameworks to see if they are
    really the direction you should be going in.Thanks for the information cotton. I just wanted to make certain that it was a sensible thing to do. When I had first asked about connections I was told they should be opened an closed in the same spot, unfortunately I took that explanation a little too much to heart, and started opening and closing every connection resultset and prepared statement in each of the DAO classes that I was using.
    Guess it's going to be a bit of work to refactor, but worth it for the cleaner code that will result.

  • Using partition in prepared statement

    Hello,
    I am connecting to an oracle 9i database and write a prepared statement like
    String query = "SELECT * FROM ADM.TABLE1 PARTITION (TABLE1_?)";
    PreparedStatement pstmt = dbConnection.prepareStatement(query);
    pstmt.setString(1, "20" + callDate); // Partitions are like TABLE1_20030605
    ResultSet rs = pstmt.executeQuery();
    I get this error ORA-00933: SQL command not properly ended
    Any ideas if i am substituting the value correctly or if this is the right way to use prepared statement ?

    It is the wrong way to use a prepared statement.
    You will need to create the string dynamically.

  • Beginner question about prepared statements...PLEASE help! :-)

    First let me say thanks for the assistance. This is probably really easy to do, but I'm new to JSP and can't seem to figure it out.
    I want to dynamically populate a table that shows whether a particular person has an appointment at a given date and time with a user. To do this, I want to query the MySQL database for the lastname of the person with the appointment that occurs with the user at the year, month, date, and time, in question.
    THE CODE BELOW DOESN'T WORK (obviously) BUT SOMEWHAT ILLUSTRATES WHAT I'M TRYING TO ACCOMPLISH:
    <%
    Driver DriverTestRecordSet = (Driver)Class.forName(MM_website_DRIVER).newInstance();
    Connection ConnTestRecordSet = DriverManager.getConnection(MM_website_STRING,MM_website_USERNAME,MM_website_PASSWORD);
    PreparedStatement StatementTestRecordSet = ConnTestRecordSet.prepareStatement("SELECT lastname FROM appts_pid1 WHERE user_id='<%=(((Recordset1_data = Recordset1.getObject(user_id))==null || Recordset1.wasNull())?"":Recordset1_data)%>' AND year='<%= yy %>' AND month='<%= months[mm] %>' AND date='<%= dates[dd] %>' AND appttime='16:15:00'");
    ResultSet TestRecordSet = StatementTestRecordSet.executeQuery();
    boolean TestRecordSet_isEmpty = !TestRecordSet.next();
    boolean TestRecordSet_hasData = !TestRecordSet_isEmpty;
    Object TestRecordSet_data;
    int TestRecordSet_numRows = 0;
    %>
    The real problem comes in the prepared statement portion. If I build the prepared statement with static values like below, EVERYTHING WORKS GREAT:
    PreparedStatement StatementTestRecordSet = ConnTestRecordSet.prepareStatement("SELECT lastname FROM appts_pid1 WHERE user_id='1' AND year='2002' AND month='October' AND date='31' AND appttime='16:15:00'");
    But when I try to use dynamic values, everything falls apart. It's not that the values aren't defined, I use the user_id, year <%= yy %>, month <%= months[mm] %>, etc. elsewhere on the page with no problems. It's just that I can't figure out how to use these dynamic values within the prepared statement.
    Thanks for reading this far and thanks in advance for the help!!!!

    Hi PhineasGage
    You are little bit wrong in your
    your preparedStatement.
    Expression tag within scriptlet tag is invalid.
    Whenever you are appending the statement with
    expression tag, append it with "+" and remove
    expression tag.
    Hopefully it will work
    ThanksThanks for the response!
    I know that the expression tag within scriptlet tag is invalid. I just need a workaround for what I want to do.
    I'm unclear what you mean by "Whenever you are appending the statement with expression tag, append it with a "+" and remove expression tag".
    Could you give an example?
    In the meantime, I've been trying to digest the docs on prepared statements and have changed the code to look like:
    PreparedStatement StatementTestRecordSet = ConnTestRecordSet.prepareStatement("SELECT lastname FROM appts_pid1 WHERE user_id= ? AND year= ? AND month= ? AND date= ? AND appttime='13:15:00'");
    StatementTestRecordSet.setInt(1,1);
    StatementTestRecordSet.setInt(2,2002);
    StatementTestRecordSet.setString(3,"October");
    StatementTestRecordSet.setInt(4,31);
    Again, WITH THE STATIC VALUES, THIS WORKS FINE...but when I try to use expressions or variables like below, things don't work:
    StatementTestRecordSet.setInt(2,<%= yy %>);
    Obviously, I'm doing something wrong, but there has to be a way to use variables within the prepared statement.
    ALSO, the values are being passed to this page via URL in the form:
    samplepage?user_id=1&year=2002&month=October&date=31
    Based upon this information, is there another way (outside of stored procedures in the db) to do what I want to do? I'm open to ideas.

  • Required Prepared Statement help

    Consider the following query
    select col2, col3
    from table1
    where col1 = ?
    I can set the bindings for the prepared statement as pStmt.setString(1, value);
    but sometimes I need all the rows in the table therefore the query would be like
    select col2, col3
    from table1
    where col1 = col1
    I would like to set the first query's bindings for the prepared statement to execute like the second one.
    Please do not ask me to create two different queries. I know it is possible to do it and I would appreciate if you can guide me as to how to set the bindings. Thanks,

    Adam Martin wrote:
    Sorry, you cannot treat a bind variable like a bind some of the time and literal SQL text the other part of the time.
    How about something like this:
    select col2, col3
    from table1
    where col1 between ? and ?When you want a specific value, you can say "between 23 and 23" and when you want all values, you can put extremes in like "between -999999 and 999999" so that all rows a returned.
    This is not to say that this is a great approach, but it seems like it would technically allow you to do what you wanted.This is an EXCELLENT approach to confuse the optimizer & produce poor performance.
    I suspect that using the same EXPLAIN PLAN to bring back 1 or and bring back all rows;
    will be suboptimal for a subset of all executions.

  • Using Subquery in Prepared Statement

    can i use subquery in my insert using prepared statement
    need to specify the * property
    eg: insert into table1 values(select * from table2)

    can i use subquery in my insert using prepared
    statement
    need to specify the * property
    eg: insert into table1 values(select * from table2)Subqueries are perfectly okay, of course, but I think the proper idiom is:
    INSERT INTO foo(a, b, c)
    SELECT x, y, z
    FROM bar
    WHERE  x = 'baz'MOD

  • Unable to set string in prepared statement

    Hi all,
    I just want to set an string to a prepared stmt.
    the setting string is in the format..... the integers with comma saparated....
    str="23,55,22"
    ps.setString(1,str)
    The prepare statement is taking only the first integer... i.e. 23
    can any one help me out..........
    thanks in advance,
    prakhyath

    if i am not mistaken.... If I create the Prepared
    Statement after receiving the arguments that are to
    be provided to it.... the actual purpose.. Of using
    a prepared statement is not served at all....Not creating a new Statement each time, is only one of the purposes of PreparedStatement. In this case, since the arguments should be ints (and I hope you are checking that), then it doesn't make much of a difference. But a PreparedStatement is alos used to easily facilitate the proper quoting and escaping of the parameters set, which almost eliminates any chance of an SQL injection attack. There are also a few other convienences associated with a PreparedStatement, but, in this case, you are probabyl right in that there is no advantage of PreparedStatement over Statement (as long as you are checking that the arguments provided are actually ints, otherwise you are opening yourself up to an injection attack).

  • Oracle Cached Prepared Statement

    We recently upgraded from WL 8.1 SP3 to WL 9.2 and in the process updated the JDBC Driver for Oracle from 10.2.0.1 to 10.2.0.2. After we went live we started seeing issue in one table. The table contains some special character which is not suppose to be there.
    Here is the code & table details
    PreparedStatement pstmt = cn.prepareStatement("INSERT INTO INFO_TABLE(user_name,user_status) values (?,?)");
    pstmt.setString(1,requestObject.getUserName());
    if(requestObject.isValidUser)
    pstmt.setInt(2,requestObject.getStatus());
    }else
    pstmt.setNull(2,Types.VARCHAR);
    cn.commit();
    Table description:
    USER_NAME VARCHAR2(60);
    USER_STATUS VARCHAR2(5);
    - The USER_STATUS columns valid values are 0-4 or NULL.
    The problem is on certain occasions the valid user value in the table is some special character. I got the ascii value of this character as 128. We don't know yet whether setting int value and varchar (null) value on two different flow (but cached prepared statement) is the issue.
    We can fix the code to use uniform data type but we need to be sure this is what causing the problem. Further when I read the docs http://e-docs.bea.com/wls/docs90/jdbc_admin/jdbc_datasources.html
    I can associate the problem I face with this pointer however as I said, we need some sort of confirmation to make this change in the production code.
    Here is what I am specifically looking for
    1. Is there a way to confirm this problem?
    2. Can we log the prepared statement being executed and the binded value being sent to the Oracle DB?
    I suspect the VARCHAR null type is being casted to int value 128.
    Would really appreciate any pointers on this.
    Thanks

    Purushothaman Thambu wrote:
    We recently upgraded from WL 8.1 SP3 to WL 9.2 and in the process updated the JDBC Driver for Oracle from 10.2.0.1 to 10.2.0.2. After we went live we started seeing issue in one table. The table contains some special character which is not suppose to be there.
    Here is the code & table details
    PreparedStatement pstmt = cn.prepareStatement("INSERT INTO INFO_TABLE(user_name,user_status) values (?,?)");
    pstmt.setString(1,requestObject.getUserName());
    if(requestObject.isValidUser)
    pstmt.setInt(2,requestObject.getStatus());
    }else
    pstmt.setNull(2,Types.VARCHAR);
    cn.commit();
    Table description:
    USER_NAME VARCHAR2(60);
    USER_STATUS VARCHAR2(5);
    - The USER_STATUS columns valid values are 0-4 or NULL.
    The problem is on certain occasions the valid user value in the table is some special character. I got the ascii value of this character as 128. We don't know yet whether setting int value and varchar (null) value on two different flow (but cached prepared statement) is the issue.
    We can fix the code to use uniform data type but we need to be sure this is what causing the problem. Further when I read the docs http://e-docs.bea.com/wls/docs90/jdbc_admin/jdbc_datasources.html
    I can associate the problem I face with this pointer however as I said, we need some sort of confirmation to make this change in the production code.
    Here is what I am specifically looking for
    1. Is there a way to confirm this problem?
    2. Can we log the prepared statement being executed and the binded value being sent to the Oracle DB?
    I suspect the VARCHAR null type is being casted to int value 128.
    Would really appreciate any pointers on this.
    ThanksHi. I don't think there's any issue with WebLogic here, but the code you show
    might confuse some drivers. I highly recommend using setString for all
    varchar/char/varchar2 columns, not setInt(). If requestObject.getStatus()
    has to return an int, try this:
    if(requestObject.isValidUser)
    pstmt.setString(2, (""+ requestObject.getStatus()) );
    Joe

  • How to Insert Character using Prepared statement

    Hi All,
    Can anyone let me know how can I insert character using prepared statement.
    Thanks
    Sameer

    In the future JDBC related questions should be posted into the JDBC forum.
    Can you please provide some more information about what you are trying to do? It isn't clear to me. Are you trying to update a CHAR field?

  • Urgent: Prepared Statement

    Hi Friends,
    I am doing update using Prepared statement. I have one date field in where clause. And the value of date field is null. e.g. where clr_dte is null.
    In my code I'm using ps.setNull(1, Types.DATE);
    But it is not working. I'm getting null resultset back.
    Can anybody tell me what am i doing wrong ?
    I would appreciate your help.
    Thanks in advance.
    -Priya

    Here is my query statement & below that my prepare statement. Please see the bold part.
    Thanks.
    update tnr134_pyb_rcv_shr "           +
                                                                                                   "set      updt_tsp                = ? "      +
                                                                                                   ",          updt_usr_id               = ? "      +
                                                                                                   ",          bulk_req_id               = ? "      +
                                                                                                   "where     ANNC_SMRY_ID          = ? "     +      
                                                                                                   "and     BBH_SECR_NUM          = ? "     +          
                                                                                                   "and     BBH_SECR_CRT_TSP     = ? "     +
                                                                                                   "and     CLNT_ACCT_NUM          = ? "     +      
                                                                                                   "and     CLNT_CKDGT_NUM          = ? "     +      
                                                                                                   "and     CLNT_SFX_CDE          = ? "     +
                                                                                                   "and     CLNT_PRFX_CDE          = ? "     +      
                                                                                                   "and     SOD_ACCT_NUM          = ? "     +
                                                                                                   "and     SOD_CKDGT_NUM          = ? "     +      
                                                                                                   "and     SOD_SFX_CDE               = ? "     +
                                                                                                   "and     SOD_PRFX_CDE          = ? "     +
                                                                                                   "and      REG_CDE                    = ? "     +
                                                                                                   "and     PY_PREF_NUM               = ? "     +
                                                                                                   "and     POSN_STAT_CDE          = ? "     +
                                                                                                   "and     PY_PREF_ITEM_NUM     = ? "     +
                                                                                                   "and     PY_SEQ_NUM               = ? "     +
                                                                                                   "and     PYB_RCV_CDE               = ? "     +
                                                                                                   "and     CLR_DTE                    = ? "     +
                                                                                                   "and     STLMT_DTE               = ? "     +
                                                                                                   "and     ACRL_DTE               = ? "     +
                                                                                                   "and     py_seq_item_num          = ? "     +
                                                                                                   "and      updt_tsp               <= ? "     +
                                                                                                   "and     curr_state_cde in      (select     oper_subsys__st_id "          +
                                                                                                                                      "from     tnr113_st_to_stat "               +
                                                                                                                                      "where     dsply_txt          = 'Open' "     +
                                                                                                                                      "and     dsply_typ_cde     = 'PAY' "     +
                                                                                                                                      "and     oper_subsys_id     = 5)";
    Prepared statement
    argPs.setTimestamp     (1,          argUpdateTsp);                                                                 // updt_tsp
         argPs.setString          (2,          getUserId());                                                                 // updt_usr_id
         argPs.setString          (3,          getBulkRequestId());                                                       // bulk_req_id
         argPs.setInt          (4,          Integer.valueOf(argVariables[8]).intValue());                         // annc_smry_id
         argPs.setString          (5,          argVariables[2]);                                                            // bbh_secr_num
         argPs.setTimestamp     (6,          java.sql.Timestamp.valueOf(argVariables[9]));                         // bbh_secr_crt_tsp
         argPs.setBigDecimal     (7,          new java.math.BigDecimal(argVariables[3]));                              // clnt_acct_num
         argPs.setBigDecimal     (8,          new java.math.BigDecimal(argVariables[10]));                         // clnt_ckdgt_num
         argPs.setString          (9,          argVariables[11]);                                                            // clnt_sfx_cde
         argPs.setString          (10,     argVariables[12]);                                                            // clnt_prfx_cde
         argPs.setBigDecimal     (11,     new java.math.BigDecimal(argVariables[13]));                         // sod_acct_num
         argPs.setBigDecimal     (12,     new java.math.BigDecimal(argVariables[14]));                         // sod_ckdgt_num
         argPs.setString          (13,     argVariables[15]);                                                            // sod_sfx_cde
         argPs.setString          (14,     argVariables[16]);                                                            // sod_prfx_cde
         argPs.setString          (15,     argVariables[6]);                                                            // reg_cde
         argPs.setShort          (16,     Integer.valueOf(argVariables[7]).shortValue());                    // py_pref_num
         argPs.setString          (17,     argVariables[17]);                                                            // posn_stat_cde
         argPs.setShort          (18,     Integer.valueOf(argVariables[19]).shortValue());                    // py_pref_item_num
         argPs.setShort          (19,     Integer.valueOf(argVariables[25]).shortValue());                    // py_seq_num
         argPs.setString          (20,     argVariables[24]);                                                            // pyb_rcv_cde
         if(argVariables[21] == null || argVariables[21].equals("null")){
                   argPs.setNull(21,java.sql.Types.DATE);
         else{
              argPs.setDate          (21,     java.sql.Date.valueOf(argVariables[21]));                         // clr_dte
         if(argVariables[22] == null || argVariables[22].equals("null")){
                   argPs.setNull(22,java.sql.Types.DATE);
         else{
              argPs.setDate          (22,     java.sql.Date.valueOf(argVariables[22]));                         // stlmt_dte
         if(argVariables[23] == null || argVariables[23].equals("null")){
              argPs.setNull(23,java.sql.Types.DATE);
         else{
              argPs.setDate          (23,     java.sql.Date.valueOf(argVariables[23]));                         // acrl_dte
         argPs.setShort          (24,     Integer.valueOf(argVariables[26]).shortValue());                    //py_seq_item_num
         argPs.setTimestamp     (25,     java.sql.Timestamp.valueOf(argVariables[18]));                         // max(updt_tsp)

  • I just upgraded my system to Mountain Lion. If I restore my Macbook Pro back to the very beginning state, will the Mountain Lion be removed or not? Thank you

    I just upgraded my system to Mountain Lion. If I restore my Macbook Pro back to the very beginning state, will the Mountain Lion be removed or not? Thank you

    The only problem that I forsee is that some have reported problems getting machine-specific builds of Lion via Internet Recovery. Not sure if it's working yet or not. But you could give it a shot, I suppose. Basically what you want to do is 'prepare your computer for resale' - just like it came out of the box. Kappy, a pretty wonderful and very knowledgeable man, has tip for that which I have copied and will paste below:
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Erase the hard drive:
        1.    Select Disk Utility from the main menu and click on the Continue button.
        2.    After DU loads select your startup volume (usually Macintosh HD) from the left side list. Click on the Erase tab in the DU main window.
        3.    Set the format type to Mac OS Extended (Journaled.) Click on the Erase button and wait until the process has completed.
        4.    Quit DU and return to the main menu.
    Reinstall Lion: Select Reinstall Lion and click on the Install button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Good luck,
    Clinton

  • HT1349 My ipod was submerged in water monentarily. I have dried it with a hair dryer and set it in the sun for 1 hour. It now will turn on and only bring up the connect to itunes screen. My keypad is locked and will not unlock by connecting to itunes.

    My ipod was submerged in water momentarily. I have dried it with a hair dryer and have placed it in the sun for 1 hour.  It will now turn on but will only bring up the connect to itunes screen. When I connect to itunes it is not recognized because it is locked with a security code. I have tried to reset the ipod using the instructions in the user manual to no avail. The accessibility screen is functional because I can turn on/off the voice over and the black and white screen. I think I am making progress but cannot unlock it. Does anyone have any other suggestions? Thanks

    Unfortunately, using a hair dryer or placing the iPhone in sunlight, at best, will dry the outside of the device. If water got inside, it may still be possible that this water has not dried and can short out the internal battery or cause other circuit damage ... and what you are seeing may be the results of that. I would recommend that you leave the iPhone turned off and take it to your local Apple Store. They may be able to help, but I wouldn't expect them to offer you a replacement. Sorry!

Maybe you are looking for

  • Do I have to repackaged my content when my certificates expire?

    No, the content does not have to be repackaged. Flash Access has a feature where the license server will still vend licenses for any number of expired certs, as long as the content was packaged when the certificated was not expired.  This is needed s

  • How to recover security questions?

    I followed links but cannot reset or recover my security questions. Need step by step assistance.

  • ORA-01034: ORACLE not available in Oracle XE.

    Hi, diarilly i work with Oracle XE run on Windows XP Profesional SP2, 40GB Hard Disk, 512 RAM y Intel Pentium 4(1.60 GHz.), ocassionally i connect to Oracle XE with Apex 2.1 or SQL Developer 1.2 or SQL*Plus, and display message error: ERROR: ORA-0103

  • After paying for a song, the whole song did NOT download.  How to get the whole song?

    I bought the songs, downloaded them, synced them to my iPod, then clicked play. Two of the new songs stopped playing at around the 50 second mark. So, I played them again to check to make sure I didn't just fast forward... Same thing happened again.

  • 10g on Windows XP

    HI Gentlemen, I installed 10g on my XP Pro; however, it claimed that "Could not install OCR". Is it very important or can I skip the problem? Thanks, kind regards from Miklos HERBOLY