Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How does one overcome the Unix 2 Gig file limit? Linux/Unix
  • Rownum with Order by Oracle
  • fkwoindex.sql /* Find FK without Index */ Oracle
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • Search and Replace vi editor command. Linux/Unix
  • Jai Shree Ram Oracle
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • ORACLE_SID in sqlplus Oracle
  • get_vmstat_linux Oracle
  • currwait.sql Oracle
  • Caching sequence in Memory Oracle
  • Oracle Internal Good Websites 1 Oracle
  • Some useful Unix Commands Linux/Unix
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • v$event_name 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

  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • find_err.sql for finding errors from dba_errors. Oracle
  • Oracle Release Explaination Oracle
  • findobj.sql Oracle
  • UTL_FILE test program Oracle
  • v$backup.status information 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • 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

  • 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
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How to remove blank lines using vi editor command Linux/Unix
  • Example of How To Resize the Online Redo Logfiles Note:1035935.6 Oracle
  • note id 373303.1 Linux/Unix
  • TRUNCATE table and disabling referential constraints. Oracle
  • Histogram Overview Oracle
  • Proc code Oracle
  • Gathering statistics with DBMS_STATS Oracle
  • How does one overcome the Unix 2 Gig file limit? Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme