Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • pvm_pre_change.sql Oracle
  • Good notes on Oracle Events Oracle
  • Important Script Method for tuning Oracle
  • Find nth max and min. Oracle
  • SAN Linux/Unix
  • Remove duplicate rows from table Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • useful dg links Oracle
  • find_longsql.sql Oracle
  • tuning commmand for cpu, ip and memory stats Linux/Unix
  • find_idle_cpu.sql Oracle
  • get_aix_vmstat.ksh Oracle
  • How to know Number of CPUs on Sun Box Linux/Unix
  • Explain Plan Output 2 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

  • Rename Tablespace Oracle
  • Sample WW22 listener.ora Oracle
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • DBA_HIST_SQLSTAT contents Oracle
  • ORACLE_SID in sqlplus Oracle
  • Renaming Global Name GLOBAL_NAME Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • 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

  • 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
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • plan10g.sql Oracle
  • Oracle 11g Training on 29JAN1010 Oracle
  • Search and Replace vi editor command. Linux/Unix
  • Order by with ROWNUM Oracle
  • Proc Compilation Oracle
  • db_status.sql Oracle
  • send email from unix mailx with attachment. Linux/Unix
  • replace alphabets using sed Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme