How to create a temporary database account...

Using Oracle 11.2.0.4:

What is the easiest way to install and create a 'temporary' account in the database for a person.

In our case, I want to create an account which hang in 60 days.

I was thinking about defining the PASSWORD_LIFE_TIME expires in 60 days, and then the password_verify_function to something that would essentially make the password cannot meet the criteria, but I don't know how to do that with this package of Oracle.

I thought that to set up a trigger onlogon to check if the sysdate is some date back 60 days now and if so, the account lockout.

But I was wondering if there was an easier way to do when creating the user account.

I don't want to create an externally authenticated account.

I thought that to set up a trigger onlogon to check if the sysdate is some date back 60 days now and if so, the account lockout.

But I was wondering if there was an easier way to do when creating the user account.

If it were me, I'd create just a task in Oracle Scheduler to run 60 days now. The job may run the following PL/SQL block:

BEGIN

EXECUTE IMMEDIATE 'alter user temp_user account lock;

END;

/

Do the job for execution once and remove it yourself after completion. In this way, there is there no persistent artifact that later needs to be handled.

Go a little further, why not drop the account instead of locking it?

See you soon,.
Brian

Tags: Database

Similar Questions

  • How to create a temporary table in a procedure.

    How to create a temporary table in a procedure.

    Hello

    user9093700 wrote:
    How to create a temporary table in a procedure.

    Why create a temporary table in a procedure?

    Oracle has soemthing called a global temporary Table , where the table is in fact permanent, but data is automatically deleted at the end of the session (or the transaction, depending on how the table was created). What did you talk about? Why do you want to create one in a procedure?

    Temporary tables, in the sense of the tables that are created on the fly and fell just as they are used, are almost never a good way to do anything in Oracle. Explain what you want to do, and someone will help you find a good way to do it.

    If you need really to create a table (or any other kind of DDL) in a procedure, use EXECUTE IMMEDIATE.

  • How to create the new database in oracle 11g

    Hello
    I m new in oracle 11g, I downloaded oracle 11g and with the help of the guide of the developer-2 days, I learned all the SQL queries, but I worked with human resources database.
    Now, I want to create my own database with the required tables. Can anyone help me how I can make my own database in oracle 11g.

    Thank you
    Manna

    870692 wrote:
    Hello
    I m new in oracle 11g, I downloaded oracle 11g and with the help of the guide of the developer-2 days, I learned all the SQL queries, but I worked with human resources database.
    Now, I want to create my own database with the required tables. Can anyone help me how I can make my own database in oracle 11g.

    Thank you
    Manna

    Be sure to distinguish between the terms and the database schema. Other products, make them bad. It would be a HR diagram (or a user, which is the same in Oracle). If you do not need to use the database Wizard, unless you are working with a new host with no database.

    A simple way would be to get the DDL to create the HR schema and modify it for your own. It can be extracted from your database in several ways, or you can copy the hr_cre.sql to your own script and change. The two ways are educational, and you can google for instructions.

  • Compaq Presario CQ61: How to create an e-mail account?

    I asked for help on recovery forum a couple of days and Cheryl G provided expert advice. Very much appreciated. Understand that I am a dinosaur in PC, how can I enter the details needed to put my Gmail account on the system of the laptop recovered?

    The land downunder.

    Good to hear the tip on the recovery has helped you! This video should help configure Gmail on your Windows Mail program.

  • How to create the EM Database Control in Windows, if the Service has not been created initially

    Hi all.

    The procedure to re-create EM 11 g Database Control is described in note Doc-ID 278100.1 .

    I have to administer a new database that is located on a Windows machine and I find the Service control database EM missing, so I assume that the database has been created without EM.

    My question is this:

    Can I use the procedure described on Doc-ID 278100.1 ?, I mean it is to recreate but I guess it still applies for a new installation.

    Thanks in advance!.

    Hello

    You can continue with the steps in the doc - id 278100.1

    Concerning

    Rami

  • How to create interactive reports database connection?

    I installed the interactive web reporting client of hyperion workspace.

    When I create a new document for creating interactive reports in the workspace file > new > Document > create a document of interactive report > data source >

    He is asked to select the database connection, which I am unable to create. Please guide me.

    Thanks in advance.

    Hello

    To create the ECAS, you first have to decide whether to use an ODBC connection or ike Client.Then Oracle create using the Interactive Studio Reporting of the OCÉ customer. Then check if the BQY works with this OCE connection.

    After that you need to publish (import) in the workspace. Also, in the workspace, you must make entries of data (DAS entries) that will allow to use the drivers to connect to the database of the ECO.

    Then, you must publish the BQY and associate it with the ECO.

    HTH,

    Thank you

    KK

  • How to create widget in my account of sign of echo

    I can buy $ 19 Plan for create a professional customer experience but, in this plan do not provide create widget option..

    so please help me how can I provide this option...

    Hello

    The Widget is available for parcel business and Global.

    Thank you

    Jat

  • How to create the new database with rman backup

    Hello
    I took an rman backup with nocatelog. can I make a new database with the rman backup.
    If so, how? I m using oracle 9i.


    thxs

    If it is useful, see the following:

    http://www.shutdownabort.com/QuickGuides/clone_rman.php

  • How to create a power user account in XP? Don't want to download/install programs when logged on as administrator.

    The only options I see in user accounts are "Admin" or "limited." My limited account I cannot download and install programs.

    Hello

    Groups of users of power were available in XP Pro, but not recommended.

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/windows_security_default_settings.mspx?mfr=true

    A member of the power users group may be able to gain administrator rights and permissions in Windows Server 2003, Windows 2000 or Windows XP:

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

    Hope this information is useful.

  • How to create a roaming user account?

    When I go to change the type of account, there is a checkbox for roaming and local options. Homelessness is shaded out and not available.

    Hello

    Thanks for posting in the Forum the Microsoft community.

    A local profile is stored on all of the local computer. A roaming profile is stored on a server and is downloaded on the computer when a user is connected and authenticated on the domain to the local computer.
    If you are not on a domain and you use roaming profiles, the itinerant button will be greyed out.

    Hope the above information is helpful. If you have any question back to us, we are happy to help you.

    Thank you.

  • How do I create a new user account with windows XP Home Edition after operational failure

    How do I create a new user account with windows XP Home Edition after operational failure

    Hi andyprice,
     
    -What is the operational flaw that you speak?
    -You receive an error message when trying to create a new user account?
     
    Write us with more information pertaining to the matter to help us help you better.
     
    In the meantime, you can refer to this article:
  • What is the best way to create a limited user account?

    I'm trying to set up a user account which only allows access to the media, optical drive (read-only, if possible), programs 3 cards and records in a folder that is not visible to this account. What is the best way to go about this?

    Thank you!

    Hello

    You can check the links that has information about the types of accounts of user below.

    Types of user accounts: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ua_c_account_types.mspx?mfr=true

    Overview of user accounts: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/usercpl_overview.mspx?mfr=true

    How to create and configure user accounts in Windows XP: http://support.microsoft.com/kb/279783

  • How can I make my guest account administrator?

    Vista

    Hello

    You really must make the guest account privilege is important. You can turn OFF
    the guest account. Create additional administrator accounts (including one not to use on a regular basis for)
    text and correction) and name a guest or guests welcome.

    User accounts in Windows Vista
    http://www.optimizingpc.com/Vista/multiple_useraccounts.html

    How to create a new user account in Vista
    http://www.Vistax64.com/tutorials/93009-user-account-create.html

    Manage user accounts - scroll to the bottom to create a new user account
    http://www.vista4beginners.com/manage-user-accounts

    Adding a new user in Windows Vista profile
    http://familyinternet.about.com/od/projects/SS/adduservista.htm

    How to activate the guest account enabled or disabled in Vista
    http://www.Vistax64.com/tutorials/126933-guest-account-turn-off.html

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • I created a separate administrator account and can't get it to appear at startup.  I need to send my Macbook repair and need this ID to show when they turn on him. How do I do that?

    I created a separate administrator account and can't get it to appear at startup.  I need to send my Macbook repair and need this ID to show when they turn on him. How do I do that?

    If you added via the preferences system/users and groups, it should appear as a long time that you have set the display of connection to appear. To do this, go to System Preferences/security and privacy. Then check the check box turn off automatic connection . This should show the login screen at startup. You may need to click the lock (lower-left) icon to unlock the setting to check it out.

  • How to create a database using Labview7.1, as library management system?

    I want to use labview7.1 to create a database as the system.but management library I don't know how to do it.could you show me how to make it happen?

    To run database queries, OR sell the database connectivity Kit. However, given that your version of LabVIEW is no longer supported, I don't know if you could buy it. Your other option is to use LabSQL. Two of them are based on ADO. The Toolbox mask some SQL commands low level but you can find plenty of tutorials SQL and should be able to get updated quickly enough. LabSQL is what I use in my LabVIEW applications.

    The effective creation of a database is usually done in the database environment itself (for example, you use Access to create a Jet database). It is not really related to LabVIEW at all and appropriate database design is a long topic. If you know the system database that you want to use, someone might be able to point to specific aid.

Maybe you are looking for