Can I build an application using a table that is owned by another user?

Greetings,

I am very beginner in Oracle, and I really need help with this point.
I created 2 user accounts: user1 and user2.

In User1, I wrote:

GRANT CONNECT, RESOURCE
for User2.

Grant select, insert, update
on table1
for User2.


Now, user2 can see the content of this table, but only in the part SQL (select * from user1.table1)
How can I create an application that uses the table1 to user2?
When I go to application builder, I have to choose one of the tables belonging to the user2. But I can't use table1 User1 although that User2 has permission to access.

Any help?

Thank you in advance!

Beginner's daughter

Hello

There is a powerful solution, that you can use.

You can create a view. Some views may be editable (this means that it is possible to update
the Table for the view) and you can add some constraints (Primay Key) on a view.

For example:

CREATE or REPLACE ADVICE {color: Red} User2.view_name {color}
(col1 {color: red} {color}, col2 {color: red} {color})
UNIQUE RELY DISABLE NOVALIDATE,
The CONSTRAINT {color: red} pk_view {color}
Col1 PRIMARY KEY {color: red} {color}) MATTER DISABLE NOVALIDATE
) AS
SELECT col1 {color: red} {color}, col2 {color: red} {color} OF {color: Red} User1.Table1 {color};

This example is from the link below:

[http://www.psoug.org/reference/views.html]

Hope this can help.
Best regards
Jean Valentine

Tags: Database

Similar Questions

  • Can I build an application using an existing Web of Muse?

    Can I build an application using an existing Web of Muse?

    Muse is not build applications, so I don't know what you are asking. The rest is between you and any application development tool / SDK you are using.

    Mylenium

  • If I buy a monthly subscription can I load the application on multiple computers that I have on the same e-mail ID?

    If I buy a monthly subscription can I load the application on multiple computers that I have on the same e-mail ID?

    Hi rlp54163129,

    Acrobat can be installed on both systems, however it will be enabled only on a system at a time.

    In order to install & activate multiple system you need to subscribe to it for the entire system, or you can go for volume license.

    Kind regards

    Nicos

  • You can add not null column to a table that already contains data?

    Hello
    You can add not null column to a table that already contains data?
    Database 9i / 10g on RHEL
    Concerning

    Who worked in 9i?

    Looks like that it:

    SQL> select * from v$version where rownum = 1
    /
    BANNER
    ----------------------------------------------------------------
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    1 row selected.
    
    SQL> create table emp2 as select * from emp
    /
    Table created.
    
    SQL> alter table emp2 add new_col integer default 0 not null
    /
    Table altered.
    
  • How to modify a table that is owned by sys?

    I connected as sysdba and created a table. So I decided to remove a column from the table and Oracle gave me the following error message:

    ORA-12988: cannot remove column of table belonged to SYS

    I have read about the error and learned that I better not create tables when you are logged in as sys. So I can drop all the table, but not a column of the table.

    Why is that I can modify the table, but can't remove her columns when I am logged in as sys?
    Is it possible to remove columns from the table, that I created?
    What should I do with this table, I created under sys? Do I have to delete the entire table, because it is immutable?

    Published by: artanis April 12, 2010 03:47

    Hi Artanis,

    See for this just to ensure that everyone connected as user SYS should not intentionally or by mistake be no matter which column of a table that is owned by SYS because the sys user owns all the data dictionary tables and Oracle is not one of these tables in no case be changed or you can say that they do not want anything in the SYS schema should be modified by manual action as any structure of the object changes. This is the reason why it is advisable to do not create user objects in the sys schema.

  • How can I develop an application using Bluetooth SD Card 2?

    Is it possible to develop an application using any kind of Bluetooth SDK available for WinCE?
    I need some information on developing applications on the PDA Bluetooth.
    Thank you.

    Hi Apollo

    I put t know what information you need exactly, but you'll be very happy if someone on this forum can help you. For most of the topics are discussions on laptops to upgrade and all the issues of the day, but application development...

  • Professional Development System: Can not build the Application

    Hello

    I have the LabVIEW Professional Development System 2015 on my computer.   According to National Instruments, this version of LabVIEW has already provided with the Application Builder.  However, when I try to compile a standalone application, I don't have access to the application of the manufacturer. I've referenced the tutorial here and think that I do everything correctly: http://www.ni.com/tutorial/3303/en/#toc1

    If please see the attached screen shot and notice how I do not have the option ' new > application ", as claimed by the my system of professional development tutorial * must * have. How can I access the Application Builder with my professional development system?  Should I enable it?  If so, how should I do this?

    Thank you

    Jason

    Go to OR under the National Instruments License Manager in the Start Menu.

    Make sure it is turned on it.  It should have happened automatically.  But if you had some odd order of installation, or maybe don't have access to the internet when it installed first, that she might leave the hanging of activation.

  • Security ADF of application using DB tables for users and roles

    Hello
    I followed the below documents to use SQL authentication instead of jazn.

    http://Biemond.blogspot.com/2008/12/using-database-tables-as-authentication.html


    http://Biemond.blogspot.com/2008/12/using-WebLogic-provider-as.html

    The second paper after completing the ADF Security Assistant, there are steps to create roles and application below at point

    * "We need to use myrealm as Kingdom and not jazn.com. Create the role of valid users. "

    Could someone suggest where to put these roles?

    Thanks in advance!
    Vinod

    Hi Vinod,

    If you set up SQLAuthenticator in the JDeveloper's integrated Weblogic Server, so what happened to your case is expected, because you deleted the Weblogic instance where SQLAuthenticator has been configured. Yes, you have deleted the domaine_par_defaut instance that is located in the directory specified above. JDeveloper will recreate a new instance (not configured) the next time you run.

    To avoid reconfiguring SQLAuthenticator, you must set it up on a stand-alone instance of Weblogic (which is not located on the JDeveloper/systems user... folder.

    Kind regards

    Pino

  • How can I find the subset of a table that corresponds to a set of conditions/conditions?

    I have often encountered this problem in LabVIEW, probably the result of my Matlab based thinking on the tables. Suppose I have a 1 d array that consists of a real number between 0 and 2 (for example):

    1.3 0.1 1.9 0.7 1.4 1.5 1.5 0.8 1.3 0.3 1.4 1.4 0.1 0.6 0.1 0.2 1.6 1.6 1.4 0.6 0.1 1.9

    and I want to know the average of the subset of values greater than 0.5 and less than 1.2:

    average ([0.8 0.7 0.6 0.6]) = 0.6750.

    How can I find the subset of the array that satisfies the condition > 0.5 &<1.2>

    For your example (values between 0.5 and 2) If you wish:

    I would do something like this:

    I have generated just a table of 10 random numbers between 0.0 and 2.0

    The following loop sorts the data, using "range and force."
    It then displays the data in the selected range.

    The last step is to take the average

    I have attached the VI if you do not want to use the code.

  • I can't access some websites using Firefox. For my own site, I get "file not found". My Yahoo downloads in the form of text. No problems with browsers IE or Chrome

    I can't access some websites using Firefox. Pages say "File not found" or in the case of Yahoo and Facebook, they resemble the on-screen text files. No problems with my computer and it is not the case with my browsers IE and Chrome. Already deleted and reinstalled Firefox and it has not solved the problem

    You can also do a check of malware with some digitization programs of malicious software on the Windows computer.

    Please scan with all programs, because each program detects a different malicious program.

    All of these programs have free versions.

    Make sure that you update each program to get the latest version of their databases before scanning.

    Alternatively, you can write a check for an infection rootkit TDSSKiller.

    See also:

  • How to lock the table rows selected adf for another user

    Hi all

    In my case, I created a vo based on eo. where I create an attribute (marked) transitional type boolean.

    I have created two jsf pages

    1 - summary.jsf
    2 - claimed.jsf

    in the two page, I slipped even vo as the adf table.

    in the page summary, all vo lines is display. and I created a button on the summary.jsf page.

    When I have selected a few record table adf (using the check box marked attribute) and click the cliam then

    apply filter adf table see criteria and open claimed.jsf page. claimed. JSF page only display selected fine line.

    but I want that these selected lines (which is displayed on the claimed.jsf page) don't display another user in the summary.jsf page.

    I want to say that these specific lines will be locked so the other user does not work on these lines.

    Concerning

    Manish

    You would have to:

    (1) add a column in the underlying table of the DB to track lines are claimed
    (2) change your VO to include a where clause clause that excludes claimed elements
    (3) add something in your UI to release the goods in question (if necessary) so that you can release an item if someone closes their browser.

    John

  • How to rename a table in the schema of another user

    Hello! How can I rename a table to another user? I'm sysdba. I can't recreate just, because it is very huge and it will take a lot of time to move data to the left and to the right.

    ALTER table make.orders rename make.orderhistory.

    My bad, how it works

    SQL>
    SQL> alter table maran.test1 rename to test2;
    alter table maran.test1 rename to test2
                                      *
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    
    SQL> alter table maran.test1 rename to test3;
    
    Table altered.
    

    To apologize

  • Re-use of LUNS that were part of another GM

    CRS version: 11.2
    operating system: AIX 6.1
    We have a few LUNS assigned to our DB server. These LUNS used to be MEMBER of another group of disks. Later these got LUN went from this disk group. Now, V$ ASM_DISK. HEADER_STATUS = OLD for these LUNs.

    select name, path, state, mount_status, header_status from v$asm_disk where upper(path) like '%ORCL%';
    
    NAME                 PATH                       STATE    MOUNT_STATUS         HEADER_STATUS          TOTAL_MB    FREE_MB
    -------------------- -------------------------- -------- -------------------- -------------------- ---------- ----------
                         /dev/raw_orcl_data01        NORMAL   CLOSED               FORMER                    0          0
    We must now use these LUNS 'OLD' to create an another diskgroup.
    Any intervention is required AIX team to use LUNS/slice with the status of OLD to use another GM?
    I'm worried because we usually add LUN to one only if a disk group V$ ASM_DISK. HEADER_STATUS = CANDIDATE for this LUN.

    Published by: GarryB on March 13, 2012 05:21
    Added version info

    GarryB wrote:
    We have a few LUNS assigned to our DB server. These LUNS used to be MEMBER of another group of disks. Later these got LUN went from this disk group. Now, V$ ASM_DISK. HEADER_STATUS = OLD for these LUNs.

    select name, path, state, mount_status, header_status from v$asm_disk where upper(path) like '%ORCL%';
    
    NAME                 PATH                       STATE    MOUNT_STATUS         HEADER_STATUS          TOTAL_MB    FREE_MB
    -------------------- -------------------------- -------- -------------------- -------------------- ---------- ----------
    /dev/raw_orcl_data01        NORMAL   CLOSED               FORMER                    0          0
    

    We must now use these LUNS 'OLD' to create an another diskgroup.
    Any intervention is required AIX team to use LUNS/slice with the status of OLD to use another GM?

    If disk dropped cleanly then header status would be OLD, then you are good to go with this record in another diskgroup... But before that, he must clean up his headerstaus with the command "dd" to make its candidate status...

    I'm worried because we usually add LUN to one only if a disk group V$ ASM_DISK. HEADER_STATUS = CANDIDATE for this LUN.

    Ask you guys to admin to clean for you...
    For example
    DD if = / dev/zero bs = 8 k count = 1000 = / dev / rhdisk12-> rhdisk12 is the disk that you want to use

    Once above the command is executed, see its status from v$ asm_disk. It shoule have candidate status

    See also
    http://shettymayur.blogspot.in/2011/03/cleaning-Oracle-ASM-disk-headers.html
    http://Oracle.Su/docs/11g/server.112/e10500/asmdiskgrps.htm

  • Can I build an application with Labview 2009 for Windows 7?

    Hello

    I use Labview 2009 SP1 and the application builder 2009 SP1. If I install the app on win7 this message:

    Engine run LabVIEW depends on failure to upgrade (...) version 9.0.301, language {} code that is not in the distribution.

    Is it a problem with Windows 7, having two records of installation of 32 bit (C:\Program Files (x 86)) and 64 bit (C:\Program Files)?

    I had an application built on a XP machine and installed on a Windows 7 computer that was looking for the files in C:\Program Files when they were actually installed in C:\Program Files (x 86) - because it was 32-bit application.  After the installation I had to move the files to 1 place to another to make it work.

  • How can I remove the application using JOHN the BAPTIST

    Hello
    I'm writing a small script to create and remove an application from ASO.
    It is quite easy to create. Delete, it is a bit more complicated...
    While the creation of the app is made simply by calling olapServerObj.createApplication ("MyApp", 4) (4 is ASO), deletion is made (for some reason any) an IEssDomain object.
    I get "cannot have domain object properties. Object is found. ': MyApp ' error message when you try to call

    self.domain.deleteApplication (MyApp)

    Thoughts, anyone?

    Thanks, Assaf

    If you are using

    IEssOlapApplication essApp = olapSvr.getApplication ("Sample");

    You will be able to access the methods available for the application, then you could remove it using

    essApp.delete ();

    See you soon

    John
    http://John-Goodwin.blogspot.com/

Maybe you are looking for