Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Difference between SYNC and AFFIRM Oracle
  • UNderstand and eliminate Latch contention. Oracle
  • V$ROLLSTAT status is Full Oracle
  • default permission on ~/.ssh/authorized_keys2 or authorized_keys Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • switchlogfile.sh Linux/Unix
  • Backup and Recovery Scenarios Oracle
  • Rename Tablespace Oracle
  • tar and untar a dolder with all its subfolder. Linux/Unix
  • Creating never expiring DB user accounts in Oracle Oracle
  • plan10g.sql good Oracle
  • Jai Shree Ram Linux/Unix
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell Linux/Unix
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • Implementing Listener Security Oracle

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 operator;

Statement processed.

SVRMGR> GRANT dba TO operator;

Statement processed.

SVRMGR> GRANT sysoper TO operator;

Statement processed.

SVRMGR> CONNECT operator/operator

Connected.

SVRMGR> SELECT username FROM dba_users;

USERNAME

——————————

SYS

SYSTEM

OUTLN

SCOTT

OPERATOR

5 rows selected.

SVRMGR> connect operator/operator as sysoper

Connected.

SVRMGR> select * from dba_users;

select * from dba_users

*

ORA-00942: table or view does not exist

SVRMGR> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

SVRMGR> startup

ORACLE instance started.

Database mounted.

Database opened.

SVRMGR> CONNECT system/manager

Connected.

SVRMGR> GRANT select any table TO operator;

Statement processed.

SVRMGR> CONNECT operator/operator AS SYSOPER

Connected.

SVRMGR> SELECT * FROM DBA_USERS;

SELECT * FROM DBA_USERS

*

ORA-00942: table or view does not exist

Solution Description

~~~~~~~~~~~~~~~~~~~~

Grant the required privilege to the appropriate user.

SVRMGR> SELECT user FROM dual;

USER

——————————

PUBLIC

1 row selected.

SVRMGR> CONNECT system/manager

Connected.

SVRMGR> GRANT select any table TO PUBLIC;

Statement processed.

SVRMGR> CONNECT operator/operator AS SYSOPER

Connected.

SVRMGR> SELECT username FROM dba_users;

USERNAME

——————————

SYS

SYSTEM

OUTLN

SCOTT

OPERATOR

5 rows selected.

Explanation

~~~~~~~~~~~~

A user connected AS SYSOPER does not have the same set of privileges as if logged on as a “normal” user, and is no longer connected under the username he connected with.

Oracle, SQL scripts

Post navigation

Previous Post: Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT
Next Post: Important Solaris Commands

Related Posts

  • good note for shared pool tunnig Oracle
  • Renaming Global Name GLOBAL_NAME Oracle
  • Renaming the column name Oracle
  • Drop specific SQL plan baseline – spm Oracle
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • Difference between SYNC and AFFIRM 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
  • Updated LCK.SQL file. Oracle
  • create a folder in multiple places Linux/Unix
  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • Good Link from metalink 1 Oracle
  • find the files that are 1 day old. Linux/Unix
  • How can I tell if ASO is installed ? Oracle
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme