How to sync the timestamp type in 10g with oracle 8i

Hi,
I have oracle 8i on solaris server and we have created application database as well.
I have created oracle 10g databse in some other server and imported the whole database into 10g.
Since there is timestamp format difference in oracle 8i and 10g the application is not working properly in 10g server.
see the below example
In 8i
select to_char(sys.standard.sys_at_time_zone(sys.standard.localtimestamp,'0:00')) from dual
22-MAY-09 09.59.50 AM +00:00
In 10g
select to_char(sys.standard.sys_at_time_zone(sys.standard.localtimestamp,'0:00')) from dual
22-MAY-09 09.53.54.638090000 AM +00:00
since in 10g it is giving microseconds as well in the output unlike 8i, our application is not working properly.
Please advice
RB

Does setting NLS_TIMESTAMP_TZ_FORMAT at session level (using logon trigger) solve your problem?
BTW, this does not qualify as an installation issue so please post such queries in Database-General forum.

Similar Messages

  • How to sync the calendar of my iPhone with I pad

    How to sync the calendar of my iPhone 4s with my ipad

    See this http://www.apple.com/icloud/setup/

  • How to Sync the session timeout of Portal with CMS Server

    Hi Experts,
    We have a custom application build on our portal which will launch the reports of InfoView. It works fine untill the portal session timeout. Whenever the session timeout occurs and reloads it I am unable to launch the reports and getting the below exception.
    com.crystaldecisions.sdk.exception.SDKException$OCAFramework: Unable to reconnect to the CMS server_ip:6400. The session has been logged off or has expired. (FWM 01002)
    Portal is configured with SSO. Please adviese how to set the settings of session timeout in such way that Portal sync  session timeout with CMS server.
    Thanks in Advance,
    Chinaa.

    Hi ,
    There is no such option to sync Portal timout with CMS server.
    To resolve your problem you have only option to set your CMS server timout to MAX value.
    Thanks
    Anil

  • How to View the Doc Types display along with description

    Hi All
       In ME21N transaction in Doc type tab, only description is appearing, i want that along with technical names, for example  li"NB-Standard Purchase Order", like this, so what settings to be done?
    Rgds
    Ramesh

    Go to ME21N trxn Click Alt+F12 > Options > Expert
    Here Put Tick in Controls Tab for the following
    Show Keys in All Dropdown Lists
    Sort Item by Key 
    Then you will see the Doc types along with Description

  • How to UpLoad the Diffent type of files Through Oracle Pl/Sql...?

    Hi TOM,
    I want one reusable component to be developed, My requirement is as follows...
    We get .CSV,.XML,.DOC.PDF files on the N/w drive. One Batch Job will be running every night and this job should upload all the files present in that N/w drive to the database (Each File should be stored in one row with unique ID) and after loading of each file is done , move the uploaded file to the backup directory.
    Note : Average file size is 10-15 MB.
    Loading of files in database should be done only using Oracle procedure/function.
    Already return this process in Pro*C. But I don't know How to write in Oravle Pl/Sl...?
    Functionality of this FUNCTION(In Pro*C):
    ===================================
    *****set_item_blob
    *****Input:     
    *****======
    *****1. Path of the file in Windows folder which contains the part number's content
    *****2. Item number in the T_ITEM table
    *****3. Revision level in the T_ITEM table
    *****Processing:
    *****===========
    *****1. Get the BLOB pointer for the ITM_BLOB column,
    ***** for the corresponding item number and revision level
    *****2. Update the ITM_BLOB column with the content of the input file
    ***** ( using the EXEC SQL LOB WRITE function )
    *****Output:
    *****=======
    *****1. ITM_BLOB column updated with the content of input file
    int set_item_blob (char chr_item_number,int revision_level,char file_path)
         exec sql begin declare section;
              OCIBlobLocator     *blob_locator;
              varchar               vc_item_number[12];
              long               file_length=0;
              varchar               alert_message [500+1];
              int                    plsql_err_code = 0;
         exec sql end declare section;
         FILE     *fp_input_file;
         char     *blob_buffer;
         EXEC SQL VAR blob_buffer IS RAW(BUFFER_LENGTH);
         EXEC SQL ALLOCATE :blob_locator;
         memset ( vc_item_number.arr, '\0', 12 );
         strcpy ( vc_item_number.arr, chr_item_number );
         vc_item_number.len = strlen ( vc_item_number.arr );
         fp_input_file = fopen( file_path, "rb" );
         if( fp_input_file == NULL)
              sprintf ( alert_message.arr, "ngetupld BLOB upload failed for item_number = [%s], rev_level = [%d]. Failure in opening the file to be uploaded [%s]", chr_item_number, revision_level , file_path );
              alert_message.len = strlen ( alert_message.arr );
              EXEC SQL EXECUTE
              BEGIN
                   P_INSERT_INTO_INFO_MESSAGES('AL',:alert_message,'BLB',NULL,NULL,:plsql_err_code);
              END;
              END-EXEC;
              exec sql commit;
              return 1;
         else
              (void) fseek(fp_input_file, 0L, SEEK_END) ;
              file_length = (unsigned int)ftell(fp_input_file) ;     
              (void) fseek(fp_input_file, 0L, SEEK_SET) ;
              if ( file_length > BUFFER_LENGTH )
                   sprintf ( alert_message.arr, "ngetupld BLOB upload failed for item_number = [%s], rev_level = [%d]. Length of the file to be uploaded(%ld) is more than the supported length(%ld)", chr_item_number, revision_level , file_length, BUFFER_LENGTH );
                   alert_message.len = strlen ( alert_message.arr );
                   EXEC SQL EXECUTE
                   BEGIN
                        P_INSERT_INTO_INFO_MESSAGES('AL',:alert_message,'BLB',NULL,NULL,:plsql_err_code);
                   END;
                   END-EXEC;
                   exec sql commit;
                   return 1;
              EXEC SQL
                   UPDATE          T_ITEM
                   SET               ITM_BLOB = EMPTY_BLOB()
                   WHERE          ITM_NUMBER = :vc_item_number
                   AND               ITM_REVISION_LEVEL = :revision_level
                   RETURNING     ITM_BLOB INTO :blob_locator;
              if ( sqlca.sqlcode != 0 )
                   sprintf ( alert_message.arr, "ngetupld BLOB upload failed for item_number = [%s], rev_level = [%d]. SQL error %d occured while trying to get the BLOB locator", chr_item_number, revision_level , sqlca.sqlcode );
                   alert_message.len = strlen ( alert_message.arr );
                   EXEC SQL EXECUTE
                   BEGIN
                        P_INSERT_INTO_INFO_MESSAGES('AL',:alert_message,'BLB',NULL,NULL,:plsql_err_code);
                   END;
                   END-EXEC;
                   exec sql commit;
                   return 1;
              blob_buffer=(char *)malloc(BUFFER_LENGTH); // Dynamic Memory Allocation for Itm_Blob
              fread((void *)blob_buffer, (size_t)BUFFER_LENGTH, (size_t)1, fp_input_file);
              EXEC SQL LOB WRITE ONE :file_length FROM :blob_buffer INTO :blob_locator;
              if ( sqlca.sqlcode != 0 )
                   sprintf ( alert_message.arr, "ngetupld BLOB upload failed for item_number = [%s], rev_level = [%d]. SQL error %d occured while trying to update the BLOB content", chr_item_number, revision_level , sqlca.sqlcode );
                   alert_message.len = strlen ( alert_message.arr );
                   EXEC SQL EXECUTE
                   BEGIN
                        P_INSERT_INTO_INFO_MESSAGES('AL',:alert_message,'BLB',NULL,NULL,:plsql_err_code);
                   END;
                   END-EXEC;
                   exec sql commit;
                   return 1;
              exec sql commit;
         fclose(fp_input_file);
         free(blob_buffer);
         return 0;
    Can Possible to do in Oacle Pl/Sql...?

    > Hi TOM,
    This is not asktom.oracle.com.
    > Can Possible to do in Oacle Pl/Sql...?
    Yes it can be done. Simply consult the applicable manuals that contains all of the details on how to do it. The manuals are:
    - Oracle® Database Application Developer's Guide - Large Objects (refer to Chapter 6 section on Using PL/SQL (DBMS_LOB Package) to Work with LOBs)
    - Oracle® Database PL/SQL Packages and Types Reference (refer to the chapter on DBMS_LOB)

  • How to append the timestamp in log4j.xml

    Hi,
    Has anybody know how to configure the timestamp in log4j.xml??
    It would be great, if you could update the right parameter name in my log4.xml which appears below to display timestamp in my log file Master.log!
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration
      xmlns:log4j="http://jakarta.apache.org/log4j/">
      <!-- Order of child elements is appender*, logger*, root?. -->
      <!-- Appenders control how logging is output. -->
      <appender name="CM" class="org.apache.log4j.FileAppender">
         <param name="File" value="Master.log"/>
         <param name="Threshold" value="DEBUG"/>
         <param name="Append" value="true"/>
         <param name="MaxFileSize" value="1MB"/>
         <param name="MaxBackupIndex" value="1"/>
        <layout class="org.apache.log4j.PatternLayout">
          <!-- {fully-qualified-class-name}:{method-name}:{line-number}
                - {message}{newline} -->
          <param name="ConversionPattern" value="%C:%M:%L - %m%n"/>
        </layout>     
      </appender>
      <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
        <param name="Threshold" value="INFO"/>
        <layout class="org.apache.log4j.PatternLayout">
          <param name="ConversionPattern" value="%C:%M:%L - %m%n"/>
        </layout>
      </appender>
      <!-- Logger hierarchy example:
           root - com - com.ociweb - com.ociweb.demo - com.ociweb.demo.LogJDemo
      -->
      <!-- Setting additivity to false prevents ancestor categories
           for being used in addition to this one. -->
      <logger name="com.tf" additivity="true">
        <priority value="DEBUG"/>
        <appender-ref ref="CM"/>
      </logger>
      <!-- Levels from lowest to highest are
           trace, debug, info, warn, error, fatal & off. -->
      <!-- The root category is used for all loggers
           unless a more specific logger matches. -->
      <root>
        <appender-ref ref="stdout"/>
      </root>
    </log4j:configuration>

    Hello Sir,
    I have configured Log4j.xml for my project and it is able to generate the log file properly with the timestamp,but it is showing the the following error messaged at weblogic console!
    log4j:ERROR Parsing error on line 3 and column 8
    log4j:ERROR Element type "log4j" must be declared.
    log4j:ERROR Parsing error on line 15 and column 13
    log4j:ERROR The content of element type "appender" must match "(errorHandler?,param*,layout?,filter*,appender-ref*)".
    log4j:ERROR Parsing error on line 16 and column 57
    log4j:ERROR Attribute "priority" must be declared for element type "category".
    log4j:ERROR Parsing error on line 19 and column 25
    log4j:ERROR Attribute "priority" must be declared for element type "root".log4j:ERROR Parsing error on line 39 and column 12
    log4j:ERROR The content of element type "logger" must match "(level?,appender-ref*)".
    log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.
    log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
    Here is my Log4j.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration
    xmlns:log4j="http://jakarta.apache.org/log4j/">
    <!-- Order of child elements is appender*, logger*, root?. -->
    <!-- Appenders control how logging is output. -->
    <appender name="CM" class="org.apache.log4j.DailyRollingFileAppender">
         <param name="File" value="Customer_Master.log"/>
         <param name="Threshold" value="DEBUG"/>
         <param name="Append" value="false"/>
         <param name="DatePattern" value="'.'yyyy-MM-dd"/>
         <param name="MaxFileSize" value="1MB"/>
         <param name="MaxBackupIndex" value="1"/>
    <layout class="org.apache.log4j.PatternLayout">
    <!-- {fully-qualified-class-name}:{method-name}:{line-number}
    - {message}{newline} -->
    <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
    </layout>
    </appender>
    <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
    <param name="Threshold" value="INFO"/>
    <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%C:%M:%L - %m%n"/>
    </layout>
    </appender>
    <!-- Logger hierarchy example:
    root - com - com.ociweb - com.ociweb.demo - com.ociweb.demo.LogJDemo
    -->
    <!-- Setting additivity to false prevents ancestor categories
    for being used in addition to this one. -->
    <logger name="com.tf" additivity="true">
    <priority value="DEBUG"/>
    <appender-ref ref="CM"/>
    </logger>
    <!-- Levels from lowest to highest are
    trace, debug, info, warn, error, fatal & off. -->
    <!-- The root category is used for all loggers
    unless a more specific logger matches. -->
    <root>
    <appender-ref ref="stdout"/>
    </root>
    </log4j:configuration>
    It would be great,if you could correct the above xml file and avoid getting the error message from Weblogic console.
    Thanks in advance,
    kumar

  • How to change the NAT type to Open on a Imac using bridged connections

    Hey everyone I have a problem. I play xbox live with my friends and i just moved and dont have a wireless adapter anymore. so i have bridged connections with my imac and xbox via ethernet. It works perfectly, but the only problem is that when i connect it say that my NAT type is strict. To play with all my friends i need a open NAT type. Does anyone know how to make the NAT type on the Imac open. And i do have a D-link router model DIR-625. When i called D-link they said to port forward, i did and it still didnt work, they said it must be the fire wall on the mac, microsoft said the same thing, that it might be the fire wall. I checked the fire wall and it said "All Incoming connections are allowed".
    I would really much appreciate it if someone helped me. Thank you!

    Yes, most likely. Microsoft has provided a list of XBox LIVE!-compatible routers. Since the OS X Internet Sharing feature is limited, there is no way to configure port mapping or placing the XBox in a DMZ with it. Typically, you either use a compatible router or configure port mapping/DMZ for non-compatible routers.

  • How can I sync the contacts in my phone with those on my MacBook Pro? I already have an iCloud account, and everything else (calendars,music, etc.I is already synched) but the contacts won't.

    How can I sync the contacts in my phone with those on my MacBook Pro? I already have an iCloud account, and everything else (calendars,music, etc.I is already synched) but the contacts won't.

    Ok.
    Open System Preferences, Apple Logo icon in the menu bar and then System Preferences or the Sys Pref iocon in the Dock and go to the Internet Accounts area and look at your iCloud account. It should list what is and isn't synced by a checkmark next to each item.
    Also in the Contacts app click on Contacts in the menu bar and select Preferences then accounts and make sure your iCloud account is listed. You can also do that from the Internet Accounts area in System Preferences.

  • How to use the customer types in customer master data

    how to use the customer types in customer master data?
    menu path is Extras -> account group info -> customer types

    hi,
    This is an option given to you to choose (if you need to) the way you perceive this customer.Here you get options including ompetitors,Salespartner, prospect,
    default sp ,consumer.
    See it helps you to differentiate between prospect(which you may use for quotation or inquiry purpose)Sales partner and the competetor.
    I hope this clarifies your quiery.Reward points if so.
    Thanking you,
    Best regards,
    R.Srinivasan

  • How to hide the data in particular table in oracle 10g

    How to hide the data in particular table in oracle 10g
    i want steps

    If its on Report u can  always hide the column - Keyfigure or Selection - Display - Hide......y do u want to have it on the report if it is to be hided in the first place?

  • How to change the paper type in printer settings?

    Does anyone know how to change the paper type in printer settings?  I'm trying to have the ability to change it to photo paper from Photoshop Elements.  I can't find the option in printer settings or through Elements.  I'm assuming I could save an additional printer setting for photo printing, but can't find how to even select a different paper type.
    thanks!

    It would help to know which OS you are running as the answer will be different if it's Lion or the previous OS's. You are not running iOS 5.0.1 on your MacBook Pro so provide the correct information.

  • How to change the document type while creating a PO by ME59N

    Hi,
    I  have 2 groups of PR's, for group one the document type is picked as NB and PO is created and for the group 2 it should pick as XYZ and PO should be created using ME59N tcode.
    How to change the document type for group 2 in ME59N? Which user exists to use to change the document type while creating PO in ME59N? 
    Can any one suggest me.

    Hi,
    There a config area, where you can define default PO doc types for a particular Pr doc type. If you maintain the settings properly there, then your requirement can be fulfilled.
    SPRO->IMG->MM->Purchasing->Purchase requisation->Define doc types.
    This will serve your purpose.
    Thanks,
    Srinu

  • How  to change the billing type Rv to DG

    Dear all,
    when ever we are doing the return order to a sales we will create a customer credit memo through the VF01 T-code.where billing type will be customize one that is credit memo..
    once we save that the in customer G/L we are getting the document type as RV instead of DG.
    please tell me how to change the document Type in customer Ledger.
    regards,
    chethan

    Hi,
    Just to draw your attention that DG is doc.type used to issue credit memo from FI (t.code FB75), where it does not involve the inventory movement.
    Whereas the credit memo generated from OTC cycle (i.e.VF01) involves inventory movement. Ideally, both of these types of credit memos should have different doc. types, so that users can distinguish the returns based on doc. types later on.
    So, after explaining the above, please check with your business thoroughly if they really need to use DG instead of RV. I would suggest to create new doc. type 'ZC' and set up through VOFA.
    Thanks,
    Nirav

  • [CS3][JS] How to get the file type of current document

    Hi,
    How to get the file type of current opening document (e.g., tif, jpeg, png) using JavaScript with Photoshop CS3.
    I am using file object the open the files one by one in the folder (the files sometimes don't have the extensions).
    If the current document is in tiff format then I need to convert to 8-bit, if its an Jpg image then needs to ignore the file.
    Regards,
    Karthik

    Do you really need to know the file type? What about just checking the bit depth?
    var doc = activeDocument;
    if (doc.bitsPerChannel != BitsPerChannelType.EIGHT) {//Not 8 bit
    doc.bitsPerChannel = BitsPerChannelType.EIGHT;
    //do your save etc
    }else{
        //Ignore

  • How to find the Data Type of a column

    Dear All,
    How to find the Data Type of a Column dynamically in oracle Form.
    Thanks and Regards,
    Fazil
    Edited by: user11334489 on Aug 25, 2012 9:06 PM

    hi,
    you can use get_item_property built-in
    eg:
    declare
       l_item VARCHAR2(10);
    begin
       l_item := Get_Item_Property('item_name',DATATYPE);
    end;

Maybe you are looking for

  • The album artwork on my iPod Classic is all mixed up. Wrong artwork on each song..

    Why does the album artwork on my iPod Classic get all mixed up wheres it is correct in the library. Please help

  • Exporting Emails with Photoshop Elements 10

    I have been attempting to resolve this issue for two weeks with no resolve.  I set up an email system with the wizard, and I receive the following error message:Connection to server has failed Acct. "charter.net' Server 'charter.net', Protocol: SMTP,

  • Entire video isn't showing up after download into imovie from flip cam

    Hi there.... I'm a new user to imovie, so am having a little trouble here.... After I load a video from my flip cam, the program says it has downloaded the entire video (say 22') then when I go to put a project together only a short part (like 9 mins

  • Regarding BADI's

    Hi ALL, What is BADI, how many types of badi, and what is filter dependent BADI. please provide me any links or examples regarding above will be appreciated. Points will be awarded.. thanks, vinesh.

  • Move Exchange mailboxes to O365 via PowerShell script

    We are having a problem getting our scripting to work. We have to move 200-300 mailboxes (on a daily basis) to O365. This is an ongoing process. Currently we have over 700,000 mailboxes in the cloud. (Those numbers are correct.) We want to automate t