Some basic concepts of installing xp system in virtualbox, installing oracle database to xp system of virtual machine, connecting the host to oracle, backing up XP system, oracle database (learn the preparation of oracle database)-day01

1. Install virtualbox

1.1 What is virtualbox

  • virtualbox is a free virtual machine provided by oracle
  • The virtual machine can make multiple operating systems run on the computer, for example, your computer can run xp, linux, mac systems
  • Here use a virtual machine to install an xp system, and then install oracle in the xp system to facilitate learning oracle database

1.2 Install virtualbox

Insert picture description here

  • Install in the next step
    Insert picture description here
    Insert picture description here
    Insert picture description here
    Insert picture description here

1.3 virtualbox running xp system

  • 32-bit xp system
    Insert picture description here
  • Memory is set to 1g
    Insert picture description here
    Insert picture description here
    Insert picture description here
  • Choose a fixed size
    Insert picture description here
  • It is recommended to allocate 20G enough (the position can be adjusted, otherwise it is installed on the C drive by default)
    Insert picture description here
  • Remove hardware acceleration
    Insert picture description here

Insert picture description here
Insert picture description here

  • Enter
    Insert picture description here
  • Enter is slower (you can select fast by up and down keys)
    Insert picture description here
    Insert picture description here
  • Enter the product key (MRX3F-47B9T-2487J-KWKMF-RPWBY)
    Insert picture description here
  • Custom computer name and password
    Insert picture description here
  • Other configurations can be the next step
  • Opt out of automatic updates
    Insert picture description here
    Insert picture description here
    Insert picture description here
  • Just enter a name
    Insert picture description here
  • Next step, finish
    Insert picture description here
  • carry out
    Insert picture description here
  • ie also accessible
    Insert picture description here
  • Turn off firewall
    Insert picture description here

1.4 Let the xp of the virtual machine communicate with the external system network

  • The default xp ip is type A, which is different from the ip type C of the external host, and it cannot be pinged
    Insert picture description here
  • Different from the outside network segment
    Insert picture description here
  • Set the bridged network card in the settings, select (using network cable) local network card or (using wifi) wireless network card
    Insert picture description here
    Insert picture description here
  • Successful ping (remember to turn off the firewall, otherwise it may cause ping failure)
    Insert picture description here

2. Install oracle to the virtual machine xp system

  • The version used here is oracle10, which is installed in the xp system of the virtual machine [it doesn’t matter which version you learn, the main thing to learn is the addition, deletion, modification and investigation of oracle]

2.1 Host and virtual machine shared directory

  • Prepare oracle installation package and 360 decompression, because there is no tool to decompress files in pure xp
    Insert picture description here

  • Is to share the downloaded oracle database folder
    Insert picture description here
    Insert picture description here

  • Install enhancements
    Insert picture description here
    Insert picture description here

  • Restart xp
    Insert picture description here

  • Successfully found the shared folder
    Insert picture description here
    Insert picture description here
    Insert picture description here

  • Then copy the 10G compressed package to the c drive of xp, usually copy, otherwise there will be problems [experience], and then unzip

  • If there is no decompression tool, install a 360 decompression tool
    Insert picture description here

  • Install 360 decompression
    Insert picture description here

2.2 Install oracle10 to the virtual machine

  1. Unzip the file 10201_database_win32.zip, and double-click setup.exe in the unzipped directory, the installation interface appears, as follows:
    Insert picture description here
    Insert picture description here
  2. Enter the password and confirm the password, such as: orcl, click Next, and the following progress bar will appear.
    Note: This password is the administrator password. [The password here is orcl]
    Insert picture description here
  3. Check the prerequisites, check the selection box shown in the red box, as shown below
    Insert picture description here
  4. Click "Next", the "Summary" interface appears, click "Install".
    Insert picture description here
  5. The installation progress bar appears, wait for the installation to complete, as shown below:
    Insert picture description here
  6. After the installation is complete, automatically run the configuration wizard, as shown in the figure below, and wait for it to complete:
    Insert picture description here
  7. After completion, the "Password Management" interface appears, click "Password Management", as shown below:
    Insert picture description here
  8. Remove the gap between SCOTT and HR users (unlock these two accounts), as shown in the figure below, click "OK": Set the password to be the same as the username
    Insert picture description here
  9. Back to the "Password Management" interface, click "OK", as shown below:
    Insert picture description here
  10. After the installation is over, click "Exit".
    Insert picture description here

3. Host connect to oracle

3.1 Use oracleInstanceClient to connect to oracle

  • Unzip to current
    Insert picture description here
  • Configure environment variables
    Insert picture description here
  • Open the terminal and enter the following command to log in to orcale [sqlplus hr/[email protected]:1521/orcl]
    Insert picture description here
    Insert picture description here
  • Oracle can also be connected in xp, the principle is the same as above, the content after @ can be omitted when connecting
    Insert picture description here
    Insert picture description here

3.2 Backup XP system

  • Back up the xp system to facilitate restoration of the system due to system errors and other problems
    Insert picture description here
    Insert picture description here
  • Select the status of the backup to restore the backup
    Insert picture description here
  • You can also back up after completing some operations, and then select the current state to continue generating
    Insert picture description here
    Insert picture description here

4. Some basic concepts of oracle

oracle server

  • Is a data management system (RDBMS), which provides open, comprehensive, and almost perfect information management
  • Consists of one oracle database and multiple Oracle instances

oracle database and oracle instance

  • Oracle database : The files that actually store data on the hard disk. These files are grouped together to form a logical whole, that is, the Oracle database. Therefore, the Oracle database refers to the logical collection of files on the hard disk. It must cooperate with the instance in the memory. Provide external data management services.
  • Oracle instance : a data structure located in physical memory. It consists of a shared memory pool and multiple background processes. The shared memory pool can be accessed by all processes. If users want to access the data in the database, they must pass the instance Can only be realized, can not directly read the files on the hard disk
  • Difference : An instance can operate a database. An instance can only be associated with one database at any time. In the case of multiple data, only one instance can operate on it.

Insert picture description here

Table space and database files

  • The table space is composed of multiple data files, and the data file can only belong to one table space
  • The table space is a logical concept, and the data file is a physical concept
    Insert picture description here

Segment, area, block

Insert picture description here

  • Segment exists in the table space
  • Segment is a collection of districts
  • Area is a collection of data blocks
  • Data blocks will be mapped to disk blocks

Guess you like

Origin blog.csdn.net/qq_43414199/article/details/109244589