Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • When error comes for temporary tablespace with version <= 9i Oracle
  • DBMS_STATS Metalinks Notes Oracle
  • sql_doing_fts.sql Oracle
  • Database link password in user_db_links Oracle
  • How to sort list of files on basis of their sizes. Linux/Unix
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • Kill a session dynanically using execute immediate Oracle
  • GSQ.sql Oracle
  • Explain Plan Output 2 Oracle
  • Find total file sizes Linux/Unix
  • age_alert.ksh aging out alert.log Linux/Unix
  • How to see which patches are applied. Oracle
  • Processes Parameter decision Oracle
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix

Year: 2009

Oracle 10g for solaris 10

Posted on 28-Oct-2009 By Admin No Comments on Oracle 10g for solaris 10

Oracle 10g for Solaris 10 I got error message “Checking operating system version: must be 5.8 or 5.9. Actual 5.10 Failed

Oracle, SQL scripts

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

Posts pagination

Previous 1 2 3 … 9 Next

Categories

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

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • get_aix_vmstat.ksh Oracle
  • TRUNCATE Privs Oracle
  • How to know Number of CPUs on Sun Box Linux/Unix
  • Proc code Oracle
  • Debugging Shell FIles Linux/Unix
  • temp_use.sql diplays usage of temp ts Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • Find average Row Length and other table size calculation. metalink notes Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme