How to Identify unused columns in a table
Hiiya..
Is there a way to find out that following columns of table X,Y, Z have never been used. So that, I can check with the FCs and mark them un-used (using ALTER TABLE).
I don't want to go through every line of (avlbl) PLSQL code to identify that so and so column of so and so table has never been used. Is there any view or any sys proc/pkg using which I can identify them.
TIA
Guido
Not getting you exactly. What I am doing is pick all the columns one by one and search in all_source (like where TEXT like %COLUMN_NAME%). Now what about 'AND <UnusedColumn> IS NULL'
Sidhu
Similar Messages
-
How to sum the column in a table seperated by sign.
How to sum the column in a table separate by sign.
For Example:
A B
10 MOHAN
-15 KUMAR
-25 MARCH
50 MAYSELECT SUM(CASE SIGN(A) WHEN 1 THEN A ELSE NULL END) SUM_POSTIIVE,
SUM(CASE SIGN(A) WHEN -1 THEN A ELSE NULL END) SUM_NEGATIIVE
FROM tbl
/SY. -
How to delete a column from the table control in module pool?
Hi,
can any one please tell How to delete a column from the table control in module pool?
thanks in advance
warm regards
HareeshKumar Nhi hareesh,
I think it is better to hide it.
How to hide: You can check this link
Dynamic Hide column in table control -
How to Delete a Column in Internal Table
Hi All,
Does any one know ,How to Delete a Column in Internal Table?Hi,
For deleting the column in the internal table, you have to eliminate the field which you want to delete.
loop at itab into wa.
move corresponding wa to wa1.
append wa1 to itab1.
clear wa1.
clear wa.
endloop.
wa1 is the workarea without the field which you want to delete.
itab1 is the internal table which consists of the deleted column. -
How to identify migrated rows on a table
Hi, folks,
I'm wondering how to identify migrated rows on a table.
I understand that ANALYZE generates data into CHAINED_ROWS. The Oracle document implies that this table has both CHAINED ROWS and MIGRATED ROWS. FYI:
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14231/general.htm#sthref1881
But how can I tell migrated rows from chained rows.
Thanks!
Alexim also not looking to ExporttoExcel feature on ADF just copy all the records displayed on a table
im also not looking to ExporttoExcel feature on ADF just copy all the records displayed on a table ,
Hi you can set the property( exportedRows) of exportListener
you can limit the number of rows to download
chekout documentaion
ADF RichClient API - af:exportCollectionActionListener -
How to find the column name and table name with a value
Hi All
How to find the column name and table name with "Value".
For Example i have value named "Srikkanth" This value will be stored in one table and in one column i we dont know the table how to find the table name and column name
Any help is highly appricatable
Thanks & Regards
Srikkanth.M2 solutions by Michaels (the latter is 11g upwards only)...
michaels> var val varchar2(5)
michaels> exec :val := 'as'
PL/SQL procedure successfully completed.
michaels> select distinct substr (:val, 1, 11) "Searchword",
substr (table_name, 1, 14) "Table",
substr (t.column_value.getstringval (), 1, 50) "Column/Value"
from cols,
table
(xmlsequence
(dbms_xmlgen.getxmltype ('select ' || column_name
|| ' from ' || table_name
|| ' where upper('
|| column_name
|| ') like upper(''%' || :val
|| '%'')'
).extract ('ROWSET/ROW/*')
) t
-- where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
order by "Table"or
SQL> select table_name,
column_name,
:search_string search_string,
result
from cols,
xmltable(('ora:view("'||table_name||'")/ROW/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')
columns result varchar2(10) path '.'
where table_name in ('EMP', 'DEPT')
TABLE_NAME COLUMN_NAME SEARCH_STRING RESULT
DEPT DNAME ES RESEARCH
DEPT DNAME ES SALES
EMP ENAME ES JONES
EMP ENAME ES JAMES
EMP JOB ES SALESMAN
EMP JOB ES SALESMAN
EMP JOB ES SALESMAN
EMP JOB ES PRESIDENT
EMP JOB ES SALESMAN
9 rows selected. -
How can I select columns from a table EMP, using Select statement?.
Hi Friends,
How can I select columns from a table EMP?.
I want to select columns of EMP table, using select statement.
Please reply me urgently.
ShahzadSomething like this:
scott@DBA> select empno,ename,job from emp;
EMPNO ENAME JOB
7369 SMITH CLERK
7499 ALLEN SALESMAN
7521 WARD SALESMAN
7566 JONES MANAGER
7654 MARTIN SALESMAN
7698 BLAKE MANAGER
7782 CLARK MANAGER
7788 SCOTT ANALYST
7839 KING PRESIDENT
7844 TURNER SALESMAN
7876 ADAMS CLERK
7900 JAMES CLERK
7902 FORD ANALYST
7934 MILLER CLERK
14 rows selected.Check the documentation:
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#sthref9697
Message was edited by:
Delfino Nunez -
How to identify new records in a table using OBIEE
Hi,
I have price change table as and when a record comes into this table i have to generate an alert. Then show a report with the price changes on which i can invoke an action to go into my transactional system to make the chnage. And once the change is made the process again starts to look for any new price chnage records that are recieved.
Could anyone pls tell me how to identify new records in a table.
RgdsSELECT ID, LastName, FirstName,
RANK() OVER (PARTITION BY LastName,
FirstName ORDER BY ID) AS SeqNumber
FROM
(SELECT ID, LastName, FirstName
FROM Customers
WHERE (LastName, FirstName) IN
(SELECT LastName, FirstName
FROM Customers
GROUP BY LastName, FirstName
HAVING COUNT(*) > 1) -
How do I Freeze Columns in HTML Tables
How do I Freeze Columns in HTML Tables when scroll vertically as well as horizontally? (header and some columns on LHS). I generate a JSP report which got more than 1000 rows. Please advise. Thanks.
Gooooooooooooooooogle searched "Freeze Columns in HTML Tables"
So many solutions available !!!!!
see the 1st link
http://web.tampabay.rr.com/bmerkey/examples/locked-column-csv.html -
How to read BLOB column from a table in SQL or PL/SQL
I have table which is having one BLOB data type column . Ihave inserted few rows in that table . Now i want to see wheather BLOB column has been inserted properly or not . How to read that column through SQL or PL/SQL.
Can anyone help me to do this.You can only manipulate LOBs in PL/SQL because you have to use the DBMS_LOB package.
Check out the Oracle Developer's Guide -
How to keep view column in a table
Hi,
I have two table and one view(I have same data in any other schema so I don't want to keep same data in both schema) I want to make primary key in first table based on one column from 2nd table and one column from view, but it's not looking possible if it's possible so how, if it is not there is any other solution.
Thanks and Regards, Khawar.Hello all,
Thanks for reply following are view and table desc.
SQL> desc emp_dept_vw
Name Null? Type
EMP_ID NOT NULL VARCHAR2(10)
F_NAME NOT NULL VARCHAR2(50)
M_NAME VARCHAR2(15)
L_NAME VARCHAR2(15)
DESIGNATION VARCHAR2(40)
JOIN_DATE DATE
REGION_ID VARCHAR2(15)
DEPT_ID VARCHAR2(30)
FAMILY_NAME VARCHAR2(20)
SEX CHAR(1)
LOCATION VARCHAR2(20)
DEPT_NAME VARCHAR2(30)
SECTION VARCHAR2(40)
SQL> desc pc_user
Name Null? Type
PC_SERIAL NOT NULL VARCHAR2(20)
PRINTER_SERIAL VARCHAR2(20)
SQL> desc pc
Name Null? Type
PC_SERIAL NOT NULL VARCHAR2(20)
BRAND NOT NULL VARCHAR2(50)
HDD_MODEL_NO CHAR(18)
MEM_CODE VARCHAR2(20)
NIC_CODE VARCHAR2(20)
PROCESSOR_ID VARCHAR2(20)
MONITOR_ID VARCHAR2(20)
MOTHER_BOARD VARCHAR2(30)
SUPP_ID VARCHAR2(20)
FDD VARCHAR2(20)
PRICE NOT NULL NUMBER
WARRANTY NOT NULL VARCHAR2(20)
DELIVERY_DATE NOT NULL DATE
REMARKS NOT NULL VARCHAR2(200)
I want to use EMP_ID from EMP_DEPT_VW view as a part of composite key in PC_USER table.
Many Thanks .
Khawar -
How to remove a column from alv table
Hi All
How to remove a specific column from alv table.?
Thanks & Regards
SUNFor delete u can follow the above post..
Fo making invisible :
data m_col type ref to cl_salv_wd_column.
m_col = alv_mode->IF_SALV_WD_COLUMN_SETTINGS->GET_COLUMN (' col1' ).
m_col->SET_VISIBILITY( '01' ). -
Newbie Repository question: How to add extra columns to relationship table?
I've defined the following item-descriptors:
<item-descriptor name="award" display-property="id">
<table name="bc_award" type="primary" id-column-name="award_id>
</table>
</item-descriptor>
<item-descriptor name="product" display-property="displayName" xml-combine="append">
<table name="bc_product" type="auxiliary" id-column-name="product_id">
</table>
Now products and awards have a many-to-many relationship, so I also added the following under the product item-descriptor definition:
<table name="bc_prd_awards" type="multi" id-column-name="product_id">
<property name="awards" data-type="set" component-item-type="award" column-name="award-id"/>
</table>
So far, so good. However, I actually want some extra information on the relationship table. Namely, the catalog to which the product-award association applies. In other words, I'd like the create table statement to turn out something like this:
CREATE_TABLE bc_prd_awards (
product_id varchar2(254) NOT NULL REFERENCES dcs_product(product_id),
award_id varchar2(254) NOT NULL REFERENCES bc_award(award_id),
catalog_id varchar2(254) NOT NULL REFERENCES dcs_catalog(catalog_id),
PRIMARY KEY(product_id, award_id, catalog_id)
Any ideas as to how I accomplish this?
Edited by: user6200425 on Jul 1, 2011 1:04 PMIf you want to add catalog information to the product-award association, do this.
<item-descriptor name="product"/>
<table type=multi>
<property name="productAwardAssociation" component-item-type="productAward" data-type="set" />
</table>
</item-descriptor>
<item-descriptor name="productAward">
<property name="award" column-name="award" item-type="Award"/>
<property name="catalog" column-name="catalog" item-type="Catalog"/>
</item-descriptor>
<item-descriptor name="Award">
--- award related properties
</item-descriptor>
Hope this helps.
Thanks
karthik -
How to disable certain columns of a Table?
hi all,
I wish to fill a pattern of 8 digital signals (only 1's & 0's) in a Table.
Is there any way to restrict the user from typing char or num other than a 1 or a 0?
Since the table is a string, I'm having confusion how to do this.
Secondly, the table would have by default 12 columns visible on the Front Panel, excluding both the headers.
But the No. of Columns is based on a parameter called Duration that ranges between 4 & 256.
What I want the user to do is to key in 1's & 0's for the Duration chosen.
Since it'll be tedious to key in for large values of Duration, I've given the option of Set Row(s) & Reset Row(s),
that will fill with either 1 or 0 respectively for the chosen Row Value.
Is there any way to disable the remaining columns of the Table, ie, those unfilled columns,
when the user scrolls horizontally? I don't know how to achieve this.
I went thro' the Properties of the Table, I don't understand some of their functionalities,
like SelStart, SelSize etc.
I wonder why a Property like Disable Array Elements for Arrays is not provided for a Table
to Disable the columns we want to do so, or is it my gross ignorance, I don't know.
Experts pls clarify me & help me out.
Regards,
Partha.
- Partha
LabVIEW - Wires that catch bugs!
Attachments:
Set Eventframe1.vi 409 KBAnother option is to do this:
Slightly more elegant, but also more potential for bugs (e.g. the users can tab into the column).
craigdobis wrote:
You can lower your overhead by using these "professional" looking indicators and controls. They are limited in functions and properties, thereby causing a smaller VI in file size.
Nice. I didn't think about that. Looks like a VI with a single system boolean takes ~20% less space than one with a standard boolean.
P.S. In general, I would say there are considerably better arguments for using system controls than memory issues.
Try to take over the world!
Attachments:
Disabled Column.png 5 KB -
Drop unused column in compressed table
Good day for all.
I have partitioned compressed table under 10.2.0.4 database. I need to remove column, and did it according metalink note 429898.1, but then i execute command alter table .... drop unused columns, i got error ORA-39726 (unsupported add/drop column operation for compreseed table), so it mean that proposed workaround don't works now.
Does anyone have new workaround for this problem?alter table MY_TABLE set unused(MY_FNG_COLUMN);
-- success
alter table MY_TABLE drop unused columns;
-- error
Maybe you are looking for
-
Hi All, I am new to this ABAP field.. I know how to do SQL trace ....But what I am not getting is " <b>HOW CAN WE TELL FROM THE OUTPUT OF SQL TRACE, THAT THIS IS THE CAUSE OF SLOW PERFORMANCE OF A REPORT</b>" Based on what are we determining the perf
-
i want to change the layout of a medruck and i want to add a logo of my own .. How can i do. Can anybody help me..
-
How can i set my bridge cs4 to open photoshop cs3 as a defualt
i have bridge cs4 and would like to set photoshop cs3 as my default(open with)
-
Hi! I'm facing the following problem: I'd like to print a sapscript-text (SE75) which may contain tabulators using smartforms (= input parameter of the smartforms-FM; type TLINETAB). Unfortunately the tabulators are only displayed with ',,' (which is
-
How to create table relation diagram?
Hi. I need Gurus help! Before writing programs working with Database, scheme of used tables should be prepared. Which methods can be used in SAP to prepare tables scheme and their relations diagram for reports written in ABAP. Thanks. Mehman.