show errorshow allshow usersqlplusshow和set命令是两条用于维护SQLPlus系统变量的命令 :SQL> show all --查看所有系统变量值SQL>show user --显示当前连接用户SQL>show error --显示错误(编译function,p...
分类:
数据库 时间:
2014-08-20 16:08:22
阅读次数:
332
SQLPlus directive "WHENEVER SQLERROR EXIT 1" will return a specified code when any SQL error throwed when run a sql file.Then we can catch the return ...
分类:
数据库 时间:
2014-08-18 18:06:22
阅读次数:
279
如何实现Linux下的SQL*Plus可以使用上下键,退格键
分类:
其他好文 时间:
2014-08-18 16:18:22
阅读次数:
256
我的中文系统,把对应非unicode字符时的设置,改成了 日文, 结果控制台使用sqlplus时候,总是出现乱码。解决方法是,把NLS_LANG环境变量变成跟系统一样,就可以了。american_america.zhs16gbk =>JAPANESE_JAPAN.JA16SJIS(使用 JA16SJ...
分类:
数据库 时间:
2014-08-18 15:49:32
阅读次数:
355
dbca建库后sqlplus提示如下$ sqlplus / as sysdbasqlplus: error while loading shared libraries: /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: c...
分类:
数据库 时间:
2014-08-17 23:59:02
阅读次数:
763
经常使用:sqlplus username/password 如:普通用户登录 sqlplus scott/tigersqlplus username/password@net_service_name 如: sqlplus scott/tiger@orclsqlplus username/pass...
分类:
数据库 时间:
2014-08-16 22:29:01
阅读次数:
298
ETL调度中读写数据信息,都需要连接数据库,下面的子程序通过传入的数据库连接字符串和数据库命令(或SQL)执行所需要的操作:
#!/usr/bin/bash
#created by lubinsu
#2014
source ~/.bash_profile
values=`sqlplus -S $1 << EOF
set heading off feedback off pagesize 0...
分类:
数据库 时间:
2014-08-14 23:54:46
阅读次数:
242
importos
fromsubprocessimportPopen,PIPE
sqlplus=Popen(["sqlplus","-S","andy/root"],stdout=PIPE,stdin=PIPE)
sqlplus.stdin.write("selectsysdatefromdual;"+os.linesep)
sqlplus.stdin.write("insertintot_pythonvalues(1,‘chenlong‘);"+os.linesep)
sqlplus.stdin.wr..
分类:
数据库 时间:
2014-08-14 04:00:48
阅读次数:
345
1 如何查看数据库中都有什么表?
select * from sys.user_tables;
2 如何链接数据库
sqlplus /nolog;conn sys/oracle as sysdba;
3 如何启动数据库
startup;...
分类:
数据库 时间:
2014-08-13 22:32:58
阅读次数:
295
当oracle的数据文件所在的磁盘空间不够用了或其他情况需要把dbf文件迁移到另外的位置,下面是操作步骤:
1、sqlplus sys/sys as sysdba
2、shutdown immediate
3、copy dbf文件到新的位置
4、startup mount;
5、alter database rename file 'E:\oracle\oradata\hqbi\EFMW...
分类:
数据库 时间:
2014-08-13 19:07:57
阅读次数:
222