Skip to content
  • About
Search
Close

Geodata Master

Oracle Database Technical Articles & GeoSpatial Data Technology

Tag: Oracle account without authentication

Oracle 18c New Feature: Schema Only Accounts

November 9, 2018June 4, 2019 arcsdegeo6 Comments

In Oracle 18c a new security feature is introduced called “Schema Only Accounts” , this feature will enable you to create a schema account without authentication. This is a great feature, in previous releases schema account is a highly privileged account that can perform “anything” within the database objects stored in the schema. To clarify, simply using schema account you have the power to “turn auditing off” which is a serious security issue.

To illustrate this new feature:

In a pluggable database called PDB_ORIGIN I will create a schema only account:

SQL> CREATE USER SPECIAL_SCHEMA NO AUTHENTICATION

DEFAULT TABLESPACE TS_SPECIAL_SCHEMA

TEMPORARY TABLESPACE TEMP;

SQL> alter user SPECIAL_SCHEMA quota unlimited on TS_SPECIAL_SCHEMA;

 

Picture1

Its worth mentioning that you can alert existing database accounts:

SQL> ALTER USER demo NO AUTHENTICATION;

Picture2

To connect to the schema only account SPECIAL_SCHEMA you need configure proxy setup:

SQL> ALTER USER SPECIAL_SCHEMA GRANT CONNECT THROUGH EMAD;

Picture3

Connecting using easy connect, will throw an error that special_schema account lacks create session !

CONN emad[SPECIAL_SCHEMA]/emad_18c@//localhost:1521/pdb_origin

Picture4

SQL> grant create session to SPECIAL_SCHEMA;

 

Picture5

I will also grant SPECIAL_SCHEMA the “resource” role so I can start creating objects:

SQL> grant resource to SPECIAL_SCHEMA;

SQL> alter user SPECIAL_SCHEMA default role all;

Picture6

Picture8

Querying dba_audit_trail to find all actions performed through SPECIAL_SCHEMA account:

SQL> select USERNAME,OWNER,action_name,SQL_TEXT,current_user from dba_audit_trail where OWNER=’SPECIAL_SCHEMA’;

 

Picture9

SQL> select * from proxy_users where PROXY=’EMAD’;

Picture10

To find the list of schema-only accounts in your database:

SQL> select * from dba_users where authentication_type=’NONE’;

 

 

 

 

 

 

 

 

 

 

 

 

 

Blog Stats

  • 653,164 hits

Recent Posts

  • How to View/List All ORA-XXXX Errors in your Oracle Database System
  • Oracle Database Immutable Tables
  • Oracle datapump error ORA-39077: unable to subscribe agent KUPC$A_1_083325450472000
  • Oracle 19c Upgrade Error ORA-00119: invalid specification for system parameter DISPATCHERS
  • Oracle 21c New Feature in SQL*Plus – set jsonprint
Follow Geodata Master on WordPress.com

Top Posts & Pages

  • Oracle Database Product Life Cycle Support 19c,18c, 12cR2 Long Term & Innovation Releases !
  • RMAN List Backup Summary command
  • location of Oracle SQL Developer Connections File
  • Performing Import Data Pump with EXCLUDE=STATISTICS
  • set define off and '&' in your SQL Code
  • Oracle PDB and when is DAPTATCH required to be executed
  • Oracle 19c (19.12) has introduced New Security Feature “Gradual Database Password Rollover”
  • ora-28031 maximum of 148 enabled roles exceeded
  • ORA-04063: package body "SYS.DBMS_DATAPUMP" has errors ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_DATAPUMP" ORA-06512: at line 6
  • ORA-31633: unable to create master table while performing expdp operation

Archives

  • June 2022
  • May 2022
  • March 2022
  • February 2022
  • January 2022
  • October 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • April 2020
  • March 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • April 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013

Recent Comments

Oracle Database Immu… on Oracle Database 19c Blockchain…
Rajesh on Oracle Database java component…
Oracle database Unif… on Exploring Oracle 12c Unified…
Bud on Oracle 21c New Feature in SQL*…
ChenAIQ on datapatch errors while Patchin…

Search in my blog

Follow Geodata Master on WordPress.com

Top Posts & Pages

  • Oracle Database Product Life Cycle Support 19c,18c, 12cR2 Long Term & Innovation Releases !
  • RMAN List Backup Summary command
  • location of Oracle SQL Developer Connections File
  • Performing Import Data Pump with EXCLUDE=STATISTICS
  • set define off and '&' in your SQL Code
  • Oracle PDB and when is DAPTATCH required to be executed
  • Oracle 19c (19.12) has introduced New Security Feature “Gradual Database Password Rollover”
  • ora-28031 maximum of 148 enabled roles exceeded
  • ORA-04063: package body "SYS.DBMS_DATAPUMP" has errors ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_DATAPUMP" ORA-06512: at line 6
  • ORA-31633: unable to create master table while performing expdp operation

Blog Stats

  • 653,164 hits

Archives

  • June 2022
  • May 2022
  • March 2022
  • February 2022
  • January 2022
  • October 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • April 2020
  • March 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • April 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
Blog at WordPress.com.
Back to top
  • Follow Following
    • Geodata Master
    • Join 27 other followers
    • Already have a WordPress.com account? Log in now.
    • Geodata Master
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...