Ameer Khan

Ameer Khan

  • Home
  • Blog
  • About
  • Ameer Khan

    Jan 30, 2015

    How to Perform Block Recovery without having RMAN backup

    Oracle Version :- 11gOs Version:-    Rhel 6.4 To demonstrate this scenario we need some corrupted datablocks on some data files. It’s possible to perform Block Media Recovery with having only OS based “hot” backups and having NO RMAN backups. Step 1. Create a new user and a table in that schema[oracle@server1 ~]$ sqlplus / … Continue Reading

    Read More: How to Perform Block Recovery without having RMAN backup
  • Ameer Khan

    Jan 29, 2015

    How to Hot backup & restore of an Oracle 11gR2 database

    How to take Hot backup & restore in  Oracle 11gR2 database:- Step 1:-Prerequisites:-$Select log_mode from v$database;If the database is not in archivelog mode then put the database in the archive log modesql>shut immediate;sql>startup mount;sql>alter database archivelog ;sql>alter database open; Step 2:-Taking a hot backup- Now that we have prepared our database for a hot backup,… Continue Reading

    Read More: How to Hot backup & restore of an Oracle 11gR2 database
  • Ameer Khan

    Jan 28, 2015

    ORA-00018 maximum number of sessions exceeded

    ORA-00018 maximum number of sessions exceeded Cause: All session state objects are in use.Action: Increase the value of the SESSIONS initialization parameter. How to increase PROCESSES initialization parameter: 1.Login as sysdbasqlplus / as sysdba 2. Check Current Setting of Parameters:- SQL> show parameter sessions NAME                    … Continue Reading

    Read More: ORA-00018 maximum number of sessions exceeded
  • Ameer Khan

    Jan 27, 2015

    Oracle GoldenGate Command Interpreter

    Oracle GoldenGate Command InterpreterGGSCI   — (Oracle) GoldenGate Software Command Interpreter How to interpret:-oracle$cd $GGATEororacle$cd /i01/app/oracle/product/gg [oracle@prod gg]$ ./ggsci Commandsggsci> HELP [command] [object]ggsci> help GGSCI Command Summary: Object:          Command:SUBDIRS          CREATEER                   INFO, KILL, LAG, SEND, STATUS, START, STATS, STOPEXTRACT… Continue Reading

    Read More: Oracle GoldenGate Command Interpreter
  • Ameer Khan

    Jan 25, 2015

    How to enable Block change tracking

    RMAN’s change tracking feature for incremental backups improves incremental backup performance by recordingchanged blocks in each datafile in a change tracking file. If change tracking is enabled, RMAN uses thechange tracking file to identify changed blocks for incremental backup, thus avoiding the need to scanevery block in the datafile. Prior to 10.2, all incremental backups… Continue Reading

    Read More: How to enable Block change tracking
  • Ameer Khan

    Jan 23, 2015

    How to Multiplex Control Files in Oracle 11g

    Step 1:-Backup your current control file with a trace optionSQL> ALTER DATABASE BACKUP CONTROLFILE TO TRACE; Database altered. Step-2: List all the controlfiles SQL> select name from v$controlfile; NAME———————————————————/u01/app/oracle/oradata/prim/control01.ctl/u01/app/oracle/flash_recovery_area/prim/control02.ctl Step-3 Shutdown the databaseSQL> shut immediate;Database closed.Database dismounted.ORACLE instance shut down. Step 4:-Add one more controlfile[oracle@server1 prim]$cp /u01/app/oracle/oradata/prim/control01.ctl /home/oracle/Multiplexed_control_files/control03.ctl Step-5: Create PFILE using SPFILE[oracle@server1 dbs]$ sqlplus… Continue Reading

    Read More: How to Multiplex Control Files in Oracle 11g
  • Ameer Khan

    Jan 23, 2015

    ORA-00000: normal, successful completion

    ORA-00000: normal, successful completion This error may occur in many circumstances you need to check environment variables:$ORACLE_HOME$ORACLE_BASE$ORACLE_SIDalso check /etc/hosts file it must contains correct hostname and ip.example: [oracle@oel6 ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.3.0 Production on Mon Jan 1 9:12:17 2014 Copyright (c) 1982, 2011, Oracle.  All rights reserved. Connected.SQL> startup;ORA-01012: not logged… Continue Reading

    Read More: ORA-00000: normal, successful completion
  • Ameer Khan

    Jan 22, 2015

    Restrict User access to database within certain limit of time

    We need to create a trigger for this purpose. [oracle@server1 ~]$ sqlplus /  as sysdba SQL> create user sam identified by sam; User created. SQL> grant connect , resource to sam; Grant succeeded. SQL> conn sam/samConnected.SQL> exit [oracle@server1 ~]$ sqlplus /  as sysdbaSQL> CREATE OR REPLACE TRIGGER limit_connection         AFTER LOGON ON DATABASE … Continue Reading

    Read More: Restrict User access to database within certain limit of time
  • Ameer Khan

    Jan 21, 2015

    ORA-00027 cannot kill current session

    How to kill session:1. identify which session to kill using following query:SQL>  select  s.sid,  s.serial#,  spid,  trim(s.machine) machine,  trim(s.module) module,  status from  v$session s,  v$process p where  paddr=addr  and module is not null order by 1,2      SID    SERIAL# SPID                 MACHINE              MODULE… Continue Reading

    Read More: ORA-00027 cannot kill current session
  • Ameer Khan

    Jan 21, 2015

    How To Identify Database Idle Sessions

    The below scripts will identify the Database Idle Session .When on firing the below the scripts, it will prompt for the number of minutes the session is idle for. [oracle@server1 ~]$ sqlplus / as sysdba SQL> set linesize 140 SQL> col username format a15 SQL> col idle format a15 SQL> col program format a30 Now… Continue Reading

    Read More: How To Identify Database Idle Sessions
Previous Page
1 … 28 29 30 31 32 33
Next Page

Ameer Fahad Ali Khan.

Cloud Architect

  • Home
  • Blog
  • About Me

© Copyright 2025 Ameer Fahad Ali Khan. All rights reserved.