• Oracle创建directory


    Oracle创建directory

    一般创建directory都是为了用数据泵导入/导出数据用,其实directory还有很多别的用处,本文不做阐述

    1、新建directory的语法

    CREATE [OR REPLACE] DIRECTORY directory AS 'pathname';

    例如:

    create or replace directory dump_dir as 'D:dumpdir'

    这样把目录d:dumpdir设置成dump_dir代表的directory

    2、查询有哪些directory

    select * from dba_directories

    3、赋权

    grant read,write on directory dump_dir to user01

    4、删除

    drop directory dump_dir

    例:

    1	SYS	FILEDIR	C:	empPMS	emplateXLSX	5
    2	SYS	FILE_DIR_DOCX	C:	empPMS	emplateDOCX	5
    3	SYS	FILE_DIR_XLSX	C:	empPMS	emplateXLSX	5
    4	SYS	ORACLECLRDIR	F:apporacleDBproduct12.2.0dbhome_1inclr	1
    5	SYS	XMLDIR	F:apporacleDBproduct12.2.0dbhome_1
    dbmsxml	1
    6	SYS	XSDDIR	F:apporacleDBproduct12.2.0dbhome_1
    dbmsxmlschema	1
    7	SYS	ORA_DBMS_FCP_LOGDIR	F:apporacleDBproduct12.2.0dbhome_1cfgtoollogs	1
    8	SYS	ORA_DBMS_FCP_ADMINDIR	F:apporacleDBproduct12.2.0dbhome_1
    dbmsadmin	1
    9	SYS	OPATCH_INST_DIR	F:apporacleDBproduct12.2.0dbhome_1OPatch	1
    10	SYS	ORACLE_OCM_CONFIG_DIR	F:apporacleDBproduct12.2.0dbhome_1ccrstate	1
    11	SYS	DATA_PUMP_DIR	F:apporacleDBadminorcldpdump/7F32D70BF49F4E2096ED8DBE4197D682	1
    12	SYS	ORACLE_OCM_CONFIG_DIR2	F:apporacleDBproduct12.2.0dbhome_1ccrstate	1
    13	SYS	OPATCH_SCRIPT_DIR	F:apporacleDBproduct12.2.0dbhome_1QOpatch	1
    14	SYS	OPATCH_LOG_DIR	F:apporacleDBproduct12.2.0dbhome_1
    dbmslog	1
    15	SYS	ORACLE_BASE	F:apporacleDB	1
    16	SYS	ORACLE_HOME	F:apporacleDBproduct12.2.0dbhome_1	1
    

      

  • 相关阅读:
    搭建MHA问题汇总
    NOIP2009 靶形数独
    get_mysql_conn_info.py
    NOIP 2005 篝火晚会
    MySQL启动关闭添加到 /etc/init.d/mysqld
    noip2002 矩形覆盖
    get_slave_status.py
    [JSOI2008]魔兽地图
    MySQL数据导出导入任务脚本
    8.30 牛客OI赛制测试赛1 F题 子序列
  • 原文地址:https://www.cnblogs.com/wzihan/p/14754244.html
Copyright © 2020-2023  润新知