Thursday, June 6, 2024

Problem: Data got committed in another/same session, cannot update row. 

Env: Oracle Sql Developer

How to Solve:

Uncheck below option







Tuesday, January 23, 2024

Thursday, March 5, 2020

Add quotation at the start and end of each line in Notepad++

Suppose we have column names
We want to prepare them to use in  a query and need to put double qutoes around them then put comma and combine all into one line.
press Ctrl + H and check Regular expression radio button.
 Find What: (.+) 
 Replace with: "\1"

it becomes

to put , (comma) at the ends of each line
 Find What: (.+) 
 Replace with: \1,

to combine them into one line
 Find What: \r\n 
 Replace with: 


Thursday, October 4, 2018

Monday, October 1, 2018

Thursday, May 31, 2018

Shortcut solutions to Repetitive Tasks


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


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