oracle如何解开用户,解锁oracle用户

oracle 帐号scott被锁定 如何解锁

1、首先以DBA的身份登录Oracle10g。

在黎川等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供成都网站设计、成都网站制作 网站设计制作按需开发网站,公司网站建设,企业网站建设,品牌网站设计,全网整合营销推广,成都外贸网站建设,黎川网站建设费用合理。

2、修改SOCCT账户权限,"alter user scott account unlock;"

3、修改HR账户权限,"alter user hr account unlock;"  在commit操作之后,继续:"alter user hr identified by hr;"

4、然后检查状态,就会发现已经解锁了。

详解Oracle如何解锁用户的方法

希望本文对大家有所帮助。1. 安装时选择的自动安装,由于时间久远忘记用户名、密码了,导致现在试了几个默认的用户名密码後(表格中附带默认用户名及密码),都提示无效的用户名、密码,终于在试了下dbsnmp/dbsnmp,提示被锁;2. 在CMD中启动SQLPLUS;用sqlplus/as sysdba登录源码天空,Oracle如何解锁用户提示连接到:Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production3. 执行ALTER USER DBSNMP ACCOUNT UNLOCK;4. 从新用SQL/PLUS登录,设置用户名、密码;注:由于刚才解锁的用户名是DBSNMP,所以这里设置的用户名也是DBSNMP

Oracle 10g默认安装带来的用户名/密码UsernamePasswordDescriptionSee AlsoCTXSYSCTXSYSThe Oracle Text accountOracle Text ReferenceDBSNMPDBSNMPThe account used by the Management Agent component of Oracle Enterprise Manager to monitor and manage the databaseOracle Enterprise Manager Grid Control Installation and Basic ConfigurationLBACSYSLBACSYSThe Oracle Label Security administrator accountOracle Label Security Administrator's GuideMDDATAMDDATAThe schema used by Oracle Spatial for storing Geocoder and router dataOracle Spatial User's Guide and ReferenceMDSYSMDSYSThe Oracle Spatial and Oracle interMedia Locator administrator accountOracle Spatial User's Guide and ReferenceDMSYSDMSYSThe Oracle Data Mining account.Oracle Data Mining Administrator's GuideOracle Data Mining ConceptsOLAPSYSMANAGERThe account used to create OLAP metadata structures. It owns the OLAP Catalog (CWMLite).Oracle OLAP Application Developer's GuideORDPLUGINSORDPLUGINSThe Oracle interMedia user. Plug-ins supplied by Oracle and third party format plug-ins are installed in this schema.Oracle interMedia User's GuideORDSYSORDSYSThe Oracle interMedia administrator accountOracle interMedia User's GuideOUTLNOUTLNThe account that supports plan stability. Plan stability enables you to maintain the same execution plans for the same SQL statements. OUTLN acts as a role to centrally manage metadata associated with stored outlines.Oracle Database Performance Tuning GuideSI_INFORMTN_SCHEMASI_INFORMTN_SCHEMAThe account that stores the information views for the SQL/MM Still Image StandardOracle interMedia User's GuideSYSCHANGE_ON_INSTALLThe account used to perform database administration tasksOracle Database Administrator's GuideSYSMANCHANGE_ON_INSTALLThe account used to perform Oracle Enterprise Manager database administration tasks. Note that SYS and SYSTEM can also perform these tasks.Oracle Enterprise Manager Grid Control Installation and Basic ConfigurationSYSTEMMANAGERAnother account used to perform database administration tasks.

怎样给oracle数据库的用户解锁

1、找到并进入运行窗口:(可以用windows+r快捷键哦)输入sqlplus命令:如图

2、进入新窗口后使用scott/tiger用户和密码进行登录会发现登录不成功:如图

3、这时我们可以使用system用户进行登录,应为此用户的权限排第二,并且密码我们已经在安装时输入了了,所以是可以登录进入的:如图

4、system登录成功之后就可以使用命令给用户进行解锁了:如图

5、最后再用scott/tiger用户时,你可以神奇的发现此时能连接成功了:如图

Oracle账号被锁定如何解锁

1、查看环境变量ORACLE_SID的设置情况:

windows:

echo

%ORACLE_SID%

linux:

echo

$ORACLE_SID

2、

设置环境变量ORACLE_SID的值为你想登录的oracle实例的SID:

set

ORACLE_SID=orcl

键入命令:sqlplus

/

as

sysdba

就可以以sysdba的身份登录到oracle了!

linux系统下,如果找不到sqlplus命令的话,请切换到oracle用户。

在sqlplus窗口执行命令:

alter

user

you_username

identified

by

you_password;

就可以修改你的用户的密码了~

如果此时用户被锁定,没关系:

既然是被锁住了,那就通过解锁system用户。

SQL

alter

user

system

account

unlock;

User

altered.

SQL

select

username,account_status

from

dba_users

where

username='SYSTEM';

USERNAME

ACCOUNT_STATUS

----------

--------------------------------

SYSTEM

OPEN

SQL


网站栏目:oracle如何解开用户,解锁oracle用户
分享网址:http://scyanting.com/article/dssjijh.html