Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Unix split command to split files Linux/Unix
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • Pending Transaction Neighbors Script Oracle
  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle
  • Rename Oracle Instance Name Oracle
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • VIvek Encryption Package and Its Usage Oracle
  • To see mem usage and CPU usage system wide. Linux/Unix
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • How to collect CPU usage on Linux using Shell script Linux/Unix
  • Find_stale_dr.sql finding stale physical DR.. Oracle
  • checking redhat linux version Linux/Unix
  • Sort with ASCII order and Numeric Order Linux/Unix
  • Updated LCK.SQL file. Oracle
  • tar and untar a dolder with all its subfolder. Linux/Unix

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

  • Finding locked objects Oracle
  • Handling LOB data in Oracle Oracle
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • Rownum with Order by Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • create PLAN_TABLE command. 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 (387)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (336)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Add new columns in dataframe30-Sep-2023

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • ext#.sql Oracle
  • Removing first line Linux/Unix
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • CPU speed on Linux Linux/Unix
  • To see only files and/or folders using LS command Linux/Unix
  • Resolving RMAN Hung Jobs Oracle
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • Passing from Unix to PLSQL using bind variables Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme