Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Oracle forgot the SYS password, recovered the SYS password and recreated the new user login database

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

1. Run CMD

Note the path of ORACLE

Orapwd file=C:\ oracle\ product\ 11.2.0\ dbhome_1\ database\ pwdctcsys.ora

After entering the above command, you will be prompted for your password-note that the password must start with a letter and contain at least 8 characters of uppercase and lowercase letters and numbers

2. Open SQL/PLUS (enter SQLPLUS/NOLOG under cmd) and log in with the newly changed password

CONN sys/password AS SYSDBA

Such as:

CONN sys/QAZwsx123 AS SYSDBA

3. Create a new user

CREATE USER username IDENTIFIED BY password

Create user test identified by Test123456

4. Unlock the newly created user

ALTER USER user name ACCOUNT UNLOCK

Alter user test account unlock

5. Grant creation rights to newly logged-in users

GRENT CREATE SESSION TO user name

CRANT DBA TO user name

Grant create session to test;grant dba to test

6. You can switch to the newly created user login test.

CONNECT username / password

Connect test/Test123456

Note that all operations must be followed by a ";" to perform successfully.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report