Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to calculate PROCESSES parameter Oracle
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated Oracle
  • oracle Dba site Oracle
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • upload.html PHP/MYSQL/Wordpress
  • Create type and Grant on it. Oracle
  • create user with unlimited quota Oracle
  • How to choose Driver table in SQL statement Oracle
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle
  • sess1.sql Oracle
  • handling filenname with space Linux/Unix
  • Find all users who have DML privileges Oracle

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 all privileges granted explicitly to the user and all privileges in the user’s default roles. During the session, the user or an application can use the SET ROLE statement any number of times to change the roles currently enabled for the session.

You can see which roles are currently enabled by examining the SESSION_ROLES data dictionary view.

Oracle, SQL scripts

Post navigation

Previous Post: online_bkup.sql
Next Post: Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT

Related Posts

  • create database link syntax Oracle
  • My Test Case On 21-OCT-2005 Oracle
  • find_idle_cpu.sql Oracle
  • Parallel DML Oracle
  • Absolute file number and relative file number Oracle
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

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

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • sess1.sql Oracle
  • find_open_cur.sql Find open cursorts per session Oracle
  • Check Oracle installed products using one command Oracle
  • v$backup.status information Oracle
  • Oracle 10g Wait Model Oracle
  • Proc code Oracle
  • Jai Shree Ram Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme