Oracle DSEE(Oracle Directory Server Enterprise Edition)命令行创建目录服务实例
Oracle DSEE安装完成后,需要创建目录服务实例,本节内容包含:DSCC的操作、命令行创建目录服务实例和客户端连接。
DSCC的操作
1、启动DSCC注册:
CMD命令:D:/Apps/AppServer/DSEE/dsee7/bin/dsadm.exe start D:/Apps/AppServer/DSEE/dsee7/var/dcc/ads
过程如下:
D:>D:/Apps/AppServer/DSEE/dsee7/bin/dsadm.exe start D:/Apps/ AppServer/DSEE/dsee7/var/dcc/ads Waiting for Directory Server instance 'D:/Apps/AppServer/DSEE/dsee7/var/dcc/ads' to start... Directory Server instance 'D:/Apps/AppServer/DSEE/dsee7/var/dcc/ads' started: pi d=6608
启动完成后返回进程的PID。
2、查看控制中心状态:
CMD命令:D:/Apps/AppServer/DSEE/dsee7/bin/dsccsetup status
过程如下:
D:\>D:/Apps/AppServer/DSEE/dsee7/bin/dsccsetup status *** DSCC Registry has been created Path of DSCC registry is D:/Apps/AppServer/DSEE/dsee7/var/dcc/ads Port of DSCC registry is 3998 ***
正常状态,异常***处会有提示。
命令行创建目录服务实例
1、创建实例
CMD命令:D:/Apps/AppServer/DSEE/dsee7/bin/dsadm create -p 1389 -P 1636 D:\Apps\AppServer\DSEE\dsee7\Instance\DataCenter
删除目录对应的是:D:/Apps/AppServer/DSEE/dsee7/bin/dsadm delete D:\Apps\AppServer\DSEE\dsee7\Instance\DataCenter
目录服务的端口:1389,目录服务的安全连接端口:1636。
注:D:\Apps\AppServer\DSEE\dsee7\Instance\DataCenter目录不能存在,否则提示错误。
过程如下图所示:
2、启动实例
CMD命令:D:/Apps/AppServer/DSEE/dsee7/bin/dsadm start D:\Apps\AppServer\DSEE\dsee7\Instance\DataCenter
启动后返回实例的pid,过程如下图所示:
3、创建目录后缀
CMD命令:D:/Apps/AppServer/DSEE/dsee7/bin/dsconf create-suffix -p 1389 -e dc=domain
过程如下图所示:
cn=Directory Manager的口令为:admin123
4、导入ldif数据文件操作
导入现有的ldif文件,非必须操作:
CMD命令:D:/Apps/AppServer/DSEE/dsee7/bin/dsconf import -p 1389 -e D:/data.ldif dc=domain
D:\>D:/Apps/AppServer/DSEE/dsee7/bin/dsconf import -p 1389 -e D:/data.ldif dc=d omain 输入 "cn=Directory Manager" 口令: 新数据将会覆盖后缀 "dc=domain" 的现有数据。 必须对复制的后缀执行初始化。 是否继续 [y/n]? y ## Index buffering enabled with bucket size 40 ## Beginning import job... ## Starting to process and index entries ## Processing file "D:/data.ldif" ## Finished scanning file "D:/data.ldif" (1 entries) ## Workers finished; cleaning up... ## Workers cleaned up. ## Cleaning up producer thread... ## Indexing complete. ## Starting numsubordinates attribute generation. ## This may take a while, please wait for further activity reports. ## Numsubordinates attribute generation complete. Flushing caches... ## Closing files... ## Import complete. Processed 1 entries in 5 seconds. (0.20 entries/sec) 任务已完成(slapd 退出代码: 0)。
过程如下图所示:
data.ldif内容:
dn: dc=domain dc: domain objectClass: top objectClass: domain
5、注册目录服务实例到控制中心
CMD命令:D:/Apps/AppServer/DSEE/dsee7/bin/dsccreg add-server -h 127.0.0.1 -p 3998 D:\Apps\AppServer\DSEE\dsee7\Instance\DataCenter
操作过程如下:
D:\>D:/Apps/AppServer/DSEE/dsee7/bin/dsccreg add-server -h 127.0.0.1 -p 3998 D:\Ap ps\AppServer\DSEE\dsee7\Instance\DataCenter Enter DSCC administrator's password: D:\Apps\AppServer\DSEE\dsee7\Instance\DataCenter is an instance of DS Agent No Hostname Port Owner iPath -------- --------------- ---- ------------- -------------------------------- ---------- 0 IT-201511231109 3997 Administrator D:/Apps/AppServer/DSEE/dsee7/var /dcc/agent The registration will use DSCC agent on port: 3997 Enter password of "cn=Directory Manager" for D:\Apps\AppServer\DSEE\dsee7\Instan ce\DataCenter: This operation will restart D:\Apps\AppServer\DSEE\dsee7\Instance\DataCenter. Do you want to continue ? (y/n) y Connecting to D:/Apps/AppServer/DSEE/dsee7/Instance/DataCenter (using ldap://127 .0.0.1:1389) Enabling DSCC access to D:/Apps/AppServer/DSEE/dsee7/Instance/DataCenter Restarting D:/Apps/AppServer/DSEE/dsee7/Instance/DataCenter Registering D:/Apps/AppServer/DSEE/dsee7/Instance/DataCenter in DSCC on 127.0.0.1.
对应的删除如下:
CMD命令:D:/Apps/AppServer/DSEE/dsee7/bin/dsccreg remove-server -h 0.0.0.0 -p 3998 D:\Apps\AppServer\DSEE\dsee7\Instance\DataCenter
其中,127.0.0.1是目录服务所在机器名或IP地址。
LDAP客户端连接DSEE LDAP服务
1、LDAPBrowser下载
地址:http://www.what21.com/a/pan/software_ldap.browser.html
2、创建session并填写连接信息
连接信息:端口、IP、用户名和密码,然后保存并连接。
至此,命令行创建目录服务实例已经结束,欢迎看下集。
评论