How to find Base columns(mandatory columns)

hi sir,
Is it any easy way to find the Base columns....
with Regards..

Hi ,
Plz post the ques stating clearly.
Otehrwise we can get what for u are asking.
If u want to know mandatory columns in any table
In General
just desc that table and check not not null columns .
all are mandatory columns.
For Interfaces
If u want to know mandatory columns in interface tables to upload into apps
then check for not null coulmns and all other dependent columns in which these columns refers some other tablles(base tables).
For API's
For APi's go thru the procedure which one is required for ur need.
and check all the not null columns,
u must pass all those.and also find otehr columns which are mandatory to
store in base tables in the front-end means whatever the yellow fields in the front screens are mandatory one.So prove all those in the API.
For more info go thru user Docs & TRMS & API's irepository.
--Basava.S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • 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.M

    2 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 to find encrypted columns in oracle 10g database

    Hi,
    How to find encrypted columns in oracle 10g database? We can see using view dba_encrypted_columns or all_encrypted_columns .
    my question is apart from this is there anyother views or tables?
    Thanks..

    user602872 wrote:
    Hi,
    How to find encrypted columns in oracle 10g database? We can see using view dba_encrypted_columns or all_encrypted_columns .
    my question is apart from this is there anyother views or tables?Hmm not which I could find,
    SQL> select * from dict where lower(table_name) like '%encrypted%';
    TABLE_NAME
    COMMENTS
    DBA_ENCRYPTED_COLUMNS
    Encryption information on columns in the database
    ALL_ENCRYPTED_COLUMNS
    Encryption information on all accessible columns
    USER_ENCRYPTED_COLUMNS
    Encryption information on columns of tables owned by the user
    SQL>HTH
    Aman....

  • How to find the columns and tables used in a stored procedure?

    Hi,
    Can someone suggest how to find the columns and tables used within a stored procedure?
    Thanks
    VBK

    For example:
    SQL> create or replace
      2    procedure p1
      3      is
      4          cnt number;
      5      begin
      6          select count(*) into cnt from emp;
      7  end;
      8  /
    Procedure created.
    SQL> select  referenced_owner,
      2          referenced_name
      3    from  dba_dependencies
      4    where owner = 'SCOTT'
      5      and name = 'P1'
      6      and referenced_type = 'TABLE'
      7  /
    REFERENCED_OWNER               REFERENCED_NAME
    SCOTT                          EMP
    SQL> SY.

  • How to find if COLUMN DEFAULT VALUE is stored as metadata?

    Hello,
    I'm using Oracle 11g enhanced ADD COLUMN Functionality. Adding new columns with DEFAULT values and NOT NULL constraint no longer requires the default value to be stored in all existing records.
    Sometimes we change DB columns from NOT NULL with DEFAULT to NULL with DEFAULT. This operation "materialize" column default.
    Is there an easy way (Dictionary view) how to find, that COLUMN default value is stored as metadata or is "materialized" ?
    Thanks. Filip
    Oracle RDBMS version : Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

    Thanks for your suggestion, but it is not what i'm looking for :-(
    I don't need to find the default value, i need to know how is default value stored. It could be stored in 2 ways.
    1. "materialized" - prior to 11G (value is physicaly stored for every column)
    2. "as a metadata" - new 11G functionality (default is not physicaly stored and if you query the column DB transalte NULL value to defaut value)
    Now I would like to now if my column is type 1) or 2). How can I do it?
    Thank you.Filip

  • How to find a column name in tables

    Hello Guys,
    I need to find a column name "company_id"
    in all the tables in my schema. How can i dont this?
    Is there any view that search for coulmns in a table. Please help.
    Regards, Imran

    Questions about the dictionary are best answered by querying DICT.
    In this case
    select * from dict where table_name like '%COL%'
    Alternatively you can look in the Oracle reference manual for your version.
    The information is online, there is little need to ask around here.
    Sybrand Bakker
    Senior Oracle DBA

  • How to find the Column data type changes in table

    Hi All,
    I need to find out the column data type changes where made recently in table .
    How do i check past changes in column data type. Any data dictionary are there to find out the data type changes in the column .
    Thanks in advance..

    <FONT FACE="Arial" size=2 color="2D0000">
    You have the answer on hand (user_arguments / all_arguments)!
    SQL> desc user_arguments
    Name                                      Null?    Typ
    OBJECT_NAME      VARCHAR2(30)
    PACKAGE_NAME     VARCHAR2(30)
    OBJECT_ID     NOT NULL NUMBER
    OVERLOAD       VARCHAR2(40)
    ARGUMENT_NAME  VARCHAR2(30)
    POSITION       NOT NULL NUMBER
    SEQUENCE       NOT NULL NUMBER
    DATA_LEVEL     NOT NULL NUMBER
    DATA_TYPE      VARCHAR2(30) --> Data Type
    DEFAULT_VALUE  LONG
    DEFAULT_LENGTH NUMBER
    IN_OUT         VARCHAR2(9) -->Argument direction (IN,OUT,or IN/OUT)
    DATA_LENGTH    NUMBER
    DATA_PRECISION NUMBER
    DATA_SCALE     NUMBER
    RADIX          NUMBER
    CHARACTER_SET_NAME VARCHAR2(44)
    TYPE_OWNER         VARCHAR2(30)
    TYPE_NAME          VARCHAR2(30)
    TYPE_SUBNAME       VARCHAR2(30)
    TYPE_LINK          VARCHAR2(128)
    PLS_TYPE           VARCHAR2(30)
    CHAR_LENGTH        NUMBER
    CHAR_USED          VARCHAR2(1)
    Look for Data_Type where IN_OUT say OUT. That will be the data type retruned by that function.
    Edited :
    or POSITION in argument list,or null for function return value
    -SK
    </FONT>

  • How to find a column by sampling data?

    Can any one help me to identify the columns
    which are ssn by sampling the data in the database or to run a query/script against each table so that the result
    will tell you that the data in a a particular column seems to be a ssn ?[I have identified the columns in tables
    which has ssn  as there column names]. Please help...

    You can use regexp to check the rows.
    select  ssn from some_table
    where regexp_like(ssn,'^[0-9]{3}-[0-9]{3}-[0-9]{4}$')
    OR
    with ssns as
            ( select '123-254-5455' ssn from dual
    union all select '.23-254-5455' ssn from dual
    union all select '1232545455' ssn from dual
    union all select '12a2545455' ssn from dual
    union all select '1x3-s54-5455' ssn from dual
    union all select '123-254-54552' ssn from dual
    union all select '0123-254-5552' ssn from dual
    select ssn ,regexp_replace(ssn,'^[0-9]{3}[-][0-9]{3}[-][0-9]{4}$','VALID') xc
    from ssns
    SSN           XC
    123-254-5455  VALID
    .23-254-5455  .23-254-5455
    1232545455    1232545455
    12a2545455    12a2545455
    1x3-s54-5455  1x3-s54-5455
    123-254-54552 123-254-54552
    0123-254-5552 0123-254-5552You can check how many valid ssn's are in a column
    SS
    Edited by: Sänjay on Jun 25, 2009 9:34 AM
    Added my example cases

  • How to find out Column names from JDBC?

    Hello,
    How to get Oracle's Table Meta Data without firing a "SELECT" statement and using ResultSet meta data ?
    Thanks,
    -raj

    This works for most jdbc drivers:
    Connection con = ???;
    DatabaseMetaData dbmd = con.getMetaData();
    ResultSet rs = dbmd.getColumns( null, null, "TABLENAME", null );Read the API: http://java.sun.com/j2se/1.4.1/docs/api/java/sql/DatabaseMetaData.html#getColumns(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)

  • How to find common columns from two tables

    regards

    812809 wrote:
    regardsHi,
    Use User_tab_cols view to extract the result.
    Try
    SQL> create table test3(id number(10),name varchar2(10));
    Table created.
    SQL> create table test4(id number(20),addr varchar2(200));
    Table created.Now query user_tab_cols
    SQL> select column_name from user_tab_cols where table_name='TEST3'
      2  intersect
      3  select column_name from user_tab_cols where table_name='TEST4'
      4  /
    COLUMN_NAME
    IDHope this helps
    Regards,
    Achyut
    Ps-> Mark as Complete/Answered if it meets your requirement

  • How to find base character from an accented character

    Hi, given an accented character (�, �, �, etc...) is there a way to retrieve its base character? In the case above, a, o and c respectivelly?
    I searched in this forum and google and didn't find a definitive answer.
    The reason i need this is because in my database, some records have accented content, and now i need to generate a textfile to transfer daily to a bank, but the bank doesn't accept accented characters.
    Thanks.

    Decompose the Unicode string -- i.e., perform an NFC transformation -- and then strip off the diacritical marks, as done in VietPad editor.
    There is a native class, java.text.Normalizer, but it is not made public until Mustang release.
    http://java.sun.com/javase/6/jcp/beta/

  • How to find exact error column name

    hi all ,
    My requirement is as follows .
    I am trying to add a record into temp_emp table inside plsql block ,after executing it i am getting ORA-01438: value larger than specified precision allowed for this column error .I want to find for which column the error is coming .
    In the below example i clearly know that deptno column precision is 2 and i am inserting bigger value that is why i am getting error .
    let us consider a scenario where i am trying to insert 40 colunm values into table and one column is causing the problem , how to find that column alone .
    SELECT * FROM V$VERSION
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0    Production
    TNS for Solaris: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    CREATE  TABLE
    temp_emp
      empno  NUMBER(4),
    ename VARCHAR2(15),
    job  VARCHAR2(10),
    deptno NUMBER(2)
    DECLARE
       v_empno    NUMBER (4);
       v_ename    VARCHAR2 (15);
       v_job      VARCHAR2 (10);
       v_deptno   NUMBER (2);
    BEGIN
       INSERT INTO temp_emp
                   (empno, ename, job, deptno
            VALUES (1234, 'ABC', 'CLERK', 1000
    EXCEPTION
       WHEN OTHERS
       THEN
          DBMS_OUTPUT.put_line (   SQLCODE
                                || DBMS_UTILITY.format_error_backtrace
                                || SQLERRM
    END;
    /finally I want column name in the error message .
    Thanks,
    P Prakash

    Oracle does not provide the column information in the error message and I don't know of any way to do so outside of developing something convoluted. For example:
    SQL> DECLARE
      2     te_row temp_emp%ROWTYPE;
      3  BEGIN
      4
      5     te_row.empno  := 1234;
      6     te_row.ename  := 'ABC';
      7     te_row.job    := 'CLERK';
      8     te_row.deptno := 1000;
      9
    10     INSERT INTO temp_emp
    11          VALUES te_row;
    12  END;
    13  /
    DECLARE
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: number precision too large
    ORA-06512: at line 8Also, that EXCEPTION block has a bug in it (no RAISE or RAISE_APPLICATION_ERROR).
    Edited by: Centinul on May 3, 2012 8:23 AM

  • How to find the number of columns in an internal table DYNAMICALLY ?

    Hi,
    How to find the number of columns in an internal table DYNAMICALLY ?
    Thanks and Regards,
    saleem.

    Hi,
    you can find the number of columns and their order using
    the <b>'REUSE_ALV_FIELDCATALOG_MERGE'</b>
    call function 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
       I_PROGRAM_NAME               = sy-repid
       I_INTERNAL_TABNAME           = 'ITAB'
       I_INCLNAME                   = sy-repid
      changing
        ct_fieldcat                  = IT_FIELDCAT
    EXCEPTIONS
       INCONSISTENT_INTERFACE       = 1
       PROGRAM_ERROR                = 2
       OTHERS                       = 3
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif
    now describe your fieldcat . and find no of columns.
    and their order also..
    regards
    vijay

  • How to find out the selected column in Table Control

    Hi all,
          How to find out the selected column in Table Control?
    Thanks & Regards,
    YJR

    Hi,
    Let your table control name in Screen painter be TC1.
    READ TABLE TC1-COLS INTO WA_COLS (some wok area)
                 WITH KEY SELECTED = 'X'.
            IF SY-SUBRC = 0.
              CLEAR: W_DUMMY, W_COL_NAME.
              SPLIT WA_COLS-SCREEN-NAME AT '-' INTO W_DUMMY
                                                   W_COL_NAME.
            endif.
    W_COL_NAME gives you the column name.
    Hope it helps.
    cheers
    sharmistha

  • How to find out which sequence a certain column used?

    you konw column C in table T is created by a sequence.
    How to find out which sequence column C is using?

    In the meantime I think it ought to becompulsory to
    only assign sequence values in triggers.
    Why? I can see no good reason for this. I think it's a good idea to have stuff like this
    coded in only one placeI don't like your argument for compulsory using triggers for sequences for exactly the same reason as you, ie that I like to keep my code in one place. If I'm reading some pl/sql code which uses a sequence I like to see the fact that the sequence is used in the pl/sql code, rather than to check to see if theres a trigger on the table and then see which sequence that uses.
    "naming conventions can work, provided they're enforced. Alas, like other standards, they can only be enforced by active policing".
    Thats what code reviews are.
    " there is also the special case of one sequence populating more than one table...."
    This is My Pet hate. I don't think there's ever a case where this is absolutely necessary. Again code reviews
    Unfortunately I have to live with a system which does this.
    and I appreciate we can't all have code reviews, etc.

Maybe you are looking for

  • Private key password for Default DemoIdentity Keystore?

    Hi I am trying to Configure SSL in ALSB. I have created the PKI Credential mapping for the Default DemoIdentity Keystore But it is asking for the password to access the Keypair. The document states that i need to provide the password set during the c

  • Does creative plan to release a new mp3 play

    5 minutes ago a bought a Zen touch but noticed it was kinda outdated and i would really kick myself in the nads if creative releases a new mp3 player in about a month so are there any plans for a new one (one that just plays music and doesn't have al

  • No customizing request of LBWE gets stored in SE09

    Hi All, I have activated master and transaction data sources in RSA5 and corresponding requests are showing in SE09 but once I activate extract structure using  T-code LBWE, It does not ask to save and also no customizing request gets stored in SE09.

  • Pass hierarchy dashboard prompt to analysis in Oracle BI

    Hi All, I am new to Oracle BI EE 11g. Right now i am learning this. I have created time hierarchy dashboard prompt and saved it my shared folder. I have created a analysis which shows Top 10 products Revenue and saved it my shared folder. Now I am tr

  • REP-1419 -- Error in report 6i

    I am getting this error while running the report6i in the apps REP-1419 Can any one help me out of these.... Krishna