Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • find_pk.sql /* Find Primary Key */ Oracle
  • Optimizer_Index init.ora parameter explaination. Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • mutex in Oracle 10.2.0.2 or Oracle 10g Oracle
  • ORA-8031 issue and solution if it is occuring due to truncate. Oracle
  • Absolute file number and relative file number Oracle
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • how to find VIP from ifconfig Linux/Unix
  • Free conference number from http://www.freeconference.com Oracle
  • oracle 11g RAC on vmware Oracle
  • How to set Processes Parameter Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • Search and replace editor command in vi Linux/Unix

Year: 2023

Move WordPress site from one hosting service to other.

Posted on 06-Jun-202306-Jun-2023 By Admin No Comments on Move WordPress site from one hosting service to other.

We need to follow the steps below for moving website from one hosting provider to other hosting provider. At Source Hosting   Take backup of existing website. This will take complete backup of all your WP files plus SQL file for database.  The final backup file will be in “.tar.gz” format.  At Target Hosting Create the…

Read More “Move WordPress site from one hosting service to other.” »

PHP/MYSQL/Wordpress

How to hide author name in WordPress BLOG

Posted on 02-Jun-202304-Jun-2023 By Admin No Comments on How to hide author name in WordPress BLOG

Do you want to hide or remove the author name from your WordPress blog posts? Normally, blog posts are supposed to show author name with other meta-data like date and category. However, some blog owners may not want to display the author name next to their blog posts. By default, WordPress does not have an…

Read More “How to hide author name in WordPress BLOG” »

PHP/MYSQL/Wordpress

S3 Basic info

Posted on 30-May-202331-May-2023 By Admin No Comments on S3 Basic info

S3= simple storage service Object based storage. File size can be from 0 to 5TB. S3 provide object storage to store files, it does not provide block storage where you can install OS. Successful uploads generate HTTP 200 status code. You can turn on MFA delete. Files are stored in buckets, that’s another name of…

Read More “S3 Basic info” »

AWS

ENQ: KO – FAST OBJECT CHECKPOINT tips

Posted on 25-May-202325-May-2023 By Admin No Comments on ENQ: KO – FAST OBJECT CHECKPOINT tips

On reporting queries, there are too many “enq: KO – fast object checkpoint” wait event. All reporting queries are doing full table scans concurrently. Oracle uses direct path reads instead of db file scattered reads. And direct path reads require a checkpoint “_serial_direct_read”=NEVER Parameter Session Value Instance Value ————————————————– —————————— —————————— _serial_direct_read auto auto

Oracle

GSQ.sql

Posted on 19-May-202325-May-2023 By Admin No Comments on GSQ.sql

This SQL will be used to identify SQL details of given Session. You need to pass SID and INSTANCE_ID as INPUT. This query will provide session details, SQL_ID, SQL_EXEC_START time and other transaction level details. set echo off feedback off verify offcol Transaction_id format a20col username format a8col days format 99.99col hours1 format 999999col TX_HRS…

Read More “GSQ.sql” »

Oracle, SQL scripts

PHP code to add WordPress posts in bulk programmatically

Posted on 17-May-202303-Jun-2023 By Admin No Comments on PHP code to add WordPress posts in bulk programmatically

Following code will be used for adding multiple entries to <?php // This is needed to use WP functions. require_once(‘../wp-load.php’); //echo “%%%%”. preg_replace(“/:/”, ” “, “21-Dec-2010:10:37:27”, 1); // Category tables are // wp_terms here term_id will present category_id, // wp_term_relationship show relationships with posts. // wp_term_taxonomy-for total post count // 4= oracle, 10-sqlscripts // Read…

Read More “PHP code to add WordPress posts in bulk programmatically” »

PHP/MYSQL/Wordpress

DBA_HIST_SQLSTAT contents

Posted on 10-May-202310-May-2023 By Admin No Comments on DBA_HIST_SQLSTAT contents

Query DBA_HIST_WR_CONTROL to see the interval, retention and the TOPNSQL setting.  For TOPNSQL a setting of DEFAULT translates to: 30 where statistics_level is typical 100 where statistics_level is all Simply because this one SQL appears to consume 7% of the load it may not be in the top SQLs in these categories: Elapsed Time CPU…

Read More “DBA_HIST_SQLSTAT contents” »

Oracle

Find_planinfo.sql

Posted on 08-Apr-202322-Apr-2025 By Admin No Comments on Find_planinfo.sql

/********************************************Author: Paresh MehtaScript Name : find_planinfo.sql********************************************/set lines 200set pages 500set echo offcol execs for 999,999,999col avg_etime for 999,999.999col avg_lio for 999,999,999.9col begin_interval_time for a30col node for 99999col plan_hash_value format 99999999999999col sql_profile format a30col intrvl format a29col component format a20alter session set nls_date_format=’DD-MON-RRRR:HH24:MI:SS’;–break on plan_hash_value,sql_profile on startup_time skip 1accept v_sql_id prompt ‘Enter SQL_ID ->’select s.instance_number, to_char(begin_interval_time,’DD-MON:HH24:MI’)…

Read More “Find_planinfo.sql” »

Oracle, SQL scripts

Wait.sql

Posted on 04-Apr-202322-Apr-2025 By Admin No Comments on Wait.sql

/********************************************Author: Paresh MehtaScript Name : waitt.sqlwaits order by sql start time********************************************/set feedback 1set pages 2000set lines 190column event format a45column machin format a12column modul format a10column prg format a10column osuser1 format a10column username format a10column sesinfo format a15column blockedby format a15alter session set nls_date_format=’DDMONRR:HH24:MI:SS’;select /*+ first_rows(100) */ a.sid || ‘,’ || a.serial# || ‘,@’ ||…

Read More “Wait.sql” »

Oracle, SQL scripts

Posts pagination

Previous 1 2

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
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • JSON/XML Types in Oracle Oracle
  • Transfer SQL Profiles from One database to other database. Oracle
  • Optimizer SORT Operations Oracle
  • Free conference number from http://www.freeconference.com Oracle
  • USER_TABLES.Freelists Oracle
  • Move WordPress site from one hosting service to other. PHP/MYSQL/Wordpress
  • Oracle 10g Installation/Applying Patches Tips Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme