Low_value and high_value in USER_TAB_COL_STATISTICS in readable format

Hi,
My Oracle Version is 10.2.0.4.
How would I know the low_value and high_value from the table USER_TAB_COL_STATISTICS in a readable format. I am getting the values in RAW. How would I get these values for CHAR datatype columns in CHAR, NUMBER datatype columns in NUMBER and DATE datatype columns in DATE.
See the example given below.
swamy@VSFTRAC1> DESC employee_attendance
Name                                                                                   Null?    Type
EMPID                                                                                  NOT NULL VARCHAR2(10)
ACCESS_TIME                                                                            NOT NULL DATE
ENAME                                                                                           VARCHAR2(50)
FLOOR                                                                                           VARCHAR2(10)
DOOR                                                                                            VARCHAR2(10)
INOUT                                                                                           VARCHAR2(3)
ACCESS_RESULT                                                                                   VARCHAR2(50)
swamy@VSFTRAC1> SELECT column_name, density, num_distinct, num_nulls, low_value, high_value, avg_COL_len FROM user_tab_col_statistics WHERE table_name='EMPLO
YEE_ATTENDANCE';
COLUMN_NAME                       DENSITY NUM_DISTINCT  NUM_NULLS LOW_VALUE                      HIGH_VALUE                     AVG_COL_LEN
EMPID                          .008333333          120          0 30303031303830                 3031313633                               7
ACCESS_TIME                    .000259538         3853          0 786E0101031121                 786E0106121B01                           8
ENAME                          .008333333          120          0 414248494A49542050415449       57494E53544F4E2053414D55454C20          16
                                                                                                 52414A552050
FLOOR                                  .5            2          0 5345434F4E44                   5448495244                               7
DOOR                                   .5            2          0 454E5452414E4345               535441495243415345                      10
INOUT                                  .5            2          0 494E                           4F5554                                   4
ACCESS_RESULT                           1            1          0 414343455353204752414E544544   414343455353204752414E544544            15
7 rows selected.
swamy@VSFTRAC1>

Hi,
You can use the " dbms_stats.convert_raw_value" to convert the value to readable format
Refer to the following for the example
http://structureddata.org/2007/10/16/how-to-display-high_valuelow_value-columns-from-user_tab_col_statistics/
Hope that helps and solution for your requirement.
- Pavan Kumar N
Oracle 9i/10g - OCP
http://oracleinternals.blogspot.com/

Similar Messages

  • How to read from BLOB and Write to a file in user readable format.

    Hi,
         I am trying to read from a BLOB column and write the content to a file in user readable format. So far I was able to read the Blob column using dbms_lob, but not able to write to a file. Kindly let me know the method to do this.

    Hi, with this Java Code from Oracle Technet it's a easy thing:
    // classpath= /ORACLE/u01/app/oracle/product/10.2.0.3/jdbc/lib/ojdbc14.jar
    // Java SQL classes
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.Statement;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    // Oracle JDBC driver class
    import oracle.jdbc.OracleDriver;
    // Java IO classes
    import java.io.IOException;
    import java.io.BufferedReader;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    //Java Util classes
    import java.util.Properties;
    * This class demonstrates the Oracle JDBC 10g enhanced features for inserting
    * and retrieving CLOB data from the database. Using the new features, large
    * data of more than 32765 bytes can be inserted into the database using the
    * existing PreparedStatement.setString() and PreparedStatement.getString()
    * methods.
    public class ClobMan {
    /* Database Connection object */
    private Connection conn = null;
    /* Variables to hold database details */
    private String url = null;
    private String user = null;
    private String password = null;
    // Create a property object to hold the username, password and
    // the new property SetBigStringTryClob.
    private Properties props = new Properties();
    /* String to hold file name */
    private String fileName = null;
    * Default Constructor to instantiate and get a handle to class methods
    * and variables.
    public ClobMan(String fileName) {
    this.fileName = fileName;
    * Main runnable class.
    public static void main(String[] args) throws SQLException {
    // Instantiate the main class.
    ClobMan clobMan = new ClobMan(args[0]);
    // Load the Oracle JDBC driver class.
    DriverManager.registerDriver(new OracleDriver());
    // Load the database details into the variables.
    String dbUrl = "jdbc:oracle:thin:@pmol:1550:dbpmol";
    clobMan.url = dbUrl;
    clobMan.user = "gh10";
    clobMan.password = "secret";
    // Populate the property object to hold the username, password and
    // the new property 'SetBigStringTryClob' which is set to true. Setting
    // this property allows inserting of large data using the existing
    // setString() method, to a CLOB column in the database.
    clobMan.props.put("user", clobMan.user );
    clobMan.props.put("password", clobMan.password);
    clobMan.props.put("SetBigStringTryClob", "true");
    // Check if the table 'CLOB_TAB' is present in the database.
    //clobMan.checkTables();
    // Call the methods to insert and select CLOB from the database.
    //clobMan.insertClob();
    clobMan.selectClob();
    * This method will insert the data into a CLOB column in the database.
    * Oracle JDBC 10g has enhanced the existing PreparedStatement.setString()
    * method for setting the data more than 32765 bytes. So, using setString(),
    * it is now easy to insert CLOB data into the database directly.
    private void insertClob() throws SQLException {
    // Create a PreparedStatement object.
    PreparedStatement pstmt = null;
    try {
    // Create the database connection, if it is closed.
    if ((conn==null)||conn.isClosed()){
    // Connect to the database.
    conn = DriverManager.getConnection( this.url, this.props );
    // Create SQL query to insert data into the CLOB column in the database.
    String sql = "INSERT INTO clob_tab VALUES(?)";
    // Read a big file(larger than 32765 bytes)
    String str = this.readFile();
    // Create the OraclePreparedStatement object
    pstmt = conn.prepareStatement(sql);
    // Use the same setString() method which is enhanced to insert
    // the CLOB data. The string data is automatically transformed into a
    // clob and inserted into the database column. Make sure that the
    // Connection property - 'SetBigStringTryClob' is set to true for
    // the insert to happen.
    pstmt.setString(1,str);
    // Execute the PreparedStatement
    pstmt.executeUpdate();
    } catch (SQLException sqlex) {
    // Catch Exceptions and display messages accordingly.
    System.out.println("SQLException while connecting and inserting into " +
    "the database table: " + sqlex.toString());
    } catch (Exception ex) {
    System.out.println("Exception while connecting and inserting into the" +
    " database table: " + ex.toString());
    } finally {
    // Close the Statement and the connection objects.
    if (pstmt!=null) pstmt.close();
    if (conn!=null) conn.close();
    * This method reads the CLOB data from the database by using getString()
    * method.
    private void selectClob() throws SQLException {
    // Create a PreparedStatement object
    PreparedStatement pstmt = null;
    // Create a ResultSet to hold the records retrieved.
    ResultSet rset = null;
    try {
    // Create the database connection, if it is closed.
    if ((conn==null)||conn.isClosed()){
    // Connect to the database.
    conn = DriverManager.getConnection( this.url, this.props );
    // Create SQL query statement to retrieve records having CLOB data from
    // the database.
    String sqlCall = "SELECT rownum, name, sourcetext FROM t_source";
    pstmt= conn.prepareStatement(sqlCall);
    // Execute the PrepareStatement
    rset = pstmt.executeQuery();
    String rownum = null;
    String o_name =null;
    String clobVal = null;
    // Get the CLOB value from the resultset
    //java.io.BufferedWriter out = new java.io.BufferedWriter(new java.io.FileWriter("pr_all.sql"));
    while (rset.next()) {
    rownum = rset.getString(1);
         o_name = rset.getString(2);
         clobVal = rset.getString(3);
    System.out.println(" length: "+clobVal.length()+" "+o_name+" "+rownum);
         java.io.BufferedWriter out =
         new java.io.BufferedWriter(new java.io.FileWriter(o_name+".prc"));
         out.write(clobVal);
         out.newLine();
         out.write("/");
         out.newLine();
         out.newLine();
    out.flush();
    out.close();
    } catch (SQLException sqlex) {
    // Catch Exceptions and display messages accordingly.
    System.out.println("SQLException while connecting and querying the " +
    "database table: " + sqlex.toString());
    } catch (Exception ex) {
    System.out.println("Exception while connecting and querying the " +
    "database table: " + ex.toString());
    } finally {
    // Close the resultset, statement and the connection objects.
    if (rset !=null) rset.close();
    if (pstmt!=null) pstmt.close();
    if (conn!=null) conn.close();
    * Method to check if the table ('CLOB_TAB') exists in the database; if not
    * then it is created.
    * Table Name: CLOB_TAB
    * Column Name Type
    * col_col CLOB
    private void checkTables() {
    Statement stmt = null;
    ResultSet rset = null;
    try {
    // Create the database connection, if it is closed.
    if ((conn==null)||conn.isClosed()){
    // Connect to the database.
    conn = DriverManager.getConnection( this.url, this.props );
    // Create Statement object
    stmt = conn.createStatement();
    // Check if the table is present
    rset = stmt.executeQuery(" SELECT table_name FROM user_tables "+
    " WHERE table_name = 'CLOB_TAB' ");
    // If the table is not present, then create the table.
    if (!rset.next()) {
    // Table does not exist, create it
    stmt.executeUpdate(" CREATE TABLE clob_tab(clob_col CLOB)");
    } catch (SQLException sqlEx) {
    System.out.println("Could not create table clob_tab : "
    +sqlEx.toString());
    } finally {
    try {
    if( rset != null ) rset.close();
    if( stmt != null ) stmt.close();
    if (conn!=null) conn.close();
    } catch(SQLException ex) {
    System.out.println("Could not close objects in checkTables method : "
    +ex.toString());
    * This method reads the specified text file and, returns the content
    * as a string.
    private String readFile()
    throws FileNotFoundException, IOException{
    // Read the file whose content has to be passed as String
    BufferedReader br = new BufferedReader(new FileReader(fileName));
    String nextLine = "";
    StringBuffer sb = new StringBuffer();
    while ((nextLine = br.readLine()) != null) {
    sb.append(nextLine);
    // Convert the content into to a string
    String clobData = sb.toString();
    // Return the data.
    return clobData;
    }

  • Need to convert the binary data in blob field to readable format

    Hi,
    We need to convert the Binary data in the BLOB field to readable format and need to display it in Oracle Apps Environment,does anybody come across the similar requirement.
    please advise, thanks in advance.
    Regards,
    Babu.

    You could use standard Attachments functionality here ... if the blob is not in FND_LOBS, insert into FND_LOBS, fnd_attached_documents etc to enable viewing via "Attachments" to the entity the blob is related to.
    Gareth

  • How can I convert the ITHMB photo files to PC readable format like JPEG?

    How can I convert the ITHMB photo files on my new Iphone 4s to a PC readable format like JPEG

    Look at the link and follow instructions to convert the file taken from a different thread in this forum:
    https://discussions.apple.com/thread/2640386?start=0&tstart=0

  • Complete export of SAP XI elements to an external, readable format i.e. XML

    Within the scope of a project regarding Dependencies of Applications within the company the data, saved in the Integration Directory as well as in the Integration Repository, have to be exported in an external, readable format which can be processed in another application. My question is concerned with the extraction possibilities I have concerning the different components: 
    Integration Repository: Here we need the data about Message Interfaces, Message Types as well as Data Types. As this information are formally described using WSDL: Does a possibility exist to export all WSDL Documents automatically?
    Integration Directory: Here we are interested in the elements: Receiver Determination, Interface Determination, Sender Agreement etc. Does any possibility exist to export these data to i.e. a XML File? Is ABAP necessary?
    Your help will be greatly appreciated.
    Kind Regards,
    Sebastian Grunow

    You can read, alter and load objects with the APIs of the WebServicesNavigator. To browse to there open your browser and go to http://url:Port/index.html
    There you can select the Web Services Navigator. Browse through the services for the desired objects. Use the query function to read out all existing objects by key values and as a template to use the read-function of these APIs.
    Make sure you have the Java-Roles SAP_XI_API_DEVELOP_J2EE and/or SAP_XI_API_DISPLAY_J2EE

  • Data should be in non readable format in payload-- SXMB_MONI

    Hi All;
    I have a scenario where I need to send MT103 file to bank with digital signature and this configuration is done and working good.I have a new requirement, that the payload data/content should not be in readable format in SXMB_MONI. This is where I am not able to succeed. In RWB the data is not in readable format, so there is no issue.
    I have the following options with me;
    1.Create a copy of SXMB_MONI & add authorization object only for not to display payload content. 
    2.Create a new role with less privilege for XI Monitoring and assign this to all the users. (even XI administrator will have less privilege which is not good)
    3.Do the signature part in R/3 before XI is picking. (so that the data is not readable , ABAP development not preferred ).
    4.Send the file in Binary Format to bank.  (Bank rejected this option, because they donu2019t support this process)
    5.Create a Internal FTPS site. MT103 file will be placed in FTPS site folder. When XI picks the file adds the digital signature in (sender CC).(I have a doubt, will the data be in non readable format in SXMB_MONI?)
    If you know any better/preferred solution, please let me know.
    Thanks;
    Prabhu Rajesh

    Hello
    Check the link below:
    Messaging Components of the Integration Engine 
    http://help.sap.com/saphelp_nw70/helpdata/en/42/52f7415e639c39e10000000a155106/frameset.htm
    Use authorization object S_XMB_MONI if you want to prevent message trace headers or message payloads being visible in the PI monitoring tools.
    Regards
    Mark

  • Converting value from System.currentTimeMillis() to readable format

    hi
    i have in database coumn with values that were stored as result of executing System.currentTimeMillis() in java (=“the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC). i need to convert these values to some human readable format.
    i am able to get year, month and day from these values(value_date) in format "dd/mm/yyyy" but i need hours, minutes and seconds as well.
    select i have for getting years, months and days:
    select (
    extract (day FROM (to_date('01/01/1970 00:00:00000','mm/dd/yyyy hh24:mi:sssss') + value_date/1000/86400))
    || '/'||
    extract (month from (to_date('01/01/1970 00:00:00000','mm/dd/yyyy hh24:mi:sssss') + value_date/1000/86400))
    ||'/'||
    extract (year FROM (to_date('01/01/1970 00:00:00000','mm/dd/yyyy hh24:mi:sssss') + value_date/1000/86400))
    FROM some_table;
    please advice how to improve this select to get something like "dd/mm/yyyy hh:mm:ss"
    thanks

    Note that the result with to_char might still not be what you expect (due to timezone and/or DTS):
    SQL>  CREATE OR REPLACE FUNCTION currenttimemillis
       RETURN NUMBER
    IS
       LANGUAGE JAVA
       NAME 'java.lang.System.currentTimeMillis() return java.lang.long';
    Function created.
    SQL>  select to_char(sysdate, 'dd.mm.rrrr hh24:mi:ss') dt,
           to_char(date '1970-01-01' + currentTimeMillis/(1000*24*60*60),'dd.mm.rrrr hh24:mi:ss') dt2
      from dual
    DT                  DT2               
    04.06.2009 16:44:09 04.06.2009 14:44:09

  • X12 00502-204 validate instance failure when EDI file is in readable format in Visual Studio

    Hi, I have a n X12 00502- 940 edifile, when all data are on the same line, Visual studio validates
    ST*204*7629~B2**XXXX**159771**PP~.......N4G*L*43920*900**E*864~SE*33*7629~
    when I try to make the file in a readable format, each segment on line by hiting enter after each "~", and try to validate
    as follows
    ST*204*7629~
    B2**XXXX**159771**PP~
    B2A*00*LT~
    SE*33*7629~
    I get "Invalid Segment Terminator" or many segment level errors, I have always "~" in the "segment separator (106th char of iSA) checked in the validate instance dialog box. In Segment separator suffixe, I tried all, None, CR,
    LR & CRLF but no way
    I also generated an instance and made it readble, I get the exact same behavior
    Thanks in advance

    Covert it to readable format only for your purpose. Leave the system to read it based on segment separator only.

  • Converting .prn to a readable format

    Hi,
    I need to capture the .prn files that a certain application creates in a TMP folder and somehow convert it to a readable format like .txt or .doc or .pdf. There are two major problems -
    1. The .prn files get removed from the folder as soon as the print job is over. How do i make them stay??
    2. How to convert the prn file to a readable form such that there are no extra ascii garbage characters.
    3. I tried the windows print dialog box "print to file" option. That doesnt work somehow. It doesnt ask me for any file name. Any ideas about this??
    Can we do something in java to solve this problem.
    Thanks

    I need to capture the .prn files that a certain
    tain application creates in a TMP folder and somehow
    convert it to a readable format like .txt or .doc or
    .pdf. There are two major problems -
    1. The .prn files get removed from the folder as soon
    as the print job is over. How do i make them stay??Ask the people who wrote the application.
    2. How to convert the prn file to a readable form
    such that there are no extra ascii garbage
    characters.Ask the people who wrote the application.
    3. I tried the windows print dialog box "print to
    file" option. That doesnt work somehow. It doesnt ask
    me for any file name. Any ideas about this??Ask the people who wrote the application.
    Can we do something in java to solve this problem.Ask the people...

  • Displaying data in readable format

    select *from user_tables;
    TABLE_NAME                     TABLESPACE_NAME                CLUSTER_NAME                   IOT_NAME                       STATUS     PCT_FREE   PCT_USED  INI_TRANS  MAX_TRANS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE  FREELISTS
    FREELIST_GROUPS LOG B   NUM_ROWS     BLOCKS EMPTY_BLOCKS  AVG_SPACE  CHAIN_CNT AVG_ROW_LEN AVG_SPACE_FREELIST_BLOCKS NUM_FREELIST_BLOCKS DEGREE     INSTANCES  CACHE TABLE_LO SAMPLE_SIZE LAST_ANAL PAR IOT_TYPE     T S NES BUFFER_ ROW_MOVE GLO USE
    DURATION        SKIP_COR MON CLUSTER_OWNER                  DEPENDEN COMPRESS DRO
    JOB_GRADES                     USERS                                                                                        VALID            10                     1        255          65536                       1  2147483645
                    YES N          6          5            0          0          0           9                         0                   0          1          1     N ENABLED            6 03-SEP-12 NO               N N NO  DEFAULT DISABLED YES NO
                    DISABLED YES                                DISABLED DISABLED NO
    ERROR                          USERS                                                                                        VALID            10                     1        255          65536                       1  2147483645
                    YES N          1          5            0          0          0          84                         0                   0          1          1     N ENABLED            1 03-SEP-12 NO               N N NO  DEFAULT DISABLED YES NO
                    DISABLED YES                                DISABLED DISABLED NO
    TABLE_NAME                     TABLESPACE_NAME                CLUSTER_NAME                   IOT_NAME                       STATUS     PCT_FREE   PCT_USED  INI_TRANS  MAX_TRANS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE  FREELISTS
    FREELIST_GROUPS LOG B   NUM_ROWS     BLOCKS EMPTY_BLOCKS  AVG_SPACE  CHAIN_CNT AVG_ROW_LEN AVG_SPACE_FREELIST_BLOCKS NUM_FREELIST_BLOCKS DEGREE     INSTANCES  CACHE TABLE_LO SAMPLE_SIZE LAST_ANAL PAR IOT_TYPE     T S NES BUFFER_ ROW_MOVE GLO USE
    DURATION        SKIP_COR MON CLUSTER_OWNER                  DEPENDEN COMPRESS DRO
    TEST_A                         USERS                                                                                        VALID            10                     1        255          65536                       1  2147483645
                    YES N          3          5            0          0          0          16                         0                   0          1          1     N ENABLED            3 03-SEP-12 NO               N N NO  DEFAULT DISABLED YES NO
                    DISABLED YES                                DISABLED DISABLED NO
    COLLECTIONS_EG                 USERS                                                                                        VALID            10                     1        255          65536                       1  2147483645
                    YES N                                                                                                                             1          1     N ENABLED                        NO               N N NO  DEFAULT DISABLED NO  NO
    TABLE_NAME                     TABLESPACE_NAME                CLUSTER_NAME                   IOT_NAME                       STATUS     PCT_FREE   PCT_USED  INI_TRANS  MAX_TRANS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE  FREELISTS
    FREELIST_GROUPS LOG B   NUM_ROWS     BLOCKS EMPTY_BLOCKS  AVG_SPACE  CHAIN_CNT AVG_ROW_LEN AVG_SPACE_FREELIST_BLOCKS NUM_FREELIST_BLOCKS DEGREE     INSTANCES  CACHE TABLE_LO SAMPLE_SIZE LAST_ANAL PAR IOT_TYPE     T S NES BUFFER_ ROW_MOVE GLO USE
    DURATION        SKIP_COR MON CLUSTER_OWNER                  DEPENDEN COMPRESS DRO
                    DISABLED YES                                DISABLED DISABLED NO
    COUNTRIES                                                                                                                   VALID             0          0          0          0
                        N          4                                             0          19                         0                              1          1     N ENABLED            4 03-SEP-12 NO  IOT          N N NO          DISABLED YES NO
                    DISABLED YES                                DISABLED DISABLED NO
    DEPARTMENTS                    EXAMPLE                                                                                      VALID            10                     1        255          65536                       1  2147483645
    TABLE_NAME                     TABLESPACE_NAME                CLUSTER_NAME                   IOT_NAME                       STATUS     PCT_FREE   PCT_USED  INI_TRANS  MAX_TRANS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE  FREELISTS
    FREELIST_GROUPS LOG B   NUM_ROWS     BLOCKS EMPTY_BLOCKS  AVG_SPACE  CHAIN_CNT AVG_ROW_LEN AVG_SPACE_FREELIST_BLOCKS NUM_FREELIST_BLOCKS DEGREE     INSTANCES  CACHE TABLE_LO SAMPLE_SIZE LAST_ANAL PAR IOT_TYPE     T S NES BUFFER_ ROW_MOVE GLO USE
    DURATION        SKIP_COR MON CLUSTER_OWNER                  DEPENDEN COMPRESS DRO
                    NO  N          8          5            0          0          0          19                         0                   0          1          1     N ENABLED            8 03-SEP-12 NO               N N NO  DEFAULT DISABLED YES NO
                    DISABLED YES                                DISABLED DISABLED NO
    EMPLOYEES                      EXAMPLE                                                                                      VALID            10                     1        255          65536                       1  2147483645
                    NO  N         20          5            0          0          0          66                         0                   0          1          1     N ENABLED           20 03-SEP-12 NO               N N NO  DEFAULT DISABLED YES NO
                    DISABLED YES                                DISABLED DISABLED NOi want to display the data in readable format
    10g oracle.

    Hi,
    Rahul_India wrote:
    i want to display the data in readable formatHow to do that depends on what you consider "readable".
    SET PAGESIZE higher, to get fewer header rows.
    SET LINESIZE higher, if appropriate
    Look up the COLUMN command in the SQL*Plus manual The
    FORMAT
    FOLD_AFTER, FOLD_BEFORE
    TRUNCATED, WRAPPED, WORD_WRAPPED
    options are especially useful.
    Do you really need to see all the columns? If not, don't use SELECT *.
    Consider explicitly listing the columns in a different order. The output may be more readable if related columns are listed together, or one directly above the other. At any rate, you can probably pack multi-line output more tightly if you specify the order.
    Do you have a text editor where reading long lines is easier than it is in the SQL*Plus window? If so, SPOOL the output, and read the file it creates in your editor.

  • Can we extract blob objects from sql database to a human readable format?

    Hi All,
    I have question How can we extract
    blob objects from Sql database to human readable format ?
    Blob includes Images, text and docs.
    Thanks 
    Moug
    Best Regards Moug

    One thing you can do if its sql 2012 or later is to load the blob data to FileTable created in database. Then you would be able to physically browse to directory it points and see all files in its native format.
    see this for more details
    http://visakhm.blogspot.in/2012/07/working-with-filetables-in-sql-2012.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Photos won't upload to my laptop in a readable format!!!

    For some reason since the last update my Iphone won't transfer my photos to my laptop in a readable format.
    I've updated all my windows software to get around this, but still no joy. Can anyone help?
    Thanks

    Hello sofi0518,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iCloud: Troubleshooting iCloud Photo Sharing and Shared Photo Streams
    http://support.apple.com/kb/TS4379
    Best of luck,
    Mario

  • How to change in sql_text into normal readable format?

    hi all
    yesterday inour production environment the dev. did wrongly updated one query.
    they want to know who and when did the changes?
    i found some info from dba_audit_object,
    but in that table the column for sql_text is not showing the full query ,it shows the update table_name set column name=new row id where =old row id..
    by using this query i dont know how to trace the sql_query in norma readble format.
    pls help me to sort out this issue..
    Thanks
    M.Murali..

    Hi
    I am little confused with your question...
    >
    they want to know who and when did the changes?
    but in that table the column for sql_text is not showing the full query ,it shows the update table_name set column name=new row id where =old row id..
    by using this query i dont know how to trace the sql_query in norma readble format.
    >
    If you are getting back the update table_name set column name=new row id where =old row id.. statement then you can get back the values you want.so, what does by using this query i dont know how to trace the sql_query in norma readble format mean.The update statement is in readable format only.
    The answer for who and when changed it is
    select USERNAME,to_char(TIMESTAMP,'DD-MON-YY HH24:MI:SS'),USERHOST,TERMINAL,OWNER,OBJ_NAME,ACTION_NAME,SQL_TEXT from DBA_AUDIT_OBJECT;
    The username will be the database username who updated the column.Timestamp will tell you the time when it was done,terminal will give the terminal name of the PC,owner is the object's owner and sql_text is the update command fired by the username on the owner's table.
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL> sho parameter audit
    NAME                                 TYPE        VALUE
    audit_file_dest                      string      C:\ORACLE\PRODUCT\10.2.0\ADMIN
                                                     \MATRIX\ADUMP
    audit_sys_operations                 boolean     FALSE
    audit_trail                          string      DB, EXTENDED
    DB,EXTENDED -- As db, but the SQL_BIND and SQL_TEXT columns are also populated.
    SQL> grant select,insert,update on scott.emp to lap;
    Grant succeeded.
    *FROM THE LAP SESSION DID*
    SQL> update scott.emp set MGR=7777 where MGR=7698;
    5 rows updated.
    SQL> commit;
    Commit complete.
    FROM THE OTHER SYS AS SYSDBA SESSION
    SQL> select count(1) from sys.aud$;
      COUNT(1)
             1
    SQL> select USERNAME,to_char(TIMESTAMP,'DD-MON-YY HH24:MI:SS'),OWNER,OBJ_NAME,ACTION_NAME,SQL_TEXT from DBA_AUDIT_OBJECT;
    USERNAME                       TO_CHAR(TIMESTAMP, OWNER
    OBJ_NAME
    ACTION_NAME
    SQL_TEXT
    LAP                            15-NOV-08 17:31:45 SCOTT
    EMP
    UPDATE
    update scott.emp set MGR=7777 where MGR=7698
    So i am getting the sql_text of the update done by LAP user on the SCOTT's  EMP table.HTH
    Anand

  • Issue on How to mimic Deski document from CMS to local machine, pass parameter, execute and save in a mutiple report format then store in a network drive.

    Post Author: usaitconsultant
    CA Forum: JAVA
    Would you know if there's a way to mimic Deski
    document from BOXI server(CMS) to local machine, pass parameter, execute and
    save in a mutiple report format then store in a local drive or network
    drive? Most examples and tutorials in BO XI R2 I've seen are scheduling while drilling report is for web intelligence only and not desktop intelligence.  Please let me know your ideas. I would really appreciate your help. Thanks.

    Post Author: usaitconsultant
    CA Forum: JAVA
    Hi Ted,
    Thanks for the reply.The file is not available in the server. Though, I checked CMS and I found an instance in history tab and the status is failed with error below. 
                Error Message:
                A variable prevented the data provider Query 1 with BANRRD30 from being refreshed. (DMA0008).When I checked my codes, I found out that the object Im using is for web intelligence data provider. However, I cannot find any documentation and example for passing parameter values in desktop intelligence data provider. Any idea on this? You think this is not suported by Report Engine SDK?Thanks.    

  • How do I keep format when copying a table to keynote? paste and match style does not keep format

    how do I keep format when copying a table to keynote? paste and match style does not keep format

    It used to work until recent updates and it is very frustrating.....I hope someone out there knows how to deal with this.

Maybe you are looking for