1、进入sqlplus里面:

[oracle@master ~]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Tue Dec 25 15:06:28 2018

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

Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> alter user sys identified by admin;

User altered.

SQL> conn sys/admin as sysdba;
Connected.
SQL> alter user system identified by admin;

User altered.
连接plsql时,首要起监听

[oracle@master ~]$ lsnrctl start

查看监听状态:

[oracle@master ~]$ lsnrctl status

LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 25-DEC-2018 15:14:55

Copyright (c) 1991, 2014, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=master)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 12.1.0.2.0 - Production
Start Date                25-DEC-2018 15:03:27
Uptime                    0 days 0 hr. 11 min. 28 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/12.1.0/db_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/master/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=master)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=master)(PORT=5500))(Security=(my_wallet_directory=/u01/app/oracle/admin/orcl/xdb_wallet))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "orcl" has 2 instance(s).
  Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
  Instance "shenlan", status READY, has 1 handler(s) for this service...
Service "pdborcl" has 1 instance(s).
  Instance "shenlan", status READY, has 1 handler(s) for this service...
Service "shenlanXDB" has 1 instance(s).
  Instance "shenlan", status READY, has 1 handler(s) for this service...
The command completed successfully

《完》

最新文章

  1. 【原创】自己动手写工具----XSmartNote [Beta 2.0]
  2. 获取bing.com的图片并在gnome3中设置自动切换
  3. ASP.NET实现微信功能(2)(服务号高级群发)
  4. CEGUI0.8.4例子
  5. LeetCode() Word Search II
  6. {"集合已修改;可能无法执行枚举操作。"}
  7. C# 添加一个用户对文件或者文件夹的所有权限
  8. Linux2.6中的Slab层
  9. Webpack单元测试,e2e测试
  10. shell队列实现线程并发控制(转)
  11. 2018-2019 ACM-ICPC, Asia East Continent Finals部分题解
  12. 简易OA漫谈之工作流设计(一个Demo),完成6年前的一个贴子
  13. day 45 BOM和DOM
  14. 为什么使用 Spring Boot?
  15. 1、linux下对绝对路径和相对路径
  16. Hyperledger Fabric密码模块系列之BCCSP(四)
  17. 3.C#的访问权限修饰符
  18. Window环境下Python和Django的安装,以及项目的创建
  19. linux查看端口被哪个服务占用的命令
  20. java入门学习(5)—面向对象注意点总结

热门文章

  1. Appium移动自动化测试(四)之元素定位
  2. Ironic 裸金属管理服务的底层技术支撑
  3. netcore kafka操作
  4. 初探ASP.NET Web API (转)
  5. vscode 中sftp配置
  6. SQLServer2008R2复制发布订阅(含局域网跨网段)调试总结
  7. filter_var()函数
  8. Tomcat开机自启动,通过服务名重启
  9. [转帖]一张图让你看懂InnoDB
  10. [转帖]开源许可证GPL、BSD、MIT、Mozilla、Apache和LGPL的区别