How can I set account to EXPIRED(GRACE)?
Hello,
We have database 9i, but our clients are old Forms 4.5 using SQLNet2 and it isnt't able to handle expired passwords. Account status EXPIRED(GRACE) solve my problem, but Oracle doesn't have any commands for it.
Therefore I have to manually update table user$, column ptime and user status after next logon will be EXPIRED(GRACE). But it is very interesting for me that is working only after restart database.
Could anybody explain it? Why I must restart database?
Should I update something else?
Here is detailed example from SQLPLus:
SQL> conn / as sysdba
Connected.
SQL> create profile test_prof limit
2 password_life_time 30
3 password_grace_time 10;
Profile created.
SQL> create user test_user identified by qwerty profile test_prof;
User created.
SQL> grant create session to test_user;
Grant succeeded.
SQL> update user$ set ptime=sysdate-500 where name='TEST_USER';
1 row updated.
SQL> commit;
Commit complete.
SQL> conn test_user/qwerty
Connected. ## NO WARNING, WHY ????
SQL> conn / as sysdba
Connected.
SQL> startup force
ORACLE instance started.
Total System Global Area 210837176 bytes
Fixed Size 454328 bytes
Variable Size 142606336 bytes
Database Buffers 67108864 bytes
Redo Buffers 667648 bytes
Database mounted.
Database opened.
SQL> conn test_user/qwerty
ERROR:
ORA-28002: the password will expire within 10 days
Connected.
SQL> spool off
Marian
Try this-- note the PASSWORD_GRACE_TIME & PASSWORD_LIFE_TIME parameters. This specifies that the password expires in 1 day, but that there is a 10 day grace period
CREATE PROFILE "PASSWD"
LIMIT CPU_PER_SESSION DEFAULT CPU_PER_CALL DEFAULT
CONNECT_TIME DEFAULT IDLE_TIME DEFAULT SESSIONS_PER_USER
DEFAULT LOGICAL_READS_PER_SESSION DEFAULT
LOGICAL_READS_PER_CALL DEFAULT PRIVATE_SGA DEFAULT
COMPOSITE_LIMIT DEFAULT FAILED_LOGIN_ATTEMPTS DEFAULT
PASSWORD_LOCK_TIME DEFAULT PASSWORD_GRACE_TIME 10
PASSWORD_LIFE_TIME 1 PASSWORD_REUSE_MAX DEFAULT
PASSWORD_REUSE_TIME DEFAULT PASSWORD_VERIFY_FUNCTION DEFAULT
system@jcave > create user expiredPasswd identified by xp profile passwd;
User created.
system@jcave > grant connect, resource to expiredPasswd;
Grant succeeded.
Elapsed: 00:00:00.01
system@jcave > @connect expiredPasswd/xp;
Connected.Now, set the clock on the database ahead to simulate the passage of time...
expiredpasswd> @connect expiredPasswd/xp;
ERROR:
ORA-28002: the password will expire within 10 days
Connected.Justin
Distributed Database Consulting, Inc.
www.ddbcinc.com/askDDBC
Similar Messages
-
I have an iPad with IMAP email accounts set up but can find no "inbox, drafts, trash" folders for each email account anywhere on my iPad or in Mac Mail. How can I set them up? I can't find anyway to set them up anywhere. Thanks
Hello blu monkey,
I found some resources that I think might help with the visibility of your IMAP email folders on your iPad and Mac.
On your iPad, you may need to follow the steps in this article to make sure your folders are visible:
iOS: If IMAP Mail folders are not visible
http://support.apple.com/kb/HT1393
On your Mac, I am not sure if you have the sidebar enabled, but you can enable it using the steps in the article below. When this is showing, you should see your email account listed near the bottom with a triangle next to it. When the triangle is pointing down, it should show your folders:
Mail (Mountain Lion): Show or hide the sidebar
http://support.apple.com/kb/PH11763
Thank you for using Apple Support Communities.
Best,
Sheila M. -
my daughter and i share the same i tunes account but want to have our own now. how can i set up a new account just for me and still move or transfer my existing apps, contacts etc?
Yes, with the credentials of the account that the media/content was purchased with.
Content is permanently tied to the account it is purchased with and cannot be merged, moved, or transferred to another account. -
How can I set up 2 different iPhone 5 accounts on my PC?
My phone automatically up dates and opens iTunes when I connect it to my PC. My wifes iPhone does nothing.
she has an Apple ID. When I connect her phone to the PC and open iTunes it only showes my phone content.
So how can I set up a seperately managed account on my PC for her?I suggest setting your wife up with her own login on the PC. There are other ways, but this would be the cleanest, in my opinion.
If you do this, she can use her own iTunes, her own Apple ID, etc. -
HT5620 How can I set up two separate accounts on one iPad?
How can I set up two separate accounts on one shared iPad?
The iPad is meant to be a single user device.
It is possible to use multiple ID's on an iOS device, but when you switch ID's and download content with another ID, you associate the device with that ID for 90 days and lock yourself out of the other ID for that 90 day period.
So while it is possible, it's not advisable. -
My Apple TV was set up with a different Apple ID than I have for my ITunes Account. In other words I have multiple Apple ID's. How can get these accounts to sync up?
If you wish to use home sharing then you need to setup the Apple TV under your ID.
-
How can i set up multiple user accounts for my new ipad mini?
How can i set up multiple user accounts for my new ipad mini?
The iPad mini is basically a one user device. There are no Accounts. You can set up restrictions so that only you can do certain things.
-
My wife and I have been using the same iTunes account for both our iPhones, but she wants separate apps from mine. How can I set up a second account in her name, delete the apps on her phone and start from scratch with just the apps she wants on her phone?
If you have the old phone, connect it to iTunes, right click on the device, and choose transfer purchases. If you no longer have the old phone, I don't believe there is a way to recover them, as they were on your original device.
-
I have bought an iPhone4 and to be able to use it for the first time I connected into a friends' itunes. Now when I want to buy itunes stuff on the phone it asks me her password. How can I set up again my itunes account?
Now I also have a macbook where I can sync my iphone but it doesn't allow mefirst of all only sync it with 1 computers itune account
second settings->general->store click the appleID box with her appleID in it and log out -
How can I set up a password to open each email account to keep privacy?
Hello,
Different members of the family are using the same ipad. How can I set up a password for each email account to keep privacy ?
Thanks
DxYou can not - it's a single-account device, including email, so you can't set up seperate passwords for seperate emails. All or nothing, I'm afraid.
-
How can I set up my shaw email account to work on my iphone?
How can I set up my Shaw email account to work on my iphone? It doesn't want to work no matter what I try. Shaw's help line hasn't been very helpful so far.
Have you not used the automatic 'configure my MobileMe' on my iPhone account setup ?
http://www.apple.com/mobileme/features/
You only have name, email address, password and a name for the account to enter. -
Set up apple Id with invalid email so can't validate new account. How can I edit account info when I can't sign in for anything? Thx
Hi Franklin777,
If you are having issues with your Apple ID, this article will get you started.
Frequently asked questions about Apple ID
The first step is to find and edit the Apple ID you created:
Apple ID: Finding your Apple ID
If you need to reset your security questions this article will help ...
The rescue email address is a different address than the one you use for your Apple ID.
Rescue email address and how to reset Apple ID security questions
You can edit or delete your rescue email address at My Apple ID. To edit your rescue email address:
Navigate to My Apple ID using your web browser.
Click "Manage your account"
When prompted, sign in using your Apple ID and password.
Click Password & Security
You'll be asked to answer 2 of your 3 security questions before you can make any modifications. If you are unable to remember your answers, you can choose to send an email to your rescue email to reset your security questions.
Hope you get back on track soon!
- Judy -
How can I set up a standard account to auto disconnect from the wireless network upon logging out (Using Mavericks)? There used to be a setting for this in previous versions of OSX but I can't find it in the new version.
How can I set up a standard account to auto disconnect from the wireless network upon logging out (Using Mavericks)? There used to be a setting for this in previous versions of OSX but I can't find it in the new version.
-
How can I set the default sign in the mail accounts? thank you
How can I set the default sign in the mail accounts? thank you
From the Mail menu bar, select
Mail ▹ Preferences ▹ Signatures
Drag the signature to each of the desired accounts in the list on the left. If you want it to be the default signature added to all messages sent from that account, select the account, and then select from the Choose Signature menu at the bottom of the dialog. -
My wife and I have iPhones with 2 different iTune accounts and iCloud accounts, How can I set my Mac and iTunes up to be able to sync all as 1?.
You can't merge two iTunes accounts.
Maybe you are looking for
-
Keyboard not working after water spill
Ok, so a while back I spilt some water on my MBP and I shut it off immediately and took it in to have it looked at. I was told it was pretty much hopeless and that it'd be cheaper to buy a new one. So I just left it alone and would periodically test
-
hi i am tyying to print report.but the printout is coming in landscape formet. i want it should be in portrait.how can i do this...
-
User Exit or BADI to get the Total Tax Amount in a New PO (ME21M)
Hi, Can somebody tell me any user exit or BADI I can look at to get the total Tax amount of a new PO, after user press SAVE button and before data is written to tables (EKKO, EKPO etc). Key requirement here is AFTER save button is pressed and before
-
Hi All, I would very much like to know what speeds you're getting on your XSans. We're setting up such a system to do multiple HD/2K Video streams. The system I'm setting up is an XSan with 4 XRaids, each filled with 14 500Gbytes drives. We're using
-
What is the best all in 1 B&W printer for Mac's with Lion OS? What is the best all in 1 color Printer for Mac's with LION OS? Thanks