Install oracle12c under Windows (ii)

Source: Internet
Author: User
Tags dba oracle developer

I. Installation of Oracle reference Windows installation ORACLE12C (i) II, new user 1. When the installation is complete, start sqlplus, and then enter the built-in user name and password
 
   
  
  1. 用户名:sys  
  2. 密码:as sysdba
2. Enter the following code after the normal login, note that the semicolon is not missing (Oracle's SQL should also be the case, otherwise it will be reported 2, is actually a hint that this is the second line of meaning)
  
 
  1. create user c##lcf identified by 123456;
  2. alter user c##lcf account unlock;
  3. grant create session to c##lcf;
  4. grant dba to c##lcf;
  5. GRANT CREATE USER,DROP USER,ALTER USER ,
  6. CREATE ANY VIEW , DROP ANY VIEW,
  7. EXP_FULL_DATABASE,IMP_FULL_DATABASE,
  8. DBA,CONNECT,RESOURCE,CREATE SESSION TO c##lcf;
Description:
    1. The first is to create a username, and the user name suggests preserving Orale's 12C habit to start with c##. Start the C # #lcf是要创建的用户名, the following 123456 is the password that you set, please modify it yourself.
    2. The second one is to unlock the account.
    3. The beginning of the third article is authorization.
After the above steps, the new user creation is complete. Third, allow LAN users to connect via IPcore: localhost is replaced with an IP address.

After installing the Oracle database, we went into its installation directory and found the two files under the network directory under Admin Listener.ora and Tnsnames.ora, as shown in 1.

Figure 2:listener.ora File Default content

Figure 3:tnsnames.ora File Default content

Open the Listener.ora and Tnsnames.ora files separately, you can find the default settings such as 2 and Figure 3, the configuration behind the host is localhost, the problem is here. The solution is to replace the localhost here with your IP address, such as IP is 210.142.1.23, then write host=210.142.1.23, the above two pictures of the three are to be modified

After processing the above steps, please be sure to restart, you must restart, be sure to restart.

iv. Resolving PL/SQL Developer Connection Plsql should be to read the fixed location profile information and then connect, so also modify the configuration file.

Figure 4: Find the Tnsnames.ora file in Devsuithome

If the Oracle developer 10g is installed on the computer, there should be an installation directory like Devsuithome_1, as shown in 4, After locating the Tnsnames.ora file, open Tnsnames.ora, and then add 3 in the upper half of the mytest after the code, listener_mytest back without adding, of course, The code added is to replace localhost with the IP address of the cloud server, as shown in the following code:

mytest = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 210.142.1.23) (PORT = 1521)) (Connect_data = (SERVER = dedicated) (Service_Name = my Test))) 

After the modified, save the file, it is best to restart the Cloud database service, and then use the local PL/SQL Developer Connection Access test, found that the test is normal, the problem is solved. So, the core idea of this problem is to replace the localhost in the original configuration with the server's IP address.

Install oracle12c under Windows (ii)

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.