Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Find_stale_dr.sql finding stale physical DR.. Oracle
  • switchover for primary database Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • Check Oracle installed products using one command Oracle
  • Multiple listeners Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • cp_filesystem.sql Oracle
  • Oracle Data Direct to TAPE Oracle
  • purge_trc.sh Linux/Unix
  • CPU Core related projections AWS
  • move_arch_files.ksh Linux/Unix
  • For Search and replace unix command. Linux/Unix
  • Removing Blank lines from file using grep Linux/Unix
  • initUOCIOTTO.ora Oracle
  • Generating XML from SQLPLUS Oracle

Year: 2005

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

Changing the Global Database Name

Posted on 07-Nov-2005 By Admin No Comments on Changing the Global Database Name

Changing the Global Database Name: Example The following statement changes the global name of the database and includes both the database name and domain: ALTER DATABASE RENAME GLOBAL_NAME TO demo.world.oracle.com;

Oracle, SQL scripts

Posts pagination

Previous 1 2 3 4 … 16 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
  • arch_configUOCIOTTO.ora Oracle
  • sid_wise_sql.sql Oracle
  • chk_space_SID.ksh Linux/Unix
  • create database link syntax Oracle
  • scp with ssh2 Linux/Unix
  • reset Sequence Oracle
  • Unix command for system configuration Linux/Unix
  • Find All internal Parameters Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme