排序
Oracle 索引增删改查
1、创建索引 create index 索引名 on 表名(列名); 2、删除索引 drop index 索引名; 3、创建组合索引 create index 索引名 on 表名(列名1,,列名2); 查看目标表中已添加的索引 --在数据库中查找表...
最小化centos7 安装 oracle 数据库
一、系统安装 oracle的安装需要一些基础条件 :swap分区8G 磁盘空间大于30G 创建虚拟机并加载iso镜像 进入安装界面 如下截图操作即可 二、服务器初始化 1.防火墙 sed -i 's#SELINUX=enforcing#S...
Oracle数据回滚
create table test( id int, name varchar2(5) ) select * from test; insert into test (id,name) values(1,'张三'); insert into test (id,name) values(2,'李四'); insert into test (id,nam...
Oracle查看表空间使用情况
select dbf.tablespace_name, dbf.totalspace '总量(M)', dbf.totalblocks as 总块数, dfs.freespace '剩余总量(M)', dfs.freeblocks '剩余块数', (dfs.freespace / dbf.totalspace) * 100 '空...
Oracle 基本查询
SQL结构化查询语言: 1:DDL数据定义语言 create alter drop truncate2: DML数据操纵语言 insert update delete3: DCL数据控制语言 grant revoke4: DQL数据查询语言 select from子句 where子句 ...
将Oracle字段时间戳更新为当前日期
更新Oracle某个字段的时间戳 UPDATE your_table SET your_column = systimestamp WHERE ... 1、根据update_datetime更新为最新的时间
ORA-01033错误
windows 服务器 先进入oracle 服务器 cmd sqlplus /nolog conn /as sysdba alter pluggable database orclpdb open; 看看行不行,如果提示没有转载数据库提示,就用重启命令 shutdown imme...
ORA-12541(linux 服务器)
1、远程登录服务器(使用putty 等软件)输入远程账号 root (回车),然后输入密码 2、查看oracle 端口是否存在,查看命令如下 netstat -ntlp 3、登录Oracle su – oracle sqlplus '/as sysdba'...