oracle实例对应的文件夹,Oracle DSEE(Oracle Directory Server Enterprise Edition)命令行创建目录服务实例...

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目录不能存在,否则提示错误。

过程如下图所示:

1473485898324048384.png

2、启动实例

CMD命令:D:/Apps/AppServer/DSEE/dsee7/bin/dsadm start D:\Apps\AppServer\DSEE\dsee7\Instance\DataCenter

启动后返回实例的pid,过程如下图所示:

1473485931625052987.png

3、创建目录后缀

CMD命令:D:/Apps/AppServer/DSEE/dsee7/bin/dsconf create-suffix -p 1389 -e dc=domain

过程如下图所示:

1473485947106027594.png

cn=Directory Manager的口令为:admin123

4、导入ldif数据文件操作

导入现有的ldif文件,非必须操作:

CMD命令:D:/Apps/AppServer/DSEE/dsee7/bin/dsconf import -p 1389 -e  D:/data.ldif dc=domainD:\>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)。

过程如下图所示:

1473486011857084886.png

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下载

2、创建session并填写连接信息

1473486626499023243.png

连接信息:端口、IP、用户名和密码,然后保存并连接。

至此,命令行创建目录服务实例已经结束,欢迎看下集。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值