Operate the session read only according to ip

How to make a session read only through logon trigger. We have a development environment that 'can' login to production by chance in a program, it's not ideal, but we must leave open the client connection because they need that rarely access the production as well, instead of do think Im a readonly if session session comes this subnet of development of this program.

create blah logon trigger
If (sys_context ('userenv', 'ip_address') = 'HOST BAD IP ADDRESS') and the program = "program that I want to do conenctions.exe read-only"
then
"set session read only which I think needs to be done by the issue of the value of read-only transaction , but if someone knows a way to best please think.
end if;

Create a role with only SELECT privileges.
Grant the user role, and then ALTER USER... DEFAULT ROLE EXCEPT ;
In your trigger, EXECUTE IMMEDIATE ' ROLE DEFINED

That should do it.
--
John Watson
Oracle Certified Master s/n
http://skillbuilders.com

Tags: Database

Similar Questions

  • How can I change the attributes read-only or system files?

    How can I change the attributes read-only or system files?

    To view or to remove the read-only or system attributes, use the Attrib command at a command prompt:

    1. click the Start button, type cmd in the search box and press ENTER.

    2. to view the syntax for the Attrib command, Type attrib------? at the command prompt.

    WARNING: If you remove the read-only or a file system attribute, it may seem like a regular folder and some customizations may be lost. For example, Windows customizes the Fonts folder and provides a special folder view that allows you to hide variations, such as bold and italics. It also allows you to change the display settings of the file in a way that is specific to fonts. If you remove the read-only attributes and the Fonts folder system, these custom display settings not available. For folders that you have customized by using the tab, customize the folder properties dialog box, the folder icon and other other customizations may be lost when you remove the read-only attribute.

    If a program cannot save files to a folder with read-only, such as My Documents, change the read-only to the system attribute by using the Attrib command at a command prompt.

    To remove the read-only attribute and to set the system attribute, use the following command:

    attrib - r + s drive:------------.

    For example, to remove the read-only attribute and set the attribute to system for the C:\Test folder, use the following command: attrib - r + s c:\test

    Be aware that some programs may not work correctly with folders for which the read-only attribute and the system attribute are granted. You can use the following command to remove these attributes:

    attrib - r-s c:\test

  • JavaScript to make the fields to fill in the form read-only?

    How the fields to fill out my form read-only? I created the form, send to clients. Clients fill out the fields and click the submit button. The submit button pulls an automatically generated email and send the pdf file. I want the pdf file to send with the fields read-only. How then?

    This code should do the trick:

    for (var i=0; i		   
  • Select the property read only question to cross the field validation

    I've created two elements on a page and they are named P47_REQUEST_SOURCE_KEY (RSK) and P47_REQUEST_SOURCE_OTHER (RSO). I want to do SAR conditionally read-only based on the value of the RSK. BSR, here is a list of selection based on a LOV and RSO is a text field. I want RSO read-only unless the Serbian Republic of Krajina is equal to 'other '. I've experimented with read-only Condition Type value of ' expression element 1 is! exepression2 =', P47_REQUEST_SOURCE_KEY and expression expression1 two "other". (The value of the key stored in the LOV is 'OTHER' but the display value is 'Other'). I also tried the ' text in expression1. = to exepression2 with various permutations of expression1 and expression2.

    How do RSOcolumn condition that the content in the Serbian Republic of Krajina? No matter what I put the values in the properties read-only which is always read-only even when the value of the RSK is "other". Any ideas what I am doing wrong

    Thank you, Ned

    Hello

    You can try to javascript
    Place it in the HTML page header

    
    

    This page HTML Body

    onload="disRSO();"
    

    And then point the Form HTML P47_REQUEST_SOURCE_KEY element attributes

    onchange="disRSO();"
    

    Hope this helps

    BR, Jari

  • How to make a part of the BLOB read-only?

    Hi all

    I need to open a word document saved in the database read-only. It is for the user manuals. I got the code, its working very well... But I need to open the word read-only document. How do I do that? A way to make the POINT of BLOB read-only?

    The structure of the table is as follows.

    ANNUAL NOT NULL NUMBER (5)
    NAME VARCHAR2 (128)
    BLOB OF DOC
    DOC_NAME VARCHAR2 (50)



    Thanks in advance,

    Nycy

    Hello

    What do you mean by 'read only '?
    If you don't want to store any subsequent end-user, do not save this return to the database after you display.

    François

  • Is this a bug? HTML is not escaped in the conditional read only LOV page elements

    Then test my application for injection HTML filling HTML for each column in my data injected datamodel HTML running when a field only LOV ready, I noticed



    I have dynamic LOV in use in my form, so their share, users can select. That sometimes I don't want to make them able to change a value, they chose earlier.

    For this reason I condtionalu readonly my LOV. by using the conditional read only an option for the items on the page.



    That's when a dynamic LOV made readonly HTML code inside is done instead of escaped



    is this a bug or is it intentional?

    At least, I think I should be able to choose the behavior.



    Geert

    Geert - Thanks for the info. I think that's not a bug. With the read-only option, it displays the data as it would for a display text (does not save the State) items for which source of HTML element, that is, unescaped. If you want the text escaped by using your dynamic lov query simply use htf.escape_sc:

    Select htf.escape_sc ('data') d, 1 r of the double

    Scott

  • Set the mail read-only account

    I have a shared corporate email account that I use for the read-only.

    I'm not supposed to use that account to send emails, but have had a few close encounters.

    Is it possible in the e-mail settings that I can put an account to "read only"? I won't be able to write, move or remove anything through the mail application.

    This method would be much safer double checking each email before I send, sometimes I have to email very quickly and forget to double check.

    It is not a 'read only' option for e-mail accounts, but you can set the SMTP to zero.  SMTP Simple Mail Transfer Protocol, but what it does is Send Mail To People.

    Mail-> Preferences-> accounts-> account information

  • Cannot change the expression - read-only

    I have a problem as some of the steps in my sequence of the expression has become read-only. This has happened on and off the power for awhile on several machines, the job is to create a new step copy the expression and remove the old stage. I did once see a message something is set to 'read only', but I couldn't find where to disable it.

    I can always change to another part of the stage, in the properties-> Expressions pre and status windows are white and I can change them, the expression post window is gray and cannot be changed. The expression tab is the same, gray and read-only.

    TestStand 2012, that step is now a function f (x), don't know if it's always the case.

    I searched here and find only very old posts that sugest that the problem is solved in 2012.

    TS is considered to be a well hidden. You can view the properties hidden in the Preferences of the Station Options tab.

    Looks like your sequence files are INI format, then you might be able to fix it in a text editor. Open the movie file in a text editor and locate the steps in question. They are listed in order of their index position (e.g. "[SF. SEQ [0]. Hand [2]. TS]"), or you can use their stage names or IDs to find. In the steps that you want to modify, delete the line ' % FLG: PostExpr = 1 "to reset the indicators of the property to 0.

    You can try to generate checksums before and after copying the file in sequence to check if the file is actually change. You can also try saving the file in the sequence in binary format or XML instead of INI.

  • Cannot delete the files read-only on display

    Hello

    I copied files from my PC to the view, but when they were on the PC, they were marked read-only. Now, I found that I can't remove them from the sandisk as it says that they are read-only.

    How do I change the properties of the files so I can delete them?

    Thanks for any help!

    Worto.

    I format the device if these files take up a lot of space, then resyn or copy the data (do not read that things) on the device.  Be sure to back up all data you want to save the device before formatting.

    The format option is in the settings menu system.

  • Why my computer continues to change the file read-only after I have untick

    I just had a Virus go through my computer and I cleaned it, then my computer shows I lost all my information, but I know that I have not because I still programs and background even though I've been there and opened a few folders to see if the files are hidden it turns out they were, but the box that says hide has not been verified , so I corrected the hidden problem but now the computer keeps the read-only check box and everytime I try to uncheck once I apply then click ok, it re check it self and I don't really know how to fix this... Please help

    Hi Cameron_513,

    Method 1: Run the fixit available in the links below and check if that makes a difference-Worth to try
    Diagnose and repair Windows files and folders problems automatically
    Difficulty of broken desktop shortcuts and common system maintenance tasks

    Note: FixIt would attempt to recover bad sectors on the hard disk, in the course of this process there are chances of DATA loss from that particular area.

    Method 2: follow the steps described in the article below to restore the security settings and then check if it makes a difference.

    How to restore the security settings to a known working state?

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

    Method 3: Run Microsoft Security scanner (MSS) to remove the infections of vestige of the computer

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: Infected files can be deleted from your computer; There is a chance of data loss.

  • All records showing the attribute read-only - cannot be changed via a Properties dialog box OR the command "attrib" user profile AND is not corrupted

    I use Win 7 64 and recently all my files have begun to show read-only. Other responses on this forum, which suggests to change the read-only via the Properties dialog box, attrib command did not work. In addition, I created a new administrator account as suggested by another answer, but the problem persists on both accounts.

    Several programs will not work now that they can not write files in folders.

    What can I do to fix this?

    Hello

    See the following article for a description of this problem.

    326549 You cannot view or change the read-only or the attributes of system files in Windows Server 2003, Windows XP, Windows Vista or Windows 7

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • How to add the transient attribute for LOV (object of the view read-only)

    I have a view called CustomerView and attribute DepartmentId is present in it.

    Also exists DepartmentView and CustomerView.DepartmentId has an LOV from this point of view.

    I need to add a transient attribute to CustomerView which express the DepartmentName attribute in the LOV.

    Because of the view are read-only there is no entity object don't match them.

    How can I write the groovy for the transitional object expression.

    The name of the view accessor Lov's DepartmentView1

    Looking for your help. Thank you.

    Hi gcoban

    I do not understand your question correctly,

    you are not able to write to the expression property in viewObject?

    or you want to know how to write groovy for that?

    for writing groovy you need viewAccessor and you who have, you can try as Alejandro Tovar Lanz suggested

    or you can write code in RowImpl to fill in the name of the Ministry of the accessor

    See -https://blogs.oracle.com/adf/entry/combo_lov_how_to_display

    Thank you

  • Need help with the error "read-only or another user may have open.

    Hi all

    just a background on what's going on. I do not have adobe acrobat x standard, the most recent version. I get an error everytime I try to edit a document.

    I add pages to PDF which is on my computer, it does not allow me to save the file after the addition of pages without giving me this error "the document would not be saved. The file may be read-only or another user can open. Please save the document under a different name or in a different folder. »

    I have to then save it in a separate file and delete the old and replace it with a new one. I'm having the same problem with the files on my server, and I thought at first it was only the files on my server but it does with files directly on my machine. Very frustrating and I cannot understand why.

    I tried to go in editing-> Preferences-> general-> under Application startup to disable "Enable protection mode", but the option is not there yet.

    Please help someone, I can't understand a solution for this.

    Thank you.

    !!!!!!!!!!!! Thank you!!!

    It drove me crazy!

  • Cannot save the document - read-only or opened by another user error occurs when the PDF is opened in Windows Explorer

    Adobe Pro XI - use the operating system to Windows 7 Pro

    When a PDF document is open in Windows Explorer, and pages are added, deleted, ratings, all types of changes, he cannot be saved until the Windows Explorer is completely closed.  If you try to save the document, you receive the error message next - "the document could not be saved.  The file may be read-only, or another user may have his opening.  Please save the document under a different name or in a different folder. «I have confirmed the document is not read only, it is not open by another user, and this is not open many times.»  Once completely, you close Windows Explorer and try to save the document, it saves without problem.

    Are there settings in Adobe Pro XI or Windows that allows you to save documents without closing Windows Explorer first?

    Thanks for any help you can provide.  This error is a frustration because I open all my documents via Windows Explorer.

    Turn off the preview in Windows Explorer.

  • Make Custom page read only according to

    Hi all

    Is anyway make a personalized page for some users readyonly? I know that we can define the rendering to false for each region, but I wonder if we have a property for the entire page.

    Thank you
    KK

    Hi KK,.
    What is a 11i or R12

    If it is R12, it is easy just by passing the region where you want to make read-only or to the entire page, pass the region of high level.

    If it's 11i, you have to copy paste the code example and call it from your application process once you've done the verification of the user.
    BTW, instead of the user check, create liability and assign this responsibility to the users, and check that the responsibility to avoid all hardcode next to user list.

    Check this thread and if you are not able to do, please update the question you face.

    How to make OA framework page Viewonly
    Single page ready
    or
    http://www.applikast.NET/technical/OA-FWK/Misc/making-an-OA-framework-page-ReadOnly

    Thank you

    With respect,
    Kali.
    OSSi.

Maybe you are looking for