Create the table and take the name of user who can read/write on this table

Dear gurus,

I need to add the following column in Oracle 11g DB AND also add the name of user who can read/write ONLY the following table, any table to access the same read?

I use to go to Oracle PL/SQL client.

My dbname is 'customerdb '.

TableName: "extractOrders."

+: example of the field data.
Column0 = logID: 1
Column1 = idNumber: 39D13613-F061-D38D-100A-16536409C6D8
Column2 = timestamp: 2011/07/11-13:45
Column3 = resultCode: 40509
Column4 = resultMessage: could not find the IDENTITY card
Column 5 = number: 9813080808
Column6 = iid: 87670200100001466100
Column7 = products: D1430 | "' S1412 ' | "" S1407 | "' S2607 ' | "' S1417 ' | "" S1411 | "' S1413 ' | "" S1502 | "" S1406 | "' S1522 ' | "' S1524 ' | "' S1474 ' | "" S1473 ".

user596669 wrote:

I need to add the following column in Oracle 11g DB AND also add the name of user who can read/write ONLY the following table, any table to access the same read?

I use to go to Oracle PL/SQL client.

Let's say your table than extractorders is the schema of database clientsproperty.

As this pattern create a stored procedure that runs with the privileges of the customerschema. Having this procedure return a ref cursor For example

create or replace procedure ReadExtractOrders( c in out sys_refcursor ) authid definer is
begin
  open c for select * from extractorders;
end;

As this code executes with the privileges of the customer schema it can read the table belonged to this scheme.

Now give execute rights on this process for the Joe database schema - and this pattern can create a cursor on the table of ExtractOrders , without being able to access or use directly or refer to this table. Read access to this table is therefore protected by a reliable code belonged schema customers.

Learn about the AUTHID clause and how it can be used to differentiate the code approved and non-approved, which allows to PL/SQL code to run with different privileges than the demand for prescriptions.

Tags: Database

Similar Questions

Maybe you are looking for

  • Cannot laod video on new computer

    I got a new computer and it won't let me load my camera Canon Optura 60 video.  It works if I leave it on pictures in the camera but when I turn it on the video it does not recognize it.  I went to the office and checked the problems, and he says tha

  • USB stick wird nicht erkannt und beim Eistecken Signal Ludo

    Trananscend Stick 32 GB wird nicht mehr erkannt und beim Einstecken Signal Ludo (equal a welchem USB Steck-connection). MILU

  • Lightroom ism Nas

    Hallo,Wie kan mij helpen ordering? Last weekend zijn, na een gedeeltelijke crash van mijn Lacie Nas al mijn Lgalerie op een put. IK weet al dat I een LR catalog yesterday niet kan op was, die due staat op mijn Mac. Alles lijkt you werken. have 1 onde

  • Masking problem

    When using masks, I can brush with black and it contains. When I try to use white n it won't reveal. what I am doing wrong

  • All the events of the day so far here breed every year 1 of appears early on the Palm Pre but is okay on Google Calendar...

    Anyone has trouble with the following? I exported the data from Outlook to Google Calendar and then sync with the Palm Pre. Most of the appointments transferred correctly. However, my all day this day events there breed every 1 year to appear early o