Select Dynamics question

Hello
I was out of Oracle for 6 years and am happy back in the fold.
I remember that I used to do some dynamic select statements for lets say I want to lock a bunch of user accounts.
I have my query that takes all the user names I want ready to go.
So you go something like:
Select "edit user" | my query. "account lockout";

or something like that?
I have tried searching without success.
Can someone tell me the right way to do it?
Thank you in advance for your help!

BTW, here's my query:

Select the separate username in dba_audit_object
When trunc (timestamp) < sysdate - 90
and username NOT IN ('JENAS', 'PETER001', 'DISCOVER_OWNER', 'LCL')

less

Select the separate username in dba_audit_object
When trunc (timestamp) > sysdate - 90

You can try

select distinct ' alter user ' || username || ' account lock;' stmt
  from (select distinct username
          from dba_audit_object
         where trunc (timestamp) < sysdate - 90
           and username not in ('JENAS', 'PETER001', 'DISCOVER_OWNER', 'LCL')
        minus
        select distinct username
          from dba_audit_object
         where trunc (timestamp) > sysdate - 90)
/

Tags: Database

Similar Questions

  • Why don't I have easily select my questions open after the connection support?

    Why don't I have easily select my questions open after the connection support?

    When I connect support communities, I have still no clear idea where to find my support questions which remain open to check updates.

    Seems to me that this should be a great, distinct and separate button on the homepage of support after you have connected.  "My open issues Apple Community Support."

    Is this too much to ask?

    Steve

    1. Click / tap your username
    2. Click / tap 'manage subscriptions '.

  • Prevent Question 2 Radio button selection until Question 1 Radio button selection

    I have a script (Javascript) messagebox to appear if the user tries to make a radio button selection to question 2, when they do not have a selection to question 1. However, the message box does not prevent the selection. the radio button is selected after the messagebox goes. How to prevent this? I tried to focus on the set of question 1 of option buttons, but it does not work.

    You could define question 2 in read-only or protected using 'access', until answered question 1.

  • itemFocusOutHandler with DataGrid editable selected point question

    Hi all, I'm relatively new to Flex and I have a question that is generating a lot of frustration. I'm sure that the solution is string me in the face, but I just can't see the forest for the trees.

    OK, I am trying to achieve a data grid that is populated with data based on a one-to-many relationship between the people and the courts with a join to show people that do not have assigned courses and then assign these by date if necessary.

    It is action of itemFocusOutHandler where the database is then updated with the selected data grid component.

    Question: when you're away from the cell update the triggering event and the database is updated with the selected new row and not passed. I expect the update to trigger until the selected element is change, but it doesn't seem to be the case.

    Example of

    Course.jpg

    Added to John on the 24th courses

    Tab to Jason the selected item changes, and Jason is added to the database with no entry. ALSOM If then back to John of Jason, the database will be updated with data for John

    View database:

    Table_ID CourseHeader Date Person_IDHeader 4
    1
    28/10/20102

    Where the person is equal to

    Table_ID First Last
    1JohnSmith
    2JasonHolmes

    You are willing to provide any help will be very appreciated.

    Regards, Darren.

    And the code (I tried to simplify this if possible):

    <? XML version = "1.0" encoding = "utf-8"? >

    < s:Application ' xmlns:fx = ' http://ns.Adobe.com/MXML/2009 "

    " xmlns:s = 'library://ns.adobe.com/flex/spark"" "

    "" xmlns:mx = ""minWidth ="955library://ns.adobe.com/flex/mx" minHeight ="600" " "

    " xmlns:register = 'services. Course.*">

    < fx:Script >

                <! [CDATA]

    import mx.controls.DateField;

    import mx.controls.Text;

    import mx.data.ChangeObject;

    import mx.events.CalendarLayoutChangeEvent;

    import mx.events.CollectionEvent;

    import mx.events.DataGridEvent;

    import mx.events.FlexEvent;

    import mx.events.ListEvent;

    protection function dC1_changeHandler(event:CalendarLayoutChangeEvent):Sub

                      {

    var dforQ:String = DateField.dateToString (dC1.selectedDate, "DD/MM/YYYY" );

    var SD189:String = dforQ;

    gateCbyDResult.token = csr.gateCbyD (SD189);

                      }

    protection function dataGrid_itemFocusOutHandler(event:DataGridEvent):Sub

                      {

    var dateSQLDate:String = DateField.dateToString (dC1.selectedDate, "DD/MM/YYYY" );

    var entrydate:String = dateSQLDate;

    saveNewResult.token = csr.saveNew(dataGrid.selectedItem.course,entrydate,dataGrid.selectedItem.empid);

                      }

                ]] >

    < / fx:Script >

    < fx:Declarations >

    "" < csr:Csr id = "CSR" fault ="Alert.show (event.fault.faultString +"\n"+ event.fault.faultDetail)" showBusyCursor = "true""/ > "

    " < s:CallResponder id ="saveNewResult"""/ >

    " < s:CallResponder id ="gateCbyDResult"""/ >

    < / fx:Declarations >

                < mx:DataGrid x=" 103 " y=" 252 "

                            id="dataGrid"

    {" dataProvider ="{}gateCbyDResult.lastResult}"" "

    " verticalScrollPolicy ="off"" "

    {" number of lines ="{}dataGrid.dataProvider.length}"" "

                            editable="true"

    itemEditEnd = "dataGrid_itemFocusOutHandler (event)" " >

                           

    < mx:columns >

    "" < mx:DataGridColumn headerText = "last" dataField ="lastName" editable = "false""/ > "

    "" < mx:DataGridColumn headerText = "first" dataField ="firstName" editable = "false""/ > "

    "" < mx:DataGridColumn id = "courseInput" headerText ="course" dataField = "course" editable ="true""/ >

    < / mx:columns >

    < / mx:DataGrid >

    "" < mx:DateChooser id = "dC1"change = "dC1_changeHandler (event)" x = "102" y ="38'' / >

    < / s:Application >

    Thank you again...

    If your topic says Manager itemFocusOut, implies that you are using a

    event Focusout/focusouthandler().  I did not read the code that carefully.

    Verify that the selectedItem has already changed.  Maybe he has.  You

    must be able to use the information in the DataGridEvent to access to the

    data item that was published.

  • Select - the Question of the Case statement

    In my query:

    SELECT WR_ITEM_OID, TITLE,
    Title = WHEN 'No chocolate' THEN (select "#X #_G1_" ACE double groupname)
    When title = 'Chocolate' THEN (select "#X #_G2_" ACE double groupname)
    When title = 'Eraser' THEN (select "#X #_G3_" double groupname)
    When title = "Import complete" THEN (select "#X # 101_ _G' As double GroupName")
    When title = 'Export Total' THEN (select "#X # 102_ _G' As GroupName, the double")
    ANOTHER "END as GroupName
    OF WR_ITEM


    I want to change the title of "Export" when title = 'Export Total'

    How would I do that in this query?

    Thank you

    Hello

    Rich75 wrote:
    In my query:

    SELECT WR_ITEM_OID, TITLE,
    Title = WHEN 'No chocolate' THEN (select "#X #_G1_" ACE double groupname)
    When title = 'Chocolate' THEN (select "#X #_G2_" ACE double groupname)
    When title = 'Eraser' THEN (select "#X #_G3_" double groupname)
    When title = "Import complete" THEN (select "#X # 101_ _G' As double GroupName")
    When title = 'Export Total' THEN (select "#X # 102_ _G' As GroupName, the double")
    ANOTHER "END as GroupName
    OF WR_ITEM

    I want to change the title of "Export" when title = 'Export Total'

    How would I do that in this query?

    Thank you

    You can use another expression BOX to turn the title, usually to himself:

    SELECT  WR_ITEM_OID
    ,     CASE
              WHEN  title = 'Export Total'  THEN  'Export'
                                              ELSE  title
         END     AS title
    ,     CASE
              WHEN  title = 'Non Chocolate' THEN  '#X#_G1_'
              When  title = 'Chocolate'         THEN  '#X#_G2_'
              When  title = 'Gum'         THEN  '#X#_G3_'
              When  title = 'Import Total'  THEN  '#X#_G-101_'
              When  title = 'Export Total'  THEN  '#X#_G-102_'
                                                ELSE  NULL
          END      AS GroupName
    FROM       WR_ITEM
    

    There is no need for all scalar subqueries in double; I replaced the air conditioned and have literals.

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and INSERT statements) and the results desired from these data.

  • Menu selection target question

    Hello!

    How to open the menu of target selection inside the application? I watched invokeclient sample from samples of waterfalls, but as an example and link menu are different.

    Any ideas?

    I have the solution, is name: InvokeActionItem

  • Cannot save preferences and select mask question

    I'm unable to use the new 2015,5 Select cc and mask button, I get the error:

    Unable to apply Select the workspace and mask because the disk is not available.

    I've deleted and reinstalled Photoshop 2015.5, when I initially installed it I deleted all previous versions of CC (2014 / 2015), but this has not helped, now, when I'm out photoshop I get the following message is displayed:

    Could not save preferences because the file is locked, you don't have the necessary access permissions or another program is using the file. Use the "Get Info" command in the Finder to make sure that the file is unlocked and you are allowed to access the file. If the problem persists, save the document to another file or duplicate in the Finder.

    It's perhaps related?

    I can put in discs from scratch, but because of this error message that appears when closing photoshop and then when I restart all drives are disabled in preferences such as Scratch disks, and I have to choose my discs from scratch once again (which will be then "forgot" the next time I'm out CC because of this error message.

    It's corrected now.

    I went to the FINDER > GO kept the alt/option key in, and then selected LIBRARY and chose LIBRAY > PREFERENCES > CC 2015.5 settings in Adobe Photoshop and then press Command/Apple and letter "I" and selected under sharing, everyone and set to READ & WRITE it was put to custom, and that fixed the two issues "

  • Adobe Illustrator - direct selection tool - Question

    Hello community.

    I was watching a tutorial and practice on logo design and I ran into a problem on my end. I am sure this is a setting which is not enabled or maybe something I am doing wrong.

    The first image (image1.jpeg - black object) I understand the tutorial is. In it the person who gives the tutorial completely selects the object (two separate polygons; divorced by the way) and you will see white radial points appear on the corners of the two forms. He then produced click on the corners, he wants and every radial white disappear and only appears with selection of the corners he wants.

    The second photo (image2.jpeg - green object), I understand comes from my adobe Illustrator. In it, when I do the exact same steps as above radial white dials do not appear. In fact, only the anchor points of all edges appear only.

    Please advise on how to get the white radial dials to show. Please accept my apologies before hand so I didn't name anything correctly.

    -Isaiah, M.

    image1.jpgimage2.jpg

    It doesn't have to be a direct form. The widgets corner (as they are called) have been introduced in Illustrator CC and can be activated with a view > Show corner Widget.

  • ([JDev12c, ADF] 1) how to get the value of a field of the line currently selected in question 2) af:table: flowScope

    Hallo,

    How can I get the value of a field in the row that is currently selected in an af:table?

    I need to pass this value to a setCurrentRowWithKeyValue who took the record to display in another (by a button) called page:

    Limited workflow

    Page1 - goToPage2-> setCurrentRowWithKeyValue-> PAGE2

    I defined a managed bean flowScope for the workflow in which I created the variable 'CodeToSetPage2Row '.

    I will store the value of the field for the selected line in this variable so that I can move on to the setCurrentRowWithKeyValue.

    Could be this method OK? Ore is there any good practice to achieve this goal?

    The managed bean flowScope used to go to the stubborn task may take some values from the outside?

    The workflow defined will be executed in a dynamic region.

    Thank you

    Federico

    Federico, you cannot use a flow variable scope for this page. The region has no access to the bean. You must use a workflow for this parameter.

    To get an attribute of the currently selected line you make slide data vo of control on the page attribute. This will create a link attribute for this attribute. Once this link exists, switch to source mode and remove the component that you do not want.

    The framework passes the value of the current row in this affair of the attribute (table should be in single selection mode).

    Click on the button, you switch the binding of the attribute for the setting of task flow using a setPropertyListener.

    In the workflow, you call the setCurrentRowWithKeyValue with the parameter of workflow as the default activity.

    Timo

  • Get - VM | Select-Object question

    All,

    I am writing a script to get information on all my virtual machines. I have almost everything down packed, but I can't get the data store. I want to output out of to show me what the vm data store resides in.

    Here's what I have so far.

    Get - VM | Select-Object Name, VMHost, NumCPU, PowerState MemoryMB

    Again, I need to be able to tell what vm data store resides in

    Try this:

    Get - VM | Select Name,VMHost,NumCPU,PowerState,MemoryMB,@{N="Datastore; E={$_ | Get-Datastore}}

  • ADF - BC: query select VO question of Action in function

    Hi Experts,

    I created a query based Vo that is displayed on the page as a table. It has 1 button on top of table - delete which should only be enabled if a row is selected.

    When I select a line, first of all, my entire table is refreshed then only the button is enabled. I'm not refreshing selectAction table. No idea why it's happening and what is possible to solve it.

    For reference, code for selectAction is-

    {} public void Actionselection (SelectionEvent selectionEvent)

    AdfFacesContext context = AdfFacesContext.getCurrentInstance ();
    if(Context == null)
    return;
    JfrInfoData.JfrInfo = selectedRowData
    (JfrInfoData.JfrInfo) table.getSelectedRowData ();
    setDelJfrDump (selectedRowData.getFileName ());
    setDownLoadFileName (selectedRowData.getFileName ());
    setDelJvmId (selectedRowData.getJvmid ());
    setDelPath (selectedRowData.getPath ());
    context.addPartialTarget (removeButton);

    }

    There was a double ppr of table for a message at the table box and message box. Removal of the ppr and the table began to work as expected.

  • Selection multiple question table advanced on the OFA page

    Hello

    I have a table edge on the OA Page. This advanced table, I had added the action of multi selection table.
    For multiple selection, I have attached an Instance of the view and an attribute of the view.

    There are text entry field in the advanced table. If the user makes changes to it, a 'updateDate' event fires.
    Co:
    {if (Event.Equals ("updateDate"))}
    System.out.println ("A");
    String rowReference =
    pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);

    [Serializable] param = {rowReference};

    am.invokeMethod ("DetailsCheckBox", param);
    }

    Am:
    public void DetailsCheckBox (String rowReference) {}
    System.out.println ("B");
    line oracle.jbo.Row = findRowByRef (rowReference);


    Ivo DetailsVOImpl =
    FindViewObject ("DetailsVO1") (DetailsVOImpl);

    String chkbox = (String) row.getAttribute ("Multiselect");
    System.out.println ("multiselect original:" + chkbox);
    If ((chkbox == null) |) (chkbox.equals ("N"))) {
    ivo.setCurrentRow (row);
    row.setAttribute ("Multiselect", "Y");
    String chkbox1 = (String) row.getAttribute ("Multiselect");

    System.out.println ("multiple selection:" + chkbox1);
    Ivo.Reset ();
    }

    }

    The problem is that if there are 5 lines are displayed in the advanced table and changes to one of the first 4 rows, the box gets checked on the page but if I make the changes to the last row, the box is not checked on the page, even if the statement String chkbox1 = (String) row.getAttribute ("Multiselect"); Returns 'Y' AM.

    Help, please. Its urgency.

    Hello

    We use the following pseudocode of the AOS.

    VO. Reset()
    While (vo.hasNext ())
    {
    your code
    }

    This will solve your problem.

    Thank you
    Kumar

  • question about select in question

    Hello all;

    I need an idea on how to y to take to write this query... I need to compare two fields to see if they are in another table... it is similar to the following select statement below
    select id, place from table_one t
    where t.id and t.place in (select z.zoneid, z.zoneplace from zone z)
    How do you write this sql query in formal
    select id, place from table_one t
    where (t.id,t.place) in (select z.zoneid, z.zoneplace from zone z)
    
  • Select the question

    Hello

    I have values:

    STATE ID
    -----------
    "N" 1234
    "N" 1234
    1234 WOULD BE"


    How can I select only the records that don't have a ' value in the status column? So just those with 'n'.

    Concerning

    okke. Now more clear!

    SELECT * FROM t t1
    WHERE NOT EXISTS (SELECT 'X'
                      FROM t t2
                      WHERE t1.id=t2.id
                      AND t2.state='D'
                      )
    
  • Design mode select a question

    I have a site that I create a dozen pages for. I created the first page, and something weird happened. I never have time click anywhere in my div "maincontent" in design mode, it selects all div I usually use design mode to select a text element and then click view code to go quickly to the part of the code to change it, but for some reason, it selects the entire content of the div. I'm not having this problem with any of the div outside "maincontent", and I've never had this problem before on any of my other sites. What is going on? It becomes very annoying already and I finished only 2 pages.

    I'm under DW CS3 on Windows 7 64 bit.

    Thanks, Jo

    What is going on? It becomes very annoying already and I finished only 2 pages.

    It is likely that you have applied an overflow: hidden style for this container.  Try clicking double inside to allow editing.  Or change in Code view.

Maybe you are looking for

  • Internal error in the server on seinding a tweet

    because of the "internal server error", I've resorted to EI to send the next twit. Of course, it was the Mozilla servers and not Twitter or Google It is... uh... between puzzling and painful for me, personally, given the content twit: CodeRush4SL: a

  • RALink Bluetooth driver for windows 8.1

    Dear concern, I have HP Pavilion G6 model 2312ax. I just upgraded my windows 8 8.1 the store Windows. After improvement, the bluetooth software does not work. Please design software for windows 8.1 or tell me the link to download the software.

  • Find more games on XP

    Hi, I'm under Windows XP Prof 2002 with ser pk 3, can no longer find the games that accompanies it, which includes the games msn.zone.com I don't know what happened that I can't find them. Help, please * original title - Hi, game question went XP gam

  • Cannot find Window Movie Maker in XP. Wanted to download Kodak Easy Share clips on a Web site. All I could do was save still images.

    I downloaded some video clips of Kodak.  They are on the computer - I can be read, but can now find a way to get them out to download (I tried to enter a contest).  Is Microsoft Movie Maker Windows 7 system only?  I'm not tech savvy and could not eve

  • CP1025nw firmware update failed

    Hi - I tried to update my firmware (most wireless) and get the error message failed to update and powercycle the printer and try again.  I tried several times and get the same result - update failed. Is there another way to update the firmware (via m