Monday, May 29, 2017

Install SOA Suite 12C Quickstart with a Compact Domain.(Windows 8 64 Bit Machine)

Assumption : 

If you already know SOA 11g it will be lot more easier but if you do not know, starting fresh is no harm.Here I am configuring a Non Scalable Development Environment.It should be used for Pure Development purpose and doing POCs under Oracle Developer's free license.Kind of a Smart Stand Alone domain.


Step 1: Download and Install Database Oracle 11g XE. 
Please refer to Standard Installation Guides from Oracle or Other Blogs.
Never loose the SYS admin Password.
You may refer to the link -
http://blog.mclaughlinsoftware.com/2011/09/13/oracle-11g-xe-install/
or the pdf attached.
Download

Step 2: Open cmd as an Administrator Set JAVA_HOME with an available JDK. 



Step 3: Download an available version of SOA suite - 
For 12.2.1.0 (2 Files of 3.4 GB Approx).
http://www.oracle.com/technetwork/middleware/soasuite/downloads/soasuite1221-quickstartdownload-3050431.html
For 12.1.3.0 ( 1 File of 3GB Approx)
http://www.oracle.com/technetwork/middleware/soasuite/downloads/soa1213qsdownload-2769533.html

Step 4: cd (Change directory) to Download path and execute the extracted Jars.

%JAVA_HOME%\bin\java.exe -jar fmw_<YOUR_VERSION>_soa_quickstart.jar
A screen appears , skip the second screen and below screen appears - Choose Default and progress
If You Get below Warning like below -
  • Problem: This JDK version was not certified at the time it was made generally available. It may have been certified following general availability. Recommendation: Check the Supported System Configurations Guide (http://www.oracle.com/technetwork/middleware/ias/downloads/fusion-certification-100350.html) for further details. Press "Next" if you wish to continue. Expected result: 1.8.0_11 Actual result: 1.8.0_131 

Please hault and use a certified JDK and then progress.Like I had JDK 1.8.0.11 and its not certified to give best results.Hence I need to upgrade and Redo Step 2 and Step 4.

I went to - http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
and downloaded -
Windows x64198.03 MB  jdk-8u131-windows-x64.exe



SET JAVA_HOME="C:\Program Files\Java\jdk1.8.0_131"
"cd" to the location where the installer jars are present and execute the Jar.
Still the Warning was Present.
  • Problem: This JDK version was not certified at the time it was made generally available. It may have been certified following general availability. Recommendation: Check the Supported System Configurations Guide (http://www.oracle.com/technetwork/middleware/ias/downloads/fusion-certification-100350.html) for further details. Press "Next" if you wish to continue. Expected result: 1.8.0_51 Actual result: 1.8.0_131 

However the certification Matrix Says any version of JDK above 1.8.0_51 is fine.Hence I am OK with it.Cert Matrix for 12C : Download Fusion Certification Matrix

Proceed -
Save Response File (Good practice - Its used to install SOA in Managed Server hosts)

Click Finish - It Will Start Up Jdeveloper 12 which comes bundled with this pack.

Step 5: Open RCU and Create Necessary Schemas before creating a Weblogic Domain.

Navigate to C:\Oracle\Middleware\Oracle_Home\oracle_common\bin
Right Click on rcu.bat and run as Administrator.
It opens up RCU Creation GUI.Select Default Value in Next 2 Screens and proceed to "Database Connection Details" page.

Give Details :
Host Name : localhost (Or you may give 127.0.0.1)
Port : 1521 (Default port)
Service Name : XE
Username : SYS
Password : (Whatever you chose during DB installation in Step 1)
Role : SYSDBA

You Will Encounter a Warning of Database XE being not certified ignore that.
Click OK. Incase it is your first installation you may choose the prefix DEV.
I already had DEV for SOA11g installation so I had chosen DEV12C





No more tweaks here.Proceed till End of this process.You will encounter few Warnings in this process before "Audit Services" related Table Spaces , you may choose to ignore that.

Close this screen.

Step 6: Domain Creation
Navigate to C:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin
Right Click on config.cmd and run as Administrator.
It opens up Domain Configuration Wizard GUI.
I chose the name to be : soa12c_domain
C:\Oracle\Middleware\Oracle_Home\user_projects\domains\soa12c_domain

I chose the below options for things to run :


Click Next.
Provide Password (Do not forget this).
Choose Domain Mode as Development.
Choose Default JDK.
Get Database Auto Configured. Because it will create the data sources automatically instead of you going and manually creating it which you can anyway do.
Once it tells Success click next.
In the next page ( Do not select any Checkbox anything ) Click Next.




Click Next.
Click Next in the Keystore page as we could setup the SSL Later.
In Advanced Configuration Select all the Check Boxes and proceed.
In the "Node Manager" Page Choose "Manual Node Manager Setup" to skip the process.


Keep on clicking Next until you reach "Domain FrontEnd Host"
Un-check the box and click Next.
Keep On Clicking "Next" Until you hit the "Create" button.




Directly Starting the Servers from Console Landed me Up in Error as the Node Managers were not correctly configured.Hence

I opened command Prompt and navigated to :
C:\Oracle\Middleware\Oracle_Home\user_projects\domains\soa12c_domain\bin
and executed - startManagedWebLogic.cmd osb_server1 http://Deb_Kriti:7001 and
did the same for other servers.


Next Post Shall be of Configuring Node Managers,,and then we may jump to POCs.
Thanks!!

Wednesday, January 22, 2014

regex and regcmp usage in c++ coding

Incase you need to perform a string comparison or format matching using regex and regcmp subroutines.

Like I have a pattern like :
"AB1234/23JAN/MEL/DEL" or "AANNN/NNAAA/AAA/AAA"
If any message fails to satisfy this pattern I need to throw some error..
How do I do that in Unix + C++ env?

Generally in UNIX there is a binary called "regcmp". Actual path is /usr/ccs/bin/regcmp
We will use this binary to get a character pattern from this like below.
Command :
1) I created a file named "regfile".
Below is the content:
[host:deb]{deb}/home/users/deb=>less regfile
a "AB1234/23JAN/MEL/DEL"

regfile (END)
2) Executed command : 
regcmp - regfile
3) It generated a file :
regfile.c
4) Content of the file regfile.c :
[host:deb]{deb}/home/users/deb=>less regfile.c
/* "AB1234/23JAN/MEL/DEL" */
char a[] = {
024,0101,024,0102,024,061,024,062,024,063,024,064,
024,057,024,062,024,063,024,0112,024,0101,024,0116,
024,057,024,0115,024,0105,024,0114,024,057,024,0104,
024,0105,024,0114,064,
0};
5) C++ code:

parseInput(const string& input, string& carrier, string& command)
{

   char input[] = {
          024,0101,024,0102,024,061,024,062,024,063,024,064,
024,057,024,062,024,063,024,0112,024,0101,024,0116,
024,057,024,0115,024,0105,024,0114,024,057,024,0104,
024,0105,024,0114,064,
0};

   char buffering[21];
   memset(buffering,0,20);

   if (regex(input,(char*)input.c_str(),buffering)==NULL)
   {
      cout >> "Invalid input - required format is AAnnnn/nnAAA/AAA/AAA.");
   }
}

Thank You.


Tuesday, July 2, 2013

Efficient Windows Search - Browse the contents of the files.


Unable to find a file you are after!!!.
Suppose The File name you are looking for is "Wimbledon2013.doc" but you cant recall its name .
But you remember that it contained "Andy Murray".
Here you go - Search with "Andy Murray" and it will show you "Wimbledon2013.doc".

In Short, You can go to
  1. "Folder Options"
  2. "Search"
  3. In "What  to Search" option Choose "Always Search File Names and Contents(this may take several minutes)
  4. Press OK.

This can be more useful when you do code debugging.

Tuesday, June 25, 2013

Lazy Emailing

Being a Lazy Guy it kills me to login to my two email accounts Gmail and Yahoo and keep on toggling between them.
In my smartphone I have an option where I have configured both my emails and it displays me as a whole..also I have an option to choose either of 2.
If I don't have Outlook or desktop email clients and I want to do some thing similar then with what available in web what should I do then?..
I chose 2 options..
1) Whatever email comes to my Yahoo email account , I enabled a rule to forward it to my gmail account.
Its pretty simple.Those who are not aware please refer to the screenshot below.

2) Now suppose I want to achieve this -
I will login to my gmail account and I will send an email to my friend.
However, My friend will think I have sent the email from my Yahoo account..

Opaque??
I will do the following.
1.I will sign in to gmail.
2.I will Compose an email.
3.I will Get an option to chose between my Gmail id and Yahoo Id while I send an email.
4.Sent it.

Something like this :


Cool right? This is how you do it..




Now here is the pop up :
Now Choose  Send through Gmail (easier to set up)
Now Choose "Send Verification"
Verify.
Send a test email

Thanks for reading Guys...



Disk Cleanup with Task Scheduler

A Task Scheduler helps you to run a task which you plan to do manually.

Like Every Monday I need to run a job to cleanup junk files from my laptop.

So what I do?
1.go to Start button.
2.Locate Accessories.
3.Locate System tools.
4.Choose the tool Disk Cleanup.

After clicking few yes/next/finish it gives me a satisfaction that my lappy is free of Junk files.

I want to forget this task.So I gave the responsibility to my laptop to remember this.Now how I did? Googled..
1.go to Start button.
2.Locate Accessories.
3.Locate System tools and Task Scheduler.
4.Googled and found that the program/executable which runs to clean up my disk is known as "cleanmgr.exe" and is located in the path %windir%\system32\cleanmgr.exe
5.I opened Task Scheduler.
6.In right Pane there was Actions Tab, I chose "Create Basic task" and a window popped up.
7.I gave my Task a relevant name and some description and clicked next.
8.It took me to a page where it asked when I want to run my job.Its full of radio buttons.I chose Weekly and clicked Next.
9.Here I gave the timing and clicked Next.
10.It asked What action I need to perform.I chose "Start a program" and clicked next.
11.It asked me which script to Run - I gave %windir%\system32\cleanmgr.exe and clicked next and finished it.
Now every Monday DiskCleanup runs automatically.

I Just click and permit it to run.

You can try googling and experimenting with Task Scheduler..Even I will.
Thanks for reading.