مصاحبه در گروه سولیکو (کاله)

چهارشنبه هفته پیش خانم کاظمی از شرکت کاله با من تماس گرفتن و من را برای کار در زمینه اوراکل به مصاحبه دعوت کردن . امروز هم رفتم با آقای مهندس نوری پور مدیرعامل محترم شرکت سوایت در خیابان آذربایجان شرقی , بین خ دانشگاه و خ 12 فروردین پ 103 صحبت کردم . اینجوری که فهمیدم گروه سولیکو مجموعه ای از 20 تا شرکت هست که معروف ترینش همون شرکت کاله است . حجم مبادلات مالی گروه سولیکو بیش از 2 میلیون دلار در روز می باشد . یکی از شرکت های گروه سولیکو , شرکت سوایت داده پرداز می باشد که وظیفه خدمت رسانی در زمینه آی تی به بقیه شرکت های گروه را دارد . امروز هم داشتن وسایلشون رو جمع میکردن قراره از هفته دیگه هم برن دفتر جدیدشون که در خیابان دادمان در شهرک غرب واقع شده است . آقای مهندس نوری پور آدم با کلاسی بود .قرار شد هفته دیگه برم دفتر شهرک غرب تا هم من محل کار رو ارزیابی کنم و هم بچه های فنی در زمینه اوراکل و pl/sql من رو ارزیابی کنم. شرکت سوایت 110 نفر پرسنل دارد. بیشتر با اوراکل و c# کار میکنن . در زمینه برنامه نویسی موبایل با اندروید و  GoogleSDK کار میکنن . تعداد فاکتور روزانه در گروه سولیکو بیش از 70 هزار فاکتور در روز می باشد که وظیفه فروش محصولات گروه به عهده شرکت پخش بانی چاو می باشد .

نسل اول سیستم های گروه با بانک اطلاعاتی MSSQL و نسل های بعدی با بانک اطلاعاتی ORACLE تولید شده است . با مراجعه به فروشگاه هایپر استار تهران در بلوار فردوس , خیابان بهار جنوبی متوجه تنوع تولیدات گروه سولیکو از لبنیات تا آبمیوه و گوشت میشویم . تعداد 400 فروشنده در فروش تهران , 600 دستگاه تریلی در ناوگان پخش , 14 اپراتور واحد ثبت سفارش در کرج و 200 سرور در نقاط مختلف کشور آمارهایی است که هر برنامه نویسی رو تحریک میکنه .

شرکت سوایت داده پرداز اجازه فعالیت و ارائه خدمات فنی و مهندسی به شرکت های خارج از مجموعه را ندارد و به همین علت اطلاعات زیادی از این شرکت در سطح بازار it وجود ندارد ولی اینجوری که فهمیدم مدیران مطلعی داره و فعالیت های بازار IT  را بدقت زیر نظر دارن و از همه چیز اطلاع داشتن .

سه تا معاونت دارن : 1.پشتبانی 2.شبکه 3.توسعه . اگر قسمت شد من میرم قسمت معاونت توسعه که مدیریتش با آقای مهندس نظری بود. با توجه به سابقه و تجربیاتی که دارم تو کار برنامه نویسی با اندروید و جاوا میتونم مفید باشم.


مصاحبه با غلامعلی سلیمانی، موسس شرکت کاله

مصاحبه مجله Business Year 


شرکت حمل و نقل کالای شتابان شمال (کاله)  از سیستم مدیریت ناوگان شرکت ویراتک استفاده می کند .


بالاخره من تونستم یک برنامه نوشته شده با jdev11.1.1.6 را در Standalone WLS دیپلوی کنم

بالاخره بعد از یک مبارزه طولانی تونستم یک برنامه نوشته شده با jdev11.1.1.6 را در Standalone WLS دیپلوی کنم .

WebLogic ERROR: No credential mapper entry found for password indirection user=db_user?

The Oracle forums have posted a solution for this, if you are deploying to another Weblogic server other than the Integrated one with JDeveloper.

While generating ear file for an application from JDev, it will generate a *-jdbc.xml file for each DB connection in the application resources, set the indirect password attribute, update weblogic-application.xml to add each *-jdbc.xml file as a module and update web.xml (if it exists) to add a resource reference to each jdbc jndi name. However, since there is no server to deploy to, Jdev will not place the passwords in the ear file. The EAR file will not deploy as is. The passwords for the data sources must be setup on the server before the application will run correctly.

  1. Right click on Application drop down select Application properties
  2. Click on Deployment
  3. Uncheck “Auto Generate and Synchronize weblogic-jdbc.xml Descriptors During Deployment”

به خاطر خطا بالا بود که نتونستم کار خود را با jDev R2 ادامه بدهم و رفتم سراغ jDev R1.6 .

در jDev R1.6 اپلیکیشن دیپلوی میشد ولی وضعیتش ok نمیشد . وقتی رفتم در دامین مربوطه و فایل لاگ دامین را نگاه کردم متوجه شدم که مشکل از  jdbc بود و یک Generic jdbc مطابق نام             jdbc/ORACLE01_SCOTTDS درست کردم  و WLS را دوباره راه اندازی کردم و دیدم وضعیتش ok شده است . برای حل این مشکل از لینک زیر استفاده کردم .

http://one-size-doesnt-fit-all.blogspot.com/2010/05/adf-and-wls-jndi-configuration-errors.html

حالا که خیالم از خود App راحت شد و دیدم که وضعیتش ok  شده رفتم سراغ اجرا و تست App . روی لینکش کلیک کردم ولی نه خطایی نشون میداد و نه چیزی اجرا میشد . دوباره رفتم سراغ لاگ دامین . دیدم خطای timezone میدهد . با یک سرچ فهمیدم که علت خطا اینه :

ORA-01882: timezone region not found

The above time zone error usually comes as weblogic queries DB for timezone status.
The above error will show up when there is timezone difference between the database machine and the weblogic application server JVM.

To solve this error please follow below steps:

It seems that each server(DB and weblogic) has a different timezone at OS level.

We have two ways of doing it:

1. Set same timezone in both the DB and weblogic machine at OS label.(Ask your administrator to do so)

2. If OS label is not allowed you can go for the below JVM label, i.e by setting the -Duser.timezone= startup parameter in Java option used to start weblogic server.

-Duser.timezone=GMT

Note : You have to set the JVM timezone to the same timezone as the DB has! After setting the timezone, a complete restart is required to make the changes take effect.

برای حل این مشکل مطابق شکل زیر عمل کردم و در نا امیدی دیدم که برنامه اجرا شد و در فایل لاگ دامین نیز خطایی ظاهر نشد.

برای برطرف کردن این خطا به لینک زیر مراجعه کرده و دقیقاً مطابق دستورات عمل می کنیم . (اشتباهی که من کردم این بود که نسخه ویندوزی و یونیکسی این دستور را اشتباه گرفتم)

http://carozeta.blogspot.com/2010/05/timezone-error-ora-01882-timezone.html

 

نحوه استفاده از قابلیت چند زبانی در ای دی اف

در لینک زیر نحوه استفاده از قابلیت چند زبانی در ای دی اف آمده است :

http://technology.amis.nl/2012/08/13/adding-customization-or-context-sensitivity-to-boilerplate-text-from-database-backed-resource-bundles-in-adf-applications/?utm_source=dlvr.it&utm_medium=facebook&utm_campaign=adding-customization-or-context-sensitivity-to-boilerplate-text-from-database-backed-resource-bundles-in-adf-applications

 

 

 

تولید فرم لاگین با کاربرانیکه در جداول بانک تعریف میشوند


https://blogs.oracle.com/shay/entry/for_some_reason_one_common


Posted by shay.shmeltzer

تفاوت بین Groovy Old Value  و Posted Attribute

How it works in ADF 11g R2:

1. "oldValue" Groovy keyword returns last valid value
2. getPostedAttribute(index) returns value from database

منبع :

Difference Between ADF BC Groovy Old Value and Posted Attribute

Framework Benefits

استفاده از فریم ورک امکان تولید فرم ها و گزارشات سریع با استفاده از drag drop و declarative را فراهم میکند و این امکان فراهم میشود تا بیشتر بر روی لایه مدل و یا همان بیزینس کامپوننت وقت گذاشته شود.

وقتی لایه مدل یا همان بیزینس کامپوننت یک پروژه طراحی شد امکان استفاده از کامپوننت های لایه مدل در پیج های مختلف لایه ویو با قابلیت drag drop  فراهم میشود .

این مساله در شکل زیر مشخص شده است .


correct script for converting weblogic server to windows service

SETLOCAL
set DOMAIN_NAME=Sayesaman
set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\Sayesaman
set SERVER_NAME=AdminServer
set PRODUCTION_MODE=false
cd %USERDOMAIN_HOME%
call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
set MEM_ARGS=-Xms512m –Xmx512m
call "C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd"
ENDLOCAL

How convert Weblogic Server as a windows service

Before all, let me say that , If you want to ask your question in Oracle Jdeveloper forum you need a VPN to access the official website through proxy , because based on American country lows , the Iranian people don’t have right to access this resources .

https://forums.oracle.com/forums/thread.jspa?messageID=10491860

I asked my question in the above link for converting weblogic server to a windows service , and someone how’s name is: Sandeep , replied to me with  details.

Now ,my weblogic server is running properly as a windows service .

QUESTION :

I used the following scripts to conver weblogic Admin server to a windows service :

SETLOCAL
set DOMAIN_NAME=Sayesaman
set USERDOMAIN_HOME=C:\jdev11.1.1.6\user_projects\domains\Sayesaman
set SERVER_NAME=Sayesaman
set WL_HOME=C:\jdev11.1.1.6\wlserver_10.3
set WLS_USER=weblogic
set WLS_PW=weblogic110
set PRODUCTION_MODE=false
set MEM_ARGS=-Xms512m –Xmx512m
call "C:\jdev11.1.1.6\wlserver_10.3\server\bin\installSvc.cmd"
ENDLOCAL

after running these scripts the windows service created successfully and running properly .
but the state of all web application is failed and even I can't deploy any web application and I get the following error :

Class Not Found : oracle.dms.wls.DMSServletFilterr

Please help me to conver weblogic Admin server to a windows service correctly .

Edited by: 950222 on Aug 1, 2012 2:46 AM

 

RESPONSE

Request you to share the entire stack of error.

Meanwhile,I would recommend that you deleet the existing service created and re-create the service by following the below steps:-

1. Create a text file

%MIDDLEWARE_HOME%\user_projects\domains\servers\AdminServer\security\boot.properties

Add the following lines

username=weblogic
password=

Important to Note:

a. If this step is not performed you will see the following generic error when the Admin Server is started in " background mode " via an MS Windows Service.

BEA-090403 Authentication for user weblogic denied

This error occurs because, by default, startup of Admin Server interactively prompts for the weblogic username and password. If the password is not supplied the error is thrown.

b. As soon as you start the Admin Server the username and password values in this file will be encrypted. Be sure to stop / start the Admin Server as soon as possible to ensure the credentials are not exposed for longer than necessary.

2. Create a command script called installAdmServer_Service.cmd which has lines like

SETLOCAL
set DOMAIN_NAME=ClassicDomain
set USERDOMAIN_HOME=C:\middleware\FMW11g\user_projects\domains\ClassicDomain
set SERVER_NAME=AdminServer
set PRODUCTION_MODE=true
cd %USERDOMAIN_HOME%
call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
call "C:\middleware\FMW11g\wlserver_10.3\server\bin\installSvc.cmd"
ENDLOCAL

3. For troubleshooting / debugging purposes it is helpful to redirect standard out and error to a text file. Although most information is captured in the AdminServer server log files, you will not see all standard out and error when the server is started via a MS Windows Service (unlike when you start an AdminServer from the command prompt using startWebLogic.cmd). To redirect standard out to a text file, backup and edit installSvc.cmd and change the line at the bottom of the file so it include the -log parameter e.g

"%WL_HOME%\server\bin\beasvc" -install
-svcname:"%DOMAIN_NAME%_%SERVER_NAME%"
-javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%"
-extrapath:"%WL_HOME%\server\bin" -password:"%WLS_PW%"
-cmdline:%CMDLINE%
-log:"C:\Middleware\FMW11g\user_projects\domains\ClassicDomain\%SERVER_NAME%-stdout.txt"

4. Now run "installAdmServer_Service.cmd". The Service should be installed, it will have a name like ""beasvc %DOMAIN_NAME%_%SERVER_NAME%" e.g

beasvc ClassicDomain_AdminServer

The Service "Startup Type" will be 'Automatic'. Just like any other MS Windows Service you can change the 'Startup Type' to 'Manual'.

Start the Service. The Service will come back fairly quickly to say it is started. The actual time taken for AdminServer to start and reach a state of 'RUNNING' will be longer - perhaps two or three minutes. The state of the server can be monitored by reviewing the stdout txt file.

Notes:

An alternative to the boot.properties approach to specifying the Admin Server weblogic username / password is to add the following environment variables to your wrapper cmd script - installAdmServer_Service.cmd

set WLS_USER=weblogic
set WLS_PW=manager11g

The beasvc utility encrypts the login credentials and stores them in the Windows registry.

This is one of two possible methods for avoiding the username/password prompt when a server instance starts. The disadvantage to this method is that changing the username or password for the server instance requires you to delete the Windows service and set up a new one with the new username and password. Instead of this method, you can use a boot identity file. With a boot identity file, you can change the login credentials without needing to modify the Windows service.
Create a MS Windows Service for a Managed Server e.g WLS_FORMS

Important to Note:

1. The ADMIN_URL value should reference the AdminServer hostname and listen port.

2. The SERVER_NAME value is case sensitive. For example, if you are creating a MS Windows service for a different managed server such as 'wls_ods1' then the value needs to match the case of the server name otherwise the startup of the server via the MS Windows service will fail.

3. Be careful that there are no trailing spaces after each line in the command file - trailing spaces will cause the managed server to fail at startup. For example a trailing space in the ADMIN_URL value will result in the error


3. Now run "installAdmServer_Service.cmd". The Service should be installed, it will have a name like ""beasvc %DOMAIN_NAME%_%SERVER_NAME%" e.g

beasvc ClassicDomain_AdmServer

The Service "Startup Type" will be 'Automatic'. Just like any other MS Windows Service you can change the 'Startup Type' to 'Manual'.

Start the Service. The Service will come back fairly quickly to say it is started. The actual time taken for the managed server to start and reach a state of 'RUNNING' will be longer - perhaps two or three minutes. The state of the server can be monitored by reviewing the stdout txt file.

Hope this helps!

-Sandeep

 

پروژه ام کامله حالا چی به مشتری تحویل بدم

1-ست آپ سی دی JDEV نسخه 11.1.2.2   را اجرا کنید .

2-یک دامین جدید ایجاد کنید .

3-دامین جدید را بصورت دستی و یا بصورت ویندوز سرویس راه اندازی کنید .

4-حال پروژه خود را یا از داخل محیط jDeveloper Studio و یا بصورت فایلهای (WER , EAR) در Weblogic  راه اندازی کنید.

 

Convert weblogic server to a windows service

For Converting weblogic server to a windows service you can use the following articles:

http://weblogic-wonders.com/weblogic/2011/02/01/weblogic-as-a-windows-service/

http://dirknachbar.blogspot.com/2010/09/creating-windows-service-for-oracle.html


With using these scripts , finally I could convert BEA server as a service . but when it comes up the web application are not and even I can’t deploy any web application , I got the following error when I want to start or deploy a web application :

oracle.dms.wls.DMSServletFilterr

SETLOCAL

set DOMAIN_NAME=Sayesaman

set USERDOMAIN_HOME=C:\jdev11.1.1.6\user_projects\domains\Sayesaman

set SERVER_NAME=Sayesaman

set WL_HOME=C:\jdev11.1.1.6\wlserver_10.3

set WLS_USER=weblogic

set WLS_PW=weblogic110

set PRODUCTION_MODE=false

set MEM_ARGS=-Xms512m –Xmx512m

call "C:\jdev11.1.1.6\wlserver_10.3\server\bin\installSvc.cmd"

اتصال به بانک mssql از داخل jdeveloper  یا از داخل weblogic

برای اتصال به بانک mssql از داخل jdeveloper  یا از داخل weblogic از لینک زیر استفاده کنید :

 

http://neeraj-soa-tips.blogspot.com/search/label/MS-SQL%20Server

 


IF YOU WANT TO CONNECT TO MSSQL THROUGH JDEVELOPER OR WEBLOGIC USE THE ABOVE LINK

Oracle ADF eCourse Part 1 , Part2

Dear My Colleagues

You can use the following links for a complete Oracle ADF course:

This course divided in 2 sections and describes the most parts of oracle ADF technology.

http://download.oracle.com/tutorials/jtcd3/ecourse_adf_part1/html/temp_frameset/index.htm

http://download.oracle.com/tutorials/jtcd3/ecourse_adf_part2/html/temp_frameset/index.htm

Best Regards

Meysami

-------------------------------

دو تا لینک بالا حاوی کورس های خیلی جالبی در زمینه اوراکل ای دی اف هستن . حتماً ببینید