What happens when I lock a view?

When I lock a view using the table * lock statement, what happens? *

Is the view to lock up?

Or all the base tables are locked from where the view is created?

Or no lock is applied?

: D

OrionNet wrote:
Belzile,

Exactly what lock statement you use.

If, after the statement is used, then you will be able to query (select) the table and the view.

??? Table lock Oracle never prevents other users to query a table and a query never acquires a table lock. So I don't know what you were saying. In any case, a view of lock locks all the base tables:

SQL> create or replace
  2  view emp_dept_vw
  3  as
  4  select ename,dname
  5  from emp e,dept d
  6  where d.deptno = e.deptno;

View created.

SQL> select object_name
  2  from user_objects
  3  where object_id in(select id1 from v$lock where sid=(select sid from v$mystat where rownum=1))
  4  /

no rows selected

SQL> lock table emp_dept_vw in share update mode;

Table(s) Locked.

SQL> select object_name
  2  from user_objects
  3  where object_id in(select id1 from v$lock where sid=(select sid from v$mystat where rownum=1))
  4  /

OBJECT_NAME
--------------------------------------------------------------------------------
DEPT
EMP

SQL> 

SY.

Tags: Database

Similar Questions

  • What happens when I lock my computer?

    When I stop the calculation for a few hours and choose "lock" what exactly happens?

    Is access to my computer off of the hacker/intrusion?
    Or should I unplug my modem line?
    Thank you

    Hello

    ·         What operating system is installed on the computer?

    ·         Your computer is connected to the field?

    I would like to inform you that, if the computer is locked, but Internet is always on, then there is a chance of being hijacked/hacked computer.

    In order to avoid, I suggest you have a look at the links below and check if it helps.

    http://www.Microsoft.com/security/PC-security/spyware-prevent.aspx

    http://TechNet.Microsoft.com/en-us/library/cc700820.aspx

  • What happened to the point of VIEW when I use the CROP tool?

    What happened to the point of VIEW when I use the CROP tool?

    Hold the crop tool in the toolbar - you will find culture seen as a tool of void

  • What happens when two parallel process call the same VI in an FPGA?

    Hi all

    I was wondering, what happens when say two parallel processes call the same Subvi in an FPGA? I think that the FPGA would create two instances of the Subvi, not sure. Any point of view?

    Thank you

    Altras

    I don't know if the FPGA adds any ordinary special, but in LabVIEW rule and in LabVIEW Real-time, a VI by default is not reentrant.  Therefore, a process that is called when it is already in use is blocked and must wait.

    If the VI is reentrant, however, then you have two (or more) for the VI dataspaces, so that each can run independently.

  • What happens when Thunderb ird wants compact messages?

    I'm looking for compact important messages?

    What happens when Thunderbird Compact messages?

    You can't find a compact messages. Compaction in terms of Thunderbird is permanent deletion of messages.

    Read about it here.
    _ http://KB.mozillazine.org/Thunderbird: _Tips_:_Compacting_Folders

    It is a necessary process and ask you in trouble if you don't do it regularly.

    Read this article too.
    http://KB.mozillazine.org/Keep_it_working_-_Thunderbird

  • Why sites keep telling me to update my browser when it is already updated? Example - what happens when I try to access my e-mail and other sites.

    Why sites keep telling me to update my browser when it is already updated? I already updated my browser and even tried to reinstall. Example - what happens when I try to access my e-mail and other trusted sites.

    Hello

    Some Firefox problems can be solved by performing a clean reinstall. This means that you remove Firefox program files, and then reinstall Firefox. Please follow these steps:

    Note: You can print these steps or consult them in another browser.

    1. Download the latest version of Firefox from http://www.mozilla.org office and save the installer to your computer.
    2. Once the download is complete, close all Firefox Windows (click on quit in the file menu or Firefox).
    3. Remove the Firefox installation folder, which is located in one of these locations, by default:
      • Windows:

        • C:\Program Files\Mozilla Firefox
        • C:\Program Files (x 86) \Mozilla Firefox
      • Mac: Delete Firefox in the Applications folder.
      • Linux: If you have installed Firefox with the distribution-based package manager, you must use the same way to uninstall: see Install Firefox on Linux. If you have downloaded and installed the binary package from the Firefox download page, simply remove the folder firefox in your home directory.
    4. Now, go ahead and reinstall Firefox:
      1. Double-click on the downloaded Setup file and go through the steps in the installation wizard.
      2. Once the wizard is completed, click to open Firefox directly after clicking the Finish button.

    Please report back to see if this helped you!

    Thank you.

  • What happens when the launch promotion of HP Premium 60 days workspace service expires?

    Hey everybody,

    What happens when the launch promotion of HP Premium 60 days workspace service expires?

    Thank you

    Bill

    Approach the limit of 60 days, the customer will be recalled by a notice of application or email partner of HP as the service ends. To continue the service, the customer will be asked to buy HP licensed workspace in order to avoid an interruption of service.

    The 61st day, the service will be more active and mobile users will not be able to use in their application catalog-virtualized applications. Users will be asked to contact their internal COMPUTER administrator.

  • What happens when a number of blocked calls a person and they're on another line?

    What happens when a number of blocked calls the person and they're on another line? Does go directly to voicemail, or ring several times to voice mail?

    If "on the other line" means on another call and call waiting is activated, the blocked call goes straight to voicemail.

  • What happens when you get suspended communities of Apple support?

    can someone explain what happens when you get suspended communities of Apple support?

    Read section 5 violation of the agreement to the Convention for the use of Apple Support communities

  • What happens when the photo of system library is on an external drive and then the system creates a library of Photos? How do merge you them?

    What happens when the photo of system library is on an external drive and then the system creates a library of Photos? How do merge you them?

    Your library system can be on an external drive, if the drive is Mac OS extended (journaled) format and mounted on-site.

    But you must be careful, your external drive is always connected and available before the Photos and to import new photos.

    If Photos opens a different library, news, you can switch to the library on your external drive by double clicking on an external library. You can have several libraries, no problem.

    But pictures don't have any tools to merge libraries. You can switch between libraries, then open them alternately.  To merge two libraries export the photos of the smallest library and import the photos exported in the largest library.

    Or use third-party "PowerPhotos" to move photos between libraries.  But the merger is not supported in the free trial version. You must purchase the full version. You can download it here: Fat Cat Software

  • What happens when the NOR-9136 exceeds is limit of heat

    Hello

    What happens when the controller of CompactDAQ OR-9136 overheating?   For example, if the environment is greater than 55 ° C during operation.  Will it report an error, it will stop or damage permentate happen to the control?

    Thank you

    If the environmental requirements (such as the operating temperature) are not met, accuracy and performance of the products may not meet published specifications.  In some cases, the unit can become dangerous, and equipment could be damaged permanently.  OR not to recommend the use of your device outside of the intended operating temperature, but if you have an application where the temperature may exceed 55 ° C, in which you choose to use your controller cDAQ, validate the installation by testing in the conditions before finalizing your project.

  • What happens when ClearTask is never called?

    I use a NOR-6259 with the C API of Linux. What happens when a task program is interrupted and the ClearTask function is never called? Is it possible to query the driver for all running tasks, or better yet, is it possible I can assure that the device reset to a base state?

    In particular in the development, it is nice to be able to simply CTRL-C or something like that to kill a program bug.

    I don't think there is a good way to do it using our C API. If it was on a Windows machine, we have a program called MAX which will allow you to reset the device from there, but I don't think it is available on Linux. I think the only way is to reset the device.

  • I have a duel processor. C drive is nearly full E reader uses only 30%. What happens when the C drive is full?

    My laptop has 2 dual processor x 75 GB.  Tried to move the files to the E drive but they double and are difficult to locate. Life should be easier than this!  C drive is nearly full, E drive uses only 30%.  What happens when the C drive is full?

    [Moved from comments]

    Simple!

    You get a BIGGER hard drive.

    The 'norm' for laptops these days is at least 500 GIGs.

    Which is the same amount that I have in my table.

    2 x 250 GB.

    I have XP Pro on one single, Windows 7, on the other. (And each of them uses ONLY about HALF of these hard drives!)

    In a month or two, I'll upgrade to 2 x 1 terabyte hard drives. sounds a little one 'kill too much', I know, but hey, my computer IS able to be updated that he got so far it?

    Yours is in need of an upgrade too, suggest that there is, to solve your problem!

  • I can see the knobs, but I don't see the logic in what happens when I press a button.

    I can see the knobs, but I don't see the logic in what happens when I press a button. With every key I pressed a quick screen comes first, but I can't use the sliders to make whatever it is - either by touching the screen or by using the arrows on the keyboard. The screen for quick access expires before I can try a lot.

    Shingay,

    If you have not watched on the manual for ths unit yet, please, it usually will tell you which buttons do what, and how to navigate the OSD menu. If this does not work could you please provide the specific monitor you use so that we can see what we can help with?

  • What happens when xp is no longer supported. I can't afford to buy another os

    What happens when xp is no longer supported. I can't afford to buy another operating system

    It will benefit only XP until 2014.

    You can continue to use XP for as long as you want, but there will be more security updates. Make sure that you have an installed antivirus program.

Maybe you are looking for

  • How to connect the card PCMCIA Type II to my Satellite A200?

    I have laptop Satellite A200 - 19L (NEW) could you guide me how to connect a (Type II PCMCIA) to my laptop I think that this dose of laptop does not support this card. Your quick response is needed ASEM

  • Lenovo Ideapad z585, will not start?

    Hi, I have a problem with my laptop.So, I've had this laptop for a while, and it worked pretty well, until yesterday. I had closed the lid to put to sleep, like I always do and came back a few hours later to find frozen windows. As completely, any mo

  • Another product key?

    I have an older version of dungeon siege 2 + broken world, and I lost my product key.  How can I get another?

  • cartridges for photosmart c6510

    I have a Photosmart C6510 I bought in the USA. The printer indicates clearly that I need 564 cartridges. However, I can't find this size in Ireland. For me, it was suggested that I can use 364 cartridges. Is this correct? Or are there compatibility i

  • Map Quest - the proxy settings view

    Hello Go on the map for our boxes VRTX view, you receive an error "Attention - no access to the internet" and on the same page by clicking Actions - Settings I see that MapQuest uses the proxy settings defined in the preferences - settings on the Con