網頁

顯示具有 技術---Windows_7 標籤的文章。 顯示所有文章
顯示具有 技術---Windows_7 標籤的文章。 顯示所有文章

2012年6月21日 星期四

Reinstall or Repair .NET Framework

Recently, my desktop always need to check .NET Framework after logon computer. I don’t understand what happen so that decide to repair it. When I do it, the result always fail.

How to resolve this problem?
To view Installation log and enable “Errors” check box
1CaptureDrag down the scrollbar to bottom, you will see some message mark red block
2.1CaptureBased on “0x80070663” error codes to search it by Google, I find out one KB can help me.
2.2CaptureBecause it have a utility “dotnetfx_cleanup_tool.zip” can be downloaded.
2.3CaptureI download/extract this tool next to execute it, click “Yes” to run the .NET Framework Setup Cleanup Utility.
2.4CaptureClick “Yes” button to accept all of the terms of the preceding License Agreement if you want to execute this utility.
2.5CaptureIn “Product to cleanup” field to select you want to be removed. In the moment, I select “.NET Framework – All Versions (Windows 7)” next to click “Cleanup Now” button.
2.6CaptureProcessing now!
3CaptureClick “Finish” button to end up the Installation if it is successful.
4Capture
If you try to reinstall or repair .NET Framework, it will be done and no any error show up now.

2012年6月3日 星期日

How to resolve F5 VPN Connection issue

As before, I have to do some homework at home in holiday so that I need to connect to the corporative environment by VPN. When I connect to VPN Server by IE and pass the authentication next to click “Access Network Resources” hyper-link, its error status is “Network Access Connection Device was not found”
ScreenHunter_02 Jun. 02 18.04In the moment, I still follow my troubleshooting rule --- Based on the error message to search the information by Google. Although I get some information to try and error as uninstall F5 VPN driver next to reinstall it again, the result still fail again and again.
ScreenHunter_03 Jun. 02 19.03Until I find out that VPN function is the relation with Remote Access Connection Manager Service by System Event Viewer.
ScreenHunter_02 Jun. 03 23.32So I decide to search the information based on this word. Finally, I get the answer to workaround this problem. That is Edit Registry Key Value!
In Registry Editor, Select “\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RasMan” –> Right-Click “DependOnService” –> Click “Modify…”
ScreenHunter_01 Jun. 03 17.58The Value Data will exist two strings --- Tapisrv and SstpSvc
ScreenHunter_02 Jun. 03 17.58Please delete “SstpSvc” next to reboot the computer.
ScreenHunter_04 Jun. 03 22.55Now you can connect to VPN Server and Remote Access Connection Manager Service will be started.
ScreenHunter_01 Jun. 03 23.04Although the above problem can be resolved, I still don’t know Why?
Maybe need to research F5 VPN theory if I can touch F5 device in the future.

2012年5月6日 星期日

Install 64-bit Oracle Client on 64-bit Windows 7

Last time, I install 32-bit PowerPivot 2012 on 32-bit Windows 7 to replace PowerPivot 2010. When I open Excel 2010 and select PowerPivot item, the remind message show up and ask me whether want to upgrade the workbook.
ScreenHunter_02 May. 06 11.50Of course, you have to press “OK” button so that the PowerPivot workbook will be showed up. In the moment, I follow the previous activity to execute refresh worksheet for retrieving Oracle Data but the result fail.
ScreenHunter_01 May. 06 11.46In this Error Message, it give me a suggestion either upgrading to 64-bit version or increasing memory. I choose upgrading to 64-bit version because the original 32-bit environment before replace PowerPivot version is normal so that it will be not enough memory.

For 64-bit environment, I need to install 64-bit OS, Office 2010, PowerPivot and hotfix with up-to-date. When finish the related Microsoft Prerequisite, the Oracle Client need to be installed then.
ScreenHunter_05 May. 06 13.50Download “Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (x64) from Oracle Website and extract “win64_11gR2_client” compressed file to the selected folder. The extracted path will be “\client” and its setup file is under this path.
Executing "setup.exe” to begin the installation process of Oracle Client.
ScreenHunter_03 May. 06 13.21In Select Installation Type,select “Administrator” option next to click “Next>” button
ScreenHunter_06 May. 06 14.29Click “Next> “ button if we don’t need to select another language.
ScreenHunter_07 May. 06 14.29Keep the default Oracle Base and Software Location next to click “Next> “ button
ScreenHunter_08 May. 06 14.29If no any problem in Perform Prerequisite Checks, click “Finish” button to begin to install Oracle Client Software now.
ScreenHunter_09 May. 06 14.30The installation of Oracle Client almost is successful if no any surprise.
ScreenHunter_10 May. 06 14.52
In the moment, we need to add a “tnsnames.oRA” file under the installation path as “c:\app\davidwa_wang\product\11.2.0\client_1\network\admin\” for creating an entry in this file to allows the ODBC driver to establish network connections to an Oracle Database.
ScreenHunter_11 May. 06 14.54In this file content, need to define “Data Source Name”, "Host” (by FQDN or NETBIOS name or IP), “Port” (default = 1521) and “Service Name”
ScreenHunter_12 May. 06 14.55After saving this file and opening Excel 2010 to execute PowerPivot Data Refresh, its function will be normal now.
ScreenHunter_13 May. 06 15.15

2012年4月29日 星期日

Recover data from Volume Shadow Copy mechanism (part 2 of 2)


(2).Use ShadowExplorer Utility
We can download from http://www.shadowexplorer.com/downloads.html and install it on 32-bit or 64-bit Windows platform.
ScreenHunter_29 Apr. 26 21.15Open this program next to select one volume as “C:” and create time, you can see all contents in right plane.
ScreenHunter_01 Apr. 27 16.23Right-Click the loss data from this and select “Export” to put this data to the special location.
ScreenHunter_04 Apr. 27 17.02In Server version, we need to do item (1) for creating Shadow Copy.
But in workstation version as 64-bit windows 7, We can directly create it by ShadowExplorer’s “Configure System Protection…”
ScreenHunter_02 Apr. 27 16.28It will pop up the System Properties and press “Create…” button for creating Shadow Copy.
ScreenHunter_03 Apr. 27 16.29
(3).Restore file by Shared Folder in Remote ComputerIf one folder want to be restored, we can make it into shared folder as “\\TEST-SQL-03\sqlfile”
ScreenHunter_05 Apr. 27 17.18In remote computer with Shadow Copy Client installed, right-click this shared folder next to select “Properties” in menu so that the shared folder property will show up.
In the proptery of shared folder, click “Previous Versions” tab –> select the right timestamp –> click “Open” button
ScreenHunter_06 Apr. 27 17.23So does that all files will show up behind this shared folder. Now we can select one or some loss files to recover.
ScreenHunter_08 Apr. 27 17.24Or If we click “Copy” button and select one path, all files & folders behind the shared folder will be restored into the special path.
ScreenHunter_09 Apr. 27 17.36

<<<   Recover data from Volume Shadow Copy mechanism (part 1 of 2)

Recover data from Volume Shadow Copy mechanism (part 1 of 2)

Volume Shadow Copy is a Microsoft mechanism that can automatically backup the volume content based on pre-determined interval. If need to restore individual files,you can select any of the previous 64 versions of the shadowed volume to restore it and get the deleted, damaged or overwritten files.

At first, we need to configure and enable Shadow Copy from command line or computer management as follows:
Adds a shadow copy storage association for a specified volumeTo enable Shadow Copy for a volume, we can do the following syntax from the command-line RunAs administrator:
”vssadmin add shadowstorage /for=volume /on=storevolume /maxsize=xxxMB”
ScreenHunter_19 Apr. 25 17.18In the Shadow Copies tab of property of Volume, click  “Volume C:\” and “Settings” button
ScreenHunter_21 Apr. 25 18.45You will see the related value mapping to the above command-line
ScreenHunter_22 Apr. 25 18.48Run “vssadmin list shadows” & “vssadmin list shadowstorage” again to realize the information about shadow copy
ScreenHunter_23 Apr. 25 19.07
Creates a new shadow copy of a specified volume

To create Shadow Copy for a volume, we can do the following syntax from the command-line RunAs administrator:
”vssadmin create shadow /for=volume”
ScreenHunter_24 Apr. 25 19.22In the Shadow Copies tab of property of Volume, you will see a times tag on Shadow copies of selected volume.
ScreenHunter_25 Apr. 25 20.15The above command is as click “Create Now” button so that it show a new time tag record now.
ScreenHunter_26 Apr. 25 20.23Run “vssadmin list shadows” & “vssadmin list shadowstorage” again to know there is two contents of shadow copy and its storage space is occupied now.
ScreenHunter_27 Apr. 25 20.29
One day, I go wrong to delete a database “Northwind” & overwrite file content from “1” to “shadow copy” in C:\SQLFILE\TEST1.sql
ScreenHunter_01 Apr. 26 11.20ScreenHunter_02 Apr. 26 11.24
How to recover these data now?

(1).Create a symbolic link to a shadow copy volume<Method 1>
Run “vssadmin list shadows /for=C:” and base on create time to find which shadow copy volume will be restored. In the output screen, we will use this shadow copy volume “\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy2” as restore base.
ScreenHunter_04 Apr. 26 12.03To create a directory symbolic link, we can do the following syntax from the command-line RunAs administrator: ”mklink /d NewLinkName ShadowCopyVolume\
ScreenHunter_06 Apr. 26 14.04Now we can explore the content of shadow copy.
ScreenHunter_07 Apr. 26 14.06
<Method 2>
Right-click the drive letter on which the shadow copy is created next to click “Properties” in menu.
ScreenHunter_08 Apr. 26 14.13In Disk Properties, click “Previous Versions” –> select one shadow copies based on data modified –> click “Open” button
ScreenHunter_09 Apr. 26 14.15Now we can explore the content of shadow copy.
ScreenHunter_10 Apr. 26 14.22When we choose either method, the loss file will be found and recovered now!

Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.