Thursday, March 26, 2015

Firewall Cause Oracle Listeners Can Not be connected.

for some reason, when I type tnsping in cmd.exe    it says  "no listener"
but the services.msc has a service "OracleOraDb11g_home1TNSListener"   it is started.


1. what I did is remove: the listener using "Net Configuration Assistant" to remove listener.
2. Then "REMOVE" c:\Oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
remove listner.ora file.
3.   Stop the Windows Server 2008 R2 firewall setting.
    I think this is the problem, the firewall causing the problem.


4.  Finally Add New listener again!!
then it worked.

the differences are in the file below it uses hostname instead of ip address.

# listener.ora Network Configuration File: C:\Oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = C:\Oracle\product\11.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:C:\Oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 3ds.localdomain)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
  )

ADR_BASE_LISTENER = C:\Oracle

Wednesday, March 25, 2015

Tomcat Can not start after installation

No log is generated,  Tomcat cat just wouldn't start.

When modify startup.bat file, be careful in modifying the scripts.
following error occur because one of the setting copied is got cut into 3 lines.

Please add them add into a single line in notepad.


c:\apache-tomee-plus-1.7.1\bin\startup.bat

rem ----------- Joe ADDED ----------------
Set JAVA_HOME=C:\Java\jdk1.7.0_76
set LANG=C
set NLS_LANG=_.UTF8
set JAVA_OPTS=-server -Xmn384m -Xms768m -Xmx768m -Xss512k -XX:PermSize=32m -XX:MaxPermSize=256m -XX:SurvivorRatio=4 -XX:+DisableExplicitGC -XX:+UseTLAB -XX:+ResizeTLAB -Dfile.encoding=UTF8
rem ----------- Joe ADDED ----------------

Monday, March 23, 2015

Config solidworks 2015x Naming Strategy

default of solidworks 2015 will check in into 3dexperience platform as auto number,
but it can be changed to file name.

Open Matrix,  login as creator


Wednesday, March 18, 2015

How To Access Windows Host Folders From Redhat Linux Guest in Oracle VirtualBox


After you install a new virtual machine and install a guest operating system, how do you access files/folders from your host from guest? There are two basic approaches, ftp or folder sharing. Here is to address the folder sharing approach.
 
This guide is for the following environment:
  • Windows 7 Host Platform
  • Oracle VirtualBox 4.1.7
  • Red Hat Enterprise Linux 5.8 Server (x86) Guest Platform   
You just need to follow the three steps:

1. Set shared folder
From the VirtualBox menu  click Devices->Shared Folders ...

2. Install Guest Additions
From the VirtualBox menu  click Devices->Install Guest Additions ...

3. Mount windows shared folders in Red Hat Linux
    3.1 Create a mount point using the following command
          sudo mkdir /mnt/shared-folder
    3.2 Mount the shared folders using the following command
          sudo mount -t vboxsf shared-folder /mnt/shared-folder

Note: If you work on the VMware, you still need three steps. to mount windows shared folders, do the command:
          sudo mount -t vmhgfs .host:/Share /mnt/share  

Tuesday, March 17, 2015

IEFClient is not installed (or has been damaged). You need to install or repair IEFClient V6R2015x.

Error:

 IEFClient is not installed (or has been damaged). You need to install or repair IEFClient V6R2015x.
 
Technical details:
 
Action LaunchAppAction from feature CODE\win_b64\ENOVIA_SWC.media failed.
Action ID: Check-IEF-Version
Private ID: e4075af58144476b8e2fcd092e08f28f207874c927fed4aee4d00fc596061b77
 
Error code: Type: ERROR, Error: 1, Owner: 30a


Cause:
You installed in the wrong step, you installed "ConnectorSolidWorksClient...." first.
But you need to install ENOVIAIntegrationExchangeFramework-Client" First!!!

Solution:
Must install the following file
ENOVIAIntegrationExchangeFrameworkClient-V6R2015x.Windows64
ConnectorforSolidWorksClient-V6R2015x.Windows64



Monday, March 16, 2015

Red Hat Linux Commands

ifconfig   - checking ip

Config IEF Client to 3DExperience platform ip address and ports

c:\Program Files\Dassault Systemes\IEFClientV6R2015x\IEFClientWorkspaceService\config.xml


<?xml version="1.0" encoding="UTF-8"?>
<config>
  <serverURL>http://192.168.0.113:8070/enovia</serverURL>
  <language>en</language>
  <debug>false</debug>
  <charset>utf8</charset>
  <multiport>true</multiport>
  <portrangemin>2000</portrangemin>
  <portrangemax>5000</portrangemax>
  <jrehome>C:\Java64\jre7</jrehome>
<javaoptions>-Xmx256m -Xms256m</javaoptions>
</config>