Rights on one column in a table

hi every body,
through ORACLE ENTERPRISE MANAGER i can give rights for only 1 column in a table.
but i want to give rights on only 1 column in a table through TOAD OR SQL.
for example grant update on employees to rehan (update rights on employees table to rehan)
i want to do same work for only 1 column.
plz tell me
thanks
rehan

user10204771 wrote:
hi every body,
through ORACLE ENTERPRISE MANAGER i can give rights for only 1 column in a table.
but i want to give rights on only 1 column in a table through TOAD OR SQL.
for example grant update on employees to rehan (update rights on employees table to rehan)
i want to do same work for only 1 column.
plz tell me
thanks
rehanPlease note that Enterprise Manager has no power to create privileges (or anything else) that cannot be done with toad or any other client interface. Almost everything you do in EM has an option to "show sql". That shows the sql that EM will submit to the db engine, and that same sql can be submitted from any other client interface.

Similar Messages

  • After adding one column in a table can't get the header line

    hi all,
    i have make a SMART FORM which was working perfectly.Now the requirement of user is to add one column in my table at smart form which i did and after modification i execute it it give me data as well but issue which i'm facing is that the TABLE at smart forms in which i have add one field is not displaying the HEADER LINE which i have define with SELECT PATTREN option.
    Thanks & Regards,
    sappk25

    Hi,
    Have you created the Header Text? If yes, then might be the case that your smartforms
    table which was already created is with Multiple Line. Check weather you have added
    customer field in Header Line or Not?
    Regards,
    SUjeet

  • How to get one column of ALV table as dropdown by key.

    Hi experts,
                  How can I get one column of ALV table as dropdown and editable. If  user wants to change that column value he can just select from that dropdown and click on update button. Can I provide tool tip to that column as " Select from drop down to change the status "?
      Please Help.
    Thanks,
      Pratibha

    You just need to change the cell editor of that column in ALV.
    So first get access to the alv model object (adjusting the code below for your ALV Component Usage name - mine was ALV_ADV):
    DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_alv_adv( ).
      IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
        l_ref_cmp_usage->create_component( ).
      ENDIF.
      DATA l_salv_wd_table TYPE REF TO iwci_salv_wd_table.
      l_salv_wd_table = wd_this->wd_cpifc_alv_adv( ).
      DATA l_table TYPE REF TO cl_salv_wd_config_table.
      l_table = l_salv_wd_table->get_model( ).
    Then access the column object you want to change:
    DATA l_column TYPE REF TO cl_salv_wd_column.
      l_column = l_table->if_salv_wd_column_settings~get_column( 'REGION' ).
    Then create the cell editor for DDLB and set it as the new cell editor for this column:
    DATA ddlb TYPE REF TO cl_salv_wd_uie_dropdown_by_key.
      create object ddlb
        exporting
          selected_key_fieldname = 'REGION'.
      ddlb->set_tooltip( `Select from drop down to change the status` ).
      l_column->set_cell_editor( ddlb ).

  • Adding color to one column of a table

    I am trying to make the first column light blue where it says
    Eagle Forum Alerts. Here is the site:
    http://www.indianaeagleforum.org/index.html
    I assume the code is bgcolor=#Cddceb; Where do I put it so that
    only this column is light blue? Either the whole table is blue or
    the whole table is white. I just want one column blue. Thanks for
    your help.
    Diana Hunter

    On Sat, 09 Aug 2008 00:32:14 +0200, Michael Fesser
    <[email protected]>
    wrote:
    >
    >Not good.
    Yes I know Micha - I've only done it very, very occasionally
    sorry :-)
    >If you want the text in an entire column to be centered,
    you
    >should apply classes to these cells instead of making
    them table
    >headings. Currently that's the only "right" way.
    Yes Micha - I sort of knew that - it's just that I have
    tables that
    contain long schedules of data and just find it tedious
    putting that
    into about 30 to 150 rows :-)
    and Dw can't do it in design view - can it ?
    > There's no guarantee
    >either that a table heading will always appear centered
    by default!
    >It's just a recommendation, you shouldn't rely on it.
    I haven't found any problems in the main browsers -
    IE6&7, FF, Safari
    & Opera - not sure about some of the *nix browsers that
    aren't based
    on FF, WebKit ( as does Safari ).
    >For such purposes I always have these classes in my
    default CSS:
    >.ac {text-align: center}
    >.al {text-align: left}
    >.ar {text-align: right}
    good idea - I'll borrow that - thanks :-)
    >If I want an entire table column to be centered, I simply
    add a
    >class="ac" to each cell there. Since most of my data
    tables are created
    >by PHP scripts, I can do this quite conveniently and
    automatically.
    sadly I've not done that with php yet - most of the tables
    are
    historical data - I'm given in spreadsheet or Word table
    form.
    >
    >Another possible solution (at least in some cases) would
    be to play with
    >the more advanced CSS selectors like adjacent sibling and
    first child.
    >For example to address the second cell in each row you
    could use
    >
    >td:first-child+td {...}
    >
    >Works well in modern browsers, but will fail in IE 6 and
    below, though.
    Thanks for the reminder - i did read about these in Meyer's
    Definitive
    Guide, but that was about a year ago -
    >
    >Personally I can live with that, since IE 6 usage is
    constantly
    >dropping. For me IE 6 is becoming the next NN 4 - I just
    make sure that
    >the site's content is available and usable, but I don't
    really care too
    >much about any graphical glitches or missing CSS effects
    anymore.
    I'm rapidly coming to the same conclusion. Just checked my
    logs and
    IE6 is between 13 and 25%.
    thanks again for your guidance.
    ~Malcolm~*...
    ~*

  • How do I add more than one column to a table using SQL?

    Hi
    I need to add 3 columns to a table using SQL
    the syntax
    "ALTER TABLE TEST ADD COLUMN newcol1 float";
    works fine - for adding one coumn only.
    For multiple columns I tried various permutations along the lines of
    "ALTER TABLE TEST ADD (COLUMN newcol01 float, COLUMN new2 float,COLUMN new3 float)";
    "ALTER TABLE TIPSTEST ADD COLUMN new1 float"
    "ALTER TABLE TIPSTEST ADD COLUMN new2 float"
    "ALTER TABLE TIPSTEST ADD COLUMN new3 float"
    etc., but this doesn't work.
    From a web search it sounds like SQL can only add one column at a time.
    I have a workaround : create intermediate temporary tables , copying data and adding
    one column at each stage. It seems a fairly awkward way of programming though.
    Am I missing something simple : is there a way to add multiple columns in one go?
    Thanks

    OK : solved an underlying problem with this one myself
    for the code
    String createString;
    createString =  "select COFFEES.* INTO NEWCOFFEES FROM COFFEES"; // example
              Statement stmt;
              try {
                   stmt = a_Globals.database1Connection.createStatement();
                          stmt.executeUpdate(createString);
                   stmt.close();
                   a_Globals.database1Connection.close();
              } catch(SQLException ex) {
                   System.err.println("SQLException: " + ex.getMessage());
              }                    commenting out the line:
    a_Globals.database1Connection.close();
    Allowed the subsequent SQL statement(s) to work OK. Looks like this was the cause of several
    difficulties, preventing me doing several SQL instructions in turn.
    Thanks for the responses.
    Mike2z

  • Need to update one column of all table in that particular schema

    hi all,
    i am using db10g.
    my task is to update one particular column's value of all the table in that schema.
    to acheive the above
    do i have to write update statement for each table or is there any way to do it in bulk?
    i hope my question make sense.
    Thanks..

    Hi karthick,
    I want to know something which is not related to this thread .
    How to include formatted post while replying to thread .
    I know using will be used  format  code before posting  . But how can we  do  it for posted message .
    I hope you understand my question .
    Thanks in advance .                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to make one column only in table control automatically filled in ?

    Hi ,all.
    I meet an issue while doing my screen programming. I have a table control on screen which has a few of column. And I want to display date in my first column each row automatically when user open that table/table control. All other column must be in empty in order to let user key in.
    Hope anyone can help me in this issue.
    Thanks in advance.

    Hi
    Flow Logic:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_2209.
    MODULE GET_DATA.             "enters required no of dates in ur itab
    loop at itab with control TBL1.
         module POPULATE_TBL.     "fills date col alone in tbl ctrl
    endloop.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_2209.
    loop at itab.
       module UPDATE.
    endloop.
    Code:
    *& Report  YFEB2_SCREEN_TBL                                            *
    REPORT  YFEB2_SCREEN_TBL                                            .
    TABLES: YSTUDENT.
    CONTROLS TBL1 TYPE TABLEVIEW USING SCREEN 2209.
    DATA: OK_CODE LIKE SY-UCOMM,
          itab TYPE TABLE OF YSTUDENT WITH HEADER LINE,  "ystudent is the db tbl i use
          WA LIKE LINE OF ITAB,
          v_date like sy-datum.
    v_date = " initialise to start date.
    CALL SCREEN 2209.
    *&      Module  GET_DATA  OUTPUT
    *       text
    MODULE GET_DATA OUTPUT.
      do 10 times.
         itab-date = v_date.
         append itab.
         v_date = v_date + 1.
      enddo.
    ENDMODULE.                 " GET_DATA  OUTPUT
    *&      Module  POPULATE_TBL  OUTPUT
    *       text
    MODULE POPULATE_TBL OUTPUT.
        MOVE ITAB TO YSTUDENT.
    ENDMODULE.                 " POPULATE_TBL  OUTPUT
    *&      Module  UPDATE  INPUT
    *       text
    MODULE UPDATE INPUT.
    WA-DATE = YSTUDENT-DATE.
    WA-ID = YSTUDENT-ID.
    WA-NAME = YSTUDENT-NAME.
    INSERT YSTUDENT FROM WA.
    ENDMODULE.                 " UPDATE  INPUT
    *&      Module  STATUS_2209  OUTPUT
    *       text
    MODULE STATUS_2209 OUTPUT.
    SET PF-STATUS 'BACK'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_2209  OUTPUT
    *&      Module  USER_COMMAND_2209  INPUT
    *       text
    MODULE USER_COMMAND_2209 INPUT.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
      WHEN 'BACK'.
        LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_2209  INPUT
    If you have a specific date upto which you want you can declare a var for that and while filling the itab you can use it in condition.
    Hope this helps
    Regards,
    Jayanthi.K

  • Showing multiple column name in one column of a table

    Hi
    I have a table like below
    Emp_No Sal
    P101 10000
    P102 20000
    P103 30000
    P104 40000
    Now I have a requirment to show like below only
    Emp_No
    Sal
    No values.
    Please help

    user12838764 wrote:
    Now I have a requirment to show like below only
    Emp_No
    Sal
    select column_name from All_Tab_Cols where table_name = <table_name>;Vivek L

  • How to Embedded a Graph for one column in pivot table in OBIEE 11.1.1.7.0

    Hello,
    Please let me know how to achieve the below requirement
    I have to display the report with time , section, total students, passed ,failed and display column which as to be a red and green notation..Is it possible to build a report as below?
    Time
    section
    Total students
    Passed
    Failed
    Display column
    2009
    SA_A
    100
    90
    10
    Thanks for the Help!! Highly Appreciated!!
    Thanks
    SR

    Hi Sr,
    There is Trails view in Result . which is newly introduced by Oracle.
    With the help of this you can achive this solution.
    Thanks & Regards
    Rahul

  • Triggers to update one column on 3 tables

    hi,
    I've three tables:
    TABLE TN:
    COD_ID.........VARCHAR2(32) primary key
    NAME...........VARCHAR2(64) NOT NULL
    COD_ID..............NAME
    A12.................AT32
    A13.................AT33
    A14.................AT35
    A30.................AT32
    TABLE TM:
    ID_X..........VARCHAR2(32) PRIMARY KEY
    NAME..........VARCHAR2(64)
    ID_X..............NAME
    A12
    A13
    A14
    A30
    TABLE TL:
    COD_ID..........VARCHAR2(32) FOREIGN KEY ON TN
    ID_X............VARCHAR2(32) FOREIGN KEY ON TM
    TL_ID...........VARCHAR2(32) PRIMARY KEY
    NAME............VARCHAR2(64)
    I'd like to create triggers (or procedure) that update automatically the value NAME in the tables TM and TL.
    for example:
    If I insert into TN a new COD_ID (A39) and a new NAME (AT38), when I insert a new ID_X in tble TM, I'd like
    to have the value AT38 in NAME of TM, and when I insert a new record in table TL I'd like
    to have the value AT38 in NAME of TL.
    Also when I update NAME of TN.
    I tried with these triggers:
    CREATE OR REPLACE TRIGGER TN_PR_BEFORE_UPD
    BEFORE UPDATE OF NAME ON TL
    FOR EACH ROW
    DECLARE
    tmpVar NUMBER;
    BEGIN
    update TL set NAME=:new.NAME where TL.COD_id=:new.COD_id;
    UPDATE TM SET NAME=:NEW.NAME WHERE ID_X=:NEW.COD_ID;
    END TN_PR_BEFORE_UPD;
    CREATE OR REPLACE TRIGGER TN_COD_ID
    BEFORE UPDATE OF COD_ID ON TL
    FOR EACH ROW
    BEGIN
    SELECT NAME INTO :NEW.NAME FROM TN WHERE TN.COD_ID=:NEW.COD_ID;
    END TN_COD_ID;
    CREATE OR REPLACE TRIGGER TL_pr
    BEFORE UPDATE OF NAME ON TL
    BEGIN
    UPDATE TM SET NAME=:NEW.NAME WHERE ID_X=:NEW.ID_X AND :NEW.ID_X IS NOT NULL;
    END TL_pr;
    CREATE OR REPLACE TRIGGER TL_PR_BEFORE_INSERT
    before INSERT ON TL
    FOR EACH ROW
    DECLARE
    tmpVar varchar2(64);
    BEGIN
    SELECT NAME
    into tmpVar
    FROM TN
    WHERE COD_ID=:NEW.COD_ID;
    END TL_PR_BEFORE_INSERT;
    when I update TN triggers run CORRECTLY but when I insert a new record in TM, TN, TL I don't see a new NAME.
    What I wrong??
    Thanks
    Raf

    Use when updating then insert into table_name
    and
    when inserting then insert into table_name
    clauses in your Triggers to do this

  • Access for update only one column in table?

    Hi all,
    My need is to grant access for update only one column c1 in table t1.
    I guess I should use view, could you please give me some example? Maybe other ideas?

    Hi,
    You can grant privileges on individual columns.
    GRANT   UPDATE (c1)
    ON      t1
    TO      grantee_name;Look up GRANT in the SQL language manual. Annoyingly, in recent editions of the manual, GRANT is not indexed, but it's in alphabetic order with all the other statements:
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_9013.htm#i2155015

  • 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 provide Link to Column in  the Table

    Hi
    please let me know how to provide link to one column in the table.
    i have two views
    in one view i will dispaly emp id and emp dept in a table
    i have to provide link to the emp id column table
    when i click emp id column then it will fire other view and display remaining details of emp.
    so please let me know how to provide link to column in the table.
    Solution is urgent
    regards
    mmukesh

    Hi Mukesh,
       You can insert LinkToAction column in table.you can have two cattributes in Valuenode one is of type boolean and other is of type string(empno)
    you can create eventhander in that you can fire plug to seconf view where you can displays the emp details
    With Regards
    Naidu

  • Database Diff - One column and triggers won't fall off report

    I'm trying to use the database diff tool (which I LOVE, by the way), and I'm getting just a few odd results. I'm comparing two databases and can never seem to get to where the diff report is empty, even though everything is the same. No matter what I do, it lists one column in a table as different and lists ALL 13 triggers in the database as different. I have tried dropping the table and all triggers in question and having the diff scripts recreate them, but when I try a diff again, they keep showing up as different somehow.
    Also, the diff script is generating this as code to modify the column:
    alter table "USERS" modify ( "UPID" NVARCHAR2 );
    Which I don't think is valid syntax - I get "Missing left parentheses." I think it's because it doesn't like specifying the NVARCHAR2 type without a size. If I change that statement to NVARCHAR2(20), then the statement runs. However, as I said before, it still shows up in the diff report later on as if something is different, even though both databases are exactly the same.
    I'm using SQL Developer 2.1.1.64 on Windows XP Pro. Database is 10g.

    Does the ext directory have the php_oci8.dll? In the original steps the PHP dir is renamed. In the given php.in the extension_dir looks like it has been updated correctly. Since PHP distributes php_oci8.dll by default I reckon there would be a very good chance that the problem was somewhere else. Since this is an old thread I don't think we'll get much value from speculation.
    -- cj

  • Dropdownbykey. data is missing in one column

    Hi,
    I am facing issue in dropdownbykey UI element.
    When pushbutton is clicked, there is table showing up. but the first column in the table is missing. There is no value. This column values are expected to be like hyperlink so that when any one is clicked that is selected and the field is populated by this value.
    I have found the dropdownbykey UI element on the view and trying to find the code for this UI element.
    I dont know anything about the dropdownbykey ui element as i am new to web dynpro. I am reading the sap help material but its not addressing very basic understanding
    Could you please help get answers to following
    1) When we click pushbutton of dropdownbykey ui element we see a table from which we can click on one of the rows (only one column of the table is link which we can click) How are the columns in the table determined ?
    2) Which key of the table is selectable ?
    3) From where are the values of the table fetched ? u2013 backend.  so obviously will have to pick data type linked to the ui element from some model rite ? it cant be string.
    4) Why is there a value-set ? is it for the dropdown part of the ui element ? is it mandatory to code them as contants when we make a ui element dropdownbykey on our view or there is any other way of fetching this value-set data?
    thank you

    Hi Yogesh,
    Its perfectly alright.
    Could you please tell me what is SVS code ?
    Is it so that by using this I will have all the methods needed for coding required for dropdownbykey ui element ?
    I dont want to go by dropdownbyindex because I am not developing any application, there is this problem in an already developed application which I have to investigate
    My above questions were based on understanding that when we include dropdownbykey ui element in our view , the dropdown list, pushbutton and screen with all values are inbuilt. This is written in the sap help on the link -
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/1b76bc3da0504e8b535cf3e154eaa7/frameset.htm
    But now I have seen in my system that there is actually a separate view for displaying values is created for the pop up.
    there is linktoaction ui element in the view where the dropownbykey is put and this linktoaction calls the view for displaying values.
    I am now checking inside the code which passes data to this pop up view , why the first column in the table is missing.
    thanks

Maybe you are looking for