Oracle Database Learning Notes (i)

Source: Internet
Author: User

The following error occurred while connecting to the database (two libraries were created, one is ORCL and the other is prod):

 sql>  conn / as   sysdbaconnected  to   an idle instance. SQL  >   Startupora  - for   system parameter Local_listenerora   00132 : Syntax error or  unresolved Network name  " listener_prod   

According to the error, the general know is because prod this library monitoring out of the problem, Baidu! Online search for a lot of solutions, but the answer is mostly the same, in this simple summary: first find the database startup parameters configuration of the text file "Initprod.ora", generally in the directory "/u01/app/oracle/product/11.2.0/dbhome_1/ dbs/, and then change the parameters inside. Local_listener, after the change is as follows:

*. Local_listener='(address_list= (address= (protocol=tcp) (host=172.0.0.1) (port= 1521)))'

However, when I go to this folder, Found that there is no Initprod.ora file, but there is a file called Spfileprod.ora, here to explain the relationship between the two files, the two files contain the same meaning for the database, but the file at the beginning of init is a text file, can be edited with VI, the database management system in the creation of a library The time is not automatically generated ; sfile begins with a binary file that cannot be edited, and the system is automatically generated when the library is created . I opened the directory when I found no Initprod.ora file, so I entered Sqlplus enter the following command, generated a Initprod.ora file.

SQL>/ as to an idle instance. SQL>Create from spfile; File created.

Enter that directory again, edit the Initprod.ora, modify that parameter, and solve the problem.

Oracle Database Learning Notes (i)

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.