ORA-01035: only available to users with RESTRICTED SESSION privilege

 以下情况下,可能需要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
已连接。

你可能感兴趣的:(ORA-01035: only available to users with RESTRICTED SESSION privilege)