How to share data in the tables ' User_ * ' with another schema

I want to share the data in the table WHERE USER_SEGMENTS with another schema. If I create a view and grant select on the view, when the other schema queries the view data are identical to themselves querying the SYS.user_segments table directly.
create view sys_user_segments as select * from sys.user_segments;
grant select on sys_user_segments to A;
My guess is that the SYS.user_segments table is a view based on the current user.

Is there a way to share such data without creating a copy of the table?

Oracle: 10g

Thank you

If the ADMINISTRATOR is concerned about B access to DBA_SEGMENTS (or by creating DBA_SEGMENTS views that belongs to a user who has access on top and then grant access to this view of B), it seems pretty crazy allow that kind of database connection.

If you create a database link belonged to B that connects to A, B is, in substance, given any privilege that has exercises. But it is done in a very, very dark which will no doubt be neglected in the future when someone gets a check. He'll be sitting here to wait that someone (accidentally or intentionally) Decides to exploit the security hole and do something that is causing a problem (by removing all data from a table, grabbing all the sensitive data in a table, etc.). Risks of this almost certainly far, far* far * outweigh the risks of even leaving B to obtain direct access to DBA_SEGMENTS.

Justin

Tags: Database

Similar Questions

  • How to insert data into the table by using the expression builder in the assign activity

    How to insert data into the table by using the expression builder in affect business in BPEl, I use SOA Suite 11.1.1.5
    Can someone help me please

    Hello

    I don't think that oraext:query-database() can insert data into the table.

    What are your needs?
    Can not you plan to use the DB adapter with the insert operation?

    Kind regards
    Neeraj Sehgal

  • How to add data to the table using Manager POST for restful Apex application

    Hi all

    I managed to create a service application web Manager restful using GET for the Restful service module. I am able to get the data in row on the presentation of a table row id in the application. But I can't find an appropriate example, how the new data in the table can be posted or deleted. I created a POST handler for a URI scheme and look forward on how to proceed. Any help would be really appreciated.

    Source for the POST Manager:

    Start

    insert into ALL_BOOKS values(:id,:book);

    end;

    Also created 2 parameters id and the book.

    Hi jerry2134,

    jerry2134 wrote:

    I managed to create a service application web Manager restful using GET for the Restful service module. I am able to get the data in row on the presentation of a table row id in the application. But I can't find an appropriate example, how the new data in the table can be posted or deleted. I created a POST handler for a URI scheme and look forward on how to proceed. Any help would be really appreciated.

    Source for the POST Manager:

    Start

    insert into ALL_BOOKS values(:id,:book);

    end;

    Also created 2 parameters id and the book.

    Check out the following tutorials OBE, that explains the creation of GET and POST RESTful Web Services and how to use them in the APEX.

    Also what yo mean "looking forward on how to proceed? Do you want to or created for use/consume in your Oracle APEX application hosted RESTful web services?

    If Yes, in your Application, you must create a RESTful Web Service reference -> shared components. Then, create a form/report based on Web Service reference.

    Kind regards

    Kiran

  • How to export data from the table with the colouring of cells according to value.

    Hi all

    I use jdeveloper 11.1.1.6

    I want to export data from the table with a lot of formatting. as for color cells based on value and so much. How to do this?

    You can find us apache POI-http://poi.apache.org/

    See this http://www.techartifact.com/blogs/2013/08/generate-excel-file-in-oracle-adf-using-apache-poi.html

  • How to share data in the swc files?

    I can save the shared data (such as dsn) in application.cfm so all cfm files can read.

    But how to share data in swc files as application.cfm. I heard application.cfc, may I use share data in the swc files?

    Don't you think that if it is correct that application.cfm and application.cfc exist in the site?

    Thank you

    Mark

    IIRC, you can't use both. If you Application.cfm and Application.cfc in the same folder, CF will ignore Application.cfm.

  • How insert/DML data in the table when the data in the related table changes

    Hello guys!

    I came across a problem that I need to get fixed. Because I don't know how to start and get it resolved I wanted to ask you for your expertise.

    The scenario is as follows:

    I have a table 'a' in my 10g database and a view "ab" which combined table 'a' with 'b' table in a view. However, the 'b' table is a table in another schema Manager database. and accessible (read only right) via a database link.

    Now here it is: whenever the data changes in table "b", for example 2 new sets of data is inserted, I need to insert automatically the 2 values of these 2 sets of data in my table "a". Same procedure for update and delete in table "b".

    The action that inserts data into the table 'a' must be initialized in my database, I have limited access to the other. Can I somehow use a trigger my reviews of "ab" to insert data into the table "a"? Or is it possible to use the "change notification procedure database" using the view as the reference?

    Desperately need help and example of all suspicion/code greatly appreciated. I am very new to Oracle and not very fond of PL/SQL routines. So please be so kind as to give me more details.

    Thanks in advance - I hope you have any ideas how I can get this problem resolved.

    Sebastian

    >

    ... it does not, since the DDL operations are not permitted on the remote databases (ORA-02021). I can't create the trigger on a view either. :-(
    So what ways are left to insert data into the table 'a' when the related table changes?

    Please, help if you have an idea!

    Yes,
    You can't perform the DDL (create the trigger...) on remote databases as you can see...
    Try to create this trigger in the local database that will make DML (insert into...) on the remote database.

        CREATE OR REPLACE TRIGGER local_forward_pt_after_insert
         AFTER INSERT
             ON N2K_INV_PT
             FOR EACH ROW
    
         BEGIN
             -- Insert records into table "a"
             INSERT INTO TBL_PUNKTDATEN@remote_database_sid
              ( INT_NUMMER,
                STR_GEBIET
                 )
             VALUES
              ( :new.INT_INV_PT_NR,
                :new.GEBIET );
         END;
    

    Thank you

    Good luck

  • How to add data to the table changed in sql developer at Apex and vice versa

    Hello

    I had tables of database with sql developer. But now, I have modified the database (new tables added + changed the data in the tables). However, in the Apex, I the old database. Is it possible to get the new Apex database with the data of the table changed so this database in both places (sql and apex developer) is exactly the same... Also the other way around.

    Thank you

    The database schema that contains the tables, is it associated with the workspace even you are searching through the APEX product t development?  Why I'm asking is, if they are the same schema, the tables that you MODIFIED should be appear in the sql for APEX workshop part.  Now reports and forms will NOT see the changes (unless you have actually added or updated definitions for column).

    Can you explain what exactly you were doing the SQL Developer to the tables in your schema?

    Thank you

    Tony Miller
    Los Alamos, NM

  • How to pass data to the tables according to the value of the first 4 digits of 7 strings of numbers

    I want to sort incoming data, in several bays based only on the first 4 digits of each string.

    For example, a hexadecimal string may be 41322033333533 which is A1 3353.

    A1 is a sensor. particularly, and I want to send all data from the A1 to a table. I have 8 sensors data and want to send the data to separate the bays of sensor. My sensor names are A1, A2, A3, T1, T2, T3, W1

    I will use a structure of the matter, for loop and a comparison of '=' for the data. However, I want to only compare the first 4 digits of the string and I can't find an operator for this. Any advice on how to proceed would be appreciated.

    With a thread like this

  • How to share data in the applications between different accounts of microsoft on the same PC

    Hi, I had been using windows 8 for over a month and that you have installed a * a lot of apps on the store. Now, I have to create a separate account from microsoft on the same PC. After having created, I find no way to use apps from windows of the older account store. And, certainly, I don't want to re-download applications for use on the new account. Is there a way to share data between different accounts on the same PC selected app? Thanks in advance, Praveen.

    Hi Samuel,.

    This is a free support. However, let me provide you with assistance on the issue of not being able to use the MS Office product on different user accounts. See the articles that describe how an application installed as MS Office can be used on another user account:

    Find and start Office applications in Windows 8 or Windows RT

    Also, for your further reference:

    Application does not appear on the start screen after the passage to another user

    I hope this helps. If you need additional help, then just reply back. Also, if you are faced with other problems related to Windows, it would be better to start a new thread of your own instead of posting in the thread on the other so that the new thread is no longer visible to the community.

  • How to load data into the table of correspondence in OIM 11 g

    Hello
    I have a lot of data that must be loaded into the table of choice as Codekey and decode. How can I load the data in bulk instead of manually via console Design?

    Is it possible to do? No API IOM or any what SQL query

    Kind regards
    JS

    Here's what you need to get.

    psLookupCode - search name,
    psValue - Code key
    psDescriptivevalue - DecodeKey

    The rest can be empty.

    addLookupValue

    void addLookupValue (java.lang.String psLookupCode,
    java.lang.String psValue,
    java.lang.String psDescriptiveValue,
    java.lang.String psLanguage,
    java.lang.String psCountry)
    throws Thor.API.Exceptions.tcAPIException,
    Thor.API.Exceptions.tcInvalidLookupException,
    Thor.API.Exceptions.tcInvalidValueException,
    tcAPIException adds a new entry for the specified search

    Parameters:
    psLookupCode - the Code for the definition of research
    psValue - the value that will be stored in the database
    psDescriptiveValue - a descriptive version of the value to be added
    psLanguage - the language for the added entry. Leave blank to accept the default value (en)
    psCountry - country for the specified entry. Leave blank to accept the default (US)

    Throws: tcAPIException tcInvalidLookupException - thrown if the search Code is no tcInvalidValueException - thrown if the value cannot be added to the list of choices (because it's a double, etc.)

    M

  • Best-how-how to share data between the case of the event?

    ... more, which would be the best way to disable a case of event if another case of event has not run yet?

    I store the table a landslide enter a while loop that surrounds the structure of the event, then your data is readily available to any event.  However, you will need to wire data in and out of each case of the event table, which can be done easily with the connected tunnels.  If you need display the table of data as well, put an indicator inside the while loop while out of the structure of the event, connected with the registry to offset.

  • How to hide data in the table?

    Hello

    I'm using LabWindows/CVI 8.5 and I have a question about the use of tables.

    The problem is this: in my table, I have 8 columns.  I have columns of chains, whole, and a column of buttons - so there is a button on each line.  I have some information about each line I don't want to display in the table, however, I would like this information to be associated with other information on this line.  Each line represents a high lack of information from a log file - level when the user clicks on the button, I want to be able to go to the specified file and extract more detailed information about this flaw and display it on another Panel.  "Hidden" information are (1) file identification number, and (2) seek-card value... or 2 integers.  My problem is how to have these 2 pieces of information available for each line, but they have to be seen by the user.

    There are two ways I see this, but I did not really understand how to make no more.

    (1) I could have each key also contain a string that includes the 2 pieces of information (for example, "32:125567"), so that when I click the button, the application can retrieve the string value of the key, analyse and extract integer values from two...  I've done this work - BUT the button actually displays the string containing the numbers!  Is there a way to "hide" this information contained in the button?

    (2) alternative... Is it possible to include columns 'hidden' in a table that can contain information - but these columns are not displayed.  For example, my table is currently 8 visible columns.  Could I somehow add a column for file identification number and a column for search-map and have these columns be hidden from view (but still accessible to the application)?  I don't see a way to do this, but I'm still very inexperienced using tables in L/CVI.

    Or you guys maybe you know a better way to do...

    Thank you very much

    Harv

    Regarding your question 2, although it is probably replaced by my previous post, don't forget that a table can have more columns than those displayed on the screen.

    You can configure your table to have 10 columns, but only 8 shown (button ' size/scroll options' in table in the IUR editor properties); given that you can hide the horizontal scroll bar, even in this case you can store information in the table that are not accessible to the user.

  • How to merge data from the table with a single line

    Hello

    I have three tables subscription_type, the address and the person. Here are the details of the table

    Person Subscription_type Address                                           

    Person_Id AdressType_id Address_id

    Person_name Description Address_type_id

    Person_id

    Address details


    There are three types of different address - home, postal and previous.

    Each person can have these three different addresses.

    I want to create a view that displays all addresses of three of each person in the table of the person in a single line.

    Any help please

    In your example, there are 2 rows of columns street1, TOWN, SUBURB etc for a single person. To convert this into a single line, with the new columns we could simply use CASES or DECODE in the select as the SQL below. To understand why consolidation function THAT MAX is used - remove the MAX and GROUP BY in SQL keyword and try.

    Select full_name

    , max (case when description = "Home" then end street1) Home_Street

    , max (case when description = "Home" then end suburb) home_suburb

    , max (case when description = end of the "Home" then City) home_city

    , max (case when description = "Home" then postal code end) home_postcode

    , max (case when description = "Home" then end state_name) home_state

    , max (case when description = 'Postal' then end street1) Postal_Street

    , max (case when description = 'Postal' and then end of suburb) Postal_suburb

    , max (case when description = 'Postal' then the city) Postal_city

    , max (case when description = 'Postal' and then end of CP) Postal_postcode

    , max (case when description = 'Postal' then state_name end) Postal_state

    , max (case when description = "Back" then end street1) Prev_Street

    , max (case when description = "Back" then end suburb) Prev_suburb

    , max (case when description = "Back" then city end) Prev_city

    , max (case when description = "Back" then postal code end) Prev_postcode

    address a

    S State

    No p

    Subscription_type att

    where a.person_id = p.person_id

    and a.state_id = s.state_id

    and a.address_type_id = att.address_type_id

    Full_name group

  • How to extract data from the APEX report with stored procedure?

    Hi all

    I am doing a report at the APEX. the user selects two dates and click on the GO button - I have a stored procedure linked to this region of outcome for the stored procedure is called.

    my stored procedure does the following-

    using dates specified (IN) I do question and put data in a table (this painting was created only for this report).

    I want to show all the data that I entered in the table on my APEX report the same procedure call. can I use Ref cursor return? How to do this?

    Currently, I use another button in the APEX that basically retrieves all the data from table. Basically, the user clicks a button to generate the report and then another button for the report. which is not desirable at all :(


    I m using APEX 3.1.2.00.02 and Oracle 10 database.

    pls let me know if you need more clarification of the problem. Thanks in advance.

    Kind regards

    Probashi

    Published by: porobashi on May 19, 2009 14:53

    APEX to base a report out of a function that returns the sql code... Your current code goes against a Ref cursor returns the values...

    See this thread regarding taking a ref cursor and wrapping it in a function to channel out as a 'table' (use a cast to cast tabular function vale)...

    (VERY COOL STUFF HERE!)

    Re: Tyring to dynamically create the SQL statement for a calendar of SQL

    Thank you

    Tony Miller
    Webster, TX

  • I can't get my script to make my data in the table to create another data line

    I have my form, I need to share with one of you experts... it's very simple... to tell me why the form is not working the way I want it.  Please tell me how to share the form and I'll do it.

    The detail button Add adds no additional lines.  The code looks OK, but does not work.  Sorry for the long hike, but I'm in a hurry for work .  Please help where you can, I am very willing to provide my form to anyone willing to help me.

    Thanks in advance

    Mike

    My button has the following code attached to it...

    XFA. Form.Form1.mainSF.salesSF.table1._Details.addInstance (1);

    Header 1 Header 2 Header 3
    Header1By tete2Header3
    POS.1Detail2Detail3
    Total1Total2Operation3

    Hi Mike,.

    The first mistake you made was recorded as static form, so it has not expanded. Also, your code was not correct both that hierarchy.

    See attachment.

    https://www.dropbox.com/s/1dk0q7hxi24logd/LCTest%201%20dyn.PDF?DL=0

    Thank you

    Arvind

Maybe you are looking for

  • HP 1000 - 1 b 10 AU: I need a few common problems laptop.

    Hello:I have a laptop that I use when I am away from home due to office.Well, I have Windows 7 sp1 32 bit amd going to install Windows 10 pro.Real talk begins: I want to know what is my laptop can handle.It can run Windows 10 effectively? I have many

  • delay of beep

    Hi all! I have this simple Subvi who gets a desired coordinate set (x, Y), the real X, coordinates of an object and a tolerance. The Subvi is supposed to beep (via beep.vi) if the object is in the area of tolerance.I use this Subvi in a loop that con

  • j of the BIOS

    I just bought a lapop, compaq CQ58 and put my wrong.now password he wants password administrator or power on password.please help me unock it.

  • Content file download failed. Reason: The RPC server is unavailable.

    Hello Please help, I have the following error with my WSUS. The clocks are so successful. According to the survey, it is said "updated the files needed: 2589 ' 'downloaded 0.0 MB of 30 years, MB 196,09. MT event logs show ID 364 Content file download

  • When you try to reinstall the printer I hit find now and choose / click on the printer, but then he says: I mistyped the location

    (I'm asking this question in the installation, upgrade and activate rather than the hardware and the drivers because I think it's a problem with Windows, not the driver) I had a ton of problems with the computer of the person of the new. I did not or