Chinaunix首页 | 论坛 | 博客
  • 博客访问: 24855772
  • 博文数量: 271
  • 博客积分: 10025
  • 博客等级: 上将
  • 技术积分: 3358
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-12 15:28
文章分类

全部博文(271)

文章存档

2010年(71)

2009年(164)

2008年(36)

我的朋友

分类: Oracle

2010-05-07 12:51:43

以下情况下,可能需要STARTUP RESTRICT,这样只有一定权限(CREATE SESSION and RESTRICTED SESSION)的用户可以登陆数据库

1 Perform an export or import of database data
2 Perform a data load (with SQL*Loader)
3 Temporarily prevent typical users from using data
4 During certain migration and upgrade operations

SQL> startup restrict
ORACLE 例程已经启动。

Total System Global Area   160504432 bytes
Fixed Size                    453232 bytes
Variable Size              134217728 bytes
Database Buffers            25165824 bytes
Redo Buffers                  667648 bytes
数据库装载完毕。
数据库已经打开。

SQL> select * from v$version;

BANNER

Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
PL/SQL Release 9.2.0.1.0 - Production
CORE     9.2.0.1.0        Production
TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
NLSRTL Version 9.2.0.1.0 - Production

SQL> conn hr/hr
ERROR:
ORA-01035: ORACLE only available to users with RESTRICTED SESSION privilege

警告: 您不再连接到 ORACLE。

SQL> conn test/test
ERROR:
ORA-01035: ORACLE only available to users with RESTRICTED SESSION privilege

警告: 您不再连接到 ORACLE。

SQL> conn system/maxin as sysdba
已连接。
SQL> alter system disable restricted session;

系统已更改。

SQL> conn test/test
已连接。


阅读(4714) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~