Chttp (approaching problem)

I need to ask a different question:
Say I have a URl that looks like this:
something.com?variable1=938794&variable=052307.bleh
something.com?variable1=000658&variable=052307.mick
something.com?variable1=986522&variable=052307.bert
variable one is always different but variable two will
alsways be the same (and yes ends in that wierd extension)
If I know the file date and extension how do I get arouns
variable1 that is always different and download that file to a
local directory using cfhttp?
Anyone have an example I can work with?

No they do not the same....
DELETE is a DML command whereas TRUNCATE is a DDL command.
- DELETE may be rolled back
- TRUNCATE not
- DELETE will check whether constraints are violated
- TRUNCATE not - but it will just not do aniything if constraints are around
- DELETE is a row based command
- TRUNCATE only sets the high-water-mark of a table
- DELETE may be part of a transaction
- TRUNCATE will end the transaction by doing an implicit commit
hth

Similar Messages

  • URGENT PLEASE:How can I run a a class file on the Apache server?

    Hi Guys and Gurus,
    I am seeking some favor all of experienced gurus, i.e.
    How can I run a a class file on the Apache server? Can I run through an Applet?
    How can I set Environment variables in Windows2000 Professional Environment?
    Actually, I want to extract some records from a MySQL Database running on Apache Server. I wrote a program just to select the columns and show them. It is now a Class file, Now how can I run this class file from the Server???
    The code is here
    import java.sql.*;
    public class RecordShow {
    public static void main(String args[]) {
    String url = "jdbc:mysql://localhost/myhost";
    Connection con;
    String query = "select mytable.column," +
    "from mytable " +
    "where mytable.column = 1";
    Statement stmt;
    try {
    Class.forName("com.mysql.jdbc.Driver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    con = DriverManager.getConnection(url,
    "myuser", "mypassword");
    stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery(query);
    ResultSetMetaData rsmd = rs.getMetaData();
    int numberOfColumns = rsmd.getColumnCount();
    int rowCount = 1;
    while (rs.next()) {
    System.out.println("Row " + rowCount + ": ");
    for (int i = 1; i <= numberOfColumns; i++) {
    System.out.print(" Column " + i + ": ");
    System.out.println(rs.getString(i));
    System.out.println("");
    rowCount++;
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.print("SQLException: ");
    System.err.println(ex.getMessage());
    Please advise... THANKS
    VJ

    Ehm, I wasn't referring to you at all... read up,
    there's a comment by jschell saying that CGI might be
    easier/better for his purposes.
    Yep.
    I know PHP/Perl/whatever might be easier for some
    purposes, but only if you happen to know them and want
    to/are able to use them. Ok. But you aren't the one asking the question are you. And the person who asked the question seems to have absolutely no familiarity with Apache or applets.
    So whatever they do they are going to have to learn a lot.
    And that does indeed suggest that in all likelyhood they have not investigated the alternatives.
    And for the vast majority of internet applications, especially with smaller projects (obvious this person is not working with a large team), using perl, or something besides java, is going to be the best business solution. It is simpler, and more secure (probably due to the fact that it is simpler.)
    Since this is a Java forum, I
    answer under the assumption that people have made a
    choice one way or another to use a Java solution to
    their problem, so I try to solve it in Java first, and
    only when that fails (very seldom) do I turn to other
    solutions.You approach problems by arbritrarily deciding to try to solve it in java first and only if you fail do you then look to other solutions?
    My first step is to try to figure out which of the various avenues is going to cost less. (And a secondary, but non-trivial concern, is then to convince the customer that just because they have heard of a buzz word like 'enterprise bean' that it doesn't mean that is a cost effective solution.) We must come from different worlds.

  • Java won't open in ie

    embedded microchip. using digi web browser appliance. using ie to contact ip address, gets to loading java script and
    get following:
    Java Plug-in 1.6.0_10-rc
    Using JRE version 1.6.0_10-rc Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\at220
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class com.tituslabs.monroe.applet.MonroeApplet.class not found.
    java.lang.ClassNotFoundException:
    com.tituslabs.monroe.applet.MonroeApplet.class
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown
    Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection
    failed:http://208.105.203.180/FS/WEB/com/tituslabs/monroe/applet/MonroeApplet/class.class
    at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 7 more
    Exception: java.lang.ClassNotFoundException:
    com.tituslabs.monroe.applet.MonroeApplet.class
    FOLLOWING ERROR FROM IE
    Java Plug-in 1.6.0_10-rc
    Using JRE version 1.6.0_10-rc Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\at220
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class com.tituslabs.monroe.applet.MonroeApplet.class not found.
    java.lang.ClassNotFoundException:
    com.tituslabs.monroe.applet.MonroeApplet.class
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown
    Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection
    failed:http://208.105.203.180/FS/WEB/com/tituslabs/monroe/applet/MonroeApplet/class.class
    at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 7 more
    Exception: java.lang.ClassNotFoundException:
    com.tituslabs.monroe.applet.MonroeApplet.class
    Does this on two different computers. On other computers it works OK.
    Any idea how to approach problem besides learning Java programming.
    (Our programmer is not able to resolve problem.)

    The problem isn't on your end. It's the attempt to access the class "http://208.105.203.180/FS/WEB/com/tituslabs/monroe/applet/MonroeApplet/class.class". It looks to me like that URL is screwed up - it should be looking for the "MonroeApplet.class" file, not the "class.class" file. I recommend contacting Titus Labs support.
    ~

  • Please Help - Connection Refused

    Hello,
    I am having trouble connecting to cloudscape database, have been working OK for the past
    couple weeks with an application that I have writen but now big problems!
    java -Djdbc.drivers=COM.cloudscape.core.RmiJdbcDriver Testjava.sql.SQLException: Connection refused to host: localhost; nested exception is:
    java.net.ConnectException: Connection refused: connect
    at RmiJdbc.RJDriver.connect(RJDriver.java:156)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    at COM.cloudscape.core.RmiJdbcDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:193)
    at Test.getConnection(Test.java:14)
    at Test.main(Test.java:54)
    *I am running cloudscape
    *set the class paths to point at
    - RmiJdbc.jar
    - cloudclient.jar
    I have written a small test program to check problem,
    //////////////////////////////////CODE LISTING/////////////////////////////////////////////
    import java.sql.*;
    import java.util.*;
    public class Test
    { static Connection conn = null;
    static Statement stmt = null;
    static ResultSet rset = null;
    private Test()
    public static Connection getConnection(String url) throws SQLException
    { DriverManager.setLoginTimeout(10);
    return DriverManager.getConnection(url);
    public static void close(Statement stmt)
    { if(stmt != null)
    { try
    { stmt.close();
    }catch(Exception e)
    { e.printStackTrace();
    public static void close(Connection conn)
    { if (conn != null)
    { try
    { conn.close();
    }catch(Exception e)
    { e.printStackTrace();
    public static void close(ResultSet rset)
    { if (rset != null)
    { try
    { rset.close();
    }catch(Exception e)
    { e.printStackTrace();
    public static void main(String [] args)
    { try
    { String url= "jdbc:cloudscape:rmi://localhost:2005/cloudscapeDB;create=true";
    conn = getConnection(url);
    stmt = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
    }catch(SQLException e)
    { e.printStackTrace();
    close(rset);
    close(stmt);
    close(conn);
    Please Help me!!!!

    It is obvious that noone is going to reply to me, so I have kind of solved this for myself,
    for some unknown reason my origonal program that worked fine doesnt now.!?!?!??!?
    However decided to approach problem from another side, and give both my desk and head a break.
    Below is now how I am connecting to a database and return a connection to it, it works,
    public static Connection getConnection() {
    String databaseName = "jdbc:rmi://" + "localhost" + ":1099/jdbc:cloudscape:CloudscapeDB;autocommit=true;create=true";
    try {
    Class.forName("RmiJdbc.RJDriver");
    } catch (ClassNotFoundException e) {
    System.out.println("PopulateTables: caught getting connection: " + e);
    Connection con = null;
    try {
    con = DriverManager.getConnection(databaseName); // , user, password);
    } catch (java.sql.SQLException se) {
    System.out.println("PopulateTables: caught getting connection: " + se);
    return con;
    Thanks me.

  • Oracle plsql stored procedure

    I want to write a procedure in which IN parameter will be a query [e.g. select * from employee] & I want to store the result of the query into OUT parameter...
    what will be the datatype for the OUT parameter & how to write the procedure??

    user10412263 wrote:
    this question was asked in interview of plsql...Idiotic question. An interviewer should determine if you know how to correctly use the tools in SQL and PL/SQL.. and not whether you know how to use it incorrectly. Even better - an interviewer should determine how you approach problems and how you will solve them using SQL and PL/SQL.
    Questions that need to answers directly from the manual? That is pretty useless as it is easy to use manuals as reference material and no-one memorises the entire manual. Simple example. A question about the syntax for a partition exchange (ALTER TABLE) is silly.. whereas a question about where, when and why you would use a partition exchange is critical. The former you can look up in the manual at anytime when coding partition exchanges. The latter is a skill that requires understanding Oracle concepts and correctly applying these.
    Remember this when you go for interviews. I realise one cannot always wait and choose the perfect job - but be careful landing in a job position where you will not grow your skills and knowledge because of an environment that values "+syntax knowledge+" higher than understanding and applying software engineering fundamentals and concepts.

  • Idoc Reduction CREMAS

    Hi,
    Is there an alternative to this approach :
    Problem: I create Vendor master idoc using basic type crema04 and message type cremas. Idoc reduction is present for this message type, so when the idoc is created only mandatory segment gets populated.
    Solution I tried : Through BD53 , create a ZCREMAS reduction message type , select the segments to be populated , enable them and activate them . Use this message type for the generation of the idoc.
    Question : Is there any alternative way to this method or this is the only way we can remove the idoc reduction for messag types?????
    Thanks ,

    Hi,
    Perhaps you can use this custom exit '001' in include in include program <b>LBD11F0Q</b> to filter IDoc segment.
    CALL CUSTOMER-FUNCTION '001'
        EXPORTING
           idoc_control_in  = pxf_idoc_control
           target_idoc_type = target_idoctp
           target_cim_type  = target_cimtyp
        IMPORTING
    *      idoc_control_out = pxf_idoc_control
           idoc_control_out = idoc_control_out
        TABLES
           idoc_data        = pxt_idoc_data
           idoc_status      = t_idoc_status.
    This is being in FM <b>MASTER_IDOC_DISTRIBUTE</b>.
    For SAP best practise, i would suggest to use reduce message type or segment filter.
    Again, hope this will help.
    Regards,
    Ferry Lianto

  • Maximizing web forms dynamically

    Forms 9.0.4(10g), RDBMS 9.2
    I am currently using the following code in a WHEN-NEW-FORM-INSTANCE form level trigger to maximize the web form window. Note that the window name is hardcoded.
    SET_WINDOW_PROPERTY('win_main',WINDOW_STATE,MAXIMIZE);
    In an effort to standardize this approach and reuse this code for other forms, I removed this code from the above trigger and created a WHEN-WINDOW-ACTIVATED form level trigger. I made the following substitution (hoping to dynamically capture the value of whatever window happen to be "active").
    SET_WINDOW_PROPERTY(:SYSTEM.EVENT_WINDOW,WINDOW_STATE,MAXIMIZE);
    This approach seems to work, however, not knowing much about these triggers and my relative inexperience in Forms, I ask the following questions:
    (1)Will this approach keep the active window "maximized", as the user switches from window to window in web forms? (2)Is this a 'best practices" approach? (3)How are others handling this issue?
    Any other approaches, problems with my current approach or comments are appreciated.
    Thanks in advance.
    Barry

    First read this thread:<br>
        MDI Window State in web forms
    <p>Maximizing the Form's active window is ok -- just don't maximize the Forms_MDI_window. You don't want your form to take up all the space on a user's screen if it does not need to.
    <p>I maximize the primary window in the Pre-Form trigger, then use a When-window-resized trigger to keep it that way. Our forms always have a single window named WINDOW0, so this works:<br>
    PROCEDURE PLL_WHEN_WINDOW_RESIZED IS
    -- Re-maximize the form's window.  If user clicks "Window, Tile" or
    -- "Window, Cascade", it causes the form's Window0 to shrink.  So
    -- calling this from the form's When-Window-Resized trigger maintains
    -- the desired display.
      W0 Window := Find_Window('WINDOW0');
    BEGIN
      If Get_Window_Property(W0,Window_State)<>'MAXIMIZE' then
         Set_Window_Property(W0,Window_State,Maximize);
      End if;
    END;<p>The above code was written for client/server Forms. Upon testing, I see that window state ALWAYS reports 'NORMAL', even when it is maximized. ...as stated in the other topic. But setting the state to maximize does keep the inner window maximized, anyway.

  • Integrate OpenOffice in web applications

    1) Approach - Problem 1
    I would like to integrate OpenWord in a web application,
    meaning that some objects in my web application will have related OpenWord files
    and the user should be able to edit this files online.
    (Files should be kept on server side.)
    So from my web application I should have Open Word running as Applet
    and editing files on the web server.
    Can this be possible?
    2) Problem 2
    I tried to run the SimpleViewer applet provided in SDK examples but it does not work because the pipe-name is composed by using the user.name property
    which of course my applet can not read.
    Thank you,
    PS: I posted this subject on OpenOffice forum also but maybe some people here have already experience like this.

    Don't cross-post:
    http://forum.java.sun.com/thread.jsp?thread=496751&forum=31&message=2342926
    http://forum.java.sun.com/thread.jsp?thread=496750&forum=63&message=2342922
    http://forum.java.sun.com/thread.jsp?thread=496749&forum=45&message=2342920
    http://forum.java.sun.com/thread.jsp?thread=496748&forum=331&message=2342919
    MOD

  • Finding appropriate block size?

    Hi All,
    I believe this might be basic question, How to find appropriate block size for building an database to an specific application?
    I had seen always default 8K block size is used every where(Around 300-350 databases i have seen till now)....but why and how do they estimate this block size blindly before creating production database.
    Also in the same way how memory settings are finalized before creating database?
    -Yasser

    Yasser,
    I have been very fortunate to buy and read several very high quality Oracle books which not only correctly state the way something works, but also manage to provide a logical, reasoned explanation for why things happen as they do, when it is appropriate, and when it is not. While not the first book I read on the topic of Oracle, the book “Oracle Performance Tuning 101” by Gaja Vaidyanatha marked the start of logical reasoning in performance tuning exercises for me. A couple years later I learned that Gaja was a member of the Oaktable Network. I read the book “Expert Oracle One on One” by Tom Kyte and was impressed with the test cases presented in the book which help readers understand the logic of why Oracle behaves as it does, and I also enjoyed the performance tuning stories in the book. A couple years later I found Tom Kyte’s “Expert Oracle Database Architecture” book at a book store and bought it without a second thought; some repetition from his previous book, fewer performance tuning storing, but a lot of great, logically reasoned information. A couple years later I learned that Tom was a member of the Oaktable Network. I read the book “Optimizing Oracle Performance” by Cary Millsap, a book that once again marked a distinct turning point in the method I used for performance tuning – the logic made all of the book easy to understand. A couple years later I learned that Cary was a member of the Oaktable Network. I read the book “Cost-Based Oracle Fundamentals” by Jonathan Lewis, a book by its title seemed to be too much of a beginner’s book until I read the review by Tom Kyte. Needless to say, the book also marked a turning point in the way I approach problem solving through logical reasoning, asking and answering the question – “What is Oracle thinking”. Jonathan is a member of the Oaktable Network, a pattern is starting to develop here. At this point I started looking for anything written in book or blog form by members of the Oaktable Network. I found Richard Foote’s blog, which some how managed to make Oracle indexes interesting for me - probably through the use of logic and test cases which allowed me to reproduce what I reading about. I found Jonathan Lewis’ blog, which covers so many interesting topics about Oracle, all of which leverage logical approaches to help understanding. I also found the blogs of Kevin Closson, Greg Rahn, Tanel Poder, and a number of other members of the Oaktable Network. The draw to the performance tuning side of Oracle administration was primarily for a search for the elusive condition known as Compulsive Tuning Disorder, which was coined in the book written by Gaja. There were, of course, many other books which contributed to my knowledge – I reviewed at least 8 of the Oracle related books on the amazon.com website.
    Motivation… it is interesting to read what people write about Oracle. Sometimes what is written directly contradicts what one knows about Oracle. In such cases, it may be a fun exercise to determine if what was written is correct (and why it is logically correct), or why it is wrong (and why it is logically incorrect). Take, for example, the “Top 5 Timed Events” seen in this book (no, I have not read this book, I bumped into it a couple times when performing Google searches):
    http://books.google.com/books?id=bxHDtttb0ZAC&pg=PA17#v=onepage&q=&f=false
    The text of the book states that the “Top 5 Timed Events” shown indicates a CPU Constrained Database (side note: if a database is a series of files stored physically on a disk, can it ever be CPU constrained?). From the “Top 5 Timed Events”, we see that there were 4,851 waits on the CPU for a total time of 4,042 seconds, and this represented 55.76% of the wait time. Someone reading the book might be left thinking one of:
    * “That obviously means that the CPU is overwhelmed!”
    * “Wow 4,851 wait events on the CPU, that sure is a lot!”
    * “Wow wait events on the CPU, I didn’t know that was possible?”
    * “Hey, something is wrong with this ‘Top 5 Timed Events’ output as Oracle never reports the number of waits on CPU.”
    * “Something is really wrong with this ‘Top 5 Timed Events’ output as we do not know the number of CPUs in the server (what if there are 32 CPUs), the time range of the statics, and why the average time for a single block read is more than a second!”
    A Google search then might take place to determine if anyone else reports the number of waits for the CPU in an Oracle instance:
    http://www.google.com/search?num=100&q=Event+Waits+Time+CPU+time+4%2C851+4%2C042
    So, it must be correct… or is it? What does the documentation show?
    Another page from the same book:
    http://books.google.com/books?id=bxHDtttb0ZAC&pg=PA28#v=onepage&q=&f=false
    Shows the command:
    alter system set optimizer_index_cost_adj=20 scope = pfile;Someone reading the book might be left thinking one of:
    * That looks like an easy to implement solution.
    * I thought that it was only possible to alter parameters in the spfile with an ALTER SYSTEM command, neat.
    * That command will never execute, and should return an “ORA-00922: missing or invalid option” error.
    * Why would the author suggest a value of 20 for OPTIMIZER_INDEX_COST_ADJ and not 1, 5, 10, 12, 50, or 100? Are there any side effects? Why isn’t the author recommending the use of system (CPU) statistics to correct the cost of full table scans?
    A Google search finds this book (I have not read this book either, just bumped into it during a search) by a different author which also shows that it is possible to alter the pfile through an ALTER SYSTEM command:
    http://books.google.com/books?id=ufz5-hXw2_UC&pg=PA158#v=onepage&q=&f=false
    So, it must be correct… or is it? What does the documentation show?
    Regarding the question of updating my knowledge, I read a lot of books on a wide range of subjects including Oracle, programming, Windows and Linux administration, ERP systems, Microsoft Exchange, telephone systems, etc. I also try to follow Oracle blogs and answer questions in this and other forums (there are a lot of very smart people out there contributing to forums, and I feel fortunate to learn from those people). As long as the book or blog offers logical reasoning, it is fairly easy to tie new material into one’s pre-existing knowledge.
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • My iPhone 5 is not being recognized by my iMac.  All my other devices, including iPod and iPad are recognized with no sync problems.  I've tried every approach with online help as well as an Apple advisor by phone.  Help?

    My iPhone 5 is not being recognized by my iMac.  All my other devices, including iPod and iPad are recognized with no sync problems.  I've tried every approach with online help as well as an Apple advisor by phone.  Help?  Any other suggestions other than going to an Apple Store?

    Back to life**
    Oh I know there are many other vocabulary mistakes but never mind them I was just too excited when I wrote all of that while typing very quickly
    P.S: if you have any question then ask and please do tell me if it works or not with u but I'm definitely sure it'll work so tell me this and we'll get excited together
    Also if you have an experience to share then do share it as well please.
    Peace

  • Display problems in IE, using Netlace Designs approach

    Display problems in IE, using Netlace Designs approach
    Could someone please look at
    www.tudo.co.uk/testing/magnification/
    I am trying to adjust some css code taken from Netlace
    Design's website
    for my purposes. The purpose is to enlarge an image on
    'hover' and to
    enlarge some text on 'hover'.
    What I have done works all right in Mozilla/Seamonkey.
    However, in IE,
    the 'text enlargement' does not work at all
    and when I am enlarging the image there is ***in IE*** a
    large grey
    surplus area at the bottom, which looks like a background
    area which has
    turned out to have too much height. I want to get rid of that
    superfluous grey area.
    How can I make sure it works in BOTH Mozilla and in IE?
    Thanks for your help.
    Adrian

    Hi ijmari,
    I checked out that page and don't see any Spry menubar in it.
    I'm assuming you've reverted back or removed it.
    If you still need/want help, please post the URL to the page
    that uses the menubar and demonstates the problem.
    --== Kin ==--

  • Weird mapping problem : suggested approach?

    I have a set of related processes activated by a top level process. One of the processes runs three mappings which pull data from SqlServer via three corresponding SqlServer views. The filters for the three mappings ask for rows greater than a particular date.
    When this process is run as part of the scheduled job, the data goes up to today minus one month. If run manually, the mappings start at the appropriate data but are providing all the data, including the last month.
    If you were trying to debug this problem, what would your top three approaches be?
    ak

    Checking the NLS date format is probably the top one.
    Check the views and ANY filtering conditions.
    I had an issue once where a time stamp was using to_timestamp incorrectly and was altering the data in an unacceptable format.
    Check anything in the process that touches the dates in any way at all.
    Try debugging the base mappings with a small subset of the data that contains rows that do and don't work in your case.
    Message was edited by:
    Greg Partenach

  • Is my approach to this problem correct?

    Hi, I'm new to Java and OO programming, and this is my first coding experience
    in Java, so, be patient...!
    I'd like to know if the approach I'm adopting for the following exercise is
    acceptable. Hints and critics on how could I improve it are the reason for this
    post, I don't want you make my homeworks ;-)
    The exercise asks to realize a simple list of telephone numbers containing
    namesurname/telephonenumber couples (namesurnames are unique). The
    list must be saved permanently on the disk, the user may be able to search a number
    providing a name, to add a new record, to remove and modify an existing record.
    Finally, it can be possible to load different data files. All these operations
    must be available via GUI.
    I still don't know how to create GUIs, so I thought that as a first step it
    could be a good move to develop the set of API to
    save/load/search/add/remove/change, and once these API work fine, create a GUI
    that uses these API.
    I have identified just one class that models this problem: the class that
    represents the whole set of names and telephone numbers, and I'd like to use it
    in this manner:
    nameNumsList.search("namesurname");
    nameNumsList.insert("namesurname", "number");
    nameNumsList.remove("namesurname");
    nameNumsList.change("namesurname", "number");
    nameNumsList.load("filename");
    nameNumsList.save("filename");
    To handle data persistence, I will store each item (one item for line) in a
    file, in this form: namesurname;number.
    To load data from file to memory I have been attracted to java.util.TreeMap, as
    this data structure:
    * provides ascending order of keys, that is useful for an ordered representation of keys/numbers;
    * offers methods to obtain values from keys (get), to add and modify
    keys/values (put) and to remove a key and its associated value (remove).
    One of the things that make me dubious is how to implement the filesystem to
    memory (load list) and the memory to filesystem (save list) bridge..
    Thanks for any suggestion,
    Paolo

    I tought the same thing, initially. But, suppose that
    name/number list contains 10000 records, and that I
    change just one of them.
    Do I understand correctly if I say that when I change
    a record of the list and want to save the change, I
    must iterate over 10000 records to save just one
    change?Yes, or just wait with the save till the application is about to exit. (You would probably use a database instead if this was a commercial application)
    Kaj

  • Need suggestions or possible approach for this problem

    Hello,
    I have a scenario and I want to develop an apex application for this scenario.
    The thing is I have mutiple report regions on a page which are querying the same tbl 'loans'. I have a button named 'Assign loan' at the top of the page and at bottom of the page I have buttons 'Save' and 'Complete'. Initially the multiple report regions should not be displayed, only after user clicks on the buton 'Assign loan', then only they should be visible. Similarly for the buttons 'Save' and 'Complete'. After the loan is assigned to a user the button 'Assign loan' should be disabled.
    Now Consider a situation where in a user logins to the application and clicks on the button 'Assign a loan', at this point i will update the table and set a flag, so that the user will get that particular record for the reports region. I mean this record should be locked for that user and shouldn't be available for other users. The thing it should work in a multi-user environment, i mean each user should get a different loan when they click the button 'Assign loan'. So, here the user is assigned a loan and he/she makes changes to the multiple report region editable items and he/she can either save the changes by clicking on the button 'Save' or they can click on the button 'Complete' which means the loan was reviewed and is completed. The user shouldn't be assigned an another loan until he/she reviews and completes a paticular loan already assigned to him. And another case would be the user does some changes to the multiple report region editable items and clicks the button 'Save' (menaing pending) the report changes should be saved and he shouldn't be assigned any new loan until he completes the already assigned loan.
    Can anyone please help me with their possible suggestions or an approach to this kind of problem.
    thanks,
    Orton

    It looks to me that the trickiest part is preventing more than one user from getting assigned the same loan. I've seen DBMS_LOCK used for a situation like this. It's been years so I'm a bit fuzzy on the exact details but it goes something like this:
    When the user clicks 'Assign a loan', try to get an exclusive generic lock:
       dbms_lock.request(lockhandle => 'LOAN_LOCK',
                      lockmode   => dbms_lock.X_MODE,
                      timeout    => 10);If another user already has a lock with this name, try again after the timeout until the lock is obtained (and probably only try a maximum number of times).
    Once the lock is obtained, get the next available unassigned loan and set the flag in the table. Now release the lock so the next user can get a loan assigned.
       dbms_lock.release(lockhandle => 'LOAN_LOCK');As long as everyone uses the same process for getting a loan assigned, only the user with a lock can modify the table. The rest of it (the logic around what buttons to show, requiring an assigned loan to be completed before getting another one assigned, etc.) should be relatively straightforward.

  • General problems with BT Vision's current approach...

    Firstly, in case anyone doesn't know where I'm coming from, I really enjoy the BT Vision service. I've got just the TV Package and I think that represents fantastic VFM. But it's not without (some serious) niggles, most of which I think BT need to take the time to think about because they should be within their power to correct and unresolved they will put some folk off the service and they'll go elsewhere.
    Limitated library availability. The "Box Sets" are great from old stuff like Buffy to new True Blood and Lost. But it's frustrating that you can't keep them on the servers permanently. It's simply not good enough to be told that you have until a certain date to watch an entire series. Also, the WB approach of drip feeding VOD to me just takes away the whole On Demand point of VOD. And it's frustrating to have gaps, where you have series 3 and 4 but not 1 and 2. You have new customers joining all the time, and it's frustrating to not start from the start, especially when you see the new stuff time out and disappear.
    Get the information right and the episodes in the correct order with no gaps. Time and time again this has been wrong and there's no excuse for it. It really spoils things. Get it right.
    Finding the content. It's all over the place, and takes many selections to navigate your way back to a series you're watching (and often the route changes). I'd like to see a configurable favourites menu, preferably with some way of ticking off the episodes that you've watched. Also, it would be very handy if you numbered the episodes so that they appear in the correct order in the search menu, this means numbering the single digit episodes as 01, 02 so that the search doesn't present you with 1, 10, 11, ..., 2, 20, ...
    I understand that the first issue is a problem. You have contract deals with the media owner and you have limitations on storage space. But you need to think long and hard about what it is that you're trying to provide to your customers. There are surely some series that you know (and can check) will always pull an audience (Lost, Desperate Housewives, Friends, Doctor Who) so you should consider having these permanently available. I was compelled to watch several series (Lost, Buffy) faster than I wanted to because it was going away. Unfortunately I've kept up the pace and now I've watched all of Buffy and I'm eager for more and considering going out and buying the box set and then being able to enjoy it at the pace I want to. Maybe that's what the media owner would like to happen, but it leaves me struggling to justify having BT Vision as well.

    I agree with you about the way series' are added. A while back I started watching 'Charley Boorman - By Any Means. BT put up the first 3 episodes but as yet haven't put up any more, leaving viewers wondering about his return journey from Australia.

Maybe you are looking for

  • Error occured while doing depreciation for an asset

    Hi, I could running the depreciation for an asset in AFAB t-code. The msg is ""Testrun Completed successfully" and "No document were created for this run". I have purchased the asset for the month of April and wanted to run the depreciation for that

  • Change Log / List for Org model

    Dear All, We are facing unknown changes in Org model every now and then. How can we trace out the change log or Change list for changes done in PPOMA_CRM transaction? Help me if some notes are there in this regard. I am unable to find any from my sid

  • Using of Bex Web Analyzer as Adhoc query?

    Hi, can we use the Bex Web analyzer as a preferred tool for designing the Adhoc query? Points willl be definitely assigned.

  • Cp5 - Bug? Editing backgrounds in external editor causes Cp5 to freeze

    Has anyone experienced this problem. From the library, I select a background graphic and select Edit With PaintDotNet (should not matter which editor is used) Make appropriate changes to graphic Save graphic Exit graphic editor Adobe Captivate goes '

  • External Harddrives - Manufacturers using the words 'for Mac'?

    Hi, I've learnt about the difference between PC and Mac HDD formats, and was about to buy an external HDD when something got me questioning my knowledge. I see that some manufacturers use the words 'for Mac' in their product name. And that the models