directory

数据库导出导入

核能气质少年 提交于 2020-01-27 02:49:30
select * from dba_directories 可以查看路径后边的‘DATA_PUMP_DIR’指的dmp存放路径 //数据导出 oracle用户登录 su - oracle 语法: expdp 用户名/密码@ip地址/实例 [属性] 属性: DIRECTORY :–导出的逻辑目录,一定要在oracle中创建完成的,并且给用户授权读写权限 dumpfile :–导出的数据文件的名称,如果想在指定的位置的话可以写成 dumpfile =/home/oracle/userxx.dmp schemas :–使用dblink导出的用户不是本地的用户,需要加上schema来确定导出的用户,类似于exp中的owner,但还有一定的区别 logfile :–日志文件,如果不写这个参数的话默认名称就是export.log,可以在本地的文件夹中找到 demo1: expdp mdm / wc8888 @sharedpdb DIRECTORY = DATA_PUMP_DIR schemas = MDM DUMPFILE = MDM1231 . dmp logfile = MDM1231 . log version = demo2:导出用户及对象 expdp scott / tiger @orcl schemas = scott dumpfile = expdp . dmp

dubbo(2.5.3)源码之Directory与LoadBalance

五迷三道 提交于 2020-01-26 14:40:16
D irectory: 集群目录服务 Directory, 代表多个Invoker, 可以看成List<Invoker>,它的值可能是动态变化的比如注册中心推送变更。集群选择调用服务时通过目录服务找到所有服务 StaticDirectory: 静态目录服务, 它的所有Invoker通过构造函数传入, 服务消费方引用服务的时候, 服务对多注册中心的引用,将Invokers集合直接传入 StaticDirectory构造器,再由Cluster伪装成一个Invoker ; StaticDirectory的list方法直接返回所有invoker集合; RegistryDirectory: 注册目录服务, 它的Invoker集合是从注册中心获取的, 它实现了NotifyListener接口实现了回调接口notify(List<Url>) 通俗的来说,就是一个缓存和更新缓存的过程 Directory目录服务的更新过程 RegistryProtocol.doRefer 方法,也就是消费端在初始化的时候,这里涉及到了 RegistryDirectory这个类。然后执行cluster.join(directory) 方法。这些代码在上篇博客有分析过。 cluster.join 其实就是将 Directory中的多个Invoker伪装成一个Invoker, 对上层透明,包含集群的容错机制

Create a directory if it doesn't exist

浪子不回头ぞ 提交于 2020-01-26 09:38:19
问题 In my app I want to copy a file to the other hard disk so this is my code: #include <windows.h> using namespace std; int main(int argc, char* argv[] ) { string Input = "C:\\Emploi NAm.docx"; string CopiedFile = "Emploi NAm.docx"; string OutputFolder = "D:\\test"; CopyFile(Input.c_str(), string(OutputFolder+CopiedFile).c_str(), TRUE); return 0; } so after executing this, it shows me in the D: HDD a file testEmploi NAm.docx but I want him to create the test folder if it doesn't exist. I want to

Lucene简介和使用

筅森魡賤 提交于 2020-01-26 02:59:15
全文检索 数据分类: 结构化数据:格式、长度、类型等固定,如数据库中的数据 非结构化数据:格式、长度、类型等不固定,如pdf、html文件 数据查询: 结构化数据:sql语句 非结构化数据:将非结构化数据转换为结构化数据,建立索引然后查询 全文检索就是先创建索引然后查询索引的过程 全文检索的应用场景 : 搜索引擎,如百度、谷歌 站内搜索,如微博、csdn文章 电商搜索,如淘宝、京东 等等 Lucene简介 Lucene是一个基于Java开发的开源全文检索引擎工具包,但它 不是一个完整的全文检索引擎,而是一个全文检索引擎的架构 ,提供了完整的查询引擎和索引引擎,部分文本分析引擎。 Lucene的目的是为软件开发人员提供一个简单易用的工具包,以方便的在目标系统中实现全文检索的功能,或者是以此为基础建立起完整的全文检索引擎。 Lucene提供了一个简单却强大的应用程式接口,能够做全文索引和搜寻。 Lucene实现全文检索流程 上面说到 全文检索就是先创建索引然后查询索引的过程 ,Lucene实现全文检索就是需要创建索引和查询索引。 使用Lucene 创建索引 需要的jar包: commons-io-2.6.jar junit-4.10.jar lucene-analyzers-common-7.4.0.jar lucene-core-7.4.0.jar 测试用的原始文档D:\java

Active Directory安全25个最佳实践

浪子不回头ぞ 提交于 2020-01-25 21:40:26
这是您将找到的 Active Directory 安全提示和最佳实践的最全面列表。 在本指南中,我将分享有关保护域管理员,本地管理员,审核策略,监视 AD 遭受破坏,密码策略,漏洞扫描等方面的技巧。 一探究竟: 1. 清理域管理员组 Domain Admins 组中不应有日常用户帐户,唯一的例外是默认的 Domain Administrator 帐户。 DA 组的成员非常有力量。他们在每个加入域的系统(工作站,服务器,便携式计算机等)上都具有本地管理员权限。 这就是坏人的追求。 Microsoft 建议在需要 DA 访问时,将帐户暂时放置在 DA 组中。完成工作后,您应该从 DA 组中删除该帐户。 建议企业管理员,备份管理员和架构管理员组执行此过程。 有什么大不了的? 它已成为攻击者轻松获取或破解用户凭据的方式。 一旦攻击者获得对一个系统的访问权限,他们就可以在网络内横向移动以寻求更高的权限(域管理员)。 一种执行此方法的方法称为传递哈希。 通过散列,攻击者可以使用密码散列而不是常规密码来对远程系统进行身份验证。 这些哈希可以从最终用户计算机获得。 吓人吧? 它所需要的只是一台被攻陷的计算机或用户帐户,攻击者可以借此攻陷网络。 清理 Domain Admins 组是提高网络安全性的重要第一步。这无疑会降低攻击者的速度。 从 DA 组中删除帐户的过程并不容易。我最近刚经历了这个过程

What is the difference between an Xcode Group and a Folder Reference?

安稳与你 提交于 2020-01-25 06:42:30
问题 Many places here on StackOverflow, this question has been asked and answered. However, I have found most of those, while technically correct, leave out some specific details that not only explain what's actually going on, but can be valuable information when trying to debug file references or build issues. I decided to post this here per Jeff Atwood's own comments on encouraging posting your own answers where he says... It is not merely OK to ask and answer your own question, it is explicitly

Windows batch script nested for loop pass current filename from innerloop to another command

风流意气都作罢 提交于 2020-01-25 06:41:28
问题 Really struggling with double quotes, double percent signs etc in batch script. So i have a folder, lets call it C:\EncryptedFiles It can have one or more subfolders, and each subfolder can have one or more encrypted file (with extension gpg). I need to look at everything inside C:\EncyptedFiles folder and iterate over files in each subfolder, and decrypt those files in same place where encrypted file is there. So if we have another folder called Subfolder1 with file EncryptedFile1.csv.gpg,

How to stack individual raster layers from files contained in individual subfolders in R?

旧巷老猫 提交于 2020-01-24 21:48:28
问题 I am working with raster layers. I have 10 subfolders in a parent folder. Each of the subfolders contains hundreds of raster. I would like to apply a script for each of the subfolders and to create several stacks for each of my subfolders. #List all my subfolders in my parent folder list_dirs<- list.dirs(path/parentfolder/, recursive = F) for (i in list_dir){ # set the working directory to the subfolder i setwd(i) # List all the files with a certain pattern in the subfolder i s<- list.files

Listening folders and files (changes)

谁说胖子不能爱 提交于 2020-01-24 12:44:06
问题 It's possible to listen folders and files changes (by events) on PHP or Node directly, or I need make my own method to do it? Example : I need to listen the folder /user . If I add some file into this directory the PHP or Node receives the information and run PathEvent::fileAdded("/user/user.profile") for instance. If I rename a folder it run PathEvent::pathRenamed("/user/save1", "/user/save2") . I know that PHP don't have an event system like Node. But for PHP I can, for instance, run a

Folder monitoring and event triggering according to folder status in php

徘徊边缘 提交于 2020-01-24 08:46:28
问题 There is a folder in which xml files are beeing copied at no particular time, when an event is happening. I want a php way to inspect the folder's status and when an xml file arrives, an event will be triggered.(ex.call to the xml parser). So which is the best way (in php) to monitor a folder and trigger events according to it's status? Thanx! 回答1: Haven't tried it, but maybe Inotify can help you: inotify is a Linux kernel subsystem that acts to extend filesystems to notice changes to the