1、通过cmd命令连接数据库,命令如下:
sqlplus bldb/glaway123@localhost:1521/orcl
2、如果是本地的数据库,则直接输入sqlplus回车,然后输入用户名和密码即可,如下: