-
Basic Linux commands
find all files in directory older than 90days syntax find -type f -mtime +30 -print example find -type f -mtime +90 -print delete all files in directory older than 90dayssyntaxfind -type f -mtime +30 -deleteexample : find /u02/dump -type f -mtime +90 -delete Count files in current directory ls | wc -l Free space on linux Type…
-
ORA-28368: cannot auto-create wallet
ORA-28368: cannot auto-create wallet ORA-28368: cannot auto-create wallet ORA-28368: cannot auto-create wallet If you got this error simple create a directory named “wallet” on your $ORACLE_BASE/admin/$ORACLE_SID. SQL> alter system set encryption key identified by manager; alter system set encryption key identified by manager * ERROR at line 1: ORA-28368: cannot auto-create wallet [ora11g@dbms admin]$ mkdir…
-
Finding out Last DML Activity on a Table
create a function for the DML logging create or replace function scn_to_timestamp_safe(p integer) return timestamp is e_too_old_scn exception; pragma exception_init(e_too_old_scn,-8181);begin return case when p is not null then scn_to_timestamp(p) else null end;exception when e_too_old_scn then return null;end;/ now querying the last DML (insert,update,delete) for table and this cant say…
-
Find all tables without primarykey in Database
As a DBA we need to make sure that all the tables in your database are have their uniquesness so that the rows are not duplicate and we avoid the redundant data in our databases. below is the simple sql that can give you list of tables that don’t have any primary key: SELECT OWNER, table_nameFROM…
-
Easiest way to switch between schemas just with a click of button using sqqldeveloper
Easiest way to switch between schemas just with a click of button in sqldeveloper 3.2 or lower versions.This doesnt work with sqldev 4 or higher General : The Schema Select extension for Oracle SQL Developer provides a convenient drop-down list which lets you choose the current schema in a sql worksheet. It also allows you…






