Decimal/comma format Conversion to integer

Hi Experts,
I need to convert a number into integer.
The number could be of the format 253.235,000 or 253,235.000.
Are there any standard procedures to do the same ?
Regards,
Kris.

Hi ,
try this way..
data : number type int4.
w_number = ceil ( 253,235.000 ).
"now the w_number contains integer part..--253,235
see the below statements..
sign   ---Plus/minus sign of the argument arg: -1, if the value of arg is negative; 0 if the value of arg is 0; 1 if the value of
              arg is   positive.
ceil    --- Smallest integer number that is not smaller than the value of the argument arg.
floor   -
Largest integer number that is not larger than the value of the argument arg.
trunc   ---Value of the integer part of the argument arg
frac   ---Value of the decimal places of the argument arg
Prabhudas

Similar Messages

  • Convert the money datatype to a 2 decimal point format.

    Whats the best way to convert the money datatype to a 2 decimal point format in ms sql 2005 for use in my applications.
    this?
    CAST(tr.depositReceivedAmount AS decimal(10 , 2))

    I respectfully disagree with the notion that you should change the SQL column from a 'money' data-type to something else.
    In most database servers, 'money' is a data type that is designed to provide very consistent behavior with regard to arithmetic accuracy.  In Microsoft Access, the representation is a scaled-integer.  In MS SQL Server, it is obviously similar.  Ditto Oracle and all the others.
    You want the money data-type in the database to have this accuracy, because "hell hath no fury like an accountant in search of one lousy penny."   The database column storage-formats are designed to satisfy accountants, and that is a Good Thing.
    Meanwhile, you also want to take care as to exactly how you deal with the values.  There are several points where rounding could take place.  You do not have at your disposal the strongest possible handling of floating data-types in ColdFusion.  You are also somewhat at the mercy of whatever interface software may lie between you and whatever SQL server you may use.  "It's okay to round values once, but not multiple times."
    I suggest rounding the value right before display, and stipulating that the user's input must be two decimal places.
    Then, you might have to do some things at the SQL server's end.  For instance, when you update a value in the table, you may need to use server-side logic to explicitly truncate the value to two decimal-points, so that an update of "$34.56" explicitly updates the column to "$34.5600."  (This sort of thing has to happen within the SQL server context.)  You know that the user's input has exactly two significant digits, but maybe (maybe not...!) the SQL server might not know this.  You want to ensure that the server's internally-stored value represents exactly two significant digits, when the value originates from a user-input.
    Don't err on the side of "your convenience" or "what looks good on-screen."  (If you do, get ready to get phone-calls from the accountants, always at inopportune hours of the night.)

  • Format Conversion : Transcoding

    Hi,
    I am working on an application for format conversion of files, be it audio or video files. I tried the code Transcode.java (attached below) given in JMF, but I could only succeed in converting .wav files to .mp3 files. I have till date been unable to convert any video files from one format to another. I might be missing out on certain assumptions as to which files can be converted to the required format or not. Kindly give some sample code if anyody has any and also any suggestions please so that I can fulfill the requirement.
    Also kindly suggest a possible algorithm for the problem.
    Thanks,
    Amit
    import java.awt.*;
    import java.util.Vector;
    import java.io.File;
    import javax.media.*;
    import javax.media.control.TrackControl;
    import javax.media.control.QualityControl;
    import javax.media.Format;
    import javax.media.format.*;
    import javax.media.datasink.*;
    import javax.media.protocol.*;
    import javax.media.protocol.DataSource;
    import java.io.IOException;
    import com.sun.media.format.WavAudioFormat;
    * A sample program to transcode an input source to an output location
    * with different data formats.
    public class Transcode implements ControllerListener, DataSinkListener {
          * Given a source media locator, destination media locator and
          * an array of formats, this method will transcode the source to
          * the dest into the specified formats.
         public boolean doIt(MediaLocator inML, MediaLocator outML, Format fmts[],
                   int start, int end) {
              Processor p;
              try {
                   System.err.println("- create processor for: " + inML);
                   p = Manager.createProcessor(inML);
              } catch (Exception e) {
                   System.err.println("Yikes!  Cannot create a processor from the given url: " + e);
                   return false;
              p.addControllerListener(this);
               *     Put the Processor into configured state.
              p.configure();
              if (!waitForState(p, p.Configured)) {
                   System.err.println("Failed to configure the processor.");
                   return false;
               *     Set the output content descriptor based on the media locator.
              setContentDescriptor(p, outML);
               *     Program the tracks to the given output formats.
              if (!setTrackFormats(p, fmts))
                   return false;
               * We are done with programming the processor.  Let's just
               * realize the it.
              p.realize();
              if (!waitForState(p, p.Realized)) {
                   System.err.println("Failed to realize the processor.");
                   return false;
               *  Set the JPEG quality to .5.
              setJPEGQuality(p, 0.5f);
               *  Now, we'll need to create a DataSink.
              DataSink dsink;
              if ((dsink = createDataSink(p, outML)) == null) {
                   System.err.println("Failed to create a DataSink for the given output MediaLocator: " + outML);
                   return false;
              dsink.addDataSinkListener(this);
              fileDone = false;
               *   Set the start time if there's one set.
              if (start > 0)
                   p.setMediaTime(new Time((double)start));
               *  Set the stop time if there's one set.
              if (end > 0)
                   p.setStopTime(new Time((double)end));
              System.err.println("start transcoding...");
               *   OK, we can now start the actual transcoding.
              try {
                   p.start();
                   dsink.start();
              } catch (IOException e) {
                   System.err.println("IO error during transcoding");
                   return false;
               *  Wait for EndOfStream event.
              waitForFileDone();
               * Cleanup.
              try {
                   dsink.close();
              } catch (Exception e) {}
              p.removeControllerListener(this);
              System.err.println("...done transcoding.");
              return true;
          * Set the content descriptor based on the given output MediaLocator.
         void setContentDescriptor(Processor p, MediaLocator outML) {
              ContentDescriptor cd;
               *  If the output file maps to a content type, we'll try to set it on the processor.
              if ((cd = fileExtToCD(outML.getRemainder())) != null) {
                   System.err.println("- set content descriptor to: " + cd);
                   if ((p.setContentDescriptor(cd)) == null) {
                         * The processor does not support the output content type.  But we can set the content type to RAW and
                         * see if any DataSink supports it.
                        p.setContentDescriptor(new ContentDescriptor(ContentDescriptor.RAW));
          * Set the target transcode format on the processor.
         boolean setTrackFormats(Processor p, Format fmts[]) {
              if (fmts.length == 0)
                   return true;
              TrackControl tcs[];
              if ((tcs = p.getTrackControls()) == null) {
                    *      The processor does not support any track control.
                   System.err.println("The Processor cannot transcode the tracks to the given formats");
                   return false;
              for (int i = 0; i < fmts.length; i++) {     
                   System.err.println("- set track format to: " + fmts);
                   if (!setEachTrackFormat(p, tcs, fmts[i])) {
                        System.err.println("Cannot transcode any track to: " + fmts[i]);
                        return false;
              return true;
         * We'll loop through the tracks and try to find a track
         * that can be converted to the given format.
         boolean setEachTrackFormat(Processor p, TrackControl tcs[], Format fmt) {
              Format supported[];
              Format f;
              for (int i = 0; i < tcs.length; i++) {
                   supported = tcs[i].getSupportedFormats();
                   if (supported == null)
                        continue;
                   for (int j = 0; j < supported.length; j++) {
                        if (fmt.matches(supported[j]) &&
                                  (f = fmt.intersects(supported[j])) != null &&
                                  tcs[i].setFormat(f) != null) {
                             * Success.
                             return true;
              return false;
         * Setting the encoding quality to the specified value on the JPEG encoder.
         * 0.5 is a good default.
         void setJPEGQuality(Player p, float val) {
              Control cs[] = p.getControls();
              QualityControl qc = null;
              VideoFormat jpegFmt = new VideoFormat(VideoFormat.JPEG);
              * Loop through the controls to find the Quality control for the JPEG encoder.
              for (int i = 0; i < cs.length; i++) {
                   if (cs[i] instanceof QualityControl &&
                             cs[i] instanceof Owned) {
                        Object owner = ((Owned)cs[i]).getOwner();
                        * Check to see if the owner is a Codec. Then check for the output format.     
                        if (owner instanceof Codec) {
                             Format fmts[] = ((Codec)owner).getSupportedOutputFormats(null);
                             for (int j = 0; j < fmts.length; j++) {
                                  if (fmts[j].matches(jpegFmt)) {
                                       qc = (QualityControl)cs[i];
                                       qc.setQuality(val);
                                       System.err.println("- Set quality to " +
                                                 val + " on " + qc);
                                       break;
                        if (qc != null)
                             break;
         * Create the DataSink.
         DataSink createDataSink(Processor p, MediaLocator outML) {
              DataSource ds;
              if ((ds = p.getDataOutput()) == null) {
                   System.err.println("Something is really wrong: the processor does not have an output DataSource");
                   return null;
              DataSink dsink;
              try {
                   System.err.println("- create DataSink for: " + outML);
                   dsink = Manager.createDataSink(ds, outML);
                   dsink.open();
              } catch (Exception e) {
                   System.err.println("Cannot create the DataSink: " + e);
                   return null;
              return dsink;
         Object waitSync = new Object();
         boolean stateTransitionOK = true;
         * Block until the processor has transitioned to the given state.
         * Return false if the transition failed.
         boolean waitForState(Processor p, int state) {
              synchronized (waitSync) {
                   try {
                        while (p.getState() < state && stateTransitionOK)
                             waitSync.wait();
                   } catch (Exception e) {
                        System.out.println("Exception 1 : " + e.getMessage());
              return stateTransitionOK;
         * Controller Listener.
         public void controllerUpdate(ControllerEvent evt) {
              if (evt instanceof ConfigureCompleteEvent ||
                        evt instanceof RealizeCompleteEvent ||
                        evt instanceof PrefetchCompleteEvent) {
                   synchronized (waitSync) {
                        stateTransitionOK = true;
                        waitSync.notifyAll();
              } else if (evt instanceof ResourceUnavailableEvent) {
                   synchronized (waitSync) {
                        stateTransitionOK = false;
                        waitSync.notifyAll();
              } else if (evt instanceof EndOfMediaEvent) {
                   evt.getSourceController().close();
              } else if (evt instanceof MediaTimeSetEvent) {
                   System.err.println("- mediaTime set: " +
                             ((MediaTimeSetEvent)evt).getMediaTime().getSeconds());
              } else if (evt instanceof StopAtTimeEvent) {
                   System.err.println("- stop at time: " +
                             ((StopAtTimeEvent)evt).getMediaTime().getSeconds());
                   evt.getSourceController().close();
         Object waitFileSync = new Object();
         boolean fileDone = false;
         boolean fileSuccess = true;
         * Block until file writing is done.
         boolean waitForFileDone() {
              System.err.print(" ");
              synchronized (waitFileSync) {
                   try {
                        while (!fileDone) {
                             waitFileSync.wait(1000);
                             System.err.print(".");
                   } catch (Exception e) {
                        System.out.println("Exception 2 : " + e.getMessage());
              System.err.println("");
              return fileSuccess;
         * Event handler for the file writer.
         public void dataSinkUpdate(DataSinkEvent evt) {
              if (evt instanceof EndOfStreamEvent) {
                   synchronized (waitFileSync) {
                        fileDone = true;
                        waitFileSync.notifyAll();
              } else if (evt instanceof DataSinkErrorEvent) {
                   synchronized (waitFileSync) {
                        fileDone = true;
                        fileSuccess = false;
                        waitFileSync.notifyAll();
         * Convert a file name to a content type. The extension is parsed
         * to determine the content type.
         ContentDescriptor fileExtToCD(String name) {
              String ext;
              int p;
              * Extract the file extension.
              if ((p = name.lastIndexOf('.')) < 0)
                   return null;
              ext = (name.substring(p + 1)).toLowerCase();
              String type;
              * Use the MimeManager to get the mime type from the file extension.
              if ( ext.equals("mp3")) {
                   type = FileTypeDescriptor.MPEG_AUDIO;
              } else {
                   if ((type = com.sun.media.MimeManager.getMimeType(ext)) == null)
                        return null;
                   type = ContentDescriptor.mimeTypeToPackageName(type);
              return new FileTypeDescriptor(type);
         * Main program
         public static void main(String [] args) {
              String inputURL = null, outputURL = null;
              int mediaStart = -1, mediaEnd = -1;
              Vector audFmt = new Vector(), vidFmt = new Vector();
              if (args.length == 0)
                   prUsage();
              * Parse the arguments.
              int i = 0;
              while (i < args.length) {
                   if (args[i].equals("-v")) {
                        i++;
                        if (i >= args.length)
                             prUsage();
                        vidFmt.addElement(args[i]);
                   } else if (args[i].equals("-a")) {
                        i++;
                        if (i >= args.length)
                             prUsage();
                        audFmt.addElement(args[i]);
                   } else if (args[i].equals("-o")) {
                        i++;
                        if (i >= args.length)
                             prUsage();
                        outputURL = args[i];
                   } else if (args[i].equals("-s")) {
                        i++;
                        if (i >= args.length)
                             prUsage();
                        Integer integer = Integer.valueOf(args[i]);
                        if (integer != null)
                             mediaStart = integer.intValue();
                   } else if (args[i].equals("-e")) {
                        i++;
                        if (i >= args.length)
                             prUsage();
                        Integer integer = Integer.valueOf(args[i]);
                        if (integer != null)
                             mediaEnd = integer.intValue();
                   } else {
                        inputURL = args[i];
                   i++;
              if (inputURL == null) {
                   System.err.println("No input url is specified");
                   prUsage();
              if (outputURL == null) {
                   System.err.println("No output url is specified");
                   prUsage();
              int j = 0;
              Format fmts[] = new Format[audFmt.size() + vidFmt.size()];
              Format fmt;
              * Parse the audio format spec. into real AudioFormat's.
              for (i = 0; i < audFmt.size(); i++) {
                   if ((fmt = parseAudioFormat((String)audFmt.elementAt(i))) == null) {
                        System.err.println("Invalid audio format specification: " +
                                  (String)audFmt.elementAt(i));
                        prUsage();
                   fmts[j++] = fmt;
              * Parse the video format spec. into real VideoFormat's.
              for (i = 0; i < vidFmt.size(); i++) {
                   if ((fmt = parseVideoFormat((String)vidFmt.elementAt(i))) == null) {
                        System.err.println("Invalid video format specification: " +
                                  (String)vidFmt.elementAt(i));
                        prUsage();
                   fmts[j++] = fmt;
              * Generate the input and output media locators.
              MediaLocator iml, oml;
              if ((iml = createMediaLocator(inputURL)) == null) {
                   System.err.println("Cannot build media locator from: " + inputURL);
                   System.exit(0);
              if ((oml = createMediaLocator(outputURL)) == null) {
                   System.err.println("Cannot build media locator from: " + outputURL);
                   System.exit(0);
              * Transcode with the specified parameters.
              Transcode transcode = new Transcode();
              if (!transcode.doIt(iml, oml, fmts, mediaStart, mediaEnd)) {
                   System.err.println("Transcoding failed");
              System.exit(0);
         * Create a media locator from the given string.
         static MediaLocator createMediaLocator(String url) {
              MediaLocator ml;
              if (url.indexOf(":") > 0 && (ml = new MediaLocator(url)) != null)
                   return ml;
              if (url.startsWith(File.separator)) {
                   if ((ml = new MediaLocator("file:" + url)) != null)
                        return ml;
              } else {
                   String file = "file:" + System.getProperty("user.dir") + File.separator + url;
                   if ((ml = new MediaLocator(file)) != null)
                        return ml;
              return null;
         * Parse the audio format specifier and generate an AudioFormat.
         * A valid audio format specifier is of the form:
         * [encoding]:[rate]:[sizeInBits]:[channels]:big:signed
         static Format parseAudioFormat(String fmtStr) {
              int rate, bits, channels, endian, signed;
              String encodeStr = null, rateStr = null,
              bitsStr = null, channelsStr = null,
              endianStr = null, signedStr = null;
              * Parser the media locator to extract the requested format.
              if (fmtStr != null && fmtStr.length() > 0) {
                   while (fmtStr.length() > 1 && fmtStr.charAt(0) == ':')
                        fmtStr = fmtStr.substring(1);
                   * Now see if there's a encode rate specified.
                   int off = fmtStr.indexOf(':');
                   if (off == -1) {
                        if (!fmtStr.equals(""))
                             encodeStr = fmtStr;
                   } else {
                        encodeStr = fmtStr.substring(0, off);
                        fmtStr = fmtStr.substring(off + 1);
                        * Now see if there's a sample rate specified
                        off = fmtStr.indexOf(':');
                        if (off == -1) {
                             if (!fmtStr.equals(""))
                                  rateStr = fmtStr;
                        } else {
                             rateStr = fmtStr.substring(0, off);
                             fmtStr = fmtStr.substring(off + 1);
                             * Now see if there's a size specified
                             off = fmtStr.indexOf(':');
                             if (off == -1) {
                                  if (!fmtStr.equals(""))
                                       bitsStr = fmtStr;
                             } else {
                                  bitsStr = fmtStr.substring(0, off);
                                  fmtStr = fmtStr.substring(off + 1);
                                  * Now see if there's channels specified.
                                  off = fmtStr.indexOf(':');
                                  if (off == -1) {
                                       if (!fmtStr.equals(""))
                                            channelsStr = fmtStr;
                                  } else {
                                       channelsStr = fmtStr.substring(0, off);
                                       fmtStr = fmtStr.substring(off + 1);
                                       * Now see if there's endian specified.
                                       off = fmtStr.indexOf(':');
                                       if (off == -1) {
                                            if (!fmtStr.equals(""))
                                                 endianStr = fmtStr.substring(off + 1);
                                       } else {
                                            endianStr = fmtStr.substring(0, off);
                                            if (!fmtStr.equals(""))
                                                 signedStr = fmtStr.substring(off + 1);
              * Sample Rate
              rate = AudioFormat.NOT_SPECIFIED;
              if (rateStr != null) {
                   try {
                        Integer integer = Integer.valueOf(rateStr);
                        if (integer != null)
                             rate = integer.intValue();
                   } catch (Throwable t) {
                        System.out.println("Exception 3 ");
              * Sample Size
              bits = AudioFormat.NOT_SPECIFIED;
              if (bitsStr != null) {
                   try {
                        Integer integer = Integer.valueOf(bitsStr);
                        if (integer != null)
                             bits = integer.intValue();
                   } catch (Throwable t) {
                        System.out.println("Exception :4 " );
              * # of channels
              channels = AudioFormat.NOT_SPECIFIED;
              if (channelsStr != null) {
                   try {
                        Integer integer = Integer.valueOf(channelsStr);
                        if (integer != null)
                             channels = integer.intValue();
                   } catch (Throwable t) {
                        System.out.println("Exception : 5 ");
              * Endian
              endian = AudioFormat.NOT_SPECIFIED;
              if (endianStr != null) {
                   if (endianStr.equalsIgnoreCase("big"))
                        endian = AudioFormat.BIG_ENDIAN;
                   else if (endianStr.equalsIgnoreCase("little"))
                        endian = AudioFormat.LITTLE_ENDIAN;
              * Signed
              signed = AudioFormat.NOT_SPECIFIED;
              if (signedStr != null) {
                   if (signedStr.equalsIgnoreCase("signed"))
                        signed = AudioFormat.SIGNED;
                   else if (signedStr.equalsIgnoreCase("unsigned"))
                        signed = AudioFormat.UNSIGNED;
              return new AudioFormat(encodeStr, rate, bits, channels, endian, signed);
         * Parse the video format specifier and generate an VideoFormat.
         * A valid video format specifier is of the form:
         * [encoding]:[widthXheight]
         static Format parseVideoFormat(String fmtStr) {
              String encodeStr = null, sizeStr = null;
              * Parser the media locator to extract the requested format.
              if (fmtStr != null && fmtStr.length() > 0) {
                   while (fmtStr.length() > 1 && fmtStr.charAt(0) == ':')     
                        fmtStr = fmtStr.substring(1);
                   * Now see if there's a encode rate specified.
                   int off = fmtStr.indexOf(':');
                   if (off == -1) {
                        if (!fmtStr.equals(""))
                             encodeStr = fmtStr;
                   } else {
                        encodeStr = fmtStr.substring(0, off);
                        sizeStr = fmtStr.substring(off + 1);
              if (encodeStr == null || encodeStr.equals(""))
                   prUsage();
              if (sizeStr == null)
                   return new VideoFormat(encodeStr);
              int width = 320, height = 240;
              int off = sizeStr.indexOf('X');
              if (off == -1)
                   off = sizeStr.indexOf('x');
              if (off == -1) {
                   System.err.println("Video dimension is not correctly specified: " + sizeStr);
                   prUsage();
              } else {
                   String widthStr = sizeStr.substring(0, off);
                   String heightStr = sizeStr.substring(off + 1);
                   try {
                        Integer integer = Integer.valueOf(widthStr);
                        if (integer != null)
                             width = integer.intValue();
                        integer = Integer.valueOf(heightStr);
                        if (integer != null)
                             height = integer.intValue();
                   } catch (Throwable t) {
                        System.out.println("Exception : 6");
                        prUsage();
                   return new VideoFormat(encodeStr,
                             new Dimension(width, height),
                             VideoFormat.NOT_SPECIFIED, // maxDataLen
                             null,                // data class
                             VideoFormat.NOT_SPECIFIED // FrameRate
              return null;
         static void prUsage() {
              System.err.println("Usage: java Transcode -o <output> -a <audio format> -v <video format> -s <start time> -e <end time> <input>");
              System.err.println(" <output>: input URL or file name");
              System.err.println(" <input>: output URL or file name");
              System.err.println(" <audio format>: [encoding]:[rate]:[sizeInBits]:[channels]:big:signed");
              System.err.println(" <video format>: [encoding]:[widthXheight]");
              System.err.println(" <start time>: start time in seconds");
              System.err.println(" <end time>: end time in seconds");
              System.exit(0);

    Actually, it's XDcam Ex in a .mov wrapper.
    +An out-of-the-box GY-HM700 can record to inexpensive SDHC cards (class 6 or faster) as Quicktime .MOV using the XDCAM EX codec at selectable bitrates of 19, 25 or 35Mbps. The Mpeg-2 encoder is JVC’s, the XDCAM EX codec is licensed from Sony, and the Quicktime wrapper is licensed from Apple.+
    http://www.dvinfo.net/articles/jvcprohd/hm700firstlook.php

  • RE: Oracle DATE data format conversion..

    <C.M> Motta's question about dates and oracle>
    Dealing with dates and Oracle is somewhat of a nuisance. Oracle is very
    particular about how date strings are formatted, and if you get it wrong,
    you get the (unhelpful) message that C.M. Motta showed us. However, if
    you pass a DateTimeData to Oracle, Forte' does the right formatting for you.
    If you do need to format the date prior to interacting with Oracle, use the
    following format:
    dd-mmm-yy <time component>
    You can change the default format, but it is not easy.
    If you customise Express generated code that interacts with an Oracle
    database, again, make sure that you pass a DateTimeData, and not the
    .TextValue.
    Good luck!
    Richard Kirk

    Date: Wed, 06 Nov 1996 08:18:37 -0500
    To: "C. M. Motta" <[email protected]>
    From: Jim Milbery <[email protected]>
    Subject: Re: Oracle DATE data format conversion..
    Cc: [email protected]
    Cheers:
    Most likely what is happening is that you are using the default date
    format of Oracle, and you are sending a four-character year. As follows:
    SQL> insert into jimbo values ('01-dec-1997')
    2 /
    insert into jimbo values ('01-dec-1997')
    ERROR at line 1:
    ORA-01830: date format picture ends before converting entire inputstring
    >
    Oracle defaults to a format of 'dd-MON-yy'
    You can either truncate the year, or manipulate the date to match the standard
    database as follows:
    insert into jimbo values (to_Date('01-jan-1997', 'DD-MON-YYYY'))
    \jimbo
    At 09:21 AM 11/6/96 -0200, you wrote:
    Forte Users,
    First, Id like to thank all those who answered my question on
    droplist & SQL. I got just what I was looking for: its up and runnunig
    now.
    I have another question: Im trying to insert a DATE into an Oracle
    database. The source date is:
    data : DateTimeData = new;
    data.SetCurrent();
    So, when I try to insert data.Value or data.textvalue into DB, I
    get the following exception:
    ORA-01830: date format picture ends before converting entire
    input string.
    Are there any suggestions?
    Thanks for your help,
    C.M. Motta
    ====================================================================
    Jim Milbery
    Milbery Consulting Group
    132 N. West St., Allentown, PA 18102
    O: 610 - 432 - 5350 F: 610 - 432 - 5380
    E-Mail : [email protected]
    ====================================================================

  • ORA-03120: two-task conversion routine: integer overflow

    Hello DB Gurus!!
    Need your comments and help once again...
    I am trying to import a DUMP file into My Local Database ie. Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    The file exported was by different user on different Dabase of Oracle 10g i.e. Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    but while I am trying to import, I getting the following error..
    Please help.. and suggest the alternate..
    Warning: the objects were exported by XYZABC , not by you
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    import server uses WE8ISO8859P1 character set (possible charset conversion)
    IMP-00008: unrecognized statement in the export file:
    . importing NEXOS_ADMIN_OLTP_API's objects into SHRICHANDRA_ABC123
    IMP-00003: ORACLE error 3120 encountered
    ORA-03120: two-task conversion routine: integer overflow
    . importing NEXOS_ADMIN_OLTP_TAB's objects into SHRICHANDRA_XYZ123
    IMP-00003: ORACLE error 3120 encountered
    ORA-03120: two-task conversion routine: integer overflow
    Thanks in advance..

    Thank Rajneesh,
    I suspect the same issue as you did, But unfortunately I don't have much option available, as other side all are production DB so All I can do is pull from there that is export and import to my local where I am stuck!!!
    Thanks..

  • Advanced Format Conversion - PAL - NTSC question

    I need to convert from DV PAL (@ 25fps) to DV NTSC (@ 23.98fps).
    My first test conversion resulted in a DV file running at 29.97 fps.
    Also, I seem unable to modify the speed settings in order to re-time from PAL to NTSC, which should run approximately 4% longer.
    Can somebody guide me through how to achieve this?
    G5, dual 2.7   Mac OS X (10.4.9)   Final Cut Studio 2.0

    Marc:
    AFAIK standard DV NTSC is 23.97 fps, why do you need 23.98?
    The best free way I found is with Compressor Advanced format conversion, using the settings you'll find in this thread posted by Andynick:
    http://discussions.apple.com/thread.jspa?messageID=3055477&#3055477
    Export your timeline as Quicktime Movie, same settings (self contained if you have space) and use that in Compressor.
    Hope that helps !
      Alberto

  • Regarding Date Format Conversion

    Hi,
    In my project i am picking the date from the date picker which is a javascript program . Then i am displaying it on a jsp page .It is coming in mm/dd/yyyy format .I have to change it to dd/mm/yyyy format .
    I have the code for date formatting conversion .
    What my doubt is whether  the code should be written inside the jsp page or in the javascript .
    Thanks .

    Hi
    <%@page language="java" import="java.sql.*,java.util.*,java.text.*" %>
    <%SimpleDateFormat sdf= new SimpleDateFormat(dd/mm/yyyy );%>
    <% java.util.Date temp_date = sdf.parse(PassYourDateHere); %>
    use this with your jsp
    Regards
    Abhijith YS

  • SQL Loader with decimal commas

    Dear All,
    I am loading data for a German client and the delivered files contain numeric data with decimal commas. For example 123,5 instead of 123.5
    I've been googling like mad on this one and there is a lot of chatter about setting NLS_LANG and/or NLS_NUMERIC_CHARACTERS but none of this seems to work in the SQL Loader environment.
    I imagine that I will end up cobbling together a complicated thing with TO_NUMBER or with another function but I really can't believe that SQL Loader doesn't have a simple switch to flip from point to comma.
    Or have I overlooked something?
    Any tips would be a great help.
    Regards,
    Alan Searle

    I am on a client's PC and don't have access to administrative settings.
    And also, I cannot be sure that whoever runs the load function in the future will check this.
    It is therefore important that I find a way to set this in SQL Loader without any other dependencies.
    I think I will probably end up processing it as a string and then translating it to numeric. But this seems like a sledge hammer to crack a nut.
    Regards and thanks,
    Alan

  • FM for OTF to TIFF format conversion?

    Hi,
    Any function module for OTF to TIFF(image file ) format conversion or anything to do it.
    Thanks
    Vaibhav

    hi,
    please check this link.. this contain some function moule to convert OTF -> other formats .. Not sure of TIFF
    [http://help.sap.com/saphelp_45b/helpdata/EN/08/e043c4c18711d2a27b00a0c943858e/content.htm]
    safel

  • SCOT error "File format conversion error"

    Dear All,
    When a PDF file is sent as a FAX, the SCOT throws the following error with message XS 812:
    No delivery to <fax_number>
    Message no. XS812
    Diagnosis
    The message could not be delivered to recipient <fax_number>. The node gave the following reason (in the language of the node):
    File format conversion error
    Can anybody suggest what could be the problem?
    Note that the normal PCL and RAW data are being sent to the same FAX number without any problem.
    Thanks
    Sagar

    Hello,
    You need to specify the correct formats:
    Check this link:
    http://help.sap.com/saphelp_nw70/helpdata/EN/b0/f8ef3aabdfb20de10000000a11402f/frameset.htm
    Regards,
    Siddhesh

  • ORA-03120 :two-task conversion routine:integer overflow Vendor code 3120

    Hi,
    I got below mentioned error message, while i run the procedure in sql developer
    ORA-03120 :two-task conversion routine:integer overflow Vendor code 3120

    What version of the database are you on? 9.2.0.8 for a guess?
    >
    ORA-03120 is associated with bug 5671074 on Oracle Enterprise Edition; Version 9.2.0.8, occurring on any platform:
    After applying the 9.2.0.8 patchset, compilation of functions and/or materialized view refreshes that reference remote databases via database links start failing with:
    ORA-04052: error occurred when looking up remote object OMS.PREMISE@JEAUSER_OMPR_L.WORLD
    ORA-00604: error occurred at recursive SQL level 1
    ORA-03120: two-task conversion routine: integer overflow
    ORA-02063: preceding line from JEAUSER_OMPR_L
    Bug 5671074 "ORA-4052/ORA-3106 on Create / Refresh of Materialized View", can cause this problem. Contrary to the bug abstract and description, this bug does not just apply to materialized view creation and refresh. It can occur for any PL/SQL that references a remote object via database link where the 'Endianness' of the two platforms differs. If one platform is 'Big-Endian', and another platform is 'Little-Endian', then this bug can be triggered between them. A list of the endianness of different platforms can be obtained from the following query (note that the v$transportable_platform view is only available in 10.1 and above):
    To resolve ORA-03120, this solution is given:
    To implement the solution, it will be necessary to apply the one-off patch for Bug 5671074 to the 9.2.0.8 database. One-off patches to 9.2.0.8 for most platforms are already available for download on MOSC. Bug 5671074 to the 9.2.0.8 database. One-off patches to 9.2.0.8 for most platforms are already available for download on MOSC.
    >
    If not, post more information: {message:id=9360002}

  • How can solve this ORA-03120: two-task conversion routine: integer overflow

    Hello everybody,
    I'm writing this query "SELECT rowid from <mytable>" and I get this error: ORA-03120
    Does anybody know how can i solve it?
    Thanks in advice

    Here is the cause and action as suggested in the Oracle Error Guide...please see if it helps you to fix the error
    ORA-03120:two-task conversion routine:integer overflow
    Cause: An integer value in an internal Oracle structure overflowed when being sent or received over a heterogeneous connection. This can happen when an invalid buffer length or too great a row count is specified. It usually indicates a bug in user application.
    Action: Check parameters to Oracle calls. If the problem recurs, reduce all integer parameters, column values not included, to less than 32767
    Regards,
    Murali Mohan

  • New  Decimal Notation Format Required  For Indian Projects

    Respected Members,
    As at the user level or tcode SU01 only three decimal notations are provided.
    But for country India the decimal notation format is totally different.
    Given decimal notation format is
    1,234,567.89
    And the Required Format For India is
    1,23,456.78
    Becoz we mention the Rupees in this format only.
    And this second format is not available in SPRO also .
    How to create the desired decimal notation and add the corresponding functionality.
    And if we use the given format (1,234,567.89) then when we converting the amount in words through Function module
    SPELL_AMOUNT ,it is not converting properly even though we have maintain the entries in View V_T015Z.
    Suppose our amount is 1,00,000 that is One lakh but it will show in the output  ONE HUNDRED THOUSAND.
    I know that there is another function Module HR_ch_ something to convert in words according to indian currency.
    But it does not solve the issue properly.
    THis DECIMAL NOTATION format for Indian Projects is a BIG MESS.
    So kindly tell me any solution or it is the drawback of SAP.
    So that we can ask SAP to append this Decimal Notation and required Functionality for the Indian Projects.
    Kindly Send Your Valuable answer and Try To Make clear picture and SAP Technical People if Reading this thread then kindly give stress on the REQUIRED DECIMAL NOTATION.
    THANKS A LOT.

    Hi Manish please you can try this code
    REPORT ZAMOUNT_CONVERSION.
    DATA : RESULT1(20).
    PARAMETERS : NUM TYPE P DECIMALS 2.
    DATA : num2 type STRING.
    DATA :  col_amt(20) type n,"15
             col_b type i,
             num_1(20) type C,"15
             Length type i.
    num_1 = num.
    write : 'default format      :',num.
    uline.
    skip.
    IF ( num >= 999999999 ).
           write num_1 using edit mask 'RR__,__,__,__,______' to col_amt.
           CONDENSE col_amt.
           length = STRLEN( col_amt ).
           if length = 16.
             REPLACE first OCCURRENCE OF ',' in col_amt with space.
             write :/'amount indian format:',col_amt.
           else.
           write :/'amount indian format:',col_amt.
           endif.
    ELSEIF NUM < 999999999 AND NUM >= 9999999.
           write num_1 using edit mask 'RR__,__,__,______' to col_amt.
           condense col_amt .
           length = STRLEN( COL_AMT ).
           if length = 13.
             REPLACE first OCCURRENCE OF ',' in col_amt with space.
             write :/'amount indian format:',col_amt.
           else.
             write :/'amount indian format:',col_amt.
          endif.
    ELSEIF NUM < 9999999  AND NUM >= 99999.
           write num_1 using edit mask 'RR__,__,______' to col_amt.
           condense col_amt .
           length = STRLEN( COL_AMT ).
           write :/'amount indian format:',col_amt.
    ELSEIF NUM < 99999.
       data : dumy(10) type c.
       dumy = num .
       CONDENSE dumy.
       length = STRLEN( dumy ).
         if length <= 6.
           write :/'amount indian format:',num.
           else.
           write num_1 using edit mask 'RR__,______' to col_amt.
           write :/'amount indian format:',col_amt.
          endif.
       ENDIF.
       uline.
    create a function module with this code .hope this will solve the issue.

  • I have proubleam with string to date conversion, i out put date fromat is 2012-04-30T23:48:55.727-07:00 . so please help me the format conversion

    i have proubleam with string to date conversion, i out put date fromat is 2012-04-30T23:48:55.727-07:00 . so please help me the format conversion.
    i wrote the method but it not workig
    My method is
    -(NSDate *)dateformstr:(NSString *)str
    NSString *date = [str stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
        NSDateFormatter *dateFormate = [[NSDateFormatter alloc] init];
      [dateFormate setDateFormat:@"yyyy-MM-dd'T'HH:mm:sssZZZZ"]
    // NSDate *formatterDate = [dateFormate  dateFromString:str];
        return formatterDate;
    but i did not the value and if i try othere formate i is working but my requiremet format is 2012-04-30T23:48:55.727-07:00.
    can any help it out in this senario.

    Sorry Butterbean, but I'm interested in the answer to your question myself.
    I've spent a few hours transfering my library from one computer to another and then find out that my ratings didn't transfer. Like you, I've spent many hours rating my 2000+ songs. I'm sure you have more, nevertheless, I want to find out how to get those ratings. They still show in my iTunes on my laptop but, when I go to the iTunes folder and display the details of at song, no rating is there. If you find out how to get them to display there in the iTunes folder, it seems that would be the key.
    Hope you get your answer soon.

  • Failed. Format conversion is not supported

    Hello again, this error happened when I was playing around with Creative Audio Converter
    Failed. Format conversion is not supported
    This error happened when I was converting a song from WMA Pro, 128 Kbps, 44khz, 2 Channel 24-Bit to WMA Pro, 128 Kbps, 44khz, 5.1 Channel 24-Bit
    Why is this error happening? And if the conversion is not supported, then why did Creative bother to put this format on their sound cards? Or is this another of Microsoft's problem?
    Thank You.

    Thank you very much for answering my query about that, at this moment i am very interested on 5.1 channel conversion. I have written to other ppl on other forums about 5.1 channel conversion. One person told me that there are a lot of ways to do it, depending on what kind of 5.1 upmixing do you want to perform. What kinds of upmixing do you use for 5.1 channel conversion? What do you recomend?
    Thank You very much

Maybe you are looking for

  • Does UTF8 support Kurdish characters?

    We are trying to globalize our Telco app to support Kurdish. Our requirement is this: (1.) Users should be able to enter data from the Oracle Forms clients in Kurdish and English? (2.) When quering data, Kurdish users should be able to query only the

  • Get rid of Meet your New Browser Internet Explorer 11

    hey if this is the wrong place for the message I apolgogize. Can someone please tell me how to make IE 11 stop asking "Meet your new browser"  I have done the following and doesnt work: enabled the GPO for "Prevent performance of First Run Customize

  • FCP Won't Load After Quartz Extreme Support Dissapears, then reappears

    I did the latest Software Update yesterday and weirdly, the Quartz Extreme support on my video card (NVidia GForce FX 5200) disappeared. Then it reappeared after doing nothing. Should I download a new driver? And if so, where do I get it? Without QE,

  • Is there a way to apply the same bumpers to multiple exports automatically?

    Hello smart people. I have an ongoing project in which I am creating hundreds of 60–120 second clips, all requiring the same intro-outro bumper. Every month I make about 125 of these. Instead of manually applying these bumpers to each and every seque

  • Input TXT data into a BEx Query

    Hi BW Experts, I am using BI 7.0 at present.  I have a set of users who would like to view a query results and then against a result line add text data.  The requirement is that this text data is written back to the cube and updates the information h