Logging ALL Columns in a Table

Hi I want to enable supplemental logging for all columns in table. So I issued the command
'ALTER TABLE xxxx ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS:
Now In that table I have 5 LOB colums,2 CLOBS and 2 Varchar2 columns and I dont want to log them but all the other columns.How to do this.Will logging all columns automatically reject LOBs and CLOBS???

Use the following code for remove all the row in a table...
call the DeviceClearTable()
method in mouse event...
public void DeviceClearTable()
     int numrows = DeviceModel.getRowCount();
          for(int i = numrows - 1; i >=0; i--)
               DeviceModel.removeRow(i);
Edited by: kumaravel on Jun 2, 2008 10:36 AM

Similar Messages

  • Aggregate of all Columns in each table for the entire schema

    I want to calculate the report of Aggregate of all Columns in each table for the entire schema in Oracle. Pls let me know which approach is best to do this.
    Thanks in advance !!

    Not sure about your requirement..
    This?
    select table_name,sum(data_length) sm
    from user_tab_cols
    group by table_name;                                                                                                                                                                                                                                                                           

  • ORA-12983: cannot drop all columns in a table

    Hi,
    I am creating a table with two columns.
    I have modified a column as unused using ALTER statement.
    After that i have tried to drop the another column by using ALTER statement.
    But it throws an error ORA-12983: cannot drop all columns in a table.
    is it not possible to achieve this via ALTER statement?
    thanks

    is there any other way to find the name of the columns which have been marked as unused?Don't think so, and you would not be able to do much about. You won't be able to reference it, you won't be able to un-unuse it, and you would even be able to add a new column having same name.
    Why are you using SET UNUSED in the first place?
    Regards
    Peter
    Quoting myself:
    You won't be able to reference itMaybe not good enough:
    SQL> select column_name, data_type, segment_column_id
      from user_tab_cols
    where table_name = 'T';
    COLUMN_NAME                    DATA_TYPE   SEGMENT_COLUMN_ID
    SYS_C00001_11051618:28:14$     NUMBER                      1
    B                              NUMBER                      2
    SYS_C00003_11051618:28:14$     NUMBER                      3
    3 rows selected.
    select "SYS_C00003_11051618:28:14$" from t
    Error at line 1
    ORA-00904: "SYS_C00003_11051618:28:14$": invalid identifier
    SQL> alter table t drop column "SYS_C00001_11051618:28:14$";
    Table altered.
    SQL> select column_name, data_type, segment_column_id
      from user_tab_cols
    where table_name = 'T';
    COLUMN_NAME                    DATA_TYPE   SEGMENT_COLUMN_ID
    B                              NUMBER                      
    1 row selected.
    Note: Both columns "disappeared"  Thanks MichaelS
    Edited by: Peter on May 16, 2011 9:29 AM

  • Is there a way to match all columns in a table?

    Oracle 11.1.0.7:
    Is there any way to say match all the columns of Table A with Table B? For eg:
    Table A
    id
    name
    Table B
    id
    name
    Is there a way to say match all the columns with similar column in other in a select instead of doing "where A.id = B.id and A.name = b.name"? I am trying to write a compare script to test that replication is indeed doing the right thing.

    user628400 wrote:
    If 2 columns have null values does it match that too? I'll run some tests.It does
    SQL> ed
    Wrote file afiedt.buf
      1  with a as (select 1 col1, null col2 from dual
      2             union all
      3             select 2 col1, null col2 from dual
      4             union all
      5             select null, null from dual),
      6       b as (select 1, null from dual
      7             union all
      8             select null, null from dual)
      9  select *
    10    from a
    11  minus
    12  select *
    13*   from b
    SQL> /
          COL1 C
             2
    While I was doing the comparision I found that if column x in Table A has "null" and same column x in table B has "null" and if I do "where A.x = B.x" then it doesn't return the row. I am not sure why. Does "minus" work the same way?That's because NULL will never equal any value (including NULL) and NULL will never not equal any value (including NULL). That is
    NULL = 1 is unknown (which maps to false)
    NULL = NULL is unknown
    NULL != 1 is unknown
    NULL != NULL is unknown
    If you want to compare columns that may have NULL values, you need to use IS NULL and IS NOT NULL or use the NVL function to map NULL values to a non-NULL but impossible value, i.e.
    WHERE (a.x = b.x OR
            (a.x is null and b.x is null))or
    WHERE nvl(a.x,-17) = nvl(b.x,-17)assuming that -17 is not a valid value for either a.x or b.x
    Justin

  • All columns of trinidad table are not coming up on page while its running

    Hi,
    I have put two trinidad tables on my page.But while the page is run, I am unable to see all the columns of the table.Only a few columns are visible.
    Also, though there are 5 rows in teh table ,there is a lot of gap below the tablespace.So the next table comes after a very big gap.
    How to solve the above two problems? Kindly let me know your valuable suggestions.
    Regards

    Hi santosh,
    Following is my code.I am providing only one column code(similarly there are 3 more columns),along with the table code.
    <tr:table value="#{phonebeannew.inputphone}" var="row"
    rows="#{bindings.phone.rangeSize}"
    inlineStyle="height:#{phonebeannew.rownumbers + 275}px"
    id="t1" width="100%">
    <tr:column sortProperty="phonetype" sortable="false"
    headerText="phonetype"
    id="c3" width="5px">
    <tr:inputText value="#{row.phonetype}"
    simple="true">
    I gave width as 5px but it doesnt make any difference in output.
    The 'phonebeannew' is our bean and inputphone is a property of it.input phone holds the array of values for the 4 columns.
    Kindly let me know if you want any further information which I can provide
    Regards

  • Remove all columns in a table

    whenever a user decides to choose another file to read, i would remove all the columns in the table and then write it all over again, However, I do not see such function in jtable, so how do I go about doing that?

    Use the following code for remove all the row in a table...
    call the DeviceClearTable()
    method in mouse event...
    public void DeviceClearTable()
         int numrows = DeviceModel.getRowCount();
              for(int i = numrows - 1; i >=0; i--)
                   DeviceModel.removeRow(i);
    Edited by: kumaravel on Jun 2, 2008 10:36 AM

  • File Browse Option don't show me all Column in Data / Table Mapping

    Dear Friends,
    i am using 4.1 on APEX.ORACLE.COM.
    i have to created page with DATA Upload option.Page are ctreated successfully But there is one problem when i COPY & PASTE DATA from Excel Sheet then Data Upload Success fully.
    But When I use File Browser Option to Upload Data Then In Data / Table Mapping Step that show me Only One Column Name Select list with Do Not Load default option . but i have 7 column name in Excel Sheet. that should be display me 7 Select List to select All column name which are mention in Excel Sheet
    Please tell me where i am wrong and how to display all Column name in Data / Table Mapping step to upload Excel Sheet Data.
    How to Resplve this issue.
    Thanks
    Manoj Kauhsik

    Dear Earl,
    Thanks to reply me.
    I am not using Utility to upl;oad Excel Sheet Data.
    i am go through Apex.oracle.com .i have create an application to upload data from Excel Sheet.
    There is an option DATA UPLOAD when we create new Page so i have choose this option and create Pages with follow all instraction .By using this option i want to an Feature in my Application to Upload Data .
    When i use Copy and Paste OPtion to upload data from Excel Sheet.then Data ar Uploaded but Problem Is When i use File Browser Option to upload data then that show me only one option for Column name rather than i have 7 Column in My excel file.
    i have one more problem ,i have .csv file when i open it and close then no problem but when i reopen it then that show me a pop up with Meassages
    "Excel has detected abc.csv file is a SYLK file.but can't load it".
    How resole it.Please suggest me.
    Thanks
    Vedant

  • Question - new to BO Data Services Designer - how to automatically transform varchar column data to upper(varchar) across all columns in a table?

    Hello -
    New user to BO Data Services Designer. Company is using Data Services Version 12.2.
    I have many tables that all need the same transformation- converting varchars fields to upper(varchar) fields
    Example:
    I have a table called Items. It has 40 columns, 25 of which are of type varchar.
    What I have been doing is ....
    I make the Item table as the source table then create a Query transform that is then attached to a new target table called - ITEMS_Production.
    I can manually drag and drop columns from the source table to the query and then in the mapping area I can manually type in upper(table_name.column_name) or select the upper function and then select the table.column name from the function drop down list.
    Obviously, I want to do this quicker as I have to do this for lots and lots of tables.
    How can set up Data Services so that I can drag and drop an upper transform quickly and easily or automate this process.
    I also know Python-Java so am happy to script something if need be.
    the logic would be something like -
    if there is a column with a type varchar, add the upper() transformation to column. Go to next column.
    Excited to be using this new tool-
    Thanks in advance.
    Ray

    Use the DS Workbench.

  • Possible to include all columns of a table in a SELECT but exclude BLOBS?

    Hi
    I am using Oracle 9i.
    I was hoping the following would give me a list of rows in 1 table on a schema that are not in another identical table on another schema:
    select * from online.table minus select * from offline.table
    However, the statement issues the error:
    ORA-00932: inconsistent datatypes: expected - got BLOB
    Without writing a contruct query to get the columns (excluding BLOBS etc) is there another,easier way?
    Thanks
    Edited by: cubmar on May 25, 2009 2:41 PM

    Hi,
    No need to write PL/SQL(?). Just generate the select lists needed, by using the dictionary.
      select column_name || ','
        from user_tab_cols
       where data_type not in ('BLOB', 'CLOB', 'LONG')
         and table_name = upper('&your_table')
    order by column_id;Regards
    Peter

  • Search all columns in a table

    Hi,
    I have an application which deploys the data to Oracle database. It has more than 25 tables and many columns. It does not have any document explaining the deployment, so I an kind of doing reverse engineering here.
    I need a script which will fetch the column name or at least table names which will match with either some string or number? I found few examples on net to find out numbers. But I am struggling to make it work for string.
    If any expert could share some knowledge, will be a great help.
    Thanks in advance,
    amit

    Are you looking for this?
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Elapsed: 00:00:00.17
    satyaki>
    satyaki>
    satyaki>SELECT user_tab_columns.table_name,user_tab_columns.column_name,
      2           user_tab_columns.data_type
      3  FROM  user_tab_columns
      4  WHERE column_name = upper('&col_nm')
      5  order by user_tab_columns.table_name;
    Enter value for col_nm: empno
    old   4: WHERE column_name = upper('&col_nm')
    new   4: WHERE column_name = upper('empno')
    TABLE_NAME                     COLUMN_NAME                    DATA_TYPE
    AUD_EMP                        EMPNO                          NUMBER
    BIN$KMfZlm2JTAGMa8qHy2RMtw==$0 EMPNO                          NUMBER
    BIN$M70sSYS8RxSuSHC91rMJ7w==$0 EMPNO                          NUMBER
    BIN$TQFKVismS0eN82vmFZgOKQ==$0 EMPNO                          NUMBER
    BIN$WKXsDR9KSGWgL9rc4o2tMQ==$0 EMPNO                          NUMBER
    BIN$Wr/F6e6QRhORNu4ZQJmYpQ==$0 EMPNO                          NUMBER
    CONDITIONAL_AUDIT              EMPNO                          NUMBER
    CONS_CHK                       EMPNO                          NUMBER
    DEEP                           EMPNO                          NUMBER
    DUP_EMP                        EMPNO                          NUMBER
    DYN_EMP                        EMPNO                          NUMBER
    TABLE_NAME                     COLUMN_NAME                    DATA_TYPE
    EMP                            EMPNO                          NUMBER
    EMP2                           EMPNO                          NUMBER
    EMP_DML                        EMPNO                          NUMBER
    EMP_JOB_DET                    EMPNO                          NUMBER
    EMP_N                          EMPNO                          NUMBER
    EMP_NO_DML                     EMPNO                          NUMBER
    EMP_STAT                       EMPNO                          NUMBER
    E_EMP                          EMPNO                          NUMBER
    E_EMP_N                        EMPNO                          NUMBER
    FF_EMP                         EMPNO                          NUMBER
    MIKE_TEST                      EMPNO                          NUMBER
    TABLE_NAME                     COLUMN_NAME                    DATA_TYPE
    MIKE_V_TEST                    EMPNO                          NUMBER
    NICK_DEMO                      EMPNO                          NUMBER
    PP_GERD                        EMPNO                          NUMBER
    P_EMP                          EMPNO                          NUMBER
    SR_EMP                         EMPNO                          NUMBER
    SS_EMP                         EMPNO                          NUMBER
    TABLE_1                        EMPNO                          NUMBER
    TABLE_2                        EMPNO                          NUMBER
    TABLE_3                        EMPNO                          NUMBER
    TABLE_MAIN                     EMPNO                          NUMBER
    TEST_SSSSS                     EMPNO                          NUMBER
    TABLE_NAME                     COLUMN_NAME                    DATA_TYPE
    T_EMP                          EMPNO                          NUMBER
    test_guido                     EMPNO                          NUMBER
    35 rows selected.
    Elapsed: 00:00:01.68Regards.
    Satyaki De.

  • How can i update all column of table without know it's structure

    hi to all
    i want to make update to all columns of table with record type of this table
    ex- consider the emp table and contain any number of columns
    and you make record is row type of this table (emp) as emp_rec
    and fech in it any record by select * from emp
    and i want to update another record this the return record from data base as
    update emp by using the emp_rec
    i want to know how this will be acheive

    It is all written in the docs:
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14261/collections.htm#i20479
    Although updating all columns for a table is VERY, VERY BAD practice.
    Gints Plivna
    http://www.gplivna.eu

  • To check whether there is any size mismatch between columns of two tables

    Hi,
    Here i got two tables T and M where i am going to migrate data from T to M. But before migrating i need to check whether all the data in source table fits into destination table columns. The datatypes of all columns in source table T is of Varchar2 only as it is a temp table.
    Ex :- Table 'T' (Source table) with columns
    T_Lat Varchar2(50);
    T_Amt Varchar2(50);
    T_Cat Varchar2(50);
    T_Vat Varchar2(50);
    Now I have another table 'M'(Destination Table) with columns
    M_Lat Varchar2(50);
    M_Amt varchar2(25);
    M_Cat date;
    M_Vat number;
    Now my task is I have to do a prevalidation of the data in 'T' that whether all the data in those columns will suit for the destination table columns respectively (to check whether there is any size mismatch). This check should be done dynamically.
    For suppose, in T_Amt(source column of T table) if text is abt 50 characters, it cant fit M_Amt(destination column of M table). In this case it should throw an error indicating that destination column size is less for the source column.
    Note:- There is no unique mapping column for these two tables and there are about 400 columns in the source table to be validate
    I think it can be done using arrays or plsql tables.
    Can any one help in this regard.

    >
    Now my task is I have to do a prevalidation of the data in 'T' that whether all the data in those columns will suit for the destination table columns respectively (to check whether there is any size mismatch). This check should be done dynamically.
    >
    Just because the source table T_Amt column is defined as 50 doesn't mean any of the data is really that long. So the data itself needs to be checked. That is just what a simple query can do.
    See my answer in this thread Posted: Jul 25, 2012 1:14 PM
    Re: Help in Execute Immediate - Invalid relational Operator
    Here is the modified sample query and results for a query of a clone of the EMP table with some modified data
    select count(*) cnt,
           -- job column
           sum(case when job is null then 1 else 0 end) job_nul,
           sum(case when job = 'SALESMAN' then 1 else 0 end) job_salesman,
           min(length(job)) job_minlength, max(length(job)) job_maxlength,
           min(job) job_min, max(job) job_max,
           -- hiredate colulmn
           sum(case when hiredate is null then 1 else 0 end) hiredate_nul,
           min(hiredate) hiredate_min,
           max(hiredate) hiredate_max
            from emp1
    CNT JOB_NUL JOB_SALESMAN JOB_MINLENGTH JOB_MAXLENGTH JOB_MIN JOB_MAX  HIREDATE_NUL HIREDATE_MIN HIREDATE_MAX
    14    2       4            5             9             ANALYST SALESMAN 0            9/28/0001    12/3/9999With one query and ONE pass thru the table I was able to get the COUNTs, the MIN and MAX values for each column and the MIN and MAX lengths of the VARCHAR2 columns.
    There are 14 total records, 2 where JOB is null, 4 where the JOB is SALESMAN. The MIN length of the JOB data is 5 and the MAX is 9.
    Look at the date values. The results tell me I have some problem data.
    The length data tells me if I try to put the JOB data into another table I need to define the length as at least 9 or it won't fit.
    For your use case you might find that all of the data in the T_Lat column is shorter than 26 and will actually fit into the M_Lat target table column.

  • What is the difference betwwen SELECT ALL Column and Select Speceific Colum

    Hi All,
    If the block size of the database is 8K and average row length is 2K and if we select all column of the table the I/O show that it had read more blocks then compare to
    specific column of the same table. Why is this?
    Secondly if Oracle brings a complete block is the db buffer cache, while reading block from disk, they why there is a difference of block count in two queries.
    This difference reveals to me when I check the EXPLAIN PLAN for two different queries against the same table but one select all columns and the other one select specific column.
    Kindly help me in clearing this confusion.
    Regards,
    Kamran

    user1514587 wrote:
    >
    Usually, indexes are smaller (contain fewer blocks) than the table - ergo, select empno from emp could be satisfied by reading fewer blocks.
    what if there is a composite Index on a table containing 3 to 4 columns and the size of table is in 100 of GB and Index size itself is vey large then I think Oracle will go for FTS and small Index scan will be expensive. Kindly Share your thoughts.
    Regards,
    KamranHandle:     user1514587
    Status Level:     Newbie (5)
    Registered:     May 9, 2011
    Total Posts:     21
    Total Questions:     13 (12 unresolved)
    I think you wastes everyone's time here since you rarely get answer to any posted question

  • Columns justification in tables

    LabVIEW version 8.0
    Is there any way to independently justify at ones, each column of a table, left or centre or right ? and to justify all columns in a table, for instance all left ?
    Simbani

    You can play with negative values for the row-colum index of the active cell property node :
    -1 refers to the column or row header only, while -2 refers to the whole column/row.
    Accordingly -2,-2 refers to the whole table...
    You need to call the cell selection start property to validate the justify operation.
    See the attached vi to find out how to justify all the cells.
    Message Edité par chilly charly le 01-28-2006 01:33 PM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Justify table.vi ‏11 KB

  • ADF FACES: af:table not rendering all columns

    I'm using ADF EA 17 with myFaces 1.0.9 on JBoss 4.0.1/JVM 1.4.2_07-b05. The af:table is embedded within an af:panelgroup (being body of af:panelbox).
    The af:table is not rendering all columns (only last 2 out of 8 cols total). The model behind the af:table is a java.util.List. Debugging shows that the list is filled up with beans correctly and that each of the properties of such a bean corresponding to a table column are also set correctly.
    Strange thing is that sometimes all columns are rendered ok. Especially if i make heavy changes on the jsp (e.g. removing all but 2 cols from the af:table) and dropping it into the .../jboss/server/../tmp/deploy/tmpXYZ-exp.war directory. Restarting JBoss results in the old behaviour. Also closing browser and re-opening it yields to the missing columns again.
    I've set breakpoints on the bean properties representing on table column and i can see, that the getter methods aren't called (all but those 2 that get rendered finally)
    Table has multiselection enabled with 1 command button.
    This happens with both IE 6 and Firefox 1.0.4; no oracle, myFaces exceptions visible on console or any log file.
    Has anybody made same experiences so far or an idea what the problem really is ?
    best regards,
    Christoph.

    I've tried it also with a plain af:table without any surrounding af:panelgroup or/and af:panelbox. Same result.
    The bean holding the table-model (the java.util.List) is in session-scope. the table-model is update by an actionListener fetching values from an EJB. Could the session-scope be a problem ?
    Potential candidates from my point of view, that might cause trouble here:
    --) Caching (i've seen that sort of "CachedRenderers" are used
    --) partial page rendering
    --) multi-threading issue.
    --) or any silly mistake of mine :-)
    best regards,
    Christoph

Maybe you are looking for

  • Error Handling for JSF!

    Hi, i have a third party jar file, and in some code of it, methods are not declared to throw any exception, but actually, in the method, there is a try-catch block, and in the catch block, it does some logging work, and then just throw the exception

  • Airport extreme blinking yellow.  reporting "Unknown problem (6rer)

    My airport extreme router has been blinking yellow for a week.  All devices using it are still able to conect to the internet, but all report errors with airport. When i go thru diagnostic steps by way of those messages, i get "Unknown problem (6rer)

  • BI Publisher Desktop Install Error

    1.) I uninstalled XML Desktop via the XP control panel... 2.) BIP Desktop would not install and indicated I had 'not' uninstalled my previous ver of XML Pub... 3.) I reinstalled XML Desktop and then used Oracle's setup.exe included with XML Publisher

  • NOISE NINJA 64-BIT Plugin for Aperture 3 RELEASED!!!

    Hi all, Picturecode has just released their best-in-class Noise solution in 64-bit for Aperture 3!!! I have been a NN fan for a long time, and I am going to go play with it now. Available as a download for registered users at http://www.picturecode.c

  • After updating from 10.0.7 to 10.0.8, I have lost all of my projects and events

    I just updated FCP from 10.0.7 to 10.0.8 and now all of my events and projects are gone.  I was saving them to an external drive and the event folders are all still there, and in each one there is a CurrentVersion.fcpevent file, but when I click on i