启动数据库的方式:
startup nomount 不加载控制文件和数据文件和日志文件
startup mount 加载控制文件,不加载数据文件和控制文件
startup restrict:只有sysdba权限才可以登录
alter system enable restricted session;
select username,sid,serial# from v$session where username='scott';
alter system kill session 'sid,serial#';
关闭数据库的方式:
shutdown abort:强制关机,需要恢复数据库
shutdown immediate:将事务回滚后关闭数据库
shutdown transaction:事务提交后关闭数据库
shutdown normal:等所有回话关闭后关闭数据库
startup nomount 不加载控制文件和数据文件和日志文件
startup mount 加载控制文件,不加载数据文件和控制文件
startup restrict:只有sysdba权限才可以登录
alter system enable restricted session;
select username,sid,serial# from v$session where username='scott';
alter system kill session 'sid,serial#';
关闭数据库的方式:
shutdown abort:强制关机,需要恢复数据库
shutdown immediate:将事务回滚后关闭数据库
shutdown transaction:事务提交后关闭数据库
shutdown normal:等所有回话关闭后关闭数据库