Monday, June 23, 2008

Export/Import Oracle Internet Directory (OID) users

1. To export OID users with certain attributes:

connect to the source server and issue the following command

ldapsearch -h <host> -p <port> -D "cn=orcladmin" -w <pass> -L -s one –b “cn=users,dc=realsoft,dc=com" -z 1000 "cn=*" dn sn cn uid userpassword objectclass >users.ldif

please note the following:

· -z: is for size limit which means the number of users you want to export.

· “cn=*”: the search filter in our case we want all of them .

· You can define what attributes you want to be exported with the user by adding the attribute name after the search filter e.g: "cn=*" dn sn cn uid userpassword objectclass

· Users.ldif: the name of the export file.

 

now in case you want all attributes, simply don't write any attribute after search filter..:)

2. To Import OID users:

· Connect to the destination server

· Transfer the file Users.ldif from the source server to the destination(in case of  UNIX, transfer the files using ASCII mode)

· Issue the following command:

ldapadd -h <host> -p <port> -D "cn=orcladmin" -w <pass> -c -v –f users.ldif

Thanks.

Sultan

Monday, June 2, 2008

Starting and Stopping Application Server Instances

I think most of Oracle Application Server Administrators creates their own start and stop scripts for example Me :)

but I've found that oracle provides a ready made scripts for start and stop AS and they are more powerful than any script the administrator makes.

Now lets get down to Business, to start the application server instances, including the infrastructure and middle-tier, lets say after you made a restart for the host, you can use the runstartupconsole command, if you have Infra and Middle-tier installed on the same host you can run the command as follow:

 

(UNIX) ORACLE_HOME/bin/runstartupconsole.sh start all
(Windows) ORACLE_HOME\bin\runstartupconsole.bat start all

The command starts the following in the Infrastructure Oracle home:

  • The OracleAS Metadata Repository instance.
  • The Net Listener.
  • OracleAS Infrastructure processes such as Oracle Identity Management
    components, Oracle Internet Directory, OC4J_Security, DCM, and OPMN.
  • Enterprise Manager, including Application Server Control Console and Database
    Control.

The command starts the following in the middle-tier Oracle home:

  • OPMN and all OPMN-managed processes such as DCM, Oracle HTTP Server,
    OC4J instances, and OracleAS Web Cache, OracleAS Forms Services, and
    OracleAS Reports Services.
  • Enterprise Manager Application Server Control Console.

For Stopping the application server use the same command like follow:

(UNIX) ORACLE_HOME/bin/runstartupconsole.sh stop all
(Windows) ORACLE_HOME\bin\runstartupconsole.bat stop all

 

for more information go to the Oracle® Application Server Quick Administration Guide.

Sultan