Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • FGA Part-I Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • Oracle 10g Wait Model Oracle
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • Drop database in Oracle 10g Oracle
  • Implementing Listener Security Oracle
  • Find Stale DR Physical Standby Oracle
  • Follwoing korn shell is used to move files from source folder to destination folder and gzip it in destination folder. mv_iotto.ksh Linux/Unix
  • Unix split command to split files Linux/Unix
  • ORA-3136 Oracle
  • How to find where datafile is created dbf_info.sql Oracle
  • Adding a new disk and mount it automatically. on VMWARE LINUX Linux/Unix
  • How to choose Driver table in SQL statement Oracle
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • Rman Notes -1 Oracle

Error Handling in Proc

Posted on 21-Oct-2009 By Admin No Comments on Error Handling in Proc

There is a standard way of trapping any SQL or database errors in Pro*C.This is done using EXEC SQL WHENEVER SQLERROR DO ; just ensure that the above statement goes before any sql statements whenever an error is encountered , the control goes to the function function_name in the body of the function_name , just…

Read More “Error Handling in Proc” »

Oracle, SQL scripts

Proc code

Posted on 21-Oct-2009 By Admin No Comments on Proc code

1. EXEC SQL COMMIT WORK RELEASE; (When you want to commit transactions and disconnect;similar to EXIT in SQL*PLUS) 2. EXEC SQL ROLLBACK WORK RELEASE; (When you want to rollback transactions and disconnect;similar to QUIT in SQL*PLUS)

Oracle, SQL scripts

Removing Ctrl-M from end of line using vi

Posted on 11-Oct-2009 By Admin No Comments on Removing Ctrl-M from end of line using vi

ou can remove the ^M by doing the following: Bring the datafile into the Unix editor vi. In command mode you would type in: :1,$s/^V^M// Make sure you are entering ‘control V’ and ‘control M’. The ‘control V’ says to accept the next character exactly as I type it. Adding the two slashes at the…

Read More “Removing Ctrl-M from end of line using vi” »

Linux/Unix, shell

replacing ^M character when passing files from Windows to Unix

Posted on 30-Sep-2009 By Admin No Comments on replacing ^M character when passing files from Windows to Unix

To replace the ^M ‘s on the screen in vi type :1, $ s/r/

Linux/Unix, shell

To see how much time or progress of long transaction

Posted on 30-Sep-2009 By Admin No Comments on To see how much time or progress of long transaction

select * from v$session_longops where sid=100;

Oracle, SQL scripts

cp_filesystem.sql

Posted on 15-Sep-2009 By Admin No Comments on cp_filesystem.sql

exec dbms_output.enable(10000); set lines 130 pages 1000 set serveroutput on size 1000000 declare cursor c1 is select substr(name,1,61) complete_filename, bytes/(1024) KB, substr(name, instr(name, ‘/’, -1)+1) only_filename from v$datafile order by file#; threshold_kb number(10) := 94000000 ; size_counter number := 0; mountpoint_counter number := 1; mountpoint_prefix varchar2(10) := ‘/800t’; common_mountpoint_prefix varchar2(15) := ‘/oradata/800T/’; target_filename varchar2(61); begin…

Read More “cp_filesystem.sql” »

Oracle, SQL scripts

Caching sequence in Memory

Posted on 14-Sep-2009 By Admin No Comments on Caching sequence in Memory

ALTER SEQUENCE CS.SESSION_ACTIVE_SEQ_ID CACHE 2000; exec sys.DBMS_SHARED_POOL.KEEP(‘CS.SESSION_ACTIVE_SEQ_ID ‘, ‘Q’) =>> To pin the sequence using the DMBS_SHARED_POOL.KEEP procedure (IF NEEDED) Potential drawbacks Setting a cache size larger then 0 can result in the loss of sequence values if the system is shutdown abruptly. When the system fails, the values that were preserved in memory are…

Read More “Caching sequence in Memory” »

Oracle, SQL scripts

Remove DOS CR/LFs (^M)

Posted on 11-Sep-2009 By Admin No Comments on Remove DOS CR/LFs (^M)

Remove DOS style CR/LF characters (^M) from UNIX files using: sed -e ‘s/^M$//’ filename > tempfile The newly created tempfile should have the ^M character removed

Linux/Unix, shell

RMAN : Consistent Backup, Restore and Recovery using RMAN

Posted on 09-Sep-2009 By Admin No Comments on RMAN : Consistent Backup, Restore and Recovery using RMAN

Subject: RMAN : Consistent Backup, Restore and Recovery using RMAN Doc ID: 162855.1 Oracle9i Lab 1 Consistent Backup, Restore and Recovery using RMAN In Oracle9i, Recovery Manager still works the same as in 8 and 8i with enhancements for ease of use and manageability. Using the updateable persistent configuration options, backing up the database is…

Read More “RMAN : Consistent Backup, Restore and Recovery using RMAN” »

Oracle, rman-dataguard

Backup and Recovery Scenarios

Posted on 09-Sep-2009 By Admin No Comments on Backup and Recovery Scenarios

Backup and Recovery Scenarios Doc ID: 94114.1 In this Document Purpose Last Review Date Instructions for the Reader Troubleshooting Details BACKUP SCENARIOS a) Consistent backups b) Inconsistent backups c) Database Archive mode d) Backup Methods e) Incremental backups f) Support scenarios RECOVERY SCENARIOS 1. Online Block Recovery. 2. Thread Recovery. 3. Media Recovery. Media Failure…

Read More “Backup and Recovery Scenarios” »

Oracle, rman-dataguard

Posts pagination

Previous 1 … 11 12 13 … 57 Next

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Find All internal Parameters Oracle
  • Committing distributed transaction using commit force Oracle
  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • Implementation of key based authentications Linux/Unix
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • Running select from V$ views from remote server Linux/Unix
  • Absolute file number and relative file number Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme