Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Oracle Statspack survival Guide Oracle
  • useful dg links Oracle
  • Free conference number from http://www.freeconference.com Oracle
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • get_aix_vmstat.ksh Oracle
  • Rollback force for distributed transactions Oracle
  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • Creating never expiring DB user accounts in Oracle Oracle
  • Oracle Data Direct to TAPE Oracle
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • Unix command for system configuration Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • All About Trace Fils Oracle

Category: Oracle

dbms_job.submit example

Posted on 21-Jan-2009 By Admin No Comments on dbms_job.submit example

VARIABLE jobno NUMBER BEGIN DBMS_JOB.SUBMIT(:jobno, ‘DBMS_DDL.ANALYZE_OBJECT(”TABLE”, ”HR”, ”EMPLOYEES”, ”ESTIMATE”, NULL, 50);’, SYSDATE, ‘SYSDATE + 1’); COMMIT; END; / PRINT jobno JOBNO ———- 14144

Oracle, SQL scripts

Find_stale_dr.sql finding stale physical DR..

Posted on 19-Jan-2009 By Admin No Comments on Find_stale_dr.sql finding stale physical DR..

col name format a50 col UNRECOVERABLE_CHANGE# format 999999999999999999999 col dt1 format a30 set lines 120 pages 200 SELECT NAME, UNRECOVERABLE_CHANGE#, TO_CHAR (UNRECOVERABLE_TIME,’DD-MON-YYYY HH:MI:SS’) dt1 FROM V$DATAFILE WHERE UNRECOVERABLE_CHANGE# != 0;

Oracle, SQL scripts

Find Stale DR Physical Standby

Posted on 19-Jan-2009 By Admin No Comments on Find Stale DR Physical Standby

col name format a50 col UNRECOVERABLE_CHANGE# format 999999999999999999999 col dt1 format a30 set lines 120 pages 200 SELECT NAME, UNRECOVERABLE_CHANGE#, TO_CHAR (UNRECOVERABLE_TIME,’DD-MON-YYYY HH:MI:SS’) dt1 FROM V$DATAFILE WHERE UNRECOVERABLE_CHANGE# != 0;

Oracle, rman-dataguard

Oracle 11g RAC on OEL 5 and Vmware 2

Posted on 11-Jan-2009 By Admin No Comments on Oracle 11g RAC on OEL 5 and Vmware 2

http://www.oracle-base.com/articles/11g/OracleDB11gR1RACInstallationOnOEL5UsingVMwareServer2.php

Oracle, RAC

Sequence Resetting

Posted on 09-Jan-2009 By Admin No Comments on Sequence Resetting

—————— CS Sequences maintenance——————- column last_number format 9999999999999999 select * from user_sequences where sequence_name in (‘UOC_ORDER_SEQ_ID’); select 2300000000 – CurrVAl – 20 LAST_NUMBER from dual; alter sequence UOC_ORDER_SEQ_ID increment by NOCACHE; Increment Once. select UOC_ORDER_SEQ_ID.nextval from dual; Confirm Value comes to 2300000000. After that alter sequence UOC_ORDER_SEQ_ID increment by 1 NOCACHE; alter sequence UOC_ORDER_SEQ_ID maxvalue…

Read More “Sequence Resetting” »

Oracle, SQL scripts

DBMS_SQL for alter session.

Posted on 07-Jan-2009 By Admin No Comments on DBMS_SQL for alter session.

SQL> SQL> CREATE OR REPLACE PROCEDURE AlterSession( 2 p_SessionString IN VARCHAR2) AS 3 4 v_CursorID INTEGER; 5 v_Dummy INTEGER; 6 BEGIN 7 v_CursorID := DBMS_SQL.OPEN_CURSOR; 8 9 DBMS_SQL.PARSE(v_CursorID, p_SessionString, DBMS_SQL.NATIVE); 10 v_Dummy := DBMS_SQL.EXECUTE(v_CursorID); 11 END AlterSession; 12 / Procedure created. SQL> SQL> column sysdate format a30 SQL> SELECT SYSDATE FROM dual; SYSDATE —————————— Jun…

Read More “DBMS_SQL for alter session.” »

Oracle, SQL scripts

get_vmstat_linux

Posted on 06-Jan-2009 By Admin No Comments on get_vmstat_linux

CREATE TABLE STATSUSER.STATS$TOTALUSERS ( MEASURED_DATE DATE, TOTAL_USERS NUMBER, ACTIVE_USERS NUMBER, UOCWEBSPHERE_USERS NUMBER, UOCSCRIPTS_USERS NUMBER ); CREATE TABLE STATSUSER.STATS$USERSESSIONS ( START_DATE DATE, SYSTEM_SESSIONS NUMBER, ACTIVE_USERS NUMBER, INACTIVE_USERS NUMBER, DEDICATED_SERVERS NUMBER, USER_SESSIONS NUMBER, TRANSACTIONS NUMBER ); CREATE INDEX STATSUSER.STATS$USERSESSIONS_STDTE_I ON STATSUSER.STATS$USERSESSIONS (START_DATE); /* Following procedure and shell program is for Solaris */ #!/bin/ksh # This is the…

Read More “get_vmstat_linux” »

Oracle, SQL scripts

get_vmstat_solaris

Posted on 06-Jan-2009 By Admin No Comments on get_vmstat_solaris

CREATE TABLE STATSUSER.STATS$TOTALUSERS ( MEASURED_DATE DATE, TOTAL_USERS NUMBER, ACTIVE_USERS NUMBER, UOCWEBSPHERE_USERS NUMBER, UOCSCRIPTS_USERS NUMBER ); CREATE TABLE STATSUSER.STATS$USERSESSIONS ( START_DATE DATE, SYSTEM_SESSIONS NUMBER, ACTIVE_USERS NUMBER, INACTIVE_USERS NUMBER, DEDICATED_SERVERS NUMBER, USER_SESSIONS NUMBER, TRANSACTIONS NUMBER ); CREATE INDEX STATSUSER.STATS$USERSESSIONS_STDTE_I ON STATSUSER.STATS$USERSESSIONS (START_DATE); /* Following procedure and shell program is for Solaris */ CREATE OR REPLACE PROCEDURE STATSUSER.vmstat3…

Read More “get_vmstat_solaris” »

Oracle, SQL scripts

moving lob object to other tablespace lob_mvmt.sql

Posted on 05-Jan-2009 By Admin No Comments on moving lob object to other tablespace lob_mvmt.sql

set lines 132 set pagesize 3000 spool lob_mvmt select ‘alter table ‘ || table_name || ‘ move lob(‘|| column_name || ‘) store as ( tablespace pnet_data ) ;’ from user_tab_columns where data_type like ‘%LOB%’; spool off

Oracle, SQL scripts

This is from Temi

Posted on 05-Jan-2009 By Admin No Comments on This is from Temi

Hello Buddy

Oracle, rman-dataguard

Posts pagination

Previous 1 … 11 12 13 … 40 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
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • create trigger syntax Oracle
  • Virtual Indexes in Oracle Oracle
  • sid_wise_sql.sql Further explaination Oracle
  • find_log_switch.sql Find log switches in graphical manner Oracle
  • Difference between SYNC and AFFIRM Oracle
  • Absolute file number and relative file number Oracle
  • Optimizer_Index init.ora parameter explaination. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme