[oracle@96539a6aaf24 ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Wed Sep 25 00:31:23 2019
Copyright (c) 1982, 2009, Oracle. All rights reserved.
#连接数据库
SQL> conn /as sysdba
Connected.
SQL>
退出
SQL>exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@96539a6aaf24 ~]$
创建数据库:
zhuhau@zhuha~$ sudo docker exec -it oracle11g bash[sudo] zhuhau 的密码:
[oracle@96539a6aaf24 /]$ su root
Password:
[root@96539a6aaf24 /]# su - oracle[oracle@96539a6aaf24 ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Tue Oct 8 18:15:31 2019
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> conn scott/tiger
Connected.
SQL> conn /as sysdba
Connected.
SQL> CREATE TABLESPACE zzh LOGGING DATAFILE '/home/oracle/zzh.dbf' SIZE 100M AUTOEXTEND ON NEXT 50M MAXSIZE 500M EXTENT MANAGEMENT LOCAL;
Tablespace created.