![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oracle
忙碌的菠萝
old soldiers never die, they just fade away.
展开
-
数据库表结构及索引查询
数据表结构及索引查询原创 2022-06-09 09:10:37 · 415 阅读 · 0 评论 -
oracle 索引问题梳理
索引基础知识索引概念索引是为了加快数据的查找而创建的可选数据库对象索引是建立在表的一列或多列上且进行排序的一种结构通过指针快速定位数据行的方法,减少CPU和磁盘的I/O索引是由Oracle自动使用和维护的,数据更新会自动传播到所有相关的索引索引存在双面性,表面存在过多的索引会影响到DML语句的性能索引类型唯一索引保证在定义索引的列中没有重复值Oracle自动在表的主键列上创建唯一索引唯一索引对应的字段上可以插入null值语法:create unique index idx原创 2022-02-11 15:02:41 · 4035 阅读 · 0 评论 -
ORA-39083 ORA-01917问题解决
问题背景给了一个expdp的文件,没有给命令,就只能试一下了[oracle@POC-ORACLE ~]$ impdp dcps/dcps@upbs directory=dump_dir dumpfile=dcps20210630.dmpImport: Release 19.0.0.0.0 - Production on Mon Jul 5 17:42:16 2021Version 19.3.0.0.0Copyright (c) 1982, 2019, Oracle and/or its aff原创 2021-07-05 18:02:42 · 7882 阅读 · 0 评论 -
UDI-12154 ORA-12154问题解决
问题背景最近新建环境impdp导入数据库数据的时候发现该问题,带上了SID后就报了这个错。[oracle@POC-ORACLE ~]$ impdp dcps/dcps@upbs directory=dump_dir dumpfile=dcps20210630.dmpImport: Release 19.0.0.0.0 - Production on Mon Jul 5 17:26:56 2021Version 19.3.0.0.0Copyright (c) 1982, 2019, Oracle原创 2021-07-05 17:48:24 · 10455 阅读 · 5 评论 -
oracle open_cursors参数配置
oracle open_cursors参数配置查看游标打开最大值设置SQL> show parameter open_cursors;oracle 默认open_cursors 为300设置open_cursors值alter system set open_cursors = 1000;alter system set open_cursors = 1000 scope = spfile; 若不带scope 对应默认scope为both扩展了解spfile参数的三种scope原创 2021-07-02 10:40:28 · 3433 阅读 · 0 评论 -
oracle open_cursors未关闭问题解决
问题背景DBA监控到最近生产上数据库报了ORA-01000: maximum open cursors exceeded,这个错误表示已经达到一个进程打开的最大游标数,DBA已经加了两次open_cursors了,但是还是总报。问题解决问题分析因为游标一直在增大,扩展open_cursors的值已经达到了1000,但是还是不能满足系统需要,肯定是系统出现了未关闭的语句,或者是其他的循环问题。1、检查近期上线的代码,但近两周无上线的代码2、查找报告问题的语句,这个得先查找到未关闭的游标,再确认语句原创 2021-07-01 17:35:00 · 1521 阅读 · 0 评论 -
oracle 表及表空间常用操作
常用操作新建表空间及用户创建临时表空间create temporary tablespace aibs_temp tempfile '/u02/oradata/temp/aibs_temp.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local; 创建数据表空间create tablespace aibslogging datafile '/u02/oradata/a原创 2021-01-05 10:58:09 · 99 阅读 · 1 评论 -
oracle 重建数据库实例
删除实例停止监听及数据库[oracle@POC-ORACLE ~]$ lsnrctl stop[oracle@POC-ORACLE ~]$ sqlplus / as sysdbaSQL*Plus: Release 19.0.0.0.0 - Production on Tue Jan 5 10:44:43 2021Version 19.3.0.0.0Copyright (c) 1982, 2019, Oracle. All rights reserved.Connected to:O原创 2021-01-05 10:54:15 · 1850 阅读 · 0 评论 -
oracle dbf文件移动
背景oracle空间不足,发现dbf文件未按设计的路径存放,linux磁盘挂载空间未利用,需要移动一下位置错误的dbf文件。检查文件系统/home/oracle \>df -h文件系统 容量 已用 可用 已用% 挂载点/dev/mapper/lv01-root 22G 4.5G 16G 23% /devtmpfs 3.8G 0 3.8G 0% /devtmpfs 3.9G 96K 3.9G 1% /dev/shmtmpfs 3.9G 153M 3.7G 4% /runtm原创 2020-05-20 21:45:55 · 1306 阅读 · 0 评论 -
oracle 11g 图形安装教程
一、检查硬件是否满足要求非自建虚拟机可忽略检查 RAM 和 Swap大小[root\@localhost \~]\# grep MemTotal /proc/meminfo MemTotal: 1023904 kB[root\@localhost \~]\# grep SwapTotal /proc/meminfo SwapTotal: 2064376 kB注:1)所需最小 RAM 为 512MB,而所需最小交换空间为 1GB。对于 RAM 小于或等于 2GB的系原创 2020-05-18 21:21:38 · 808 阅读 · 0 评论 -
oracle sysctl.conf 配置文件详解
sysctl.conf配置详解接上一篇oracle 12 c静默安装 其中的 sysctl.conf配置详解sysctl.conf配置[root\@POC-ORACLE \~]\# vi /etc/sysctl.conffs.file-max = 6815744fs.aio-max-nr = 1048576 kernel.sem = 250 32000 100 128 kernel.shmmni = 4096 kernel.shmall = 1073741824 ker原创 2020-05-17 22:24:05 · 1895 阅读 · 1 评论 -
oracle 12c 静默安装教程
Oracle 12c 静默安装教程环境Linux redhat 6.9Oracle:Oracle 12.2.0.1安装准备#配置主机IP与主机名[root\@POC-ORACLE \~]\# vi /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4\#192.168.187.129 POC-ORACLE192.9.201.129 POC-ORACLE\#192原创 2020-05-16 23:11:56 · 3197 阅读 · 2 评论 -
oracle中添加删除主键
1、创建表的同时创建主键约束(1)无命名create table student ( studentid int primary key not null, studentname varchar(8), age int);(2)有命名create table students ( studentid int , studentname转载 2017-01-05 16:18:37 · 256 阅读 · 0 评论 -
sqlplus常用命令
sqlplus /? 查看sqlplus说明1.登录连接sqlplus / as sysdba 以数据库管理员登录sqlplus /nolog 登录使用用户sqlplus frontdb/frontdb 使用用户密码登录conn frontdb/frontdb 连接登录conn frontdb/frontdb(@Host/ORCL)连接到指定主机的指定数据库2.查看登录用户show user3.运...原创 2016-12-14 22:44:22 · 490 阅读 · 0 评论