Monday, 18 August 2014

OID: Context Initialization Error

ldapsearch


Context Initialization Error

You need to set your ORACLE_HOME to where you installed OID

an easy way on linux to do this is to firstly locate ldapsearch and then set the ORACLE_HOME to the path.

$ locate ldapsearch
/u01/app/oracle/product/fmw/Oracle_IDM1/bin/ldapsearch

$ export ORACLE_HOME=/u01/app/oracle/product/fmw/Oracle_IDM1

Then try run it again

#bearMan

Friday, 15 August 2014

OIM ldapsyncudf

oracle.iam.platform.utils.NoSuchServiceException: java.lang.reflect.InvocationTargetException
at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:197)
at oracle.iam.platform.OIMClient.getService(OIMClient.java:174)
at oracle.iam.platform.OIMClient.loginSessionCreated(OIMClient.java:209)
at oracle.iam.platform.OIMClient.login(OIMClient.java:137)
at oracle.iam.platform.OIMClient.login(OIMClient.java:129)
at oracle.iam.platformservice.utils.LDAPSyncUDFUtil.main(LDAPSyncUDFUtil.java:146)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:193)
at oracle.iam.platform.OIMClient.getService(OIMClient.java:174)
at oracle.iam.platform.OIMClient.loginSessionCreated(OIMClient.java:209)
at oracle.iam.platform.OIMClient.login(OIMClient.java:136)
... 2 more


In your OIM Sync Config make sure the OIMProviderURL's port is pointing to the port you access OIM on.

For example
OIMProviderURL=t3://localhost:14000

#bearMan

Wednesday, 13 August 2014

OIM - OAM 11.1.1.7 Error

Could not register OIM as a TAP partner. oamWlst MBean not found

This was a relatively easy fix for me, all you need to do is add 
OAM11G_WLS_ADMIN_HOST: <Host>
OAM11G_WLS_ADMIN_PORT: <port>
OAM11G_WLS_ADMIN_USER: weblogic

to your config file:
/u01/oracle/Oracle/Middleware/Oracle_IDM1/idmtools/bin/idmConfigTool.sh  -configOIM input_file=/u01/oracle/Oracle/Middleware/Oracle_IDM1/idmtools/bin/configOIM.properties

Tuesday, 12 August 2014

OIM Design Console

./xlclient.sh
Exception in thread "Main Thread" java.lang.NoClassDefFoundError: javax/ejb/CreateException
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2436)
        at java.lang.Class.getDeclaredMethod(Class.java:1937)
        at java.awt.Component.isCoalesceEventsOverriden(Component.java:5982)
        at java.awt.Component.access$500(Component.java:169)
        at java.awt.Component$3.run(Component.java:5936)
        at java.awt.Component$3.run(Component.java:5934)
        at java.awt.Component.checkCoalescing(Component.java:5933)
        at java.awt.Component.<init>(Component.java:5902)
        at java.awt.Container.<init>(Container.java:249)
        at java.awt.Window.<init>(Window.java:432)
        at java.awt.Frame.<init>(Frame.java:403)
        at java.awt.Frame.<init>(Frame.java:368)
        at javax.swing.JFrame.<init>(JFrame.java:158)
        at com.thortech.xl.gui.base.tcFrame.<init>(tcFrame.java:34)
        at com.thortech.xl.client.base.tcAppWindow.<init>(tcAppWindow.java:104)
        at com.thortech.xl.client.base.tcAppWindow.main(tcAppWindow.java:173)


cd $FMW/wlserver_10.3/server/lib/
export JAVA_HOME=<java_home>
java -jar wljarbuilder.jar

copy wlfullclient.jar to designconsole/ext/

cd $ORACLE_HOME/designconsole/
./xlclient.sh

Now you can log in.

Note: Default admin user = xelsysadm

#bearMan

Monday, 28 July 2014

Linux SSH Port Change

How to Change SSH PORT

vi Into sshd_conf

vi /etc/ssh/sshd_config
Then go to
#Port 22

Un-comment line, and change to desired port.

service sshd restart

#bearMan

Tuesday, 22 July 2014

Linux: Less

Less Is More

Wait what?
I don't agree with that statement generally, but when it comes to linux, well yea "less".

I know many people that like to tail log files, my preferred method.

Less


Less /path/to/log/file

My Observations:

It opens up a vim like terminal application that you can follow the logs and if needed, look into the logs.

Some Commands

ctrl+f = This is to go to the bottom
shift+f = This is to follow
ctrl+c = Cancel
q = Quit

#bearMan

Monday, 14 July 2014

OIM Server Logs

OIM Logs / Location / how I found them

I needed to find the OIM Log location today, and this was a pretty easy task, and I think this can be used for more than just this application. I am sure all applications will show their logs here.

Access to:
Console
ssh

so first things first, go to console, and then go to servers, click on the server you want, and click the tab, logging.


The log file name, is where the log is located.

So now for some SSH.

Go to:
user_projects/<domain>/<server>/logs/

My Use case would be

user_projects/IAMDomain/oim_server1/logs/

#bearMan