How Oracle queries initialization parameters (iv) the necessity of describing Gv$spparameter parameters

Source: Internet
Author: User

Query initialization parameters A lot of ways, such as show PARAMETER, or query V$parameter, here a brief summary.

This article describes the necessity of gv$spparameter parameters.

The previous article describes the V$spparameter parameter and also explains the difference between the information in the V$spparameter view and the Gv$parameter view.

In fact, there is still a problem here, is whether the gv$spparameter is meaningful. Because the V$spparameter parameter itself contains the SID column, and the SPFile itself contains the settings for all instances, then querying the Gv$spparameter view does not make much sense.

Because each node of the RAC can be started with a unified spfile, you can also select a different spfile to start, and the result in Gv$spparameter view is the result of the actual instance spfile.

This is more difficult to understand, look at a simple example:

Sql> Select inst_id, name, value

2 from Gv$system_parameter

3 WHERE name = ' open_cursors ';

inst_id NAME VALUE

---------- ------------------------------ --------------------------------------------------

1 Open_cursors 600

2 Open_cursors 400

sql> Select SID, Name, value

2 from V$spparameter

3 WHERE name = ' open_cursors ';

SID NAME VALUE

---------- ------------------------------ --------------------------------------------------

* Open_cursors 300

Test1 Open_cursors 500

Test2 open_cursors 700

Sql> Select inst_id, sid, name, value

2 from Gv$spparameter

3 WHERE name = ' open_cursors ';

inst_id SID NAME VALUE

---------- ---------- ------------------------------ ------------------------------------

1 * open_cursors 300

1 Test1 open_cursors 500

1 Test2 open_cursors 700

2 * open_cursors 300

2 Test1 open_cursors 500

2 Test2 open_cursors 700

This article URL address: http://www.bianceng.cn/database/Oracle/201410/45546.htm

6 rows have been selected.

Sql> Select inst_id, name, value

2 from Gv$system_parameter

3 WHERE name = ' SPFile ';

inst_id NAME VALUE

---------- ------------------------------ --------------------------------------------------

1 SPFile +data/test/spfiletest.ora

2 SPFile +data/test/spfiletest.ora

The following is an in-memory parameter to create the SPFile, and the new SPFile is used to start the current instance:

sql> create spfile= '/export/home/oracle/spfiletest1.ora ' from memory;

The file has been created.

Sql> Host

$ vi/export/home/oracle/inittest1.ora

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.