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