Coder Social home page Coder Social logo

Comments (1)

gvenzl avatar gvenzl commented on July 17, 2024

According to the Oracle Documentation, the CONTAINER=ALL is the default when executed from the CDB$ROOT container:

CONTAINER Clause
If the current container is a PDB, then you can specify CONTAINER = CURRENT to change the attributes of a local user, or the container-specific attributes (such as the default tablespace) of a common user, in the current container. If the current container is the root, then you can specify CONTAINER = ALL to change the attributes of a common user across the entire CDB. If you omit this clause and the current container is a PDB, then CONTAINER = CURRENT is the default. If you omit this clause and the current container is the root, then CONTAINER = ALL is the default.

Tests confirm this behavior:

bash-4.4$ sqlplus system/MyPassword@//localhost/XE

SQL*Plus: Release 18.0.0.0.0 - Production on Sun May 9 01:25:07 2021
Version 18.4.0.0.0

Copyright (c) 1982, 2018, Oracle.  All rights reserved.

Last Successful login time: Sun May 09 2021 01:24:20 +00:00

Connected to:
Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
Version 18.4.0.0.0

---> Change password to a new one when connected to the instance/SID = XE

SQL> alter user system identified by MyTestPassword123;

User altered.

SQL> exit
Disconnected from Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
Version 18.4.0.0.0

---> Logon to instance with old password does no longer work, as expected

bash-4.4$ sqlplus system/MyPassword@//localhost/XE

SQL*Plus: Release 18.0.0.0.0 - Production on Sun May 9 01:25:31 2021
Version 18.4.0.0.0

Copyright (c) 1982, 2018, Oracle.  All rights reserved.

ERROR:
ORA-01017: invalid username/password; logon denied


Enter user-name: ^C

---> Logon to PDB with old password does not longer work either, as it got reset too

bash-4.4$ sqlplus system/MyPassword@//localhost/XEPDB1

SQL*Plus: Release 18.0.0.0.0 - Production on Sun May 9 01:25:39 2021
Version 18.4.0.0.0

Copyright (c) 1982, 2018, Oracle.  All rights reserved.

ERROR:
ORA-01017: invalid username/password; logon denied


Enter user-name: ^C

---> Logon to instance with new password works, as expected

bash-4.4$ sqlplus system/MyTestPassword123@//localhost/XE

SQL*Plus: Release 18.0.0.0.0 - Production on Sun May 9 01:25:52 2021
Version 18.4.0.0.0

Copyright (c) 1982, 2018, Oracle.  All rights reserved.

Last Successful login time: Sun May 09 2021 01:25:07 +00:00

Connected to:
Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
Version 18.4.0.0.0

SQL> exit
Disconnected from Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
Version 18.4.0.0.0

---> Logon to PDB with new password works because it got implicitly reset

bash-4.4$ sqlplus system/MyTestPassword123@//localhost/XEPDB1

SQL*Plus: Release 18.0.0.0.0 - Production on Sun May 9 01:25:56 2021
Version 18.4.0.0.0

Copyright (c) 1982, 2018, Oracle.  All rights reserved.

Last Successful login time: Sun May 09 2021 01:25:52 +00:00

Connected to:
Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
Version 18.4.0.0.0

SQL> exit
Disconnected from Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
Version 18.4.0.0.0
bash-4.4$

from oci-oracle-xe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.