Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • DBMS_UTILITY PACKAGE Oracle
  • ORACLE_SID in sqlplus Oracle
  • Some OS level threshold for performance. Linux/Unix
  • Read CSV File using Python Python/PySpark
  • Sending email with file attachment. Linux/Unix
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • proc.sql Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • FGA Part-I Oracle
  • move_arch_files.ksh Linux/Unix
  • column level grant syntax Oracle
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • find_pk.sql /* Find Primary Key */ Oracle
  • run this before doing any dbchange pvm_pre_change.sql 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

  • USE_NL and INDEX hints example Oracle
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • DBMS_JOB all example Oracle
  • How do I get Oracle to automatically start when my server boots up? Oracle
  • OPENING A STANDBY DATABASE IN READ-ONLY MODE Oracle
  • Changing unix system clock when Oracle database is running. Oracle

Leave a Reply Cancel reply

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

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS Oracle
  • Export Import with QUERY Oracle
  • Index Range Scan Oracle
  • Caching sequence in Memory Oracle
  • find the files that are 1 day old. Linux/Unix
  • Find Plan Hash value fphv.sql Oracle
  • Optimizer_Index init.ora parameter explaination. Oracle
  • Jai Shree Ram PHP/MYSQL/Wordpress

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme