is it possible for the owners of two for one table in oracle?

SQL > select table_name, master
dba_tables 2
3 where table_name = "DEPT";

TABLE_NAME OWNER
------------------------------ ------------------------------
MANO DEPT
SCOTT DEPT

SQL >
SQL >
SQL > show user;
The USER is "MANO".

Hello
This isn't two owners for 2 tables but twotables and two owners.
Log in as a Mano
make one

insert into dept values (blahh..blahh..);
commit;

Now the connection as scott

select * from dept;

You will see the difference.
What you should understand, is there are physically two tables belonged to two different users with the same name.
Hope he get out of your confusion.

See you soon!
Bobin

Tags: Database

Similar Questions

  • Compare the content of two equal nested tables

    I'm working on a black box test where I compare the contents of two structurally equal tables before and after executing a script of some. My two tables, MDQ_OLD and MDQ_NEW, are filled with the data in two separate operations.

    The two tables, I'll compare are nested, as you can see in the CREATE TABLE scripts below.

    I tried to use the less-operator sign, but without success.

    I also tried to select data in a type that is % ROWTYPE to my nested tables, but it does not work as well (see the below script in this post).

    Can you please help me on this problem on how to compare the content of two nested tables?

    Run the scripts below to reproduce the problem and be sure to update this post if more information is required.

    -The scripts below-

    Select * from version of v$.

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    PL/SQL Release 11.2.0.4.0 - Production

    CORE Production 11.2.0.4.0

    AMT for Linux: Version 11.2.0.4.0 - Production

    NLSRTL Version 11.2.0.4.0 - Production

    -First of all, I create my types

    CREATE OR REPLACE TYPE FORCE AS OBJECT MDQ_DETAIL (NUMBER OF MDQ_DETAIL_ID, MDQ_DETAIL_DESC VARCHAR2 (100));

    CREATE OR REPLACE TYPE T_MDQ_DETAIL AS TABLE MDQ_DETAIL;

    -Note that this type contains the table T_MDQ_DETAIL type:

    CREATE OR REPLACE TYPE MDQ_PARENT FORCE AS OBJECT (NUMBER MDQ_ID, MDQ_DETAILS T_MDQ_DETAIL);

    - Then I create two equal nested tables

    CREATE THE NESTED TABLE AS MDQ_PR_OLD STORE MDQ_DETAILS MDQ_PARENT MDQ_OLD TABLE.

    CREATE THE NESTED TABLE AS MDQ_PR_NEW STORE MDQ_DETAILS MDQ_PARENT MDQ_NEW TABLE.

    -Insert test data in the nested tables

    Insert into MDQ_OLD (MDQ_ID, MDQ_DETAILS) Values (1, T_MDQ_DETAIL (MDQ_DETAIL(1,'desc1')));

    Insert into MDQ_NEW (MDQ_ID, MDQ_DETAILS) Values (2, T_MDQ_DETAIL (MDQ_DETAIL(1,'desc1')));

    -Try to use the negative operator to compare the contents of the trailer of the nested tables, but it gives this error:

    -ORA-00932: inconsistent data types: expected - got DISPATCH. T_MDQ_DETAIL

    Select * from MDQ_NEW

    less

    Select * from MDQ_OLD;

    -Try to select in a ROWTYPE, but it fails

    declare

    myTypeOld MDQ_OLD % ROWTYPE;

    myTypeNew MDQ_New % ROWTYPE;

    myTypeDiff MDQ_New % ROWTYPE;

    Start

    -Select gives: PLS-00497: do not mix between row and several rows (in BULK) list

    Select * bulk collect into mdq_old myTypeOld;

    Select * bulk collect into mdq_new myTypeNew;

    -Need a 'compare the function of membership card' on the types of multiset except to work, but as far as I

    -I'm not able to bulk collect into myTypeOld or myTypeNew, this won't help out me.

    myTypeDiff: = multiset myTypeOld except myTypeNew.

    end;

    -Cleaning:

    drop table MDQ_OLD;

    drop table MDQ_NEW;

    type of projection MDQ_PARENT;

    type of projection T_MDQ_DETAIL;

    type of projection MDQ_DETAIL;

    > queries you provided intercepts not who.

    You asked how to compare the content of nested tables.

    I knew that you didn't ask for what you actually want, that's why I asked you to specify the comparison more in detail.

    > Do you have a query that grabs this difference as well?

    SELECT o.mdq_id, od.*
    OF mdq_old o, TABLE (o.mdq_details) od
    LESS
    SELECT n.mdq_id, nd.*
    OF mdq_new n, TABLE (n.mdq_details) nd;

    > Also, if possible, do you have a sample of a statement to COLLECT LOOSE, please?

    Actually, you raise an interesting point on using % ROWTYPE, in my view, that should be. This make...

    DECLARE
    TYPE rt_mdq_new () IS RENDERING
    mdq_id NUMBER,
    mdq_details t_mdq_detail);
         
    TYPE tt_mdq_new IS TABLE OF THE rt_mdq_new;
      
    t_mdq_new tt_mdq_new;
    BEGIN
    SELECT mdq_id, mdq_details
    LOOSE COLLECTION t_mdq_new
    OF mdq_new min.;
    END;
    /

    DECLARE
    CURSOR c_mdq_new
    IS
    SELECT mn.*
    OF mdq_new min.;
         
    TYPE tt_mdq_new IS TABLE OF c_mdq_new % ROWTYPE;
      
    t_mdq_new tt_mdq_new;
    BEGIN
    OPEN c_mdq_new.
    Get the c_mdq_new COLLECT in BULK IN t_mdq_new;
    CLOSE C_mdq_new;
    END;
    /

  • How to find the first day of the month following two years one year from now?

    Hello

    I need to find the first day of the month following two years ago, based on the current date.

    For example: If today is the 31/08/2015 so I need to find the date range between 31/08/2015 and on 09/01/2013. How can I write an SQL which allows to automate this calculation instead of hard-coding the values. Please do help me out with this so that I can build the SQL that can produce the desired result.

    Thank you

    Dhilip

    find the start of the month - 2 years in advance, early - 2 years + 1 months in advance and go back 1

    Select trunc (add_months(sysdate,24), 'MM'), trunc (add_months(sysdate,25), 'MM') - 1 double;

  • the use of two meters: one for the generation of regenerable impulses, one as a counter

    I'm new on use the counters. I use an NI PCI-6110 multifunction data acquisition card. I want to count a digital input (on the connector of the PFI 2) pulse and also using the entrance to trigger another counter to generate impulses. So I configured the first counter (task 1) to generate digital pulses with PFI2 as a source of relaxation and redeclenchables award; and set up the other counter (task 2) to count the number of edges of the digital signal with.... But after the two tasks began, the first task was an error 50103 (or the possible reasons: NI Platform Services: the specified resource is reserved.) The operation could not be performed as indicated.) The block diagram is attached. Thank you.

    Your Board uses very-old-in-electronic-standards-DAQ - STC a smart meter that requires a little secretly * two * counters work together to make a finite pulse train.  He is not actually secret if you read the right parts to the right documentation, but it's not hard to miss if you are unsure you should look.  It has been a while since I've done a lot with these counters, but I have this nagging thought that they may not support redeclenchables finishes pulse train generation at all.  I would caution you to at least check this.

    In any case, it is the reason for the error.  The finite impulse generation task uses only the counter that you specify, but there was also this one to help.  A couple of new generations of smart meter (NOR-TIO, DAQ-STC2) continues to have this limitation, but the * more * recent it is no longer made.

    X series boards use the chip "NOR-STC3" that give you 4 programmable counters by the user instead of 2 * AND * everyone can generate pulse trains finish without using a help desk.  You may want a pair of them upward with your 6110, assuming that you need simultaneous sampling analog 6110's capabilities.

    -Kevin P

  • How to compare the DOF of the OWNER. Table_name two DB in a single query?

    Hello community,

    I am trying to compare the DDL from a table that is located in two databases with the same name and the same pattern:

    select my_files.schema_name || '.' || my_files.table_name as table_name
         , case ( select dbms_lob.compare( dbms_metadata.get_ddl(one.object_type, one.object_name, one.owner)
                                         , dbms_metadata.get_ddl(two.object_type, two.object_name, two.owner)
                                         )
                    from all_objects  one
                       , all_objects@db_link  two
                   where one.object_type = 'TABLE'
                     and one.owner = my_files.schema_name
                     and one.object_name = my_files.table_name
                     and two.object_type = one.object_type
                     and two.owner = one.owner
                     and two.object_name = one.object_name
                )
             when 0 then 'Y'
             else 'N'
           end as ddl_equal_flag
      from my_files;
    

    When I run the query above in SQL Developer, I get results like:

    Table-name DDL_EQUAL_FLAG
    MY_SCHEMA. TABLE_1THERE
    MY_SCHEMA. TABLE_2THERE
    MY_SCHEMA. TABLE_3THERE
    etc.etc.

    But I wonder if it really works... I suspect DBMS_METADATA. GET_DDL returns the DDL of the database where I am connected, regardless of the database link, I used. Is this correct?

    And if so, is there another approach that gives me the expected results?

    Your help is very appreciated!

    Best regards, Yvo

    I would not use DBMS_METADATA, but the DBA_TAB_COLUMNS query directly.

  • Create the custom for more than one table, and then another user authentication scheme

    Hello

    I already test to create an courable authentication scheme. It works very well!

    My problem is that I designed a database on the data requirements. So the results are two different user tables - one record data of the company and the other to consist of data from dealers. Both can register on my web application with e-mail address (Unique).

    The authentication scheme in APEX checks the table right on a data user!

    A possible solution is to call the company with the dealer table table. But in the picture of society isn't some attributes wich find no need in the dealer table and vice versa.
    Further, that it is not possible that the concessionaire may register that they self as a company with the same which e-mail they use for registration as a reseller.

    Can you give me some more ideas how slove/manage this problem...

    I am using APEX 4.0.2 on an Oracle 10 g database.

    NEDO

    Edited by: Mr.Nedo the 12.05.2011 02:16

    >
    The authentication scheme in APEX checks the table right on a data user!

    A possible solution is to call the company with the dealer table table. But in the picture of society isn't some attributes wich find no need in the dealer table and vice versa.
    Further, that it is not possible that the concessionaire may register that they self as a company with the same which e-mail they use for registration as a reseller.
    >

    Create a view which combines common elements of the user of the 2 tables and the authentication scheme based checks on the view.

  • Scanning preview. He made several PDF opens at the same time. Combine one?

    I use a scanner to digitize old financial records as pdf with preview files.

    The problem is if you do not do so in a single batch, the result is that you do not get a single pdf file. You end up having several files opened, named "Untitled", "Untitled 2", "Untitled 3" etc. "

    Is it possible for one) avoid what is happening in the first place? or (b) just tell the computer to merge files into a single pdf file?

    If I could do it easily the whole operation would be less stressful.

    I think remember me something useful:

    close the preview.

    Select all the files you want.

    Drag them (in a group) on the preview icon.

  • How to save two sous-schema data two in one file?

    Hello

    I have a VI tensions from different measurement channels one after the other. How could save the average data two in one file in two columns? The vi is attached. Thank you!

    Watch the context-sensitive help and help for function file writing worksheet to know each connector for then detailed.  You have several things hanging and some things wrong.

    The entrance to the lower part is a Boolean value to append data.  You want it as a True constant since you want to write constantly new data in the file to each iteration of the loop.

    You can't 1 d and 2D connectors at the same time hung.  It is there to give you options.  If the 1 d link has it who uses data, otherwise it uses the connector 2-D data.

    What you want to do is to take the 3 pieces of data and integrate it to a 1 d table and that wire in the 1-D connector.  Connector 2-D leave blank.

  • Possibility to make a RAC installation on one machine

    HII,
    Is it possible to do a RAC installation on one machine with oracle 11 g 2? If so, how? Pls guide me through.

    Feasible? ... certainly. Significant... not!

    There are a number of reasons, one might wish to implement RAC... horizontal scaling and high availability come to mind. Both are impossible with a single machine.

    You want to do this for purposes of personal training? ... Waste of time that you can really learn how to build and manage a real cluster. Much better to go to eBay, pick up an 800 series or more recent NetApp opportunity and create the real thing.

  • Synonyms for several tables

    Hello

    I have a trigger which in a specific State, change 14 synonyms of 14 different paintings.

    The official documentation is not possible to create the synonym of more then one table at the same time.

    You know some tricks to simplify this operation?

    Thank you

    Ste

    Ste74 wrote:

    DB architecture, I have three 'groups' of tables (with 7 tables) with the same structure but different in data.

    Simply create an additional column of ACTION_GROUP and 7 tables with the same structure as those that already exist. List the tables of newly created partition by column ACTION_GROUP create 3 partitions with the values 1, 2 and 3. Add the ACTION_GROUP column to each of the 21 existing tables and tables 1 to the tables of Group 1, group 2 and group 3 3 table 2. Now, you can fill each partition table newly created through the exchange of the partition corresponding get and group the data in table rid your 21 original tables. Now you have 7 tables and all you need is WHERE ACTION_GROUP = added to your queries. Actually, same approach might work even without partitioning - you simply need to use insert instead of exchange of the partition.

    SY.

  • How to open two PDFs at the same time (for example on two related screens)? It was always possible in the previous version of the Adobe Reader software.

    How to open two PDFs at the same time (for example on two related screens)? It was always possible in the previous version of the Adobe Reader software. Now while one of them is open, I can't open the other, because it is hidden, and I have only shown in the taskbar as a thumbnail.

    Hi ewap51098943,

    You can disable this in the Edit menu-> preferences-> General

    Kind regards
    Nicos

  • Is it possible for two people to have separated on an iMac iTunes libraries?

    My dau. has a new iMac, and she has his iTunes library works in the way that she prefers.

    Is it possible for his partner to have a library separate iTunes he can use when it connects to and sync with the iPad?

    Yes. There are two ways to do this.

    1. did you separate user accounts - then all their data is separated and they can account for a long time no matter what either is appropriate

    2. have the same account but what iTunes libraries. You can have as many as you like: hold the option (or alt) key key and launch iTunes. From the menu that appears, select "Create Library" or "Choose Library" as the case may be.

    Finally, they could use the same library, simply not synchronize all this only to synchronize the items selected - playlists/albums etc.

  • Is it possible to have the audio from two different sources and routed to separate outputs at the same time?

    I currently have a string of the guitar signal electric-Rocksmith Real Tone cable - ASIO 4 all help IK Multimedia Amplitube 3.   I would like to know if I could also watch DVD with her while the implementation of the programme of Amplitube with sound.  It would be great that I use the DVD for guitar and play at the same time.   I don't have the signal of two merged as one.  In my mind, I should be able to disable the ASIO devices and use them with DirectX as usual.  I could send the ampitube signal to the headphones and use external speakers for the guitar signal, and use the lessons of speakers for the DVD (or maybe YouTube) laptop on board.

    Is this possible?

    How can I do?

    Toshiba Satellite X 205-S7483

    Jeff

    Yes.  For example, I have my Skype phone calls go to my helmet (normal just plugged in the headset) while my media player plays my speakers.  You can choose your default communication or multimedia devices with a right click on the volume control icon and choosing "playback devices".

    Other programs can also be built to be "to the output current" and allow you to choose the output too.

  • I am the owner of everything on my pc I do not have the special permissions for individual files and I am denied access

    permissions of origin title: special

    I am the owner of everything on my pc I don't have special permissions for some individual files that I find quite strange. It also means that I can't delete some files. I tried to access the files when I started from a different hard drive, but still can not remove. While I followed all procedures to address this issue, I still do not end with special permissions. Is it possible to modify or delete the files from the MS DOS window or is there something that I am missing. I also found it seems to be an 'unknown user' in the permissions area, and when I try to delete or change this 'unknown user' and a second show. 1 then said who is denied access, but the other has access. No matter what I have I can not get rid of it! And file sharing is disabled disabled! Help, please

    In Vista, many files can not even to administrators. Some are to protect the user from making mistakes (like many in the Windows directory and in your personal profile).  Some are points of junctionhttp://msdn.microsoft.com/en-us/library/bb968829 (VS.85) .aspx which are there for backwards compatibility and should not be modified in any way (and certainly not deleted) or you may not be able to use your programs or may even damage the system to the point where it will need to be reinstalled).  You shouldn't need special permits to delete a file if you have all the rights, but special permissions can block access and that's sometimes how it blocks even administrators.  Keep in mind that XP administrators had access more than them in Vista - blocked is not necessarily a problem, but intentionally by developers of Vista.

    However, if you're talking about files that you devriez have permission, then the following information about the ownership and permissions can help you.

    To view your permissions, right-click on the file/folder, click Properties, and check the Security tab.  Check the permissions you have by clicking on your user name (or group of users).  Here are the types of permissions, you may have:http://windows.microsoft.com/en-US/windows-vista/What-are-permissions.  You must be an administrator or owner to change the permissions (and sometimes, being an administrator or even an owner is not sufficient - there are ways to block access (even if a smart administrator knows these ways and can move them - but usually should not because they did not have access, usually for a very good reason).)  Here's how to change the permissions of folder under Vista:http://www.online-tech-tips.com/windows-vista/set-file-folder-permissions-vista/. To add take and the issuance of right of permissions and ownership in the right click menu (which will make it faster to get once it is configured), see the following article:http://www.mydigitallife.info/2009/05/21/take-and-grant-full-control-permissions-and-ownership-in-windows-7-or-vista-right-click-menu/.

    To solve this problem with folders, folders takeownership or the reader (as an administrator) and give you all the rights.  Right-click on the folder/drive, click Properties, click the Security tab and click on advanced and then click the owner tab.  Click on edit, and then click the name of the person you want to give to the property (you may need to add if it is not there--or maybe yourself). If you want that it applies to subfolders and files in this folder/drive, then check the box to replace the owner of subcontainers and objects, and click OK.  Back and now there is a new owner for files and folders/player who can change the required permissions.  Here is more information on the ownership of a file or a folder:http://www.vistax64.com/tutorials/67717-take-ownership-file.html. To add take ownership in the menu of the right click (which will make it faster to get once it is configured), see the following article:http://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/.

    I hope this helps.  If this isn't the case, after return and we'll get the exact path of these files to make sure that you really can visit his profile and try adding special permissions.  I suspect that the problem is that everyone is denied access and blocking everyone - but we'll check (if necessary).

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • I bought a computer that has been renovated and the owner said that he has updated the computer with Windows 7, but the computer is now ask for an activation code.

    I need help to activate my computer but I don't have the code. I bought a computer that has been renovated and the owner said that he has updated the computer with Windows 7, but the computer is now ask for an activation code. I tried to contact the guy but he won't answer. Is it possible to check the activation without the code? I need help and do not want to pay a hundred dollars more.

    Is there a COA sticker that is attached to the machine?

    If so, check to see what edition and version of Windows machine is licensed to:

    COA certificate of authenticity:

    http://www.Microsoft.com/howtotell/content.aspx?PG=COA

    ??

    What is the certificate of authenticity for Windows?

    http://Windows.Microsoft.com/en-us/Windows7/what-is-the-Windows-certificate-of-authenticity

    Also:

    Please run the Microsoft Genuine Diagnostics Tool then copy and paste the results into an answer here for further analysis:
    http://go.Microsoft.com/fwlink/?LinkId=52012

Maybe you are looking for

  • About theoretical Timing

    Hi all! I have a question about the calendar with the DAQmxbase functions. I have the task to save data with a sampling frequency static (it will be greater than 100 000 points per second in theory) and I need to display a writing data to the file in

  • I need your advice

    Please, I am in fact a 'to be' graphic designer. I'm full to leave soon for a business purpose mini. About thirty minutes ago my HP printer bit (j510) just had spoilt. He kept flashing lights bright d cartridge color even when the software d on my sy

  • a valid wwn/wwwpn should have zero Yes

    Hi all In UCS of my lab I have this message 'WARNING no fatal config' whenever I make changes in a profile, but this is only happenning these past weeks... and I worked with the UCS since several months ago. Only suspect have triggered, important cha

  • question of mgt ASA

    InternetGlobal MPLS WAN to other sites Hello! We have the configuration above in our environment. The box of the ASA is used to establish the tunnel at our headquarters if the MPLS WAN is down. I have question Manager box of the ASA of the network (i

  • USB3 Driver install fails after installing fresh Win7

    Today, I did a full 64 fresh install of Windows 7 (using supplied Alienware DVD) of my Alienware Laptop M17xR3.  After finished with updates installed so Win7 Windows7, I went to the web page of Dell Alienware and installed all the recommended driver