linux下oracle相关命令
2015-11-13 12:30
507 查看
oracle 创建用户和删除用户命令:
drop user yashangbak cascade;
create user yashangbak identified by "yashangbak";
grant dba to yashangbak with admin option;
alter user yashangbak default role dba;
ORACLE 数据库与删除命令:
1、启动数据库:
:~> sqlplus /nolog
SQL*Plus: Release 9.2.0.4.0 - Production on Fri Jan 20 02:29:37 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect /as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 135352820 bytes
Fixed Size 455156 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 679936 bytes
Database mounted.
2、关闭数据库:
:~> sqlplus /nolog
SQL*Plus: Release 9.2.0.4.0 - Production on Fri Jan 20 02:29:37 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect /as sysdba
Connected to an idle instance.
SQL> shutdwon abort;
3、启动监听器
:~> lsnrctl start
4、停止监听器
:~> lsnrctl stop
5、查看监听器状态
:~> lsnrctl
LSNRCTL> status
LSNRCTL> exit
lsnrctl start
sqlplus '/as sysdba'
sql> startup
emctl start dbconsole
isqlplusctl start
drop user yashangbak cascade;
create user yashangbak identified by "yashangbak";
grant dba to yashangbak with admin option;
alter user yashangbak default role dba;
ORACLE 数据库与删除命令:
1、启动数据库:
:~> sqlplus /nolog
SQL*Plus: Release 9.2.0.4.0 - Production on Fri Jan 20 02:29:37 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect /as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 135352820 bytes
Fixed Size 455156 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 679936 bytes
Database mounted.
2、关闭数据库:
:~> sqlplus /nolog
SQL*Plus: Release 9.2.0.4.0 - Production on Fri Jan 20 02:29:37 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect /as sysdba
Connected to an idle instance.
SQL> shutdwon abort;
3、启动监听器
:~> lsnrctl start
4、停止监听器
:~> lsnrctl stop
5、查看监听器状态
:~> lsnrctl
LSNRCTL> status
LSNRCTL> exit
lsnrctl start
sqlplus '/as sysdba'
sql> startup
emctl start dbconsole
isqlplusctl start
相关文章推荐
- 【Oracle】DBLINK执行DDL,添加删除表
- Sqoop全量和增量导入数据到Oracle数据库
- oracle外键--详解
- 【Oracle】Oracle 12c DB In-Memory入门实验手册(三)
- oracle查看被锁的表和被锁的进程以及杀掉这个进程
- Oracle 客户端安装配置
- oracle11g 导出空表
- oracle-获取时间详解
- linux下命令行装oracle
- Oracle之索引的创建方式
- Oracle 常见问题整理,来自CSDN帖子
- Kettle 连接 oracle
- Oracle Clusterware (CRS/GI) - ASM - Database Version Compatibility (文档 ID 337737.1)
- ORA-01012: not logged on
- 从oracle 10g转到oracle 11g更改字符集
- the account is locked 解决方案
- 在vs编译的时候 出现 boolean 重定义
- Oracle sql面试题二
- oracle case when then end 语句
- Oracle复杂查询