oracle 中 sqlplus命令大全
作者:mrr 时间:2024-01-23 21:07:27
1、简介:
Oracle的sql*plus是与oracle进行交互的客户端工具。在sqlplus中,可以运行sqlplus命令与sqlplus语句,我们通常所说的DML、DDL、DCL语句都是sqlplus语句,它们执行完后,都可以保存在一个被称为sql buffer的内存区域中,并且只能保存一条最近执行的sql语句,我们可以对保存在sql buffer中的sql 语句进行修改,然后再次执行,sqlplus一般都与数据库打交道。
2、常用命令
sqlplus username/password 如:普通用户登录 sqlplus scott/tiger sqlplus username/password@net_service_name 如: sqlplus scott/tiger@orcl
sqlplus username/password as sysdba 如:sqlplus sys/admin as sysdba sqlplus username/password@//host:port/sid 注意:sys和system需要以sysdba登录 在进入sql*plus之后,可以使用conn连接到其他用户,如:conn sys/admin as sysdba 在DOS环境(windows系统)或者终端中(Linux系统)下,输入“sqlplus /?”,如下:
suguniang@SuGuNiang:/home/oracle$ sqlplus /?
显示结果如下所示,是一些关于Oracle是用的详细信息:
SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 15 12:55:27 2016
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL*Plus: Release 11.2.0.1.0 Production
Copyright (c) 1982, 2010, Oracle. All rights reserved.
使用 SQL*Plus 执行 SQL, PL/SQL 和 SQL*Plus 语句。
用法 1: sqlplus -H | -V
-H 显示 SQL*Plus 版本和用法帮助。
-V 显示 SQL*Plus 版本。
用法 2: sqlplus [ [
上所述是小编给大家介绍的oracle 中 sqlplus命令大全网站的支持!
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python 居然可以在 Excel 中画画你知道吗
![](https://img.aspxhome.com/file/2023/3/125003_0s.png)
mysql tmp_table_size和max_heap_table_size大小配置
python样条插值的实现代码
![](https://img.aspxhome.com/file/2023/3/70833_0s.png)
TorchVision Transforms API目标检测实例语义分割视频类
![](https://img.aspxhome.com/file/2023/5/92455_0s.png)
vue项目动态设置页面title及是否缓存页面的问题
![](https://img.aspxhome.com/file/2023/8/139778_0s.png)
python进程间数据交互的几种实现方式
浅谈微信小程序之官方UI框架we-ui使用教程
![](https://img.aspxhome.com/file/2023/0/136510_0s.png)
基于django channel实现websocket的聊天室的方法示例
Python中字典及遍历常用函数的使用详解
MYSQL数据库中cmd命令操作详解
基于Golang 高并发问题的解决方案
mysql:Can't start server: can't create PID file: No space left on device
![](https://img.aspxhome.com/file/2023/4/124864_0s.jpg)
python搭建微信公众平台
Python实现ElGamal加密算法的示例代码
一篇文章带你了解python标准库--random模块
![](https://img.aspxhome.com/file/2023/6/83836_0s.png)
Python使用pip安装报错:is not a supported wheel on this platform的解决方法
![](https://img.aspxhome.com/file/2023/2/125172_0s.png)
关于python的编码与解码decode()方法及zip()函数
.NET中书写XML的一种简单方法
Vue 自定义指令实现一键 Copy功能
![](https://img.aspxhome.com/file/2023/5/130145_0s.gif)