Langsung ke konten utama

Postingan

Menampilkan postingan dari 2019

Installing pip for Python

Installing pip for Python 3 Ubuntu 18.04 ships with Python 3, as the default Python installation. Complete the following steps to install pip (pip3) for Python 3: Start by updating the package list using the following command: $ sudo apt update Use the following command to install pip for Python 3: $sudo apt install python3-pip The command above will also install all the dependencies required for building Python modules. Once the installation is complete, verify the installation by checking the pip version: $ pip3 --version The version number may vary, but it will look something like this: pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6) Installing pip for Python 2 Python 2 is not installed by default in Ubuntu 18.04. To install Python 2 and pip for Python 2, complete the following steps: Update the package index by running the following command: $ sudo apt update Install pip for Python 2 with: $ sudo apt install python-pip The command above will install Python2, Pip and all

FMW 12.2.1.3.0: "ONS configuration failed" or "oracle.ons.NoServersAvailable: Subscription time out"

FMW 12.2.1.3.0: "ONS configuration failed" or "oracle.ons.NoServersAvailable: Subscription time out" Solving To implement the workaround in the Configuration Wizard(config.sh) set the following environment variable before launching config.sh. $ export CONFIG_JVM_ARGS=-Doracle.jdbc.fanEnabled=false

How To Remove Oracle JDK in Linux

To remove Oracle JDK, It could be done like this: Remove the link: $ sudo update-alternatives —remove "java" "/usr/lib/jvm/jdk[version]/bin/java"   $ sudo update-alternatives —remove "javac" "/usr/lib/jvm/jdk[version]/bin/javac"   $ sudo update-alternatives —remove "javaws" "/usr/lib/jvm/jdk[version]/bin/javaws" Then, remove the package in the /usr/lib/jvm: $ sudo rm -r /usr/lib/jvm/jdk[version]

Failure -Test Failed: IO Error: The Network Adapter could not establish the connection

After installing the Oracle 12c, I have created the new schema(s). Once I created the schema also installed the Oracle Sql Developer. I created the new connection but I am not able to connect through the Oracle sql developer. I am able to connect through sqlplus. while try to connect through the oracle sql developer am getting the error.  lo exception: The Network Adapter could not establish the connection Solution $ sudo systemctl stop  firewalld

The Main Difference Between Unicast and Multicast is as Follows

Unicast: Say you have three servers (MS-1,MS-2,MS-3) in a cluster now if they have to communicate with each other they have to ping (i.e. heartbeats ) the cluster master for informing him that he is alive. If MS-1 is the master then MS-2 and MS-3 would send the ping to MS-1 Multicast: Here there is no cluster master each server has to ping each other to inform everyone that I am alive. So MS-1 would send the ping to MS-2 & MS-3 same way MS-2 would send the ping to MS-1 & MS-3 and MS-3 would ping MS-1 & MS-3. Thus if you see in multicast the congestion in sending the pings are more compared to unicast which makes multicast much heavier, thus WLS recommends using Unicast of less congestion in the network.

Mounting USB drives in Windows Subsystem for Linux

Windows Subsystem for Linux can use (mount): SD card USB drives CD drives (CDFS) Network drives UNC paths Local storage / drives Drives formatted as FAT, ExFAT or NTFS can be mounted in WSL. For this example, we assume the drive shows in Windows as F:\ If Windows changes the USB drive letter on a subsequent session, you need to repeat this process. The commands are typed into the Windows Subsystem for Linux Terminal. Create a mount location in WSL: $ sudo mkdir /mnt/f Mount the drive in WSL: $ sudo mount -t drvfs f: /mnt/f After this one-time setup, one can create and manipulate files from both Windows and WSL on the same drive. network storage Here we assume: networked storage is already showing in Windows under \\server\share we want to access this network storage from WSL as /mnt/share Create a mount location in WSL: $ sudo mkdir /mnt/share Mount the network share in WSL: $ sudo mount -t drvfs '\\server\share' /mnt/share

Linux command to change UID and GID

Let us see some examples and commands to change a user and group ID in Linux: To assign a new UID to user called foo, enter: # usermod -u 2005 foo To assign a new GID to group called foo, enter: # groupmod -g 3000 foo Verify that you changed UID and GID for given users with the help of ls command: # ls -l

How To Change SYS user password for oracle database instance

How To Change SYS user password for oracle database instance If you have ever tried to change the SYS of a normal or ASM database instance Password, you would get errors as below : SQL> password Changing password for SYS Old password: New password: Retype new password: ERROR: ORA-00600: internal error code, arguments: [15051], [], [], [], [], [], [], [] SQL> select INSTANCE_NAME from v$instance; INSTANCE_NAME ---------------- +ASM SQL> ALTER USER sys IDENTIFIED BY [new_password] REPLACE [old_password]; ALTER USER sys IDENTIFIED BY [new_password] REPLACE [old_password] * ERROR at line 1: ORA-01109: database not open The following error also might occur: SQL> alter user sys identified by ; alter user sys identified by * ERROR at line 1: ORA-01031: insufficient privileges The reason behind these failures are – The password should be the one provided when the password file was created, also REMOTE_LOGIN_PASSWORDFILE should be se

ORA-12154: TNS:could not resolve the connect identifier specified

ORA-12154: TNS:could not resolve the connect identifier specified: Solution Verify a TNSNames.ora file exists on the QuickConnect server By default, the TNSNames.ora file resides in <OracleInstallDirectory>\network\admin If the TNSNames.ora file does not exist, reference the following guide on how to create one: https://oracle-base.com/articles/misc/oracle-network-configuration Set the TNS_Admin environment variable if it is not set:     Navigate to Control Panel > System     Select Advanced System Settings     In the Advanced tab, select Environment Variables     Under System Variables, click New     In the Variable name text box, type TNS_ADMIN     In the Variable value text box, type the location of the TNSNames.ora file     Click OK to add the variable     Restart the server

ERROR ORACLE DB: The version 12.2.0.1.0 of the database that you are using is not a supported version

ERROR ORACLE DB: The version 12.2.0.1.0 of the database that you are using is not a supported version or The specified user may not have sufficient privileges to perform this operation. User should have sysdba or dba privileges. Solution SQL> alter system set db_32k_cache_size = 512M scope=both;

How do I resolve this “ORA-01109: database not open” error?

How do I resolve this "ORA-01109: database not open" error? As the error states - the database is not open - it was previously shut down, and someone left it in the middle of the startup process. They may either be intentional, or unintentional (i.e., it was supposed to be open, but failed to do so). Solution Assuming that's nothing wrong with the database itself, you could open it with a simple statement: SQL> ALTER DATABASE OPEN;

BASH - How Do I Get a Colored Bash

BASH - How do I get a colored bash?   Open ~/.bashrc in an editor Copy this and add it at the end of .bashrc file: PS1='\[\033[1;36m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h:\[\033[1;35m\]\w\[\033[1;31m\]\$\[\033[0m\] ' Save the file and restart bashrc: $ source ~/.bashrc $ PS1='\[\033[1;36m\]\u\[\033[1;31m\]\$\[\033[0m\] '

Install jq on Raspberry Pi

jq is a lightweight and flexible command-line JSON processor. jq is like sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed , awk , grep and friends let you play with text. jq is written in portable C, and it has zero runtime dependencies. You can download a single binary, scp it to a far away machine of the same type, and expect it to work. jq can mangle the data format that you have into the one that you want with very little effort, and the program to do so is often shorter and simpler than you'd expect. $ cd /tmp $ wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz $ tar xfvz jq-1.5.tar.gz $ cd jq-1.5 $ ./configure && make && sudo make install

No acceptable C compiler found in $PATH when installing jq

jq is a lightweight and flexible command-line JSON processor. jq is like sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed , awk , grep and friends let you play with text. ivanhoe@ubuntumate-raspberry:~/sw/jq-1.5$ ./configure configure: error: no acceptable C compiler found in $PATH Solving The gcc compiler is not in your $PATH . It means either you dont have gcc installed or it's not in your $PATH variable. To install gcc use this: (run as root) Redhat base: yum groupinstall "Development Tools" Debian base: apt - get install build - essential ivanhoe@ubuntumate-raspberry:~/sw/jq-1.5$ sudo apt-get install build-essential

Error weblogic.management.DeploymentException: [Deployer:149003]Unable to access application source information

Home > Summary of Deployments End of repetitive links Error weblogic.management.DeploymentException: [Deployer:149003]Unable to access application source information in '/u01/oracle/config/fmw_oepe/domains/OsbDomain/servers/WLS_WSM1/stage/wsm-pm/wsm-pm.ear' for application 'wsm-pm'. The specific error is: [Deployer:149158]No application files exist at '/u01/oracle/config/fmw_oepe/domains/OsbDomain/servers/WLS_WSM1/stage/wsm-pm/wsm-pm.ear'.. Warning Errors were encountered while performing this operation. Solving $ cd /u01/oracle/config/fmw_oepe/domains/OsbDomain/servers/WLS_WSM1/stage/wsm-pm/ $ cp /u01/oracle/products/fmw_oepe/oracle_common/modules/oracle.wsm.pm_11.1.1/wsm-pm* .

[ERROR] AdapterManager - ServletContainerAdapter manager not initialized correctly

[ERROR] AdapterManager - ServletContainerAdapter manager not initialized correctly . <Error> <oracle.wsm.resources.policymanager> <WSM-02120> <Unable to connect to the policy access service. oracle.wsm.policymanager.PolicyManagerException: WSM-02120 : Unable to connect to the policy access service. Cause Potential Cause 1: servers not started up yet One or more managed servers to which wsm-pm has been targeted have not been started up yet. Potential Cause 2: misconfigured Policy Accessor URL Misconfigured Policy Accessor URL in config/fmwconfig/policy-accessor-config.xml. Potential Cause 3: inconsistent SSL configuration Any Inconsistent SSL configuration in the Weblogic Domain can break OWSM. OWSM will, by default, attempt to use SSL for internal connectivity when SSL is configured on any server. An example of an inconsistent configuration: Three servers, Admin Server, soa_server1, bam_server1. No SSL on Admin Server or on soa_server1. S

[ERROR] Exception in thread "main" java.lang.UnsatisfiedLinkError

[ERROR] Exception in thread "main" java.lang.UnsatisfiedLinkError   oracle@unknown:/u01/oracle/products/fmw_oepe/rcuHome/bin$ ./rcu Exception in thread "main" java.lang.UnsatisfiedLinkError: /u01/oracle/products/fmw_oepe/rcuHome/jdk/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory SOLVING $ cd /usr/lib/x86_64-linux-gnu/ ivanhoe@unknown:/usr/lib/x86_64-linux-gnu$ ll | grep libXtst lrwxrwxrwx   1 root root        16 Okt 11 11:23 libXtst.so.6 -> libXtst.so.6.1.0 -rw-r--r--   1 root root     22944 Des  6  2016 libXtst.so.6.1.0 ivanhoe@unknown:/usr/lib/x86_64-linux-gnu$ sudo ln -s libXtst.so.6 libXtst.so [sudo] password for ivanhoe: ivanhoe@unknown:/usr/lib/x86_64-linux-gnu$ ll | grep libXtst lrwxrwxrwx   1 root root        12 Jan  4 10:27 libXtst.so -> libXtst.so.6 lrwxrwxrwx   1 root root        16 Okt 11 11:23 libXtst.so.6 -> libXtst.so.6.1.0 -rw-r--r--   1 root root     22944 Des  6  201

Creating Standalone domain in Oracle SOA 12.1.3.0 using qs_config. Tried same in 12.2.1.2 version also but getting error just after UI gets launched

Creating Standalone domain in Oracle SOA 12.2.1.2.0 using qs_config. Tried same in 12.2.1.3.0 version also but getting error just after UI gets launched This question has been Answered. com.oracle.cie.wizard.tasks.TaskExecutionException:CFGFWK-60930:Failed to select template SOA version: 12.2.1.2.0 Platform: Unix / Linux Error details: Solution It does not pick the variable from environment variables and hence path remain invalid . 1) Simply edit file qs_templates.sh from location $ORACLE_HOME/soa/common/bin Uncomment your choice in the file and save it, Or You can to set variable QS_TEMPLATES: $ export JAVA_HOME="$HOME/jdk.1.8.0.144" $ export ORACLE_HOME="$HOME/Oracle/Middleware/Oracle_Home_12212" $ export QS_TEMPLATES="$ORACLE_HOME/soa/common/templates/wls/oracle.soa_template.jar, $ORACLE_HOME/osb/common/templates/wls/oracle.osb_template.jar" 2) Simply run qs_config.sh and create domain.

OSB 12c Install/config RCU Command Fails With Jdk16/jdk/jre//bin/java No Such File or Directory

Applies to: Oracle Service Bus - Version 11.2.1.0.3 and later Information in this document applies to any platform. Symptoms Installing 12.2.1.3 Oracle Service Bus and the RCU command to create a repository is failing with jdk16/jdk/jre//bin/java. I installed JDK 1.7 on the server, weblogic server 12c 12.2.1.3 (java -jar fmw_12.2.1.3.0_infrastructure.jar) and Oracle Service Bus 12c (java -jar fmw_12.2.1.3.0.jar) and these run successfully. when rcu was executed it complained that jdk16/jdk/jre//bin/java: No such file or directory. below is the actual message text. [oracle@servicebus1:/u01/app/oracle/product/fmw/WLS_Server/oracle_common]$ ./rcu Unable to locate java at the following location: /u01/app/oracle/product/fmw/WLS_Server/oracle_common/../jdk16/jdk/jre//bin/java. Please set the correct value for JAVA_HOME or ORACLE_HOME and try again. ./rcu: line 344: /u01/app/oracle/product/fmw/WLS_Server/oracle_common/../jdk16/jdk/jre//bin/java: No such file or dir