[oracle@srv1 ~]$ . oraenv
ORACLE_SID = [oradb] ? testdb
The Oracle base remains unchanged with value /u01/app/oracle
[oracle@srv1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Sat Sep 16 17:37:55 2023
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
SQL> select name, open_mode, cdb from v$database;
NAME OPEN_MODE CDB
--------- -------------------- ---
TESTDB READ WRITE NO
SQL> create user amit identified by amit default tablespace users temporary tablespace temp;
User created.
SQL> grant connect,resource to amit;
Grant succeeded.
SQL> alter user amit quota unlimited on users;
User altered.
SQL> conn amit/amit
Connected.
SQL> show user
USER is "AMIT"
SQL> create table sugi(Name varchar2(10), Role varchar2(10));
Table created.
SQL> insert into sugi values ('&a','&b');
Enter value for a: amit
Enter value for b: dba
old 1: insert into sugi values ('&a','&b')
new 1: insert into sugi values ('amit','dba')
1 row created.
SQL> /
Enter value for a: praving
Enter value for b: dba
old 1: insert into sugi values ('&a','&b')
new 1: insert into sugi values ('pravin','dba')
1 row created.
SQL> select * from sugi;
NAME ROLE
---------- ----------
amit dba
pravin dba
SQL> CONN / AS SYSDBA
Connected.
SQL> ALTER SYSTEM FLUSH BUFFER_CACHE;
System altered.
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------------------
+DATADISK/TESTDB/DATAFILE/system.279.1147705287
+DATADISK/TESTDB/DATAFILE/sysaux.280.1147705321
+DATADISK/TESTDB/DATAFILE/undotbs1.281.1147705337
+DATADISK/TESTDB/DATAFILE/users.282.1147705337