当前位置:网站首页>oracle 19c : change the user sys/system username pasword under Linux
oracle 19c : change the user sys/system username pasword under Linux
2022-06-29 11:37:00 【梦想家DBA】
SYS用户是Oracle中权限最高的用户,而SYSTEM是一个用于 数据库管理的用户。
在数据库安装完之后,应立即修改SYS,SYSTEM这两个用户的密码,以保证数据库的安全。
注:SYS和SYSTEM用户之间可以相互修改口令
一、安装完后的修改口令:
1、先登录服务器后,切换到oracle用户状态下: su oracle
2、进入sqlplus,命令: sqlplus /nolog
3、管理员 sysdba 权限登陆oracle: conn as sysdba
4、修改密码:
法1.SQL> alter user sys identified by huozhe
法2.SQL> grant connect to sys identified by 123456
法3. SQL> password system
更改 system 的口令
新口令:
重新键入新口令:
口令已更改
(注:法3只适用于SYSTEM)
二、修改SYS用户口令后的登录方式
法1.SQL> conn / as sysdba 【以操作系统认证的方式登录,不需要用户名和口令】
法2.SQL> conn sys/abcde as sysdba;
法3.SQL> conn sys/ as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on 星期二 11月 6 19:10:54 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
输入口令:
注意:这里提示输入口令,不输入口令直接回车
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing optionssqlplus sys as sysdba;
SQL> show user //查看当前用户
三、如果发生sys密码丢失的情况
步骤1.使用system用户进行密码更改
SQL> conn system/huozhe
已连接。
SQL> alter user sys identified by huozhe
四、重新启动数据库。(记得每次修改都得重启)
SQL> shutdown immediate
SQL> startup open

边栏推荐
- Serving millions of developers, the first techo day Tencent technology open day released 7 "lightweight" products
- GBase8s数据库FOR READ ONLY 子句
- ERP Kingdee for preparing BOM
- ArtBench:第一个类平衡的、高质量的、干净注释的和标准化的艺术品生成数据集
- 杰理之手动配对方式【篇】
- MySQL数据库主从同步,一致性解决方案
- 论文复现——AC-FPN:Attention-guided Context Feature Pyramid Network for Object Detection.
- Helping the ultimate experience, best practice of volcano engine edge computing
- The blackened honeysnow ice city wants to grasp the hearts of consumers by marketing?
- 爱可可AI前沿推介(6.29)
猜你喜欢

Numpy's ndarray array Foundation

Sofaregistry source code | data synchronization module analysis

杰理之发起对耳配对、回连、开启可发现、可连接的轮循函数【篇】

龙书虎书鲸书啃不动?试试豆瓣评分9.5的猴书

架构实战营第五模块课后作业

Wang Yingqi, founder of ones, talks to fortune (Chinese version): is there any excellent software in China?

ERP编制物料清单 基础

& 3 view request message and response message in browser

钛动科技:我们的 Zadig 落地之路

【JUC系列】同步工具类之ThreadLocal
随机推荐
Jericho's position on initiating the connection back to the opposite ear: 【 chapter 】
Artbench: the first class balanced, high-quality, clean annotated and standardized artwork generation data set
力扣每日一题-第31天-1779.找到最近的有相同x或y坐标的点
助力极致体验,火山引擎边缘计算最佳实践
Gbase8s database select has order by Clause 4
GBase8s数据库select有ORDER BY 子句1
高校如何基于云原生构建面向未来的智慧校园?全栈云原生架构VS传统IT架构
这个EMR-SparkSQL节点,他查询的表是不是ODPS的啊?
Codeforces Round #803 (Div. 2)
文件包含之日志中毒(User-Agent)
When a technician becomes a CEO, what "bugs" should be modified?
Engineering practice behind dall-e 2: ensure that the output of the model complies with the content policy
Helping the ultimate experience, best practice of volcano engine edge computing
论文复现——AC-FPN:Attention-guided Context Feature Pyramid Network for Object Detection.
ERP Kingdee for preparing BOM
Imile uses Zadig's multi cloud environment to deploy thousands of times a week to continuously deliver global business across clouds and regions
ERP编制物料清单 基础
易快报:我们用 Zadig 实现万次构建部署,聪明运维,释放开发生产力
Installation and configuration of MariaDB
Wonderful! Miaoying technology fully implements Zadig to help container construction, and fully embraces kubernetes and Yunyuan