
Oracle
光于前裕于后
本人有多年大数据与机器学习开发经验,并乐于总结与分享,如有侵权或写的不对的地方可以私信我,有问题也可以问我哟,free~
展开
-
ERROR: ORA-12547: TNS:lost contact
修改权限[root@hqc-test-hdp3 ~]# cd /home/oracle/app/oracle/product/11.2.0/dbhome_1/[root@hqc-test-hdp3 dbhome_1]# cd bin/[root@hqc-test-hdp3 bin]# chmod 6751 oracle检查ORACLE_HOME/bin/oracle和ORACLE_HOME/rdbms/lib/config.o的文件大小是否为0[root@hqc-test-hdp3 dbhome原创 2020-12-21 13:57:21 · 1908 阅读 · 0 评论 -
sqlplus: error while loading shared libraries: libclntsh.so.11.1
sqlplus: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory报错了,切换到root用户看一下有没有这个文件[root@hqc-test-hdp3 lib]# find / -name libclntsh.so.11.1/home/oracle/app/oracle/product/11.2.0/dbhome_1/inv原创 2020-12-21 13:44:04 · 3675 阅读 · 1 评论 -
SEVERE: [FATAL] [INS-32038] The operating system group specified for central inventory
SEVERE: [FATAL] [INS-32038] The operating system group specified for central inventory (oraInventory) ownership is invalid.需创建/etc/oraInst.loc文件[oracle@hqc-test-hdp3 ~]$ su密码:[root@hqc-test-hdp3 oracle]# vim /etc/oraInst.locinventory_loc=/home/oracle原创 2020-12-21 13:41:26 · 2442 阅读 · 0 评论 -
make sure you have the 32 bits oracle client installed
PLSQL Developer并不支持Oracle 64位客户端连接,安装32位Oracle客户端即可,可以只在PLSQL Developer里设置32位的oci库,不用配置环境变量。原创 2020-12-21 11:15:37 · 3880 阅读 · 0 评论 -
DPI-1047: Cannot locate a 64-bit Oracle Client library
cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "D:\xx\oci.dll is not the correct architecture查了下说是Oracle Client版本不对,要和python一致,python是64位,Oracle Client也需要是64位,小问题,去官网下载:https://www.oracle.com/database/technologies/instant原创 2020-12-21 11:10:44 · 1395 阅读 · 0 评论 -
SQL JOIN ON WHERE GROUP BY等执行顺序
(8)SELECT (9)DISTINCT (11)<Top Num> <select list>(1)FROM [left_table](3)<join_type> JOIN <right_table>(2)ON <join_condition>(4)WHERE <where_condition>(5)GROUP BY <group_by_list>(6)WITH <CUBE | RollUP>(原创 2020-12-14 14:49:31 · 1228 阅读 · 0 评论 -
Win10下使用Python连接Oracle
目录前言正文1 cannot import name ‘SourceDistribution’2 DPI-1047: Cannot locate a 64-bit Oracle Client library3 make sure you have the 32 bits oracle client installed4 ORA-12154: TNS前言本来以为写篇这个就够了 Python离线安装第三方库,后来发现还有好多坑,还是全记一下吧。使用python连接oracle有很多种方式,本文使用的是cx-原创 2020-12-12 17:33:28 · 804 阅读 · 0 评论 -
Centos6.5 Oracle11g 静默离线安装完整版教程(无需图形化界面)
1 修改/etc/security/limits.conf文件,修改用户的SHELL的限制[root@hqc-test-hdp3 database]# vim /etc/security/limits.conf#@student - maxlogins 4oracle soft nproc 2047oracle hard np...原创 2019-08-01 15:57:55 · 2529 阅读 · 0 评论 -
Oracle 创建与删除job小例子
--创建测试表create table TEST(a date);--创建一个自定义过程create or replace procedure MYPROC as begin insert into TEST values(sysdate);end;--创建JOBDECLAREX NUMBER;BEGIN SYS.DBMS_JOB.SUBMIT ( job原创 2017-06-12 10:36:24 · 829 阅读 · 0 评论 -
Oracle数组遍历
declare --可选,声明各种变量和游标的地方 type num_list is varray(3) of varchar2(8); xz num_list := num_list('4453%','4452%','4451%');begin for i in 1..xz.count --1到3(xz.count) loop --循环 dbms_output.put_li原创 2017-05-05 16:39:43 · 7516 阅读 · 0 评论 -
Oracle表空间释放与增加表空间大小
1.drop表后并没有释放磁盘空间,这时可以通过缩小表空间释放磁盘存储注:一个表空间可以有多个datafile查看所有的datafile,找到你要缩小的datafileselect file#, name from v$datafile从上面获得要缩小的文件id是4,查看此文件有多少个blockselect max(block_id) from dba_extents where file_i原创 2017-04-20 10:35:28 · 9909 阅读 · 3 评论 -
Oracle数据类型之number
转自:http://www.blogjava.net/caojianhua/archive/2011/01/24/343461.htmloracle的number类型是oracle的内置类型之一,是oracle的最基础数值数据类型。在9iR2及其以前的版本中只支持一种适合存储数值数据的固有数据类型,在10g以后,才出现了两种新的数值类型,即推出本地浮点数据类型(Native Floating-转载 2016-03-10 14:09:32 · 832 阅读 · 0 评论 -
关于oracle sql语句查询时表名和字段名要加双引号的问题详解
转自:http://www.2cto.com/database/201504/387184.html作为oracle的初学者相信大家一定会遇到这个问题,如图:明明就是navicat可视化创建了表,可是就是不能查到!这个为什么呢?select * from user;但是,我们如果给user加上双引号就不一样了!select * from "user"转载 2016-02-23 15:39:38 · 30718 阅读 · 4 评论