Blog Posts

  • datapump basic’s

    CONN / AS SYSDBAALTER USER scott IDENTIFIED BY tiger ACCOUNT UNLOCK; CREATE OR REPLACE DIRECTORY test_dir AS ‘/u01/app/oracle/oradata/’;GRANT READ, WRITE ON DIRECTORY test_dir TO scott; Note. Data Pump is a server-based technology, so it typically deals with directory objects pointing to physical directories on the database server. It does not write to the local file…

  • scheduling crontab jobs in Linux or Unix

    1. Scheduling a Job For a Specific Time The basic usage of cron is to execute a job in a specific time as shown below. This will execute the Full backup shell script (full-backup) on 10th June 08:30 AM. Please note that the time field uses 24 hours format. So, for 8 AM use 8,…

  • some basic sql’s for beginners in Oracle database

    Oracle Database Commands and Queries: 1.To view all the table from dictionary :SQL> select table_name from dictionary; 2.To identify the database name :SQL> select name from v$database; 3.To identify the instance name :SQL> select instance from v$thread; 4.To know the size of the database blocks SQL> select value from v$parameter where name =’db_block_size’; 5.List the…

  • script to drop all objects in your schema

    This script can be used to drop all the objects in your schema,very useful when you want a fresh schema and start from scratch.no need to delete objects individually or recreate user. —————————————————————————–—–    plsql script to drop all the objects in your —–      current schema————————————————————–declarev_str1 varchar2(200) := null;cursor get_sql isselect‘drop ‘||object_type||’ ‘|| object_name||…

  • Some very usefull sql’s for Datagaurd

    Backup – DataGuard Startup commandsTo remove a delay from a standbyCancel managed recoveryRegister a missing log fileIf FAL doesn’t work and it says the log is already registeredCheck which logs are missingDisable/Enable archive log destinationsTurn on fal tracing on the primary dbStop the Data Guard brokerShow the current instance roleLogical standby apply stop/startSee how up…