I'm Top Oracle DBA

Category Archives: Script

Oracle Data Pump (expdp, impdp) in Oracle Database 10g onward

Before export or import, You have to create a directory for an object, it can access. The directory object is only a pointer to a physical directory, creating it does not actually create the physical directory on the file system of the database server. A data pump is a logical Backup, You can back up […]

Enable/Disable Archive Log Mode on Oracle Database 10g/11g

How are we choosing to enable or disable archivelog Archivelog Mode You can perform a backup when the database is online(Hot backup) and the database is offline(Cold Backup) that means if You see a problems or disasters something with your database then you’ll have the copy data and archive the log file to recover a […]

Script check for Compare Object on Oracle database 10g onward

When you do maintenance, upgrade and migration. You have to keep data before and after to compare to the same thing. For count object SELECT OWNER,OBJECT_TYPE,COUNT(*) FROM DBA_OBJECTS WHERE OWNER NOT IN (‘SYS’,’SYSTEM’,’SYSMAN’,’ANONYMOUS’, ‘APPQOSSYS’,’DBSNMP’, ‘EXFSYS’,’MDSYS’,’ORACLE_OCM’ ,’ORDSYS’ ,’OUTLN’ ,’SYSTEM_LOAD_TEST’,’TSMSYS’,’WMSYS’,’XDB’,’XS$NULL’,’ORDDATA’,’CTXSYS’) GROUP BY OWNER,OBJECT_TYPE ORDER BY OWNER,OBJECT_TYPE; 2. For counting objects by status SELECT OWNER,OBJECT_TYPE,STATUS,COUNT(*) FROM DBA_OBJECTS WHERE […]

How to enable and disable standard audit trail on Oracle Database 10g onward

Enable standard Audit Trail 1.  Log in as SYS with SYSDBA privileges [oracle@labdbt2 bin]$ sqlplus “/as sysdba” 2.  Check the current settings SQL> show parameter audit NAME TYPE VALUE ———————————— ———– —————————— audit_file_dest string /oracle/admin/dblabt1/adump audit_sys_operations boolean TRUE audit_syslog_level string audit_trail string NONE unified_audit_sga_queue_size integer 1048576 3.  Set the type of auditing you want by […]

error: Content is protected !!