DBMS_OBFUSCATION_TOOLKIT.DESEncrypt  ... length of output ?

If I know the max length of input data, can I know the max length of encrypted output ?
(e.g. for storing password in encrypted format, i should know the size of field, if max length of password is known )

The toolkit needs data in 8 byte multiples.
That means if your password is varchar2(30) use raw(32) to store the encrypted passwords.

Similar Messages

  • Date field encryption using Dbms_Obfuscation_Toolkit.DESENCRYPT

    Hi,
    I need to encrypt the date field in the table using Dbms_Obfuscation_Toolkit.DESENCRYPT .
    This is an table is an existing table and is accessed by many interfaces, so we cannot change the column type of this date field.
    Is there a possibility of encrypting the date field and store it in the same column (DATE type).
    And access this using Dbms_Obfuscation_Toolkit.DESDECRYPT.
    We are using Oracle 11.2.0.2.0.
    Thanks in advance.
    Agathya

    >
    Is there a possibility of encrypting the date field and store it in the same column (DATE type).
    >
    No - the DESENCRYPT procedure returns a RAW value which can't be stored in a DATE column.
    See DESENCRYPT Procedures and Functions in Chapter 82 (DBMS_OBFUSCATION_TOOLKIT) of the PL/SQl Packages and Types Doc
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_obtool.htm#i997215
    For what you want to do just use the ENCRYPT option of the CREATE TABLE or ALTER TABLE statements.
    See Using Transparent Data Encryption in the Advanced Security Admin Guide
    http://docs.oracle.com/cd/B28359_01/network.111/b28530/asotrans.htm#BABJJAIG
    >
    3.2 Using Transparent Data Encryption
    The following steps discuss using transparent data encryption:
    •Enabling Transparent Data Encryption
    •Setting and Resetting theMaster Encryption Key
    •Opening the Encrypted Wallet
    •Creating Tables with Encrypted Columns
    •Encrypting Columns in Existing Tables
    •Creating an Index on an Encrypted Column
    •Adding or Removing Salt from an Encrypted Column
    •Changing the Encryption Key or Algorithm for Tables Containing Encrypted Columns
    >
    Section 3.2.5.2 Encrypting an Unencrypted Column shows the ALTER TABLE statement for encrypting an existing column - this would leave the column as a DATE and you would work with it normally
    >
    3.2.5.2 Encrypting an Unencrypted Column
    To encrypt an unencrypted column, use the ALTER TABLE MODIFY command, specifying the unencrypted column with the ENCRYPT clause. Example 3-7 encrypts the first_name column in the employee table.
    Example 3-7 Encrypting an Unencrypted Column
    ALTER TABLE employee MODIFY (first_name ENCRYPT);
    The first_name column is encrypted with the default AES192 algorithm. Salt is added to the data, by default.
    You can choose to encrypt the column using a different algorithm. You can also specify NO SALT, if you wish to index the column.

  • DBMS_OBFUSCATION_TOOLKIT.DESENCRYPT Problem

    I am trying to encrypt and deencrypt a column in one of my table.I use oracle version 8.1.7.when i compile my procedure with the procedure DBMS_OBFUSCATION_TOOLKIT.DESENCRYPT is gets created and no errors.When i try to run the procedure i get the following error:
    ERROR at line 1:
    ORA-06521: PL/SQL: Error mapping function
    ORA-06512: at "DIEBOLD.DBMS_OBFUSCATION_TOOLKIT_FFI", line 0
    ORA-06512: at "DIEBOLD.DBMS_OBFUSCATION_TOOLKIT", line 15
    Since this package uses libraries do i need to do anything different?
    Thanks in advance.

    It doesn't help. My problem is that the following code result different in Oracle 8i and Oracle 10g.
    declare
    -- Local variables here
    i integer;
    text RAW(128) := UTL_RAW.CAST_TO_RAW('00000000');
    key RAW(128) := UTL_RAW.CAST_TO_RAW('01234567');
    enc_data RAW(128);
    begin
    -- Test statements here
    DBMS_OBFUSCATION_TOOLKIT.desencrypt (input => text,
    KEY => key,
    encrypted_data => enc_data
    end;

  • Increase length of output field in ABAP Query

    Hello All,
    I have one ABAP Query in which inside the  system  generated program for the Query, there is a write statement -
    write 030(020) anlav-invnr
    Because of this statement,  the field invnr is displaying in only 20 chars & the last two chars of the field invnr are not getting displayed.
    I want to display all 22 chars for field invnr.
    How can I increase the output length for this field.
    Please help.
    <vague subject corrected by moderator, please choose a meaningful one next time>
    Edited by: Thomas Zloch on Mar 3, 2010 2:34 PM

    >
    Jain Arpita wrote:
    > write 030(020) anlav-invnr
    Means displaying INVNR field at 030th position with 20 chars width. To increase the width you just give 022 instead of 020 like below.
    write 030(022) anlav-invnr
    Thanks
    Venkat.O
    Edited by: Venkat.O on Mar 3, 2010 11:28 AM

  • Restricting Length of Output in Smartforms

    Hi All,
    I am trying to restrict the lenght of an output to just show nine numbers, decimal point and then two numbers.
    I have tried &GV_VAL(9.2)& but I am getting an error back. Is there anyway I can do this??
    Many thanks,
    Points awarded,
    Colm

    Hi,
    Before display GV_VAL, change the type whatever you want using code option. I mean create a new variable with data type of 9.2 length and move GV_VAL to this variable and display that variable &variable&.
    Pranav

  • Query length input-output

    Hi everybody,
    I have two doubts:
    1)     Has oracle a limit to the length of the query? (number of characters)
    2)     Has oracle a limit in the length of the output of a query? (number of characters)
    I ask these things because I have a long query (about 1500 characters) and the output should be formed by 1300 characters per row.
    Are there problem in the output of sqlplus?
    Another question if I wanted the previous output in XML format how can I make? Has oracle something to do this last thing?
    I am using oracle 10g.
    Thanks, bye bye.

    1. Here is the text from the [Oracle Database Limits Reference|http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/limits003.htm#i288032]:
    [http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/limits003.htm#i288032]{code}2. I do not believe Oracle has as limit on the output of the program. I think this is the responsibility of the calling program, in this case SQL*Plus. As far as SQL*Plus limiting characters I believe it can/does depending on data type. I recommend you read the [SQLPlus Users Guide and Reference|http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/toc.htm], specifically, Chapter 6 "Formatting SQL*Plus Reports."
    3. As far as XML, you should read the [XML DB Developers Guide|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/toc.htm], specifically Chapter 3
    I hope this helps!
    Edited by: Centinul on Sep 1, 2008 8:22 AM
    I wish I knew this was a double post before hand.. doh!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • ORA-28232 w/ DBMS_OBFUSCATION_TOOLKIT

    I am attempting to use DBMS_OBFUSCATION_TOOLKIT.DESEncrypt on an Oracle 8.1.6.3 database. However it keeps throwing the 28232 error. However I am definitely using an 8 character password.
    Does anybody know what the problem might be?
    TIA, APC

    Here is the my_encryption package code ...........
    CREATE OR REPLACE PACKAGE BODY my_encryption IS
    || Local variable to hold the current encryption key.
    ps_encryption_key RAW(32);
    || Local exception to hide Oracle -28231 Error Code.
    INTERNAL_BAD_KEY exception;
    PRAGMA EXCEPTION_INIT(INTERNAL_BAD_KEY, -28231);
    || Local exception to hide Oracle -28232 Error Code.
    INTERNAL_BAD_DATA exception;
    PRAGMA EXCEPTION_INIT(INTERNAL_BAD_DATA, -28232);
    || Local function to get the encryption key for a particular case.
    FUNCTION get_case_encryption_key(pi_cas_id IN ELS_CASES.ID%TYPE) RETURN RAW IS
    || The key to be returned.
    key RAW(16);
    || Cursor to return the case encyption key in encrypted format.
    CURSOR c_case_key(b_cas_id ELS_CASES.ID%TYPE) IS
    SELECT encryption_key
    FROM els_cases
    WHERE id = b_cas_id;
    BEGIN
    OPEN c_case_key(pi_cas_id);
    FETCH c_case_key INTO key;
    CLOSE c_case_key;
    RETURN key;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    RAISE NO_CASE;
    END;
    || Procedure to initialize package with the master key.
    || The master key will be held elsewhere from the database.
    PROCEDURE set_master_key(pi_key IN RAW) IS
    BEGIN
    IF LENGTHB(pi_key) != 32 THEN
    RAISE BAD_KEY;
    END IF;
    ps_encryption_key := pi_key;
    END;
    || Procedure to initialize package with the master key.
    || Always returns 'Y'
    || The master key will be held elsewhere from the database.
    FUNCTION set_master_key(pi_key IN RAW) RETURN VARCHAR2 IS
    BEGIN
    set_master_key(pi_key);
    RETURN 'Y';
    END;
    || Procedure to initialize package with the case encryption key.
    PROCEDURE set_case_key(pi_master_key IN RAW,
    pi_cas_id IN ELS_CASES.ID%TYPE) IS
    BEGIN
    ps_encryption_key := pi_master_key;
    ps_encryption_key := decrypt(pi_data=>get_case_encryption_key(pi_cas_id));
    END;
    || Function to initialize package with the case encryption key.
    || Always returns 'Y'
    FUNCTION set_case_key(pi_master_key IN RAW,
    pi_cas_id IN ELS_CASES.ID%TYPE) RETURN VARCHAR2 IS
    BEGIN
    set_case_key(pi_master_key,pi_cas_id);
    RETURN 'Y';
    END;
    || Function to encrypt data using the master key. Note the length of
    || pi_data, in bytes, must be at most 2000 bytes and be divisible by 8.
    FUNCTION encrypt(pi_data IN RAW) RETURN RAW IS
    BEGIN
    RETURN dbms_obfuscation_toolkit.DES3Encrypt(input => pi_data,
    key => ps_encryption_key);
    EXCEPTION
    WHEN INTERNAL_BAD_DATA THEN
    RAISE BAD_DATA;
    WHEN INTERNAL_BAD_KEY THEN
    RAISE BAD_KEY;
    END;
    || Function to encrypt a BLOB using the current encryption key.
    FUNCTION encrypt(pi_blob IN BLOB) RETURN BLOB IS
    || Temporary blob variable to hold the encrypted contents.
    result blob;
    || Variable to hold the length of the blob.
    blob_length PLS_INTEGER := dbms_lob.getlength(pi_blob);
    || The Oracle encryption routines can only encrypt data whose length is <=2000.
    max_chunk_length PLS_INTEGER := 2000;
    || Variable to hold the length of the current chunk that is being encrypted.
    chunk_length PLS_INTEGER;
    || Variable to remember which how much of the input blob has been encrypted.
    pointer PLS_INTEGER := 1;
    || Variable to hold the next bit of data to be encrypted.
    chunk RAW(2000);
    || Variable to hold a pad byte used to pad the last chunk.
    pad RAW(1) := utl_raw.substr(utl_raw.cast_to_raw('0'),1,1);
    BEGIN
    || Create the temporary blob using the database memory buffer.
    dbms_lob.createtemporary(result, TRUE, dbms_lob.call);
    || Loop through the input blob
    WHILE (pointer <= blob_length) LOOP
    || Grab at most 2000 bytes from the input blob.
    chunk_length := LEAST(max_chunk_length,blob_length-pointer+1);
    chunk := dbms_lob.substr(pi_blob,chunk_length,pointer);
    || Pad any chunk (ie the last) so its length is divisible by 8 (another Oracle limitation on encryption)!.
    WHILE mod(chunk_length,8) !=0 LOOP
    chunk := utl_raw.concat(chunk,pad);
    chunk_length := chunk_length+1;
    END LOOP;
    || Encrypt the chunk and write it to the end of the temporary blob.
    dbms_lob.writeappend(result,
    chunk_length,
    encrypt(pi_data => chunk)
    || Advance the pointer by the length of the last chunk.
    pointer := pointer + chunk_length;
    END LOOP;
    || All Done!
    RETURN result;
    END;
    || Function to decrypt data using the master key. Note the length of
    || pi_data, in bytes, must be at most 2000 bytes and be divisible by 8.
    FUNCTION decrypt(pi_data IN RAW) RETURN RAW IS
    BEGIN
    RETURN dbms_obfuscation_toolkit.DES3Decrypt(input => pi_data,
    key => ps_encryption_key);
    EXCEPTION
    WHEN INTERNAL_BAD_DATA THEN
    RAISE BAD_DATA;
    WHEN INTERNAL_BAD_KEY THEN
    RAISE BAD_KEY;
    END;
    || Function to decrypt a BLOB using the current encryption key.
    FUNCTION decrypt(pi_blob IN BLOB,
    pi_size IN PLS_INTEGER) RETURN BLOB IS
    || Temporary blob variable to hold the encrypted contents.
    result BLOB;
    || Variable to hold the length of the blob.
    blob_length PLS_INTEGER := dbms_lob.getlength(pi_blob);
    || The Oracle encryption routines can only encrypt data whose length is <=2000.
    max_chunk_length PLS_INTEGER := 2000;
    || Variable to hold the length of the current chunk that is being encrypted.
    chunk_length PLS_INTEGER;
    || Variable to remember which how much of the input blob has been encrypted.
    pointer PLS_INTEGER := 1;
    BEGIN
    || Create the temporary blob using the database memory buffer.
    dbms_lob.createtemporary(result, TRUE, dbms_lob.call);
    || Loop through the input blob
    WHILE (pointer <= blob_length) LOOP
    || Grab at most 2000 bytes from the input blob.
    chunk_length := LEAST(max_chunk_length,blob_length-pointer+1);
    || Decrypt the chunk and write it to the end of the temporary blob.
    dbms_lob.writeappend(result,
    chunk_length,
    decrypt(pi_data => dbms_lob.substr(pi_blob,
    chunk_length,
    pointer
    || Advance the pointer by the length of the last chunk.
    pointer := pointer + chunk_length;
    END LOOP;
    || Remove the padding bytes that were added when the data was encrypted.
    dbms_lob.trim(result,pi_size);
    || All Done!
    RETURN result;
    END;
    || Procedure to clear session state of stored keys.
    PROCEDURE CLEAR IS
    BEGIN
    ps_encryption_key:=null;
    END;
    END;
    and here is the PL/sql I run before running the sql stmt
    DECLARE
    mkey LONG RAW;
    BEGIN
    mkey := UTL_RAW.CAST_TO_RAW ('&&key');
    my_encryption.set_master_key(mkey);
    my_encryption.set_case_key(mkey,&&case_id);
    END;
    mkey is a 16 digit key .
    and the encrypted_contents I'm trying to decrypt is a BLOB.
    select my_encryption.decrypt(encrypted_contents,file_size),mime_type
    from my_drafts where id = &&draft_id;
    I hope this makes sense .
    Ragini

  • DESEncrypt Function don't work with any charakter

    Hi!
    I wrote a function to encrypt data using the DESEncrypt function:
    Create or replace function verschluessel (input_str varchar2,key_string varchar2) return RAW as
    input_string varchar2 (4000);
    encrypted_string varchar2(4000);
    raw_input RAW(4000);
    raw_key RAW(128) := UTL_RAW.CAST_TO_RAW(key_string);
    encrypted_raw RAW(4000);
    test smallint := 8 - mod(length(input_str),8);
    ergaenz varchar2(7);
    begin
    loop
    if test = 0 OR test = 8 then
    exit;
    end if;
    ergaenz := ergaenz || ' ';
    test := test - 1;
    end loop;
    input_string := input_str || ergaenz;
    raw_input := UTL_RAW.CAST_TO_RAW(input_string);
    dbms_obfuscation_toolkit.DESEncrypt(input => raw_input,key => raw_key,
    encrypted_data => encrypted_raw);
    return encrypted_raw;
    end verschluessel;
    The problem is, if the input_string contains german umlaute or special french characters, the error message ORA-28232 "Invalid input size for Obfuscation toolkit" appears.
    How can I solve that ?
    Thanx Andri.

    Resolving issues with Touch ID
    Make sure that you're using the latest version of iOS.
    Make sure that your fingers and the Home button are clean and dry.*
    Note: Cover the Home button completely. Don't tap too quickly, don't press down hard, and don't move your finger while Touch ID is scanning. Make sure that your finger touches the metal ring around the Home button.
    If you're using a protective case or screen protector, it must leave the Home button and the surrounding ring completely unobscured. If it doesn't, remove the case or screen protector and try again.
    Tap Settings > Touch ID & Passcode and verify that:
    iPhone Unlock or iTunes & App Store is on.
    You enrolled one or more fingerprints.
    Try enrolling a different finger.
    If you can't enroll any of your fingers, take your iPhone 5s to an Apple Retail Store, Apple Authorized Service Provider, or contact AppleCare for further assistance.
    * Moisture, lotions, sweat, oils, cuts, or dry skin might affect fingerprint recognition. Certain activities can also temporarily affect fingerprint recognition, including exercising, showering, swimming, cooking, or other conditions or changes that affect your fingerprint.

  • DBMS_OBFUSCATION_TOOLKIT

    Why is the result of a call to DBMS_OBFUSCATION_TOOLKIT.DESEncrypt not consistent.
    I try to exchange encrypted data between different instances of Oracle and the encrypted output is not the same.
    Are there differences from version to version of Oracle or is there some kind of parameter setting (seed) that I'm not aware of.
    Best regards
    -pELLE

    You might try posting this to the Products | Database | SQL and PL/SQL forum. The folks over there are generally going to be more familiar with this sort of database programming issue.
    A couple of questions, though, in addition to Carlos's point about making sure the same key is being used...
    - Are you storing the encrypted data in RAW columns? Or in VARCHAR2 columns?
    - Are your database character sets identical?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Does dbms_obfuscation_toolkit support MD5 ?

    I want to know that does this package(dbms_obfuscation_toolkit) encrypts data in MD5 format . Does this package support MD5.
    Regards
    null

    CREATE OR REPLACE PROCEDURE obfuscation_demo AS
    l_data varchar2(255);
    l_string VARCHAR2(25) := 'hello world';
    BEGIN
    -- Both the key and the input data must have a length
    -- divisible by eight (the key must be exactly 8 bytes long).
    l_data := RPAD(l_string,(TRUNC(LENGTH(l_string)/8)+1)*8,CHR(0));
    DBMS_OUTPUT.PUT_LINE('l_string before encrypt: ' &#0124; &#0124; l_string);
    -- Encrypt the input string
    DBMS_OBFUSCATION_TOOLKIT.DESENCRYPT
    (input_string => l_data,
    key_string => 'magickey',
    encrypted_string => l_string);
    DBMS_OUTPUT.PUT_LINE('l_string ENCRYPTED: ' &#0124; &#0124; l_string);
    -- Decrypt the input string
    DBMS_OBFUSCATION_TOOLKIT.DESDECRYPT
    (input_string => l_string,
    key_string => 'magickey',
    decrypted_string => l_data);
    DBMS_OUTPUT.PUT_LINE('l_string DECRYPT: ' &#0124; &#0124; L_DATA);
    END;
    its encrypting in DES .
    You said that dbms_obfuscation_toolkit supports md5.
    If yes then how can i use this procedure to make it effective for md5. How does md5 implement on this procedure.
    Can u help me regarding this.
    Regards
    null

  • Writing file with its output as html

    Hello. I cannot seem to get my file written out as html. Can someone help me. My program compiles but thats about it.
    import java.io.*;
    import javax.swing.*;
    public class Olympic
    static void showInput(String[] typeMedal,String[] first, String[] last, String[] country)
         String output = new String();
         String htmlHeader = new String("<HTML> <TITLE> <");
         String htmlTitle = new String("CIS 4150 Assignment 2");
    String htmlBeginBody = new String("</TITLE> <BODY> ");
         String htmlTableHead = new String("<p> <table border = 2 cellpadding = 2> " +" <caption align = top>");
    String htmlTableName = new String("MEDAL WINNERS");     
         String htmlEndTags = new String("</table> </body></html>");
         try
         FileWriter medalWriter = new FileWriter("medal.htm"); // Create FileWriter          
         BufferedWriter out = new BufferedWriter(medalWriter); // Create BufferedWriter
         output = htmlHeader + htmlTitle + htmlBeginBody + htmlTableHead + htmlTableName;
         for(int n = 0; n < typeMedal.length;n++)
         output += "<tr>";
    output += "<td>";
         output += typeMedal[n];
    output += "</td>";
         output += "<td>";
         output += first[n];
         output += "</td>";
         output += "<td>";
         output += last[n];
         output += "</td>";
         output += "<td>";
         output += country[n];
         output += "</td>";
         output += "</tr>";
         output += htmlEndTags;
    out.write(output); // Attempt to write the data to file
    out.close();                          // Close Buffer          
    medalWriter.close();                // close writer
         catch(IOException e)
         System.out.println("\nI.O Exception");     
         return;
    static void showOutput(String outfile)
         try
         FileWriter file = new FileWriter(outfile);
         BufferedWriter out = new BufferedWriter(file);
         out.write("\nThis is the output text");
         out.close();
    file.close();
    catch(IOException e)
         JOptionPane.showMessageDialog(null, "IO Exception");
         return;

    Do you perchance get an error like
    java.lang.NoSuchMethodError: main
    ?

  • Passing output to a method, I'm lost!

    I want to put all of my "output" including the returns on the three Temp functions in my method DisplayTemperatures, but I'm stuck and don't know how to do this. Please help
    import javax.swing.*;
    import java.text.DecimalFormat;
    public class Temp {
         public static void main(String[] args) {
              int Hourly_Temperatures[];
              String output;
              Hourly_Temperatures = new int[24];
              DecimalFormat twoDigits = new DecimalFormat ("00");     
              for (int i = 0;i < Hourly_Temperatures.length;i++) { //inputs temps               
                   Hourly_Temperatures[i] = Integer.parseInt(JOptionPane.showInputDialog("Enter temperature between -50 & 130\nHour: " + twoDigits.format(i) + ":00"));
                   while (Hourly_Temperatures[i] < -50|| Hourly_Temperatures[i] > 130) {
                        Hourly_Temperatures[i] = Integer.parseInt(JOptionPane.showInputDialog(null,"Invalid Entry!\nEnter temperature"));
              output = "Hour\tTemperature\n"; // build output string
              for (int counter = 0; counter < Hourly_Temperatures.length; counter++)
              output += twoDigits.format(counter) + ":00" + "\t" + Hourly_Temperatures[counter] + "\n";
              JTextArea outputArea = new JTextArea();
              outputArea.setText(output);
              JOptionPane.showMessageDialog(null,outputArea,"24 hour Temperature",JOptionPane.INFORMATION_MESSAGE);
              //System.exit(0);
         } //end main
         public int High_Temp(int Temperatures[]){
              int highTemp = Temperatures[0];
              for (int counter =0; counter < Temperatures.length; counter++)
              if (Temperatures[counter]>highTemp)
              highTemp = Temperatures[counter];
              return highTemp;
         }//end method High_Temp
         public int Low_Temp(int Temperatures[]){
                   int lowTemp = Temperatures[0];
                   for (int counter =0; counter < Temperatures.length; counter++)
                   if (Temperatures[counter]<lowTemp)
                   lowTemp = Temperatures[counter];
                   return lowTemp;
         }//end method Low_temp
         public int Average_Temp(int Temperatures[]){
              int total = 0;
              for (int counter =0; counter < Temperatures.length; counter++)
              total += Temperatures[counter];
              return total / Temperatures.length;
         }// end method Average_Temp
         public void Display_Temperatures(int Temperatues[], int Average_Temp){
        }// end method Display_Temperatures
    } //end class

    I am not sure I understand what problem you are having in passing output to the method. However, I'll guess:
    If you want to pass output to Display_Temperatures() then:
    1. change Display_Temperatures to accept a String
    2. move display code from main to Display_Temperatures.
    3. pass output to Display_Temperatures()
    Display_Temperatures(output)If you want to do all the calculations also in Display_Temperatures:
    1. change Display_Temperatures to accept only 1 arg - int[]
    2. move all the calculations & display code from main to Display_Temperatures
    3. pass Hourly_Temperatures to Display_Temperatures()
    Display_Temperatures(Hourly_Temperatures)If you make these changes then you will encounter some compilation errors. Post them here only after you've first tried to understand and fix them.
    If it is something else you want to do, then you will have to explain it better; at least I've not understood your problem.
    The naming standards that almost all jave professionals follow is:
    1. not to use underscore char ( _ ) in method names; so Display_Temperatures shd be DisplayTemperatures
    2. var names don't have _ char within the name and begin with a lower case; so Hourly_Temperatures shd be hourlyTemperatures
    It is generally a good practice to create an instance of the class in the main() method and write the process code in the instance methods instead of putting all that code in main() itself. Read the [url http://java.sun.com/docs/books/tutorial/]tutorials for this starting from the "Your First Cup of Java".

  • Information about package sys.dbms_obfuscation_toolkit

    While using this package procedure DesEncrypt , we are facing error i.e
    too many declarations of 'DesEncrypt ' match this call......
    According to me, overloading of procedure has been performed based on datatypes of same family(i.e varchar2 and raw), which to me is not correct.
    Please suggest how to resolve this problem.
    Please give this work as urgent priority.

    You will need to use named notation (reference the parameter names in the call) instead of the normal positional notation because of the implicit conversions possible between varchar2 and raw.
    dbms_obfuscation_toolkit.DESEncrypt
      (input_string => v_string, key_string => v_key, encrypted_string=> v_encrypted_string);

  • Mapping multiple Segments to one output

    Hi,
    The issue is that I have a segment which would be a text type that contains multiple segments, each segment would contain a line of text.
    The issue is that the output is only the last segment of text.  I want to be able to concatenate all of the lines into one.
    I feel I need to use a UDF but not quite sure how to do the mapping.

    I think you should try with this udf ... let's say your source segments are as shown below
    <A1>
       <E1>a</E1>
       <E2>b</E2>
       <E3>c</E3>
    </A1>
    <A1>
       <E1>1</E1>
       <E2>2</E2>
       <E3>3</E3>
    </A1>
    And let's say expected output is a,b,c,1,2,3
    Create the UDF and set the Cache to Queue. While mapping the source fields to UDF set the context to very top node (or use RemoveContext after each source field).
    String output = " ";
    for( int i = 0; i< A1.length; i++ )
    output =  output+ E1<i> + "," + E2<i> + "," + E3<i>;         //Concatenation of fields.
    /*if ( i !=A1.length - 1 )
      output  = output + ";" ;         //Concatenation of semicolon.
    result.addValue(output);
    Here is the mapping ..
    A1------->|
    E1------->| -------->UDF------->Taret
    E2------->|
    E3------->|

  • How to get the length of a field.

    Hi all,
    I m working on dynamic internal table.There is a need to get the length of a field, filled dynamically.How can we get it.
    Thanks in advance.
    Regards,
    Swati garg

    Swati,
    DATA: text(8) TYPE c,
          len TYPE i.
    DESCRIBE FIELD text LENGTH len IN CHARACTER MODE.
    Field LEN contains the value 8.
    ================================
    For ouput length :
      DATA: float TYPE f,
          out TYPE i,
          len TYPE i.
    DESCRIBE FIELD float LENGTH len OUTPUT-LENGTH out.
    This example results in the field LEN containing the value 8, while the field OUT contains the value 22.
    Don't forget to reward if useful.....

Maybe you are looking for

  • Screen is faulty and fuzzy.

    Ive had my 4th gen nano for some time and in that time the screen has gone fuzzy a few times as in diagonal serrated lines across the screen making it difficult to see what Im doing. In the past simple manual resets would fix this, then I had to use

  • Adding photos to MobileMe galleries

    If I create a MobileMe gallery from one of my albums, will the MM published gallery update whenever I add photos to the original album? Or do I add photos to the MM gallery directly?

  • Get hyperlinks of an smartArt objetc VBA

    I want to get the hyperlinks that an smartArt object has in powerpoint. Normally the Slide hyperlinks are stored on slide.Hyperlinks but the ones that are inside smartArt are not appearing. Anyone knows how can I access to them and see to what slide

  • I can't email photos from photo app

    After upgrading to ios4 on my 3GS I can no longer email pics from Photos. It will attach the pic to an email message, but after hitting send, it returns to the pic without sending the email. The only way to do this is to copy the photo then open mail

  • Custom Idoc's

    Why do we create Custom Idoc's...any real time example for this.........What's the process of creating custom Idoc......