Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to choose Driver table in SQL statement Oracle
  • CPU speed on solaris Linux/Unix
  • upload.html PHP/MYSQL/Wordpress
  • Find Plan Hash value fphv.sql Oracle
  • adding new line after specific pattern using sed Linux/Unix
  • Removing Blank lines from file using grep Linux/Unix
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • Monitor Long Running Job Oracle
  • Resolving RMAN Hung Jobs Oracle
  • fkwoind.sql fkwoindex.sql Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • USE_NL and INDEX hints example Oracle
  • oracle 11g RAC on vmware Oracle
  • Example of How To Resize the Online Redo Logfiles Note:1035935.6 Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 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

  • findinfo.sql (SQL for getting CPU and Active session info) Oracle
  • GSQ.sql Oracle
  • Proc Compilation Oracle
  • Example of How To Resize the Online Redo Logfiles Note:1035935.6 Oracle
  • how to find OS block size Oracle
  • Oracle Statspack survival Guide 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
  • arch_configUOCIOTTO.ora Oracle
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • Good Site for Oracle Internals Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • Establishing trusted relationship between dbmonitor( central monitoring) and monitoring targets. Linux/Unix
  • SAN Linux/Unix
  • Oracle Connections expire_time and firewall Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme