大型html5浅蓝色网站设计公司dede模板,网店怎么开店详细教程,微信营销成功案例,新手如何做自己的网站1、linux 需要用 sqlplus 客户端去连接oracle 数据库#xff0c;首先需要确认有没有安装#xff1a;which sqlplus2、如果没有安装就需要先安装一下(百度)3、配置环境变量#xff1a;vim /etc/profile4、执行 source /etc/profile5、whereis oracle #查看oracle 客户端安装…1、linux 需要用 sqlplus 客户端去连接oracle 数据库首先需要确认有没有安装which sqlplus2、如果没有安装就需要先安装一下(百度)3、配置环境变量vim /etc/profile4、执行 source /etc/profile5、whereis oracle #查看oracle 客户端安装路径6、 进入客户端目录7、编辑配置文件vim tnsnames.oraORCL (DESCRIPTION (ADDRESS_LIST (ADDRESS (PROTOCOL TCP)(HOST 127.0.0.1)(PORT 1521)))(CONNECT_DATA (SERVICE_NAME servicename)))8、编辑保存完成以后可以用命令行测试是否连接成功9、sqlplus username/passwordORCL10、编写shell脚本(我查询的是表空间使用率根据需求自行修改)#! /bin/bashsqlplus username/passwordORCL EOFset linesize 200set pagesize 200spool /home/tmp/zxh.logselect a.tablespace_name, total, free,(total-free) as usage from(select tablespace_name, sum(bytes)/1024/1024 as total from dba_data_files group by tablespace_name) a,(select tablespace_name, sum(bytes)/1024/1024 as free from dba_free_space group by tablespace_name) bwhere a.tablespace_name b.tablespace_name;spool offquitEOF遇到的问题1、INSERT -- W10: Warning: Changing a readonly filesu rootpassword:《输入你的root密码》然后就切换到你的root用户就有权限修改一些readonly的文件了2、source /home/oracle/.bash_profile //环境变量生效