Placing a Low Level DB Function for Time Offset

Would any one be able to point me to any documentation on the Oracle 10g R2 release that might help me understand if there is a way to modify datetime query parameters and datetime query results at a low level in the DB? R12 of Oracle Apps does not handle global implementations very well when it comes to running 24/7 with sites around the globe and handling data stored with a time element. Everything is stored using the single server time zone. So I thought perhaps there might be a way to modify the DB at a low level to perform the offset of the value for any datetime parameter to correspond to the proper server time zone to pull data and then to also offset the queried datetime values to the users, via a session value, time zone. So I am thinking long shot but perhaps there is a way to insert a function call to a function built in C and linked in to the DB somehow or the DB listener or the DB connection driver software. I don't know. I am familiar with OCI and SQLCA but don't believe these offer this type of interjection with the DB I am looking for. Of course, if there is a simple solution I am all for that.
Thanks,
Jason

Adjusting the timezone at the session level doesn't do what I need it to do. At least based upon the tests I have done. And my research into changing the session DB time zone only applies to the new timestamp data types and not to the date data type.
However, if you think that changing the DB session time zone setting would help do what I have stated please tell me.
Thanks,
Jason

Similar Messages

  • TDMS Low level file functions and Saving Front Panel image

    Am using TDMS low level file functions to save while also plotting data in my data acquisition programme.  However, I also want to programmatically be saving the front panel image on every run of my data acquisition.  I have coded all other aspects, except the behavior of functionality of saving the front panel image on every successive runs of the application.  Unfortunately, I just have no idea on how to code this aspect on LabVIEW, and all effort to search for example codes on so far have not been successful.
    I would appreciate any useful hints or steps from anyone for me to follow, in order to accomplish this behavior, and that is being able to programmatically save my front panel images while using TDMS low level file functions in my File IO system of my application.
    Thanks in advance.

    Tebefia wrote:
    Am using TDMS low level file functions to save while also plotting data in my data acquisition programme.  However, I also want to programmatically be saving the front panel image on every run of my data acquisition.  I have coded all other aspects, except the behavior of functionality of saving the front panel image on every successive runs of the application.  Unfortunately, I just have no idea on how to code this aspect on LabVIEW, and all effort to search for example codes on so far have not been successful.
    I would appreciate any useful hints or steps from anyone for me to follow, in order to accomplish this behavior, and that is being able to programmatically save my front panel images while using TDMS low level file functions in my File IO system of my application.
    Thanks in advance.
    Did you see this link?
    CLA, LabVIEW Versions 2010-2013

  • Example using low level API POI for generating Excel??

    Hi
    is anyone know good URL that teaches generating Excel using low level API using Apache POI?
    The reason is because i want to set the password for either workbook/sheet in high level API but it cant be done.
    the only thing can be done using High level API is protect sheet without password.
    Any idea?
    Thanks

    There is quite a good pack of documentation that ships with HSSF. To answer your question, I have just gone to the how to page and copied the example below, hope it helps.
    short rownum;
    // create a new file
    FileOutputStream out = new FileOutputStream("workbook.xls");
    // create a new workbook
    HSSFWorkbook wb = new HSSFWorkbook();
    // create a new sheet
    HSSFSheet s = wb.createSheet();
    // declare a row object reference
    HSSFRow r = null;
    // declare a cell object reference
    HSSFCell c = null;
    // create 3 cell styles
    HSSFCellStyle cs = wb.createCellStyle();
    HSSFCellStyle cs2 = wb.createCellStyle();
    HSSFCellStyle cs3 = wb.createCellStyle();
    HSSFDataFormat df = wb.createDataFormat();
    // create 2 fonts objects
    HSSFFont f = wb.createFont();
    HSSFFont f2 = wb.createFont();
    //set font 1 to 12 point type
    f.setFontHeightInPoints((short) 12);
    //make it blue
    f.setColor( (short)0xc );
    // make it bold
    //arial is the default font
    f.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
    //set font 2 to 10 point type
    f2.setFontHeightInPoints((short) 10);
    //make it red
    f2.setColor( (short)HSSFFont.COLOR_RED );
    //make it bold
    f2.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
    f2.setStrikeout( true );
    //set cell stlye
    cs.setFont(f);
    //set the cell format
    cs.setDataFormat(df.getFormat("#,##0.0"));
    //set a thin border
    cs2.setBorderBottom(cs2.BORDER_THIN);
    //fill w fg fill color
    cs2.setFillPattern((short) HSSFCellStyle.SOLID_FOREGROUND);
    //set the cell format to text see HSSFDataFormat for a full list
    cs2.setDataFormat(HSSFDataFormat.getBuiltinFormat("text"));
    // set the font
    cs2.setFont(f2);
    // set the sheet name in Unicode
    wb.setSheetName(0, "\u0422\u0435\u0441\u0442\u043E\u0432\u0430\u044F " +
                       "\u0421\u0442\u0440\u0430\u043D\u0438\u0447\u043A\u0430",
                    HSSFWorkbook.ENCODING_UTF_16 );
    // in case of compressed Unicode
    // wb.setSheetName(0, "HSSF Test", HSSFWorkbook.ENCODING_COMPRESSED_UNICODE );
    // create a sheet with 30 rows (0-29)
    for (rownum = (short) 0; rownum < 30; rownum++)
        // create a row
        r = s.createRow(rownum);
        // on every other row
        if ((rownum % 2) == 0)
            // make the row height bigger  (in twips - 1/20 of a point)
            r.setHeight((short) 0x249);
        //r.setRowNum(( short ) rownum);
        // create 10 cells (0-9) (the += 2 becomes apparent later
        for (short cellnum = (short) 0; cellnum < 10; cellnum += 2)
            // create a numeric cell
            c = r.createCell(cellnum);
            // do some goofy math to demonstrate decimals
            c.setCellValue(rownum * 10000 + cellnum
                    + (((double) rownum / 1000)
                    + ((double) cellnum / 10000)));
            String cellValue;
            // create a string cell (see why += 2 in the
            c = r.createCell((short) (cellnum + 1));
            // on every other row
            if ((rownum % 2) == 0)
                // set this cell to the first cell style we defined
                c.setCellStyle(cs);
                // set the cell's string value to "Test"
                c.setEncoding( HSSFCell.ENCODING_COMPRESSED_UNICODE );
                c.setCellValue( "Test" );
            else
                c.setCellStyle(cs2);
                // set the cell's string value to "\u0422\u0435\u0441\u0442"
                c.setEncoding( HSSFCell.ENCODING_UTF_16 );
                c.setCellValue( "\u0422\u0435\u0441\u0442" );
            // make this column a bit wider
            s.setColumnWidth((short) (cellnum + 1), (short) ((50 * 8) / ((double) 1 / 20)));
    //draw a thick black border on the row at the bottom using BLANKS
    // advance 2 rows
    rownum++;
    rownum++;
    r = s.createRow(rownum);
    // define the third style to be the default
    // except with a thick black border at the bottom
    cs3.setBorderBottom(cs3.BORDER_THICK);
    //create 50 cells
    for (short cellnum = (short) 0; cellnum < 50; cellnum++)
        //create a blank type cell (no value)
        c = r.createCell(cellnum);
        // set it to the thick black border style
        c.setCellStyle(cs3);
    //end draw thick black border
    // demonstrate adding/naming and deleting a sheet
    // create a sheet, set its title then delete it
    s = wb.createSheet();
    wb.setSheetName(1, "DeletedSheet");
    wb.removeSheetAt(1);
    //end deleted sheet
    // write the workbook to the output stream
    // close our file (don't blow out our file handles
    wb.write(out);
    out.close();

  • Suggestion: package-level assert functions for less typing in FlexUnit 4

    AS3 doesn't have static method imports as nice as Java 5, but we can do much the same thing with package-level functions.We could use these to cut down on the amount of typing necessary in FlexUnit 4.
    I added this to my fork of AsUnit:
    http://github.com/robertpenner/asunit/commit/bdb293436491792625ddc1f637c81c723986b87d
    Example:
    package asunit.asserts {
             import asunit.framework.Assert;
             public const assertEquals:Function = Assert.assertEquals;
    In the test case, this would be used like so:
    import asunit.asserts.*;
    // in test method
    assertEquals(...

    Right, I'm familiar with Hamcrest. I did my own AS2 port from Java because I liked it so much. But even so, I find myself staying with classic assertEquals() (in AsUnit 3) when I can, because I don't have to do the Hamcrest import and set up the swc for the project. Lazy, I know. I should put those things in templates. Also, assertEquals() will run faster, but how much difference that makes, I don't know, would have to measure.
    JUnit 4 does it like this, and saves its users a lot of typing in the 80% case where no matchers are needed.
    http://www.devx.com/Java/Article/31983/1763/page/2
    import static org.junit.Assert.*;
    @Test
      public void add() {
        calculator.add(1);
        calculator.add(1);
        assertEquals(calculator.getResult(), 2);
    Another practical benefit for FlexUnit 4 users would be in migration. They wouldn't have to search and replace all their asserts in order to use the new test format.
    Robert

  • Case function for time period

    I want to count the rows based on the date values and time periods of a date column. e.g.
    08/01/01 00:00 - 01:30 (row count)
    08/01/01 01:30 - 02:00 (row count) etc.
    I'm using the case function to create the time periods from the date column but I'm getting a syntax error, 'missing keyword' at between. How can I code the case statement to create the time periods. The following is the sql code I'm using.
    select TO_CHAR(START_TIME, 'yyyy-mm-dd') as process_date,
         case START_TIME
                   when TO_CHAR(START_TIME, 'hh24:mm') between '00:00' and '01:30' then '12:00 - 1:30 AM'
                   else 'unknown'
         end as process_time,
         count(*)
    from V8_Event_Vw event
    group by TO_CHAR(START_TIME, 'yyyy-mm-dd'), START_TIME
    Thanks,
    Tom

    select TO_CHAR(START_TIME, 'yyyy-mm-dd') as process_date,
    case when TO_CHAR(START_TIME, 'hh24:mm') between '00:00' and '01:30' then '12:00 - 1:30 AM'
    else 'unknown'
    end as process_time,
    count(*)
    from V8_Event_Vw event
    group by TO_CHAR(START_TIME, 'yyyy-mm-dd'),
    case when TO_CHAR(START_TIME, 'hh24:mm') between '00:00' and '01:30' then '12:00 - 1:30 AM'
    else 'unknown'
    end
    *untested (as if I really needed to say that)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Low-Level or High-Level for GUI ?

    I am developing a MIDLet that has to run CLDC-1.1 MIDP-2.0 Devices. The MIDLet has a simple user interface, and there is no gaming. I developed the MIDLet using the high-level GUI class, but I discovered that this class is nice, yet limited. Now I am investigating using the low level canvas class for the GUI. Is it possible to maintain cross-platform compatibility with the canvas, or should I stick with the high-level class?

    High Level Group
    Classes provided are
         Perfect for development of MIDlets that target the maximum number of devices
         Heavily abstracted to provide minimal control over their look and feel
         Classes do not provide exact control over their display
    Low Level Group
    Classes provided are
         Perfect for MIDlets where we want precise control over the location and display of the UI elements
         If more control there is comes less portability It may not be deployable on certain devices
    Cheers,
    Rohan Chandane

  • Updation of higher level item text to lower level item text

    Hi All,
    while creating sales order VA01   i need to pass the value of higher level item text to lower level item text
    for that i read the text of the higher level item text using the fm read_text
    and pass the text to the lower level items using save_text and commit_text
    this coding works only when the lower order item  text is empty
    my queries are
    1. if the lower level item having some text that text will be replaced by the higher level item text, that is happening but showing error that I/O error , how to solve this
    2. while gone to VA02 and add one more item then also same error is happening how to solve this please help me.
    regards
    krishna

    got the solution

  • HIgh Level API's Vs Low Level API's

    Hi,
    Is it advisable to use High Level API's or Low Level API's for developing a Mobile Application?
    What will be the advantages/disadvantages of using High Level API's over Low Level API's or vice versa?
    Kindly advise.

    Is it advisable to use High Level API's or Low Level API's for developing a Mobile Application?What have you used so far?
    What will be the advantages/disadvantages of using High Level API's over Low Level API's or vice versa?What are your own thoughts on this?
    {color:#0000ff}http://catb.org/~esr/faqs/smart-questions.html{color}
    db

  • Disk Utility - Low Level Format??

    Does anyone know which "Erase" option, if any, does a true low-level format of a hard drive? The kind which flags bad sectors and updates the drives bad sector table.
    In the old days, before OS X, I used to use FWB "Hard Disk Toolkit" to format my drives to insure I didn't lose any data to new and unflagged bad sectors on a drive.
    But Disk Utility doesn't seem to have an old-fashioned "format with verify" mode that will do what I want. At least not labeled in a manner which allows me to understand that it is going to do that.
    Anyone have any inside knowledge on this subject?
    Thanks in advance.

    None. You cannot low-level format an ATA drive. Low-level formatting is for SCSI drives. What you can do is zero the data on an ATA drive which will mark bad sectors if there are any.
    Do the following:
    1. Boot from your Tiger DVD. After the installer loads select Disk Utility from the Utilities menu. If this is an external drive then you can use Disk Utility from your Utilities folder rather than booting from the DVD.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Set the number of partitions from the dropdown menu (use 1 partition unless you wish to make more.) Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the volume(s) mount on the Desktop.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process will take 30 minutes to an hour or more depending upon the drive size.

  • Level Down / Level up functionality

    HI SDN,
    I am using Level down functionality for formulas in a query. When I execute the query, by default all the levels are being displayed.  How to make only top nodes to be displayed in the initial view so that user can expand required sub nodes.
    Thanks
    Full Points will be assigned.

    Boy!!!
    Go to the query edit mode.
    right click on the hierarchy field and property.
    there you will see Level of display, change the default level and when you run the query by default you will see that level, if users want more, they can expand it.
    thanks.
    Wond

  • Hi Fi Volume wil nt increase past a low level???

    Using my Hi Fi with 20G ipod and the volume on the Hi Fi would not increase beyond a low level compared to other times I have used the Hi Fi. The volume would lower and when trying to increase the light on the Hi Fi would turn from green to orange and not increase past a certain level??? Please advise.

    Do you have batteries in the Hi-Fi? If so, check that the power cord is properly (firmly) in place. If so, then make sure that power outlet hasn't been turned off at the wall-switch. What you're describing sounds like what the Hi-Fi is designed to do when running on batteries. ..As the batteries wear out, the maximum volume is reduced.
    If you do not have batteries in the Hi-Fi, then I'm at a loss to explain your problem.

  • I have Ps CS4.  I run Apple OS X 10.9.5  on a new MacPro 3GHz 8-core Intel Xeon E5 - 64 GB.    I hardly ever use CS4 ( preferring Elements for my low level needs), but I now want to use it's function for stitching together a landscape.  I fire it up and g

    I have Ps CS4.  I run Apple OS X 10.9.5  on a new MacPro 3GHz 8-core Intel Xeon E5 - 64 GB.    I hardly ever use CS4 ( preferring Elements for my low level needs), but I now want to use it's function for stitching together a landscape.  I fire it up and get Error 150:30 with the suggestion to contact you  - hence this message

    I have Ps CS4.  I run Apple OS X 10.9.5  on a new MacPro 3GHz 8-core Intel Xeon E5 - 64 GB.    I hardly ever use CS4 ( preferring Elements for my low level needs), but I now want to use it's function for stitching together a landscape.  I fire it up and get Error 150:30 with the suggestion to contact you  - hence this message

  • How to test the low level duration time ?

    see attached vi, i want to test the low level duration time, how to do that ? thanks for help !
    Attachments:
    time test.vi ‏68 KB

    Hi ateprojec…,
    your vi is not executable for me! To measure the time you can use the "Tick Count (ms)" function.
    [edit] ok, i think it´s not the time you want. Can you explain a little bit about what you mean? [/edit]
    Hope it helps.
    Mike
    Message Edited by MikeS81 on 06-17-2008 09:13 AM
    Attachments:
    Unbenannt1.PNG ‏8 KB

  • Collective Planned orders Scheduling for lower level orders with reference to the Superior order

    Hi All,
    Collective planned order scheduling.
    I have been trying to reschedule the superior planned order and i was expecting the lower level planned orders to reschedule based on the superior planned order.
    My problem is
    when i try to reschedule the superior planned order the system is not rescheduling the lower level planned orders.
    For example if i change the basic finish date of superior planned order as 30/09/2014 and reschedule the planned order it is only scheduling the header planned order and the lower level planned order is not scheduling.
    Could some one tell me why this is not happenning at planned order level.
    As the rescheduling of collective order will work at production order level but for some reason it is not happening at planned order level(as there is no option available to do so).
    Please give your thoughts on this asap.
    Mahee.

    Hello Mahee
    Please observe that your system is working as designed. Planned orders are scheduled independently, even when they are part of a network/collective order. Note 152319 explains the planned order scheduling in detail and it provides the following information:
    * No scheduling of overall networks is executed although a directly manufactured component is assigned.
    Note that no scheduling of the overall network is executed for planned orders. For the components requirements dates are determined. In order to cover them, planned orders are created in the next MRP run. Since the requirements are not managed using the exact time, the results of the planned order scheduling and of a scheduling of the overall network of the converted collective order can differ.
    BR
    Caetano

  • Time series questions - how to do AGO function for prior year end

    Question on how to perform the following calculation in OBIEE:
    I need to create a time series calculation that will calculate a metric as of Dec prior year. For example, my users will select Mar 2010. I want to show the amount for Mar 10 as well as the amount for Dec 09. If the select Jun 10, I will show them the amount for that month as well as Dec 09.
    Is there a way to do an AGO function that will give me this value? I can't use a filter calculation on my column because filter on the period will exclude these records

    Thanks John. Your suggestions seems promising but I'm having issues when I tried it out. I am receiving the following error message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22046] To use AGO function, the query level ('Fiscal Period, Prior Fiscal Year End Date') must be a static level. (HY000)
    What I did was create a new level off my Fiscal Time dimension which is a child of Total. I tried creating my AGO calculation using this level but received that error message in Asnwers. Any ideas on what I may be doing wrong?

Maybe you are looking for

  • BI 7.0 Transformation?

    Hi experts, I have this problem: I am in a 7.0 BI release, but when I try to install any Object, for example an InfoCube with data flow before grouping, the system proposes the old type objects (update rule for example) but I can't see the Transforma

  • Main Table data load u2013 UNSPSC fields is not loading

    I am new to SAP MDM I have the main table data that includes UNSPSC field. UNSPSC (hierarchy) table is already loaded. It works fine when I use import manager with field mapping and value mapping. (UNSPSC field value mapping is done). When I use the

  • Add one Select-Options : LIKP-LGBZO into Shipment Transaction - VT02N

    Hello, Transaction - VT02N(Change Shipment) -- Now choose Select Deliveries(F6). Now one Selection-Screen will come to Select Outbound Deliveries. In this Screen I want to add one more Select-Options (LIKP-LGBZO) How can I add this  Select-Options in

  • How can I extend to a second monitor

    I have a Macbook Pro  OSX 10.9.3(13D65)    17 inc early 2008    I have the ability to Mirror but can I upgrade to be able to add a monitor so I can work on an extended monitor instead of using mirror?Can I also open Garageband in both of those window

  • Issue: Characters / encode /decode & Solution

    Hey guys, Few issues on this, I think we will need an encode/decode filter. I guess this is related to how if you read a cookie in liquid it converts characters like a comma into its entity (This isn not fixed yet). Example: <meta property="og:descri