oracle sqlplus 基本命令

您所在的位置:网站首页 sqlplus查询数据库名 oracle sqlplus 基本命令

oracle sqlplus 基本命令

2023-04-14 08:36| 来源: 网络整理| 查看: 265

开启sqlplus sqlplus /nolog 系统管理员登录 conn orcl/orcl as sysdba 登录其他用户(如其他数据库) conn 用户名/密码@ora10g_131; 显示当前用户名 show user;

查看用户的表空间 select * from user_users t

导出 C:\Documents and Settings\Administrator>exp platform/platformtest@ora10g_131 file=d:/daochu.dmp

37. 查看數據庫字符狀況?

    SELECT *  FROM NLS_DATABASE_PARAMETERS;

    SELECT *  FROM V$NLS_PARAMETERS;

38. 查詢表空間信息?

    SELECT *  FROM  DBA_DATA_FILES;

//创建临时表空间 create temporary tablespace test_temp tempfile 'E:\oracle\product\10.2.0\oradata\testserver\test_temp01.dbf' size 32m autoextend on next 32m maxsize 2048m extent management local; //创建数据表空间 create tablespace test_data logging datafile 'E:\oracle\product\10.2.0\oradata\testserver\test_data01.dbf' size 32m autoextend on next 32m maxsize 2048m extent management local; //创建用户并指定表空间 create user testserver_user identified by testserver_user default tablespace test_data temporary tablespace test_temp; //给用户授予权限 grant connect,resource to testserver_user; (db2:指定所有权限)



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3