Posts

Showing posts with the label Linux

java.lang.SecurityException: The jurisdiction policy files are not signed by a trusted signer

I was trying to Install OID (Oracle Identity Manager) and I got this error : Problem:         at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:186)         at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)         at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:86)         at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism         at javax.crypto.JceSecurity.<clinit>(JceSecurity.java:88)         ... 31 more Caused by: java.lang.SecurityException: The jurisdiction policy files are not signed by a trusted sig...

uninstall java on linux

If you are not sure of what the dependent packages that might be blocking java then you can also use yum remove jdk* This will also take care of dependent rpms . [root@linux06 usr]# yum remove jdk1.8.0_111-1.8.0_111-fcs.i586 Loaded plugins: refresh-packagekit, security Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package jdk1.8.0_111.i586 2000:1.8.0_111-fcs will be erased --> Processing Dependency: java for package: jna-3.2.4-2.el6.x86_64 --> Running transaction check ---> Package jna.x86_64 0:3.2.4-2.el6 will be erased --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================  Package           Arch        Version                 Repository ...

UNIX Permissions - table

Image
Unix/Linux Permissions: Here is the list of values and what they stand for in unix folder/directory permissions.Basically it is a simple you can count the value by using octa decimal binary numbers 421 : See below image  Value 0 directory listing is 000 = 0+0+0  Value 1 directory listing is 001 = 0+0+1 Value 2 directory listing is 020 = 0+0+0    This is where they gain their permission from : so simple chmod 1 will give execute only permision on file/folder so simple chmod 2 will give write only permision on file/folder so simple chmod 3 will write & execute permision on file/folder chmod 775 test.txt >> this mean 7 for  UNIX  Permissions Value Permission Directory Listing 0 No read, no write, no execute --- 1 No read, no write, execute --x 2 No read, write, no execute -w- 3 No read, write, execute -wx 4 Read, no write, no execute r-- 5 Read, no write, execute r-x 6 Read, write, no execute rw- 7 Read, write, execute rwx

Linux commands

REMOVE ALL FILES OLDER THAN 15 DAYS: [oracle@Linux01 dpump]$ find /u01/app/oracle/dpump/*.dmp -mtime +15 -exec rm {} \; GZIP ALL FILES OLDER THAN 15 DAYS: [oracle@linux01 dpump]$ find /u01/app/oracle/dpump/*.dmp -mtime +15 -exec gzip {} \; FIND ALL EXTENSION TYPES IN CURRENT DIRECTORY -  Linux/Unix: find . -type f | grep -E ".*\.[a-zA-Z0-9]*$" | sed -e 's/.*\(\.[a-zA-Z0-9]*\)$/\1/' | sort | uniq -c | sort -n [atoorpu@Linux01 trace]$ find . -type f | grep -E ".*\.[a-zA-Z0-9]*$" | sed -e 's/.*\(\.[a-zA-Z0-9]*\)$/\1/' | sort | uniq -c | sort -n SAMPLE OUTPUT : [atoorpu@Linux01 trace]$ find . -type f | grep -E ".*\.[a-zA-Z0-9]*$" | sed -e 's/.*\(\.[a-zA-Z0-9]*\)$/\1/' | sort | uniq -c | sort -n         1 .log     1 .txt     952 .trc     952 .trm Note :  Will update more.

Configure Putty tunnel

WinSCP Config The WinSCP Config is quite simple and utilizes its “tunnel” feature. Open WinSCP and configure a saved session for the final destination host as follows: On the Session page, fill in the hostname and user name for the final destination host. Leave the password blank. Check the “Advanced options” box in the login dialog. Select the Connection –> Tunnel page. Check the “Connect through SSH tunnel” box. Fill in the Host name and user name of the intermediate host. Leave the password blank. Save the session using the button in the lower right-hand corner of the window. When you log in using the new profile, you will be prompted for two passwords. The first is for your account on the intermediate host, and the second is for your account on the final-destination host. After login, the bounce is entirely transparent and WinSCP works as if you had connected directly to the final-destination host. The connection process can be made even more transparent and secure by...

create shared disks (vdi) on Virtualbox for ASM - vboxmanage command line

Image
                                        vboxmanage command line  For our scenario : Lets create shared disks (vdi) on Virtualbox for ASM setup.  If you are getting error like below make sure you have virtual-box set in your environmental path: In my case I have to add "C:\Program Files\Oracle\VirtualBox\" to my path. To add it to your environmental path goto : Startup >> computer (right click) >> properties >> advanced system settings >> environmental variables >>   Click on start Right click on Computer Click Properties Click Advanced system settings Click Environment Variables Go to system variables find Path and edit it add your file location at the end of the box. Add your virtual box installed path, usually c\programe files \ oracle Now test the vboxmanage cmd : You will get something like this if you have any virtual machines cr...