系统用户
sysman:
密码是安装数据库时设置。
scott:
密码是tiger。
[username/password][@server][as sysdba|sysoper]
举例:system/root @orcl as sysdba
解释:orcl就是自己设置得服务名
实例:
show user命令
dba_users数据字典
请输入用户名: system
输入口令:
连接到:
OracleDatabase11gEnterpriseEditionRelease11.2.0.1.0-64bitProduction
With the Partitioning, OLAP,DataMiningandRealApplicationTesting options
sql> show user
USER 为"SYSTEM"
sql> desc dba_users
名称是否为空?类型
-----------------------------------------------------------------------------
USERNAME NOT NULL VARCHAR2(30)
USER_ID NOT NULL NUMBER
PASSWORD VARCHAR2(30)
ACCOUNT_STATUS NOT NULL VARCHAR2(32)
LOCK_DATE DATE
EXPIRY_DATE DATE
DEFAULT_TABLESPACE NOT NULL VARCHAR2(30)
TEMPORARY_TABLESPACE NOT NULL VARCHAR2(30)
CREATED NOT NULL DATE
PROFILE NOT NULL VARCHAR2(30)
INITIAL_RSRC_CONSUMER_GROUP VARCHAR2(30)
EXTERNAL_NAME VARCHAR2(4000)
PASSWORD_VERSIONS VARCHAR2(8)
EDITIONS_ENABLED VARCHAR2(1)
AUTHENTICATION_TYPE VARCHAR2(8)
sql>select username from dba_users;
USERNAME
------------------------------
MGMT_VIEW
SYS
SYSTEM
DBSNMP
SYSMAN
OUTLN
FLOWS_FILES
MDSYS
ORDSYS
EXFSYS
WMSYS
USERNAME
------------------------------
APPQOSSYS
APEX_030200
OWBSYS_AUDIT
ORDDATA
CTXSYS
ANONYMOUS
XDB
ORDPLUGINS
OWBSYS
SI_INFORMTN_SCHEMA
OLAPSYS
USERNAME
------------------------------
SCOTT
ORACLE_OCM
XS$NULL
BI
PM
MDDATA
IX
SH
DIP
OE
APEX_PUBLIC_USER
USERNAME
------------------------------
HR
SPATIAL_CSW_ADMIN_USR
SPATIAL_WFS_ADMIN_USR
已选择36行。
启用用户的语句
ater user username account unlock