creating views in a new scheme to access some rows of the tables in the source schema

Hello

Oracle 10.2.0.4

We try to hide some data from some users. My suggestion is that we create a new view_schema scheme on the same instance where we said the source tables in source_schema.

We then create views in view_schema as below

CREATE VIEW AS SELECT * FROM source_schema.table where COLUMN_n = "XYZ";

We then grant SELECT on these views to a role and assign this role new users to be able to consult the data consulted.

If the questions below.

  1. We can create views to view the data in another schema WITHOUT giving SELECT permissions on source_schema.tanle directluy?
  2. It works and there is no need to create synonyms etc.
  3. YOU can manage users and much easilier view (s)

Is there a sense and who better than the selection seen with say table_name_view in the source schema to this effect and even the creation of synonyms for these points of view with the same name, yasmina in sourece_schema?

Thank you

905989 wrote:

Hello

Oracle 10.2.0.4

We try to hide some data from some users. My suggestion is that we create a new view_schema scheme on the same instance where we said the source tables in source_schema.

We then create views in view_schema as below

CREATE VIEW AS SELECT * FROM source_schema.table where COLUMN_n = "XYZ";

We then grant SELECT on these views to a role and assign this role new users to be able to consult the data consulted.

If the questions below.

  1. We can create views to view the data in another schema WITHOUT giving SELECT permissions on source_schema.tanle directluy?
  2. It works and there is no need to create synonyms etc.
  3. YOU can manage users and much easilier view (s)

Is there a sense and who better than the selection seen with say table_name_view in the source schema to this effect and even the creation of synonyms for these points of view with the same name, yasmina in sourece_schema?

Thank you

1. you can create the view in another schema (first granting of privileges to the schema of the view) without granting privileges of the schema of the source

2. you probably want to create public synonyms for the view (s).  You can refer to the view as schema.view, but it's bulky

3. I'm not sure management is easy, but the extra complexity shouldn't be too bad.  Write the documentation describing how everything works and the object involved.

Another, more complicated, but more powerful option is to use row-level security also known as the virtual private database - if you have the license.  You create a profile for a table and a procedure to generate the WHERE clause to filter a query against the table and the columns defined in the profile.  Yet once, you need license to do this.

Tags: Database

Similar Questions

  • Does anyone know a shortcut for create/exit points exactly 1 second (or no preset amount) in the source monitor apart?

    Does anyone know a shortcut for create/exit points exactly 1 second (or no preset amount) in the source monitor apart?

    For example, I want to choose a second clip sections of 5 minutes, but do not want to move the points of entry/exit with the mouse in the hand. Would also be useful to several clips where 1 s/exit points have not been established

    Thanks for all the answers!

    Go to preferences and on the set of forward/reverse reading pane, for the number of images you want to move the read head (in this case 60, two seconds):

    And click OK.

    Then put your first marker, then type shift + right arrow to move the playback cursor, the number of images that you entered.

    If you type shift + left arrow , it will move the playback cursor backward the number of images.

    MtD

  • Creating a view in a new schema

    I use the Oracle SQL Developer 10g client.  I want to know how to create a view in the diagram. I have a schema that has all of my table and the views. I want to create a view in a pattern that has no data. It is only to look at a goal only of the view I want to create.

    Thank you

    Kevin

    As I said.

    Connection to the schema where the table exists

    Grant select on to

    Connect to the new schema

    Create view select * from .;.

    What you want?

  • Cannot access some sites behind the pix515e

    I started my CISCO PIX 515e in July 2004 with a minimum configuration. The only change I made was to introduce the syslog and 3COM tftp server. Two weeks after my Internet (browsers) users (inside) began to have problems of access to certain sites for example google.com, cnn.com etc when I bypass the firewall, they can access all the sites. When I place them behind the firewall again they cannot access the same places. It seems to me that the firewall is the cause. This could be the cause?

    Without seeing your config, it is hard to say, but a proposal, I'd say you're probably out of translation addresses. The PIX must create a translation for the traffic as it comes out, and she does that based on nat/global orders, you have in there. Let's say you have the following:

    Global 1 200.1.1.1 - 200.1.1.254 (outside)

    NAT (inside) 1 0.0.0.0 0.0.0.0

    Then, this indicates the PIX to translate any internal address to 200.1.1.x he died. If all of these 254 global addresses be used however the next person who tries to go out will be denied. If you look at your syslog server, you will see a message like "Unable to create translation."

    If you change it above to:

    Global 1 200.1.1.1 - 200.1.1.253 (outside)

    Global 1 200.1.1.254 (outside)

    NAT (inside) 1 0.0.0.0 0.0.0.0

    then the first 253 users that come out will have their packages would NAT, then all of the other packages will be PAT had to the 200.1.1.254 address, giving you an extra 65, 000 - odd outbound connections.

    If that's not enough (remember that only the user going to a few web sites can open connections to 20-30), then you can change the above to the following:

    Global 1 200.1.1.1 - 200.1.1.252 (outside)

    Global 1 200.1.1.253 (outside)

    Global 1 200.1.1.254 (outside)

    NAT (inside) 1 0.0.0.0 0.0.0.0

    giving you a 65, 000 - odd additional translations and so on.

    Other than that, we would need to see your Setup and your messages to syslog (in the debug level) when these users can't get out.

  • I can't access some website after the recent update of Firefox.

    Before the update, I was able to get into my bank account without any difficulty. Now, I question "secure connection failed". The problem is not the firewall because any computer we tried to access the site, including one on another Internet connection, failed. I am able to access the site on other browsers. None of the support or troubleshooting forums helped.

    Firefox blocks access to this Web site is because it uses the oldest Monogram RC4. (and the login page is where you want security, if it is little course it will be the first point of attack to access bank accounts).

    I suggest that you call the Bank immediately and ask that they use some modern web security.

  • How to access some files from the Windows.old folder?

    I recently made the mistake of updating my OS before save lots of interest - information is all the info from Outlook, I had (e-mails, contacts and calendar).

    I have posted a question to the Board of Directors of Windows Vista for the cat, but was recently informed of this discussion here.

    THUS,.

    I was told I could "...". Browse to C:\Documents and Settings\xp_username\Local Settings\Application Data\Microsoft\Outlook and move the pst file in My Documents folder.  It is a hidden file so you will need to activate the hidden files and folders. »

    When I tried to do, I got as much as Windows.old > Documents and Settings > xp_username, but when I click on the "Local Settings" folder, I get a message telling me:

    "C:\windows.old\Documents and Settings Settings\xp_username\Local is not accessible.  Access is denied. »

    I get a similar message when I try to enter in the Application Data folder in the xp_username folder.

    How can I do at this point?  Thank you!

    Try this link:

    Windows Vista junction points
    http://windowsconnected.com/blogs/joshs_blog/archive/2006/09/28/Windows-Vista-junction-points.aspx

    see if your "C:\Windows.old\Documents and Settings of utilisateur\Local Settings\nom" has a shortuct looking for icon. If it changes to the command prompt in the directory that contains the junction point, i.e. "C:\Windows.old\Documents and Settings\nom of user' can do a: dir / a: s *. at the command prompt.

  • Problem with the new printer print only some word from the quarterdeck documents

    I hope someone can help. I have a Dell Vostro and had 8 happy years print on a Canon printer. I just upgraded to a Canon Pixma iP4600 printer. I think that with some (not all) MS word documents it prints the rear tray (mean't for photo paper) by opposition to the tape before (designated for plain paper), for which I set the properties of the printer.

    Canon tech support say there is a Windows problem. I already reinstalled the printer driver but sill the same problem. Hope someone can advise.
    Happy Days!
    Bryan

    Hello
     
    This phenomenon only occurs with word documents?
    Have you checked if this happens with any other application?
     
    As you have already defined the properties of the printer and the problem is only with a few word documents. The first step would be to check if the word printing settings are defined in law.
    To fix printing on word problems, see the steps mentioned in this link:
    http://Office.Microsoft.com/en-us/Word/HP051887411033.aspx
     
    Sometimes this also happens if the printer settings are ignored when you print a Word document. To check if these settings are correct, try the steps mentioned in this article: http://support.microsoft.com/kb/904805
     
    If you still find difficulties in printing, run the Microsoft Fix it to reset the settings: http://windows.microsoft.com/en-us/windows-vista/Troubleshoot-printer-problems
     
    Post back with the results, so that we can help you better.
     
    I hope this helps.
     
    Kind regards
    Syed V
    Answers from Microsoft supports the engineer.

  • How to create views of data from different databases tables in2

    Using Oracle 10.2 g

    I have 2 databases Gus and the haggis on schema Comqdhb.

    Glink indicates a link of database between Haggis and Gus

    In Gus, there is school that contains columns with same name upn, grade, subject, student of tables...

    STUDENT
    UPN
    academicYear

    Object

    Object

    GRADE
    examlevel
    grade

    SCHOOL
    SN

    In HAGGIS raising tables, grade, teacher containing columns upn... desc below.

    STUDENT
    UPN

    GRADE
    grade
    UPN
    academicyear
    level



    Create views in your database HAGGIS who join their all the qualities of the review. You should have a point of view that will produce the following relationship:
    examGrade (upn, subject, examlevel, sn, rank, academicYear)

    So I need to create a view that gets the data from the tables in the databases.

    create view as examGrade (upn, subject, examlevel, sn, rank, academicYear) like some s.upn


    But I don't get the selection of a column of 2 tables in different databases

    I mean if I said

    Select the UPN in comqdhb.student@glink,comqdhb.student;
    Select the upn name in comqdhb.student@glink,comqdhb.student
    *
    ERROR on line 1:
    ORA-00918: column ambiguously defined

    Help me, thank you.

    Hello

    Rider wrote:
    The issue is that I can't understand that I should create the view by the union of the haggis and the two gus data or only haggis.
    the reason I believe I need to combine the two is mentioned * "" create views in your database schema HAGGIS who join their all the qualities of the review. ". *
    By the mention of creating views and who join their all the qualities of the review, it probably means to obtain the data of the GUS and HAGGIS.

    This is my interpretation of the assignment, too.
    If you ask just the tables on Gus, you will get the ranks of three of the four schools: it's not all examination classes.
    If you ask just the tables on Haggis, you will get the ranks of any of the four schools: it's not all examination classes.

    2nd prob is that if have decided to create a view that gets the data from these two gus and therer haggis would be a lot of duplication involved due to the cross product

    Why would there be "repetition involved due to the cross-product"?
    If the quuery of Gus produces 100 lines, the request of product Haggis 30 rows, then the UNION of the two will have 100 + 30 = 130 lines (assuming, as you say, each student is at school only one).

    the query I wrote is

    Create view examGrade (upn, subject, examlevel, sn, rank, academicYear)
    as
    Select distinct s.upn as upn, g.subject as topic,
    g."LEVEL" as examlevel, g.grade as rank, to_number (g.academicyear) as academicyear
    of s comqdhb.student, comqdhb.grade g
    s.UPN, sb.subject, g.elevel, g.grade, s.acyr select Union
    of comqdhb.subject@glink sb,comqdhb.student@glink s,comqdhb.gradevalues@glink g;

    You should not write, not to mention not formatted zip code. I have a little time I can devote to answering questions in the forum. Do you want me
    b spend this time formatting your code, so I can understand the question, and no time to answer, or
    b spend only a little time reading understanding your code and spend most of my time to help you?
    I would prefer (b), but the choice is yours.
    See the statement that I posted in my last post for an example of the formatted code. You see how it appears in a box with a police fixed-width, and multiple spaces are printed? This is because I typed {code} (all small letters), before and after the section I wanted formatted.

    At least put each table in the FROM clause on a separate line, so it is easy to know if you have enough join conditions.
    If you have N tables in the FROM clause, you almost always have at least N-1 join conditions that specify how the tables are linked together. For example, if talk you about two tables, quality and student, you expect to see a join condition that tells you when you have data in a table, how to find related data in the other table, such as

    g_gus.upn = s_gus.upn
    

    No no no join conditions will cause "repetition involved due to the cross product.

    I downloaded my info here
    http://www.upload4free.com/download.php?file=44201983-School_ExamGrades.PDF


    http://www.upload4free.com/download.php?file=184648736-ExamGrades_Case_Study_2008FINAL.PDF

    Sorry, if there is data as long as you can't post here, there is much too much for me to read.
    Make a sample set, containing a few (maybe five) students and a few shades of each student. It is fine to copy a few lines of your actual data.

    That's all the time I have for today. I can't wait to get the data and formatted requests.

  • Is it possible to have the source and target schema in the same instance of DB?

    Hi all

    I'm using Oracle 11 g 1 material.
    I spent another source than with OWB server locations.
    In the course of deploy I get VLD-3064 and I can't deploy mapping due to the many warnings "table or view does not exist.

    Is it possible to have the source and target schemas in the same case?
    How to do?

    Kind regards
    Martin

    Hi Martin!

    1. the target schema have select rights for source-tables/views.
    (Run as a user with dba rights: grant select on to ;).

    2 «.. . none generated code will use the link dataabase...'.
    This is only a warning and means there is no need to use a database link. If your mapping will be executed faster as using a database link.

    error of VLD 3064

    Greetings
    Guenther Herzog

  • I can't access some websites from my computer

    In recent weeks, I've been unable to access one of my favorite sites. I can also access some features of the iTunes app which worked fine before (in the iTunes Store). I can't access my antivirus tech support either. I called my IPS and there is nothing wrong with that. They were able to access the site, I couldn't, so the site is not offline. I tried the Fixit, but it did not help. My IPS technology had me run a check of the computer and it says that the site was very good but it does not communicate with my computer or my computer does not communicate with him.  Why is this happening all of a sudden? I tried everything and nothing works. I can access the site of the library computer and access all the features in the iTtunes store but I don't want to continue to use the computer in the library when I have a perfectly good home. Nothing has changed in my settings will be why my computer thus contacted some sites and not others? I'm seriously frustrated by that. Someone at - it any suggesttions that I have not tried? Any help would be greatly appreciated. Thank you.

    First, run a full scan of the computer using a malware removal tool. You can download and install Malwarebytes site and install it in the computer to run a full scan:

    http://www.Malwarebytes.org/

    After you have confirmed that there is no malware on the computer, you can try the steps outlined in this article as the preliminary steps to deal with the question:

    http://support.Microsoft.com/kb/967897

    If the steps in this article does not help, try the Fixit in this article (or you can follow the manual steps as well) and see if the problem is resolved:

    http://support.Microsoft.com/kb/972034

  • How to create an access as guest at the Adobe viewer?

    Hello

    My client and I want to create a new store and I want

    give my client a feedback of tests and drawings.

    Can I create an access as guest at the Adobe viewer?

    I want my customers to provide the application resulting to discuss jointly

    the same development and testing. But do not want the client generally

    has access to my Adobe ID code is there a way to do this?

    There may be one general alternative am open to everything.

    But I would like to remove my clients in order to provide the application resulting

    to examine and test.

    best regards, Liljana

    Message geändert durch Liljana *.

    You can ask your client to create an Adobe ID and then you can share your specific work / folio with identifier Adobe in this way you should not share your Adobe ID and password with the customer and the customer must also do not share their password / other details with you. The best part is when you make changes to your folio user shared automatically get this change. The user just has to take the update.

  • The scheme < SOA > _OPSS is already used for the safety of the point of sale. Please create a new scheme

    All,

    version: 12.1.3

    I am trying to create a new area where I wanted to use the same scheme used in the existing domain.  It failed with the below error

    com.oracle.cie.domain.security.external.ConfigSecurityException: oracle.security.opss.tools.lifecycle.LifecycleException: security of the store DB configuration error. Oracle.security.opss.tools.lifecycle.LifecycleException of exception: the SOA12C_OPSS schema is already used for the safety of the point of sale. Please create a new schema.

    Is it mandatory that the scheme (creating the UCR) used in a field cannot be used for the new domain?  or am I missing something? Please notify.

    Thank you

    Sen

    That's the point... So actually you were never more than one domain using the same patterns, you have never shared patterns on different fields... You had a domain which would sometimes... Not possible in 12 c but because of OPSS more... Maybe you could just the OPSS schema duplicated, but you would always use the platform so that it was not intended to...

  • create the new virtual machine, access to a physical disk

    I just created a new virtual machine. Then, I deleted the preconfigured disk and added a physical disk. This drive is connected to my computer with an S - ATA to USB docking station. The wizard displays all of the data, were leaving and so on correctly. But when I try to turn on the virtual machine, it tells me that it cannot access the drive.

    What I am doing wrong?

    I use Windows 7 64-bit with VMware Player 3.

    http://communities.VMware.com/docs/doc-10455

    ___________________________________

    VMX-settings- WS FAQ -[MOAcd | http://sanbarrow.com/moa241.html]- VMDK-manual

  • Privilege to allow a user to create a view of another user schema

    Hello

    I need allow a user create a view of another user schema.
    Say, log in as the latter and run the statement: "create view USER_B_SCHEMA.myview as select...". »

    Is there a way to achieve this without the agreement of this last privilege to CREATE ANY VIEW? I want to keep it on the profile as low as possible.


    Thank you!

    You can create a stored procedure, here's a test case (not optimized, no free bug):

    SYS@orcl > create user sp_owner identified by sp_owner;
    
    SYS@orcl > grant create any view to sp_owner;
    
    SYS@orcl> create procedure sp_owner.create_view (
      2  view_name varchar2, view_sql varchar2 ) is
      3  begin
      4    execute immediate 'create view '||view_name||' as '||view_sql;
      5  end;
      6  /
    Procedure created.
    
    SYS@orcl > create user test identified by test;
    
    SYS@orcl > grant create session to test;
    
    SYS@orcl > grant execute on sp_owner.create_view to test;
    
    TEST@orcl> execute sp_owner.create_view('scott.emp_vw','select * from scott.emp')
    PL/SQL procedure successfully completed.
    

    HTH

    Enrique

    PS. If your problem has been resolved, consider marking the question as answered.

  • I created a new administrator user account that has replaced the original one. Now I can not access my old files. What can I do?

    Windows XP Professional

    I found that will help you solve your problem,
    the original instructions have been written by Shenan Stanley
     
    Posts: n/a
    Re: Main administrator account appearing not
    If you can connect with the new account that you created (which should be an administrator account as well) then go directly to step 2 below.

    I suppose that you use the administrator account as your main account (bad
    idea anyway) and that means that you probably have Windows XP Professional * and *.
    somehow enabled the guest account or create a new account - or
    installed some patches that created a new account - as .NET.

    I guess also that (since you say "appear") you also use the 'Welcome' screen
    opening of session instead of the classic logon.

    (1) restart the system. Press CTRL + ALT + DELETE twice on home
    screen. Type in "Administrator" (without the quotes) as the username
    and do not put in any password and logon. Work?

    (2) or follow the instructions below to add the administrator account of
    the Welcome screen * or * download/use TweakUI to choose that is visible on
    the screen of welcome and even set automatic logon if you want.

    How to add a user to the Welcome screen logon page:
    ------
    1. start regedit.exe (start--> RUN--> REGEDIT--> OK)
    2. navigate to:
    HKEY_LOCAL_MACHINE
    NT\CurrentVersion\Winlogon\SpecialAccounts\UserLis t.

    3. on the Edit menu, select new, DWORD value.
    4. type administrator as the name, and then press ENTER.
    5 double-click on the new value it the value 1 and click OK.
    6. close the registry editor.

    The administrator account will now appear on the Welcome screen. You can use
    These same steps to control other accounts listed on the welcome
    screen. The value of the registry value to 1 to display an account or account 0 for
    hide an account. For example, to hide the user Bob account, add a value
    named "Bob" in the registry key identified in step 2, then set the value to 0.

    You can do the above with the Microsoft TweakUI PowerToy.
    http://www.Microsoft.com/windowsxp/d...PowerToys.mspx
    ------

    Automatic logons:
    ------
    Method of Microsoft:
    http://support.Microsoft.com/kb/315231

    Method 2 of Microsoft:
    TweakUI for:
    http://www.Microsoft.com/windowsxp/d...PowerToys.mspx

    control userpasswords2 method:
    (1) go to the Start Menu and run the box.
    (2) type the following:

    Control userpasswords2

    Now click on OK
    (3) in the new Windows that appears select the account you want to make the
    opening main session.
    Now, uncheck the box "users must enter a user name and password... ».
    (4) hit apply and a dialog box will appear asking you to confirm the selected
    user password.
    Click OK when you have finished...
    ------

    I hope this gets you where you are wanting to be.

    It's a * good * thing in the field of the user to:
    (1) have strong passwords.
    (2) have more than one account to administrator (with strong passwords).

    I know - you are the "only one who lives there, the only person who uses your.
    computer'... etc. Large. When your House is burgled and computer


    stolen (physically or virtually)<- you="" may="" be="" thinking="">
    Another thing, like ' all my (the only person who lives here, the only person who).
    Use this computer) documents, pictures, e-mails, financial information, updated in cache
    Passwords, contacts, etc... are on this computer. »

    But it's an individual choice. You get to evaluate risk. =)

Maybe you are looking for