Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • DBMS_JOB all example Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • note id 373303.1 Linux/Unix
  • Find nth max and min. Oracle
  • age_alert.ksh aging out alert.log Linux/Unix
  • Python class import from different folders Python/PySpark
  • eplan.sql Oracle
  • Identical Dblink Issue… Oracle
  • 10g oem configuration Oracle
  • move_arch_files.ksh Linux/Unix
  • Unix split command to split files Linux/Unix
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • sess1.sql Oracle

get_vmstat.ksh

Posted on 23-Nov-2005 By Admin No Comments on get_vmstat.ksh

select a.measured_date, a.total_users, a.active_users, b.user_cpu, b.system_cpu, b.idle_cpu, b.wait_cpu from stats$totalusers a, stats$vmstat2 b where a.measured_date = b.start_date and to_char(measured_date,’DD-MON-YY’)=’22-NOV-05′ and to_char(measured_date,’HH24′) > ’14’ and to_char(measured_date,’HH24′) < '19' order by measured_date desc Script that populates stats$vmstat2 table is dbblkabva01:/export/home/oracle/oraprocs/get_vmstat2.ksh ——– vmstats.ksh ————- #!/bin/ksh # First, we must set the environment . . . . ORACLE_SID=BLINKT export...

Read More “get_vmstat.ksh” »

Linux/Unix, shell

DBMS_UTILITY PACKAGE

Posted on 18-Nov-2005 By Admin No Comments on DBMS_UTILITY PACKAGE

DBMS_UTILITY Oracle provides two procedures under the DBMS_UTILITY package related to statistics generation. (Oracle recommends use of DBMS_STATS package for generating statistics). DBMS_UTILITY.ANALYZE_SCHEMA This routine will generate statistics on an individual schema level. It is used for analyzing all tables, clusters and indexes. It takes the following parameters: schema – Name of the schema method…

Read More “DBMS_UTILITY PACKAGE” »

Oracle, SQL scripts

DBMS_UTILITY.ANALYZE_SCHEMA

Posted on 18-Nov-2005 By Admin No Comments on DBMS_UTILITY.ANALYZE_SCHEMA

10:17:18 SYS@WEBP:-> execute dbms_utility.analyze_schema(‘CS’, ‘COMPUTE’, NULL, NULL, NULL);

Oracle, SQL scripts

Gathering statistics with DBMS_STATS

Posted on 18-Nov-2005 By Admin No Comments on Gathering statistics with DBMS_STATS

———————————————- Gathering statistics with DBMS_STATS ———————————————- DBMS_STATS.GATHER_TABLE_STATS DBMS_STATS.GATHER_TABLE_STATS gathers statistics for a table and its columns, and optionally the associated indexes. Call syntax dbms_stats.gather_table_stats(ownname, tabname, partname, estimate_percent, block_sample, method_opt, degree, granularity, cascade, stattab, statid, statown); The first two parameters are mandatory, the rest are defaulted to a value. ownname – owner tabname – table name…

Read More “Gathering statistics with DBMS_STATS” »

Oracle, SQL scripts

VIvek Encryption Package and Its Usage

Posted on 18-Nov-2005 By Admin No Comments on VIvek Encryption Package and Its Usage

create or replace package subs_cipher is function scramble ( obfs_in varchar2 ) return varchar2; — pragma not required as of 8.1.5 pragma restrict_references( scramble, wnds, wnps, wnps); function unscramble ( obfs_in varchar2 ) return varchar2; — pragma not required as of 8.1.5 pragma restrict_references( unscramble, wnds, rnds, wnps ); end; create or replace package body…

Read More “VIvek Encryption Package and Its Usage” »

Oracle, SQL scripts

create database link syntax

Posted on 14-Nov-2005 By Admin No Comments on create database link syntax

In the following statement, user hr on the remote database defines a fixed-user database link named local to the hr schema on the local database: CREATE DATABASE LINK local CONNECT TO hr IDENTIFIED BY hr USING ‘local’;

Oracle, SQL scripts

Adding or Dropping Online Redo Log Files When Physical Standby in place

Posted on 09-Nov-2005 By Admin No Comments on Adding or Dropping Online Redo Log Files When Physical Standby in place

Changing the size and number of the online redo log files is sometimes done to tune the database. You can add online redo log file groups or members to the primary database without affecting the standby database. Similarly, you can drop log file groups or members from the primary database without affecting your standby database….

Read More “Adding or Dropping Online Redo Log Files When Physical Standby in place” »

Oracle, rman-dataguard

Example of How To Resize the Online Redo Logfiles Note:1035935.6

Posted on 09-Nov-2005 By Admin No Comments on Example of How To Resize the Online Redo Logfiles Note:1035935.6

EXAMPLE OF HOW TO RESIZE THE ONLINE REDO LOGS: ============================================== Often times the online redo logs are sized too small causing database performance problems. The following is an example of how to resize the online log groups: 1. First see the size of the current logs: SVRMGR> connect internal (with 9i/10g use SQL> connect /…

Read More “Example of How To Resize the Online Redo Logfiles Note:1035935.6” »

Oracle, rman-dataguard

Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1

Posted on 09-Nov-2005 By Admin No Comments on Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1

Purpose: ======== The purpose of this article is to describe the behavior of the standby database when one or more datafiles on the primary database are resized. Standby Database Behavior When a Datafile is Resized on the Primary Database: ============================================================================= On the primary database the initial size of the datafile is 113246208. You decide to…

Read More “Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1” »

Oracle, rman-dataguard

AWR settings- MMON is not taking snapshot.

Posted on 07-Nov-2005 By Admin No Comments on AWR settings- MMON is not taking snapshot.

POTENTIAL SOLUTION(S) for AWR Snapshot Error ============================================ (*) To take the snapshots we need to populate WRM$_SNAPSHOT table successfully and for that instance metadata should be present in WRM$_DATABASE_INSTANCE. (*) To regenerate the AWR objects run catnoawr.sql and catawr.sql scripts from $ORACLE_HOME/rdbms/admin (*) Then RESTART the database So, if we have regenerated the AWR objects…

Read More “AWR settings- MMON is not taking snapshot.” »

Oracle, SQL scripts

Posts pagination

Previous 1 … 42 43 44 … 56 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
  • Find long Running Transaction Linux/Unix
  • upload.html PHP/MYSQL/Wordpress
  • To see only files and/or folders using LS command Linux/Unix
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • How does one overcome the Unix 2 Gig file limit? Linux/Unix
  • Deleting first line and lastline of a file using sed Linux/Unix
  • USER_TABLES.Freelists Oracle
  • How to see which patches are applied. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme