Database Administrator

Wednesday, August 29, 2012

Oracle 11g Advanced Compression

›
You can implement advanced compression option into your databases having more update, insert operation tables to manage high growing amoun...
Saturday, August 25, 2012

CONSTRAINT ERROR Find What data creating problem

›
d:\app\Administrator\product\11.2.0\dbhome_1\RDBMS\admin\utlexcpt.sql create table exceptions(row_id rowid,                owner varch...
Friday, August 24, 2012

RESTRICT NON DBA USER TO ACCESS DEVELOPMENT TOOLS LIKE SQLPLUS , TOAD,...

›
Create or Replace TRIGGER TG_OTHER_TOOL   v_prog sys.v_$session.program%TYPE;   v_module sys.v_$session.program%TYPE ; lnUsercode number...

Oracle alert.log to Table

›
The following script creates two tables:  read_alert  and read_alert_disk . read_alert_disk  is an  external table  and contains the con...
Thursday, August 23, 2012

Restrict Users to access other application exe

›
create or replace procedure sp_ltmlogin AS   MODULE SYS.V_$SESSION.MODULE%TYPE ; L_USER NUMBER ; BEGIN  SELECT MODULE INTO MODULE FROM ...
Tuesday, August 21, 2012

Drop User Trigger

›
create or replace trigger tg_dropuser before drop on database when (ora_dict_obj_type ='USER')   declare  l_name varchar2(30); ...
Tuesday, August 14, 2012

Oracle Fine grained auditing / track select records

›
In regular object-based auditing, the records can show that a user selected from a specific table, along with other helpful information such...

Reset Oracle Parameter Value

›
select name,value,isdefault,isses_modifiable,issys_modifiable, isinstance_modifiable,isdeprecated, from v$parameter; alter system reset...
Friday, August 10, 2012

Check Constraint on SYSDATE

›
create table table1 (startdate date,CloseDate date); ALTER TABLE Table1 ADD (CONSTRAINT GT_Table1_CloseDate CHECK (CloseDate > SYSDA...

Excel Security Settings using Command / ASP.NET code

›
cmd>reg add "HKCU\Software\Microsoft\Office\12.0\Excel\Security" /v AccessVBOM /t reg_dword /d 1 /f Microsoft.Win32.Registr...

Windows Regional settings using command or in ASP.NET code

›
cmd> REG ADD "HKCU\Control Panel\International" /v sShortDate /d "dd/MM/yyyy" /f Microsoft.win32 Namespace is con...

Allow your application from Windows Firewall During Installation

›
1) void AddToFirewallException(string ApplicationName, string FilePath)         {             // Add exception to windows firewall after...
Thursday, August 9, 2012

add_months Function Quarter start date and end date

›
how can i get the start date n end date of quarter?eg. if i pass date as 30/07/2012 then start date should be 01/07/2012 to 30/09/2012,If i...
Wednesday, August 8, 2012

Two User Logon Not Allowed on same Machine

›
create or replace trigger TG_SINGLELOGIN after logon on database declare cnt pls_integer; begin select count(*) into cnt from v$sessio...

Concurrent User Login Denied from Different Machine

›
create or replace trigger TG_MULTILOGIN after logon on database declare cnt pls_integer; begin select count(*) into cnt from v$session...

User Machine Specific Access

›
suppose you have five machines and five users (   one user per machine ) Note: these users are database users... e.g User name ...
Tuesday, August 7, 2012

Email Notification ddl audit trigger

›
----------------------------------------------------------------------------------------------------------------------- connect sys as sy...
‹
›
Home
View web version
Powered by Blogger.