How to access the Oracle database at window 7 64-bit PL/SQL

Source: Internet
Author: User

The general Plsql Developer does not have a 64-bit version, so an error occurs when running the subroutines 64-bit Oracle on a 64-bit system. The workaround is as follows:

0th Step: Install the Oracle 11g 64 database in Windows 7, such as installing to f:\

P10404530_112030_mswin-x86-64_1of7.zip

P10404530_112030_mswin-x86-64_2of7.zip

Unzip to a folder, then install the Oracle 11g 64 database, but do not create a database. After installation, configure Tnsnames.ora via net Manager

First step: Oracle official Web Download a 32-bit client (instantclient), be sure to download the basic version, do not download the Basiclite version. such as instantclient-basic-win32-11.2.0.1.0. zip

Step Two: Extract to Oracle installation directory,f:\app\administrator\product

Step three: Copy the F:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\Tnsnames.ora to F:\app\Administrator\ Product\instantclient_11_2\

Fourth step: Set Environment variables:

Variable name: tns_admin

Variable Value: F:\app\Administrator\product\instantclient_11_2

    

After setting the environment variable, create the Start.bat file in the Plsql Developer directory.

The following are the contents of Start.bat:

@echo off
Set Path=f:\app\administrator\product\instantclient_11_2
Set Oracle_home=f:\app\administrator\product\instantclient_11_2
Set Tns_admin=f:\app\administrator\product\instantclient_11_2
Set Nls_lang=american_america. Zhs16gbk
Start Plsqldev.exe

where set Nls_lang=american_america. ZHS16GBK's ZHS16GBK is your database encoding.

Then start your plsql Developer, but don't log in and go straight in.

Then click tools → preferences → Connect, set the "Oracle home directory name" to NULL, and set the "OCI Library" to the path of the Oci.dll in the Instantclient directory,

Example: F:\app\administrator\product\instantclient_11_2\oci.dll

  

Then save and exit Plsql Develoer, and then run Start.bat.

How to access the Oracle database at window 7 64-bit PL/SQL

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.