Oracle--remote connection

Oracle server and remote connection:

virtualbox is Oracle's own virtual machine software, which allows you to run under your operating system windows,

Use the virtual machine to install other systems windows or other linux, so that you can learn the knowledge of other systems and software very well.

Note: Remember to install the extension package again after installing virtualbox.

 

Install a computer in VB, and then install the system in this computer, usually mount the ISO image system file.

 

The network configuration of the system in VB:

Step 1: Click "Device"--"Network"--change the network configuration, the following window will pop up, change the connection method to "host only" mode

Step 2: Set the IP address in virtual win7 to 192.168.56.10  

Step 3: Set the IP of the virtual network card in the local win7 (client) [the virtual network card will appear locally after the network configuration in VB] is 192.168.56.6

Step 4: Turn off the firewall of virtual win7 and local (client) win7

Step 5: Use the ping command to test whether the network connection is successful [ping 192.168.56.10]. Note: The network segments of the two machines must be the same, otherwise they cannot communicate, pay attention to the spaces.

System settings file sharing in VB:

When we want to access local files, we can set up auto-mounted folders in VB to operate local and VB files.

That is to say, we can put all the things that need to be converted by both parties in this folder, and whoever uses it can take it.

Enhancements need to be installed before setting up shared folders.

Start Win7 in VB;

Step 1 Click "Device" to install the enhanced function, and then you can see the following icons in "Computer", click to install the enhanced function

Step 2 Turn on the computer -- open the cd drive vbox -- install enhanced 32bit.

Step 3 Set up shared folders: Win7 Settings--Shared Folders--click Add (check Auto Mount and Fixed Assignment).

Step 4 Open the shared folder and copy the required files to the virtual win7 disk. [Open Computer--Network--VBOXSVR].

 

Notes for installing Oracle in VB: The properties of setup.exe must be modified to run in xp compatibility mode and as administrator.

Install the client on the local computer: instantclient.

The test installation is successful: enter the installation bin directory and enter the command

sqlplus system/password@remote IP:1521/orcl view.

 

Install PLSQL Developer locally

Note: Note: The installation directory cannot contain Chinese and spaces, otherwise the connection cannot be made

PLSQL Developer connects to oracle remotely:

1. In the pop-up login window, click Cancel, Tools->>Preferences

2. Fill in Oracle Home: installation directory until bin For example: D:\Program Files\Oracle\Instant Client\bin

3、OCI填写:d:\Program Files\Oracle\Instant Client\bin\oci.dll

4. Change the tnsnames.ora file. Just change the server name [DatabaseName any], server address [Host], instance name [SERVICE_NAME]

5. Setting the environment variable TNS_ADMIN is actually the location directory of the tnsnames.ora file. For example: D:\Program Files\Oracle\Instant Client\network\admin

 

At this point, you can connect to the Oracle server remotely.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326446978&siteId=291194637