select *
from TABLE_NAME
where dbms_lob.instr(COLUMNNAME,'searchtext') > 0;
Thursday, October 4, 2018
Monday, October 1, 2018
Fix ORA-28001 the password has expired
ozanm
6:54 AM
No comments
sqlplus sys as sysdba
alter user [username] identified by [password] account unlock;
Thursday, May 31, 2018
Shortcut solutions to Repetitive Tasks
ozanm
5:33 AM
No comments
How to add a character or some string to end of each line in a list of string?
Solution: Suppose that we want to add , (comma character) at the end of each line, using Notepad++
Replace
Find What: ^(.*)$
Replace: $0,
Tuesday, May 29, 2018
ORA-28002: the password will expire within 7 days
ozanm
1:14 PM
No comments
If you get this error for your user and want to get rid of it, first get the profile of user with this query:
SELECT PROFILE
FROM dba_users
WHERE username = 'YOUR_USER';
You can check profile parameters:
SELECT * FROM DBA_PROFILES WHERE PROFILE = 'DEFAULT';
DEFAULT FAILED_LOGIN_ATTEMPTS PASSWORD 10
DEFAULT PASSWORD_LIFE_TIME PASSWORD 180
Notice that PASSWORD_LIFE_TIME has a value. We can change it to UNLIMITED with this pl/sql query:
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
Now checking by running previous query we see that its done successfully.
DEFAULT PASSWORD_LIFE_TIME PASSWORD UNLIMITED
Subscribe to:
Posts (Atom)