I'm Top Oracle DBA

Category Archives: Migration

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 […]

Generate script for Object Privilege and Synonym on Oracle Databases 10g onward

Database security Each database product like Oracle has a particular security model and the DBA should be well aware in order to control access to data. This is part of authorization, Authorization is granting permission on various parts of the database. Object privileges An object privilege is a right to perform a particular action on […]

Generate script for Database securities : Compile Object on Oracle Databases 10g onward

Database security (Recompiling) Each database product like Oracle has a particular security model and the DBA should be well aware in order to control access to data. This is part of authorization, Authorization is granting permission on various parts of the database. ***note*** You can use just UTLRP for all invalid objects If you are […]

Generate script for Database securities : Role and System Privilege on Oracle Databases 10g onward

Database security Each database product like Oracle has a particular security model and the DBA should be well aware in order to control access to data. This is part of authorization, Authorization is granting permission on various parts of the database. System privileges A system privilege is a right to perform a particular action or […]

Generate script for create user on Oracle Databases 10g onward

Prerequisite You have to create a temporary tablespace for the user You have to create a tablespace for the user You have to prepare a role and profile for the user — CREATE USER WITH DEFAULT TABLE — AND TEMPORARY TABLESPACE — AND PROFILE SELECT ‘CREATE USER ‘||U.USERNAME||’ IDENTIFIED BY VALUES ”’||S.PASSWORD||”’ DEFAULT TABLESPACE ‘||U.DEFAULT_TABLESPACE||’ […]

Generate script for create temporary tablespace on Oracle Databases 10g onward

Many Types of Database files, and sometimes I feel more confused, but you have to be aware of block size and increment, like my command. ***note*** before you’ll use my command. Please read to understand. —– Those commands are separated into 4 types —– 1st —> for temporary tablespace autoextend is NO and temporary tablespace […]

error: Content is protected !!