Using dbca to create a db and all the users are locked and expired
I create a template using dbca on 10gR2 with schema and data and when I use that to build a clone on another machine the users passwords are all locked and expired. I am doing this in silent mode from the command line and I am looking for a flag that produces the unlock users passwords feature which seems to be there if you manually run dbca from the GUI.
This is a unix script I use to unlock accouts. I should notice this script is used for educational pourposes, in a production database it is not a good practice to leave demo accounts unlocked and overall with login=password.
sqlplus -S /nolog <<ENDSQL
connect / as sysdba
SET LINESIZE 132
SET PAGESIZE 0
SET TERMOUT OFF
SET NEWPAGE 0
SET SPACE 0
SET ECHO OFF
SET FEEDBACK OFF
SET HEADING OFF
SPOOL x.sql
SELECT 'ALTER USER '||username||' IDENTIFIED BY '||username||' ACCOUNT UNLOCK;'
FROM dba_users
WHERE account_status LIKE '%LOCK%';
SPOOL OFF
@x.sql
!rm x.sql
exit
<<ENDSQL~ Madrid.
Similar Messages
-
No sound from my HP w1907 monitor and all the plugs are in and the sound is turned up.
I have a HP w1907 widescreen monitor and I am using it on windows vista pro 32 bit and I have no sound. Everything is hooked up correctly and the sound is turned on and up.
HI blue000,
Are you using an HDMI, DVI, or VGA connection? Did you enable the speakers using the (OSD) menu?
HDMI will support audio and graphics input. Please refer to this HP support document.
A VGA or DVI connection requires an audio connection (see here).
Jaco
****I am not an HP employee****
Please give a" Kudos, Thumbs Up" if advice received is relevant or" Accept as Solution" if your problem has been solved.
HP Products:
810-150se Desktop
17t-j000 Notebook
1380t Desktop
560z Desktop
Errare humanum est. -
hi
i downloaded yosamite and once the computer reboot, I could open it with my old login and password, but all my data is gone. if I try to take it from time machine is blocked with a symbol red.
I had a request to provide my password to keychain. I did and it kept asking. But when I try to reset or verify it says I'm not the right user.
Now I'm a bit lost. Can anybody share some guidance? Thanks.Try here:
iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
It has a link for XP -
I lost all my contact and all the app are slow and keep closing down
Iphone 4 yesterday my phone coudn't not open app or opening and closing right away.Also the phone shut down by himself,today I lost all my contact
Your content will only be where you put it. It has always been very basic to always maintain a backup copy of your computer.
You can transfer itunes purchases from your iphone: File>Device>Transfer purchases.
You can import your pics taken with the iphone as you would with any digital camera.
You can e-mail the other pics to yourself, they will never be of the original quality.
You can out a unique contact and calendar entry on the computer. You should get the option to merge the data when you sync. -
How do i fix the colour on my ipad? it is fuzzy, dull and unclear!!
Did you try rebooting the iPad? You will need to have some battery power for this.
Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
This may be helpful
iPhone, iPad or iPod touch: Not responding or does not turn on
Frozen or unresponsive iPad - Apple
iPad: Unable to update or restore -
I just used a firewire connection to transfer files from a PowerBook G4 to a MacBook Pro. The MacBook Pro has lost all that was on it, and all the applications are opening like they have never been used before and asking for Rosetta. How do I find all my files on the MacBook Pro, or undo what I have done???
IGNORE the last post: he thought you are using Lion or Mountain Lion.
Since you are using Snow Leopard, you need to install Rosetta. It can be found on your Snow Leopard Install DVD in the Options section.
Once installed all should be well again.
Also, if your computer is connected to the internet when the Dialog Box about PowerPC applications comes up, it MIGHT allow you to download Rosetta from the internet. There has been some discussion that Apple has discontined internet download of Rosetta into Snow Leopard.
Someone else will have to address your lost files problem. -
Please advise how I can register my Photoshop Starter Edition when I apply I do not receive an unlock code so I am unable to continue to use the program and all my photos are locked in, please advise, thanks John
Please refer to the appropriate Forum, this one is dedicated to Photoshop proper.
Photoshop Album Starter Edition -
My keyboard doens't work correctly when I push numbers it appears symbols and all the letters are not good
I suspect someone or something in your house may have changed a keyboard preference. Try System Preferences - Keyboard - Keyboard tab - uncheck Use all F1......
-
Hi,
i have normal sim card in my old Nokia phone and all the contacts are in it, how i can import these contacts to iPhone 4S. The contacts are more than 1000, it is quite hard to transfer them one by one. Please help.I did get a notice
that i couldn't import new photos to my MACBook a few days ago--not enough room.
How much free space do you have on your hard drive? - Note that you need an absolute minimum of 10GB at all times for normal operation of your computer
Deleteing photos probably is not the answer - you probably need to purchase an external hard drive and move your iPHoto library (and possibley iTunes library) to it - you can operate that way (be sure the EHD is always available when you launch iPHoto) or you can have a small library on your MB and use iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ - to move photos between teh internal and external hard drive
ipmovel
Moving the iPhoto library is safe and simple - quit iPhoto and drag the iPhoto library intact as a single entity to the external drive - depress the option key and launch iPhoto using the "select library" option to point to the new location on the external drive - fully test it and then trash the old library on the internal drive (test one more time prior to emptying the trash)
And be sure that the External drive is formatted Mac OS extended (journaled) (iPhoto does not work with drives with other formats) and that it is always available prior to launching iPhoto
And backup soon and often - having your iPhoto library on an external drive is not a backup and if you are using Time Machine you need to check and be sure that TM is backing up your external drive
LN -
I had to redownload cs6 from another drive and all the files are there but it wont open any of it
i had to redownload cs6 from another drive and all the files are there but it wont open any of it
Copying/transferring will not work. You need to install the software using installation files.
CS6 - http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html -
i just buy a imac 27inch when after intalling everthing for windows 7 and all the drivers i need and goes to the restard part my imac just goes to a black screen with a blinking cursel and it just wont proceed anyone can help me with this?
Support articles for things like this would be here:
http://www.apple.com/support/bootcamp -
I have iphoto 08 version 7.1.5. I copied photos from recent - last import into albums. I then deleted the photos and emptied the trash. Today all the albums are empty and the photos are nowhere in the library. Have I lost them all?
OK, here are a set of screenshots with my step by step - maybe you will be able to spot where I've gone awry:
I find a photo in the Library that I will delete from an album:
I go down to my Albums and find the picture in one of them:
I hover over the pic so the little down arrow appears in the bottom right-hand corner. I click on it, then click on the Trash Can in the window that drops down:
Gone from the Album:
Gone from the Library:
In the Trash:
Whaddup with that?
GB -
Hello,
I have just moved to mac and pointed my screen saver to my pictures folder and all the pictures are 1mb in size with a lowest resolution 4416 × 3312. Why do I still get blury images in my shifting titles screen saver?
Regards,
Janfinally found it
http://lifehacker.com/5711409/how-to-search-for-hidden-packaged-and-system-files -in-os-x
need app find any file
link at bottam -
my audio unit manager has gone, i cant scan it and all the components are in the right place, i just cant access my au manager at all in logic
any help please im going out my mind
regards jamesThanks for getting back to me, The AU manger was there, just when you treid to click on it, it just wasn't responding.
But i had a scan thourgh google and found the answer, i removed the audio units cache and restarted it and all was good. I was really starting to get stressed over the matter but however i got to the bottom of it.
Again thanks for replying
Regards James -
I've recently added the MacAir to my Microsoft /Windows network. The Mac sees my printers but all the printers are "paused" and I cannot print, even if directly attached. How do I fix this?
Yes, I've that and it didn't work. Today, I reinstalled printer software on one printer and the "paused" message changed to "offline". It's a three-in-one printer. I turned off and on again and it still says "offline"
"
Maybe you are looking for
-
I purchased a movie on the AppleTV 2 but it is not showing up in iTunes on my desktop computer. How can I sync? (have lastest version of iTunes and ATV2 software)
-
How can I use Face Time with my phonr number?
I can´t use my phone number to be my recipiant to iMessage and Face Time, it just puts the label "Verifying" and my number. Does anybody knows if this is a carriers problem or an iPhone problem? PLEASE IT'S URGENT!!!!!
-
Will apple store do the migration from an Macbook Pro to Macbook Air?
I just purchased today a refurbished Macbook Air from Apple. I need to have all of the software, program files, emails, and the ktichen migrated to it from my Macbook Pro. Will my local Apple Store do the migration for me if I take them the receipt f
-
Some forms triggers are missing
Hi all, Sometimes when I open a saved form, It loads with some missing triggers. This problem happened with me and with other colleagues at work. We have some triggers as standards, but sometimes, these triggers are gone. Sometimes Forms Builder give
-
Hello, In analysis for olap, the unit or currency is displayed in each cell whereas in analysis office (excel) and in former bex web it was possible to display on top of the column when unique. I know that the enhancement has been asked several times