手动建库 - scott 创建
2011-09-22 10:39
357 查看
手动建库发现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.
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.
相关文章推荐
- oracle 10g 手动创建scott(tiger) schema
- oracle 10g 手动创建scott(tiger) schema
- 手动创建scott和表
- oracle 10g 手动创建scott(tiger)
- oracle 10g 手动创建scott(tiger) schema
- oracle 10g 手动创建scott(tiger) schema
- oracle10g手动创建scott(tiger)的方法(转)
- o1-手动创建scott(tiger) schema演示表
- oracle 10g 手动创建scott(tiger) schema
- oracle 10g 手动创建scott(tiger) schema
- windows下手动创建最简单的数据库(oracle 10.1.0)
- 我的第一篇学习记录-手动创建活动
- MFC类向导的“对象ID”列表里没有手动创建的控件的ID
- OMF方式手动创建数据库
- 多线程环境下,手动创建数据库连接池
- 创建Qt项目之02(手动创建)
- 65. magent 手动创建用户
- php error_log记录日志的使用方法和配置 (日志目录一定要手动创建)
- Oracle 11g R2 手动建库(create database manually)
- linux下手动创建Oracle数据库