1.查找指定列名
select COLUMN_NAME 列名, COMMENTS 注释 from user_col_comments where table_name = ‘JBXX’
and COLUMN_NAME =‘XB’
找到oracle的鉴定器位置
D:\work\sql\database\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN
https://www.programminghunter.com/article/61281049901/
navicat连接oracle
https://www.shangmayuan.com/a/1b462afb3a344f5abf6a023f.html
总结
–表空间
CREATE TABLESPACE qhkss2018
DATAFILE ‘D:\app\space\qhkss2018.dbf’ size 100M
EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
– 2.建用户
create user qhkss2018 identified by qweasd
default tablespace qhkss2018;
– 3.赋权
grant connect,resource,dba to qhqzyl;
– grant connect,resource to qhkss2018;
– grant create any sequence to qhkss2018;
– grant create any table to qhkss2018;
– grant delete any table to qhkss2018;
– grant insert any table to qhkss2018;
– grant select any table to qhkss2018;
– grant unlimited tablespace to qhkss2018;
– grant execute any procedure to qhkss2018;
– grant update any table to qhkss2018;
– grant create any view to qhkss2018;
– 删除用户
drop user qhkss2018 cascade
– 删除表空间
DROP TABLESPACE qhkss2018 INCLUDING CONTENTS AND DATAFILES;
– 查询用户
select * from all_users
– 查询表空间,用户名一定要大写
select default_tablespace from dba_users where username=‘QHKSS2018’;
imp qhkss2018/qweasd@orcl file=D:\tool\2022.3.29\qhkss2018.dmp full=y ignore=y
查字端
--column_name:列名称
--data_type : 列类型
-- DATA_LENGTH:列定义的长度
--all_tab_columns 所有表列
--table_name 表名
select column_name, data_type, DATA_LENGTH
From all_tab_columns
where table_name = upper('表名')
AND owner = upper('数据库登录用户名')