手动建库 - scott 创建

 

手动建库发现scott 用户没有,下面来建一下:

step1:
Check user:

SQL> select username,password from dba_users;

USERNAME                       PASSWORD
------------------------------ ------------------------------
OUTLN                          4A3BA55E08595C81
SYS                            8A8F025737A9097A
SYSTEM                         2D594E86F93B17A1
EZHOUDG                        8A92EDCB3A36EBD7
DBSNMP                         E066D214D5421CCC
TSMSYS                         3DF26A8B17D0F29F
DIP                            CE4A36B8E06CA59C

total 7 users.

Step2: create user from utlsampl.sql

[oracle@aoracle admin]$ sqlplus / as sysdba;

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Sep 22 09:43:55 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> show user;
USER is "SYS"
SQL> @?/rdbms/admin/utlsampl
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@aoracle admin]$ sqlplus / as sysdba;

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Sep 22 09:44:48 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> select username ,account_status from dba_users;

USERNAME                       ACCOUNT_STATUS
------------------------------ --------------------------------
OUTLN                          OPEN
SYS                            OPEN
SYSTEM                         OPEN
EZHOUDG                        OPEN
SCOTT                          OPEN
DBSNMP                         EXPIRED & LOCKED
TSMSYS                         EXPIRED & LOCKED
DIP                            EXPIRED & LOCKED

8 rows selected.

发现scott 么有被lock, 如果lock 的话:
SQL> alter user scott account unlock;

User altered.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

shenghuiping2001

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值