一 ,安装
二。
[sqlplus/nolog 是什么意思]
我们自己在命令行终端运行下面。就可以连接到数据库。
xushundeiMac:~ xushun$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0ccac372dab9 oracle/database:12.2.0.1-ee "/bin/sh -c 'exec ..." 2 days ago Up 24 hours 0.0.0.0:1521->1521/tcp, 0.0.0.0:5500->5500/tcp oracle
xushundeiMac:~ xushun$ docker exec -it 0ccac372dab9 /bin/bash
[oracle@0ccac372dab9 ~]$ sqlplus /nolog
SQL*Plus: Release 12.2.0.1.0 Production on Wed Sep 6 05:49:11 2017
Copyright (c) 1982, 2016, Oracle. All rights reserved.
SQL> connect sys@orclcdb as sysdba
Enter password:
Connected.
SQL> show user
USER is "SYS"
SQL>
网友评论