#直接进入sqlplus命令提示符
sqlplus /nolog
#以管理员登录
conn sys/orcl as sysdba
#创建表空间
create tablespace bds_dl datafile '/opt/oracle/11g/udb/bds_dl.dbf' size 100m autoextend on next 3m maxsize unlimited;
#创建用户
create user bds_dl identified by bds_dl default tablespace bds_dl;
#为用户授权
grant connect,resource,create database link to bds_dl;
#删除用户
drop user bds cascade;
#删除表空间
drop tablespace bds including contents and datafiles;
#解锁用户
alter user bds account unlock; --解开locked
#关闭服务
shutdown immediate
#启动服务
startup
#查询数据库字符集
select userenv('language') from dual;
相关推荐
oracle 常用命令大全 oracle dba 常用命令 1 运行 sqlplus 工具 sqlplus 2 以 os 的默认身份连接 / as sysdba 3 显示当前用户名 show user 4 直接进入 sqlplus 命令提示符 sqlplus /nolog 5 在命令提示符以 os 身份...
oracle常用命令 一、oracle的启动和关闭 1、在单机环境下 要想启动或关闭oracle系统必须首先切换到oracle用户,如下 su - oracle a、启动oracle系统 oracle>svrmgrl svrmgr>connect internal svrmgr>startup ...
oracle常用命令汇总,一些oracle管理工作中经常需要采用到的命令行。可供平常复习或查询之用。
oracle常用命令 一、oracle的启动和关闭 1、在单机环境下 要想启动或关闭oracle系统必须首先切换到oracle用户,如下 su - oracle a、启动oracle系统 oracle>svrmgrl svrmgr>connect internal svrmgr>startup svrmgr...
oracle常用命令1(数据库、表空间) oracle常用命令2(用户、角色管理) oracle常用命令3(ddl、dml、tcl、dcl、序列) oracle常用命令4(表分区) oracle常用命令5(同义词、视图、索引) oracle常用命令6(pl/...
oracle常用命令大全[参考].pdf
oracle常用命令oracle常用命令oracle常用命令
mysql与oracle常用命令比较 mysql与oracle常用命令比较
natstat,oracle常用命令常用命令natstat,oracle常用命令常用命令natstat,oracle常用命令常用命令natstat,oracle常用命令常用命令natstat,oracle常用命令常用命令
oracle常用命令.doc oracle常用命令.doc oracle常用命令.doc
oracle 常用命令举例.pdf oracle 常用命令举例.pdf
oracle常用命令 txt 最全的oracle常用命令 txt 最全的
oracle常用命令大全,oracle常用命令大全,oracle常用命令大全,oracle常用命令大全
oracle 常用命令大全 oracle 常用命令大全oracle 常用命令大全
oracle常用命令收集 oracle常用命令
oracle常用命令oracle常用命令oracle常用命令oracle常用命令oracle常用命令oracle常用命令oracle常用命令oracle常用命令
第一章:日志管理 1.forcing log switches sql> alter system switch logfile; 2.forcing checkpoints sql> alter system checkpoint; 3.adding online redo log groups sql> alter database add log...