Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • restarting network in linux Linux/Unix
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • Kernel Parameters for Solaris Linux/Unix
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • Deleting first line and lastline of a file using sed Linux/Unix
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • Oracle Data Direct to TAPE Oracle
  • VIvek Encryption Package and Its Usage Oracle
  • how to find VIP from ifconfig Linux/Unix
  • Sequence Resetting Oracle
  • PLSQL Table Syntax 2 Oracle
  • Find Plan Hash value fphv.sql Oracle
  • Oracle Internal Good Websites 1 Oracle
  • Renaming Oracle Instance Name Oracle
  • Space padding in korn shell Linux/Unix

Category: SQL scripts

Updated LCK.SQL file.

Posted on 13-Oct-2005 By Admin No Comments on Updated LCK.SQL file.

select c.sid, c.serial#, f.spid as osprocess, c.username, a.object_id, b.object_name, c.program, c.status, d.name, c.osuser, e.sql_text, DBMS_ROWID.ROWID_CREATE(1, c.ROW_WAIT_OBJ#, c.ROW_WAIT_FILE#, c.ROW_WAIT_BLOCK#, c.ROW_WAIT_ROW# ) locked_rowid from v$Locked_object a, All_objects b, v$session c, audit_actions d, v$sqlarea e, v$process f where a.object_id=b.data_object_id and a.session_id =c.sid(+) and c.command=d.action and c.row_wait_obj# != -1 and c.sql_id=e.sql_id and c.paddr = f.addr;

Oracle, SQL scripts

Building Our Own Namespaces with “Create Context”

Posted on 11-Oct-2005 By Admin No Comments on Building Our Own Namespaces with “Create Context”

************************************** **** Building Our Own Namespaces ***** ************************************** The USERENV namespace does store extensive information, but the power of SYS_CONTEXT does not stop there. You can also create secured namespaces and store context in them for retrieval within a session or across the instance. For example, if I create a new namespace via the CREATE…

Read More “Building Our Own Namespaces with “Create Context”” »

Oracle, SQL scripts

Roles and Stored Object behaviour

Posted on 10-Oct-2005 By Admin No Comments on Roles and Stored Object behaviour

Note : 1011899.6 – Roles and Creating Stored Objects / Views Note : 180028.1 – Set up a Secure Access to Application Data within a Database: DBAs, Schemas and Users.

Oracle, SQL scripts

Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds)

Posted on 29-Sep-2005 By Admin No Comments on Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds)

========================= Test case On 29-SEP-2005 ========================= Original Statement: INSERT INTO pvm SELECT * FROM pvm1; Source table : pvm1 has 2.3 million rows. If statement executes normally it will take long time to execute. So i modified following statement and 2.3 Million rows processed in Approx 30 seconds. 10:39:11 CIF@CIF:-> set feedback 1 10:39:11 CIF@CIF:->…

Read More “Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds)” »

Oracle, SQL scripts

Oracle 10g Installation/Applying Patches Tips

Posted on 28-Sep-2005 By Admin No Comments on Oracle 10g Installation/Applying Patches Tips

*******Oracle 10g Installation ******* On 27-Sep-2005****** (1) *** Warning During Oracle 10.1.0.2 installation **** Checking security kernel parameters Checking for noexec_user_stack=1; found Not found. Failed

Oracle, SQL scripts

SYSOPER Mystery

Posted on 26-Sep-2005 By Admin No Comments on SYSOPER Mystery

Problem Description ~~~~~~~~~~~~~~~~~~~ A user connected AS SYSOPER can only STARTUP and SHUTDOWN the database, but cannot select any data from the dictionary, nor perform any other operations on the database. If you grant the appropriate privilege required to the OPERATOR user, it still does not work. Example: ~~~~~~~~ SVRMGR> CREATE USER operator IDENTIFIED BY…

Read More “SYSOPER Mystery” »

Oracle, SQL scripts

Set Role explaination.

Posted on 23-Sep-2005 By Admin No Comments on Set Role explaination.

“Set Role” statement. ( Remember : It affects current session only ) Use the SET ROLE statement to enable and disable roles for your current session. This statement will be useful when you want to give special privilege to specific user for a specific period of time. When a user logs on, Oracle Database enables…

Read More “Set Role explaination.” »

Oracle, SQL scripts

online_bkup.sql

Posted on 15-Sep-2005 By Admin No Comments on online_bkup.sql

set serveroutput on execute dbms_output.enable(20000); declare cursor c1 is select distinct tablespace_name from dba_data_files order by tablespace_name; cursor c4 is select member from v$logfile order by member; staging_copy_area varchar2(100) := ‘10.201.43.51:/uocdb1/oradata/UOC’; begin for cur in c1 loop dbms_output.put_line (‘alter tablespace ‘ || cur.tablespace_name || ‘ begin backup;’); declare cursor c2 is select file_name from dba_data_files…

Read More “online_bkup.sql” »

Oracle, SQL scripts

Global Unique Identifier Generation in Oracle 9.2 SYS_GUID()

Posted on 12-Sep-2005 By Admin No Comments on Global Unique Identifier Generation in Oracle 9.2 SYS_GUID()

SYS_GUID generates and returns a globally unique identifier (RAW value) made up of 16 bytes. On most platforms, the generated identifier consists of a host identifier and a process or thread identifier of the process or thread invoking the function, and a nonrepeating value (sequence of bytes) for that process or thread. The following example…

Read More “Global Unique Identifier Generation in Oracle 9.2 SYS_GUID()” »

Oracle, SQL scripts

How to Modify the statistics collection by MMON for AWR repository

Posted on 06-Sep-2005 By Admin No Comments on How to Modify the statistics collection by MMON for AWR repository

From 10g onwards the MMON process wakes up by default every hour and does statistics collection for AWR (Automatic Workload Repository). 10g provides the following procedure for modify this statistics collection routine: DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS(( retention IN NUMBER DEFAULT NULL, interval IN NUMBER DEFAULT NULL, dbid IN NUMBER DEFAULT NULL); This example changes the interval setting to…

Read More “How to Modify the statistics collection by MMON for AWR repository” »

Oracle, SQL scripts

Posts pagination

Previous 1 … 27 28 29 … 35 Next

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • currwait.sql Oracle
  • UNderstand and eliminate Latch contention. Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • For Perl DBI installation and testing program PHP/MYSQL/Wordpress
  • v$backup.status information Oracle
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell Linux/Unix
  • Proc Compilation Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme