Comparing the spfile and pfile

Hi all

11.2.0.3

I want to compare my pfile_old generated a month ago and the spfile current, just to check if there have been changes.

So, I converted my current spfile to pfile_new. To make the taskeasy...

Then, I created an external table for this 2 files with the same name.

create table pfile_old (text1 varchar2 (100))

external organization (type oracle_loader default BDUMP directory

access parameters (records delimited by newline)

location ("pfile_old.txt"))

reject the limit 1000;

create table pfile_new (Text2 varchar2 (100))

external organization (type oracle_loader default BDUMP directory

access parameters (records delimited by newline)

location ("pfile_new.txt"))

reject the limit 1000;

=================

But when I compare the values, none are equal?

Select text1 from pfile_old less select Text2 pfile_new;

everything is selected in pfile_old.

How can I fix this?

Thank you

zxy

Have you looked at the actual data in both files to see what are the real differences?  It is impossible for us to guess what may be different between the files, because we have no idea how the original pfile has been created or maintained.  You have two files.  You know what lines you expect to be the same.  You know, or can know, what are the real differences.

If, once you know why they are different and determine the algorithm you want to use for comparison, we would be happy to help you to implement this algorithm if you know enough PL/SQL to do.  But you'll have to do the legwork.

Of course, discover that something has changed by looking at the spfile rather than through good change control process is rather crazy in and of itself.  In the past, you indicated that you are somehow responsible for a large system.  There is no universe in which it makes sense for a DBA of a real production system (not to mention one who claims to have sensitive data or to be 24 x 7) to be surprised by a change in initialization parameter.

Justin

Tags: Database

Similar Questions

  • difference between spfile and pfile

    Hi all

    Explain the difference between spfile and pfile.

    Thank you
    REDA

    Hi reda;

    Mainly

    1 oracle recommended to use the SPfile instead of pfile
    2 Spfile brings flexsibility which means that you can change many settings dynamic
    3. If you have pfile and spfile wijt sound startup command directly first check instead of pfile-spfile

    For more details, see:

    PFile vs. SPfile [249664.1 ID]
    http://www.orafaq.com/node/5

    Respect of
    HELIOS

  • in comparing the index and a table between instances PK

    Aloha!

    I'll compare the indices and the PK's (Constraint) of 3 instances.

    This table of s/n/s best use? The comparison is made on a specific schema only.

    Please be kind enough to write the script that I need or tables.

    PS
    Which is better dba_ind_columns or dba_objects?

    BR,
    Hades

    Published by: TheHades0210 on December 2, 2012 21:58

    TheHades0210 wrote:
    Hello

    Thank you for these elaborate explanation. I just want to know why under dba_ind_Columns INDEX_NAME, some of the names of the characters $ and #. Is it system generated index?

    very probably are generated, the system but not necessarily.

    If so, what application generates this index?

    I don't know what applications are installed in your DB.
    No objects appear spontaneously.
    Someone has published the DDL that created.

  • RMAN creates spfile and pfile created from it has 0 kb

    Hello
    Oracle 10g, Windows Server 2003.
    I have create a spfile with RMAN:

    *****************************************************************************
    RMAN > BACKUP SPFILE format 'C:\spfile.ora ';

    From backup 20 April 12
    using controlfile target instead of recovery catalog database
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 492 devtype = DISK
    channel ORA_DISK_1: from full datafile backupset
    channel ORA_DISK_1: specifying datafile (s) in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 20 April 12
    channel ORA_DISK_1: finished piece 1 at 20 April 12
    piece handle = C:\SPFILE. ORA comment = NONE
    channel ORA_DISK_1: complete set of backups, time: 00:00:02
    Backup finished on 20 April 12

    From control file and SPFILE Autobackup 20 April 12
    room handle=\\192.168.1.149\G$\JNESRV4-ARCLOGS\MTDPROD\RMAN
    \C-2169285856-201204
    Comment from 20-04 = NONE
    File control finished and Autobackup SPFILE to 20 April 12

    *****************************************************************************

    Strange thing is that C:\spfile.ora created is 96 KB, when original
    SPFile.ora is 4 KB.

    Now, I try to create pfile.ora (init.ora) of plu sql:

    SQL > connect sys / * as sysdba
    Connected.
    SQL > CREATE PFILE ='C:\pfile.ora "of SPFILE ='C:\spfile.ora ';

    Created file.

    SQL >

    Strange thing is that C:\pfile.ora created is 0 KB!
    What is going on?

    SPFILE BACKUP to create a backup set containing spfile, this isn't spfile himself. You must restore this backup but not use it as spfile.

    To create a copy of the spfile, you can use the following command in sqlplus:

    create the 'C:\spfile.ora' of memory = spfile;

  • What formula would I use to add all the other ranks in my spreadsheet. I want to compare the fees and expenses of 2015 since they are incurred for 2016

    On the same worksheet, I want a spreadsheet to compare spending 2015 totals by month in several categories to 2016 expenses when they occur. What is the best way to implement this worksheet? It is essentially a budget, but wants to see how the category spending increase or decrease all the months for 2016.

    Thanks for any help.

    Hi Bruddah,

    I would like to start by rearranging your table so that the amounts from here to 2015 and 2016 switch not in the column, as implied in your question.

    Vocabulary of the numbers:

    worksheet not sentence numbers

    Worksheet: A spreadsheet. Usually abbreviated to 'Document '.

    Leaf: a blank canvas on which are placed the tables and other objects. A Document has at least one and maybe more than one.

    Table: an object consisting of one or more cells, arranged in rows and columns.

    Take a look at the personal Budget template (file > new form model...), specifically the summary in the table of categories.

    It uses the formula: = SUMIF (Transactions::Category, A2, Amount)

    Since you want to compare the volumes in several CATEGORIES at the specific two-year MONTH, you will need SUMIFS, using three test values, pairs of condition.

    Syntax: = SUMIFS (sum of the values,test values,condition,test values,condition,test values,condition)

    I would like to know if it is enough information. If this isn't the case, I'll be later in the day to enter more specific details. In the meantime, a screenshot of your table and the lines of (at least) your transactions table header would be probably useful.

    Kind regards

    Barry

  • Compare the table and out of the common elements

    Hello

    Can you help me to compare the two tables in the attached file in VI and out the elements common to the two tables?

    Thank you

    hiNi

    There is no wire table through the False State in the structure of your business.  Use the default value if unwired is selected for this tunnel. the default value for this tunnel is an array of empty strings.  Run the wire straight through, and Bob's your father's brother.

  • Help compare the negative and positive values

    Well guys, I do this example to show you what I mean

    With this example, I can get positive and negative numbers in digital

    But for me, the 'negative' mean nothing

    Example:

    If I have "100-200" for me the biggest value is - 200

    But if I compare the values of bouth got 100 as greater value

    I do the same calc for 3 different variables such as A, B, C

    and after that I need to calc whose value is 'more '.

    But my problem is that if I have the values "-350 300-400.

    the largest will be "300", but for me the 'negative' mean nothing

    so I need to the largest value is "-400".

    For all positive values, its works very well!

    I compare A and B, after the highest is on C and have a result!

    but when I have negative and positive values... I had this problem...

    and when I have negative values only I have a problem too.

    '-300-400-500' for me the largest value must be "-500" but labview-watch "300".

    as - 300 is greater than-500 in algebriac.

    And if I use absolute values, I will always have a positive value... but I need to know if the value is positive or negative

    No matter which, can help me with this?

    Thank you

    Ben

  • compare the data and the output data that do not exist

    Hello
    I've written a procedure to insert data into a table 3 where I compare the data between two tables, if it matches it insert in the table test_a Joanie. If the exists not or other tables i.e. test_code and test_type it should output this data, where there is no. my code works for a single table, which is test_code. It's not DBMS display a line that is not in the table test_type. could just tell my why? Assume that if test_code a line which is only not in test_type it should out saying this line of incompatibilities with test_type and vice versa.

    -Here's my code

    Test of CREATE OR REPLACE PROCEDURE. GET_data
    IS

    BEGIN
    DELETE test.test_a;
    FOR c IN (select a.cCODE,
    a.type,
    a.Indicator,
    RTrim (xmlagg (xmlelement (e, a.codenum |))) (') a.codenum order) .extract ('/ / text()'), ',') codeNUMber.
    b.CCODE cc,
    b.type tp,
    b.Indicator ind
    test.test_code a, test.test_type b
    where a.ccode = b.ccode (+)
    AND a.type = b.type (+)
    AND a.indicator = b.indicator (+)
    Group of a.ccode, a.type, a.indicator, b.CCODE, b.type, b.indicator
    order of a.ccode)
    LOOP
    BEGIN
    IF (c.cCODE = C.c.c.
    AND C.type = C.tp
    AND C.indicator = C.ind
    AND C.SYS_IND = C.SYSIND) THEN
    insert into test.test_a (CCODE, type indicator)
    values (C.cCODE, C.type, C.indicator);
    ON THE OTHER
    dbms_output.put_line (' rules for cCODE issue: ' |) C.cCODE);
    dbms_output.put_line ('type: ' |) C.type);
    dbms_output.put_line (' indicator: ' |) C.Indicator);
    dbms_output.put_line (' problem of rules for CC: ' |) C.C.C.) ;
    dbms_output.put_line ('tp: ' |) C.TP);
    dbms_output.put_line ('ind: ' |) C.IND);
    END IF;
    EXCEPTION
    WHILE OTHERS THEN
    dbms_output.put_line (' rules for cCODE issue: ' |) C.cCODE);
    dbms_output.put_line ('type: ' |) C.type);
    dbms_output.put_line (' indicator: ' |) C.Indicator);
    dbms_output.put_line (' problem of rules for CC: ' |) C.C.C.) ;
    dbms_output.put_line ('tp: ' |) C.TP);
    dbms_output.put_line ('ind: ' |) C.IND);
    END;
    end loop;
    commit;
    END;
    /


    Thank you

    You must use a FULL OUTER JOIN instead an OUTER JOIN for this.

    Just curious, why do you need to use dbms_output instead to execute the SQL query with additional conditions (if part of your procedure)?. You can use two times, one to insert those that match and one for the selection of others who do not match.

    Kind regards.

  • What a privilege it must compare the roles and the users of the model

    Hi all

    I want to compare the roles that I created in the model and the roles I have in the database,
    I want to know if is posible to compare objects that you have granted to roles between the model and the database.


    the problem is perhaps because the user I selected for the connection to the database has no privilege enough,
    could you tell me, please
    what privileges needs of the user of the connection in order to compare with the roles, packages and other objects in the physical model?

    Thanks in advance

    Hello

    I'm afraid, it is not possible to compare users, roles, or packages at the moment.

    David

  • SPFILE and PFILE with Oracle Database 11g

    Hello
    I have a database of Oracle 11 g (11.2.0.1.0) on Solaris, my question is, in this case, I can use a database PFILE or SPFILE?

    Thank you

    Hi Mark,

    It is a feature of 9i (I don't remember 920 or 901), but what I wanted was that since 11.1, DBCA would create a spfile only and not the pfile file when the database is created via it. I can't seem to find the link of reference and don't really remember not where I read it also. Will update the thread once I will find the exact statement and the source of it.

    Concerning
    Aman...

  • compare the minutes and hours of time

    Hello

    How to compare 11:30 to 12:00 as the two thing is of type string... I use the string nember converter but will return only 11.

    To do this, the easiest method is to format the string into a timestamp.  Then, you can simply subtract the stamps to indicate the number of seconds between your two stamps.

  • Compare the min and max columns

    Hello

    I want to compare colum 1,2,5

    If max - min > 1 = failure

    How could I go making the?

    I think I should just remove all columns with 0, but I'm having a hard time to remove.

    can someone guide me how do.

    Thank you


  • Compare the XE and access

    Hi all

    Is it true that Access db can't handle big data as if paintings reach millions of lines it will be bug down? While XE is just good about it?


    Thank you all

    5 million rows in a table is not the amount of data. Of course, if you have a lot of tables each with millions of lines, which could be reasonably important.

    Access is a database of office. If you want a local database running on your laptop that access you only, you can manage a fairly large amount of data (depending on how much RAM you have and what kind of performance you expect). Access has problems when you start trying to have multiple people accessing the database at the same time, regardless of the size of the database. It has not been designed with multi-user access in mind, and he did not do well. I never actually met someone who wanted to migrate far access because the database got too big. I saw many people who were desperate to migrate far access because a few people in the Office started using the app more strongly and the system began to lock up.

    Oracle, regardless of the version, was designed as a multi-user from the start System. He manages the scale much more efficiently.

    Justin

  • By comparing the ESX4 and ESX4i

    There is a certain messages there now pepole made comapring ESX ESXi and certain benefits for example ESXi does not support NETQUEUE which is good for 10 GIG Ethernet.

    IM wondering if anyone has made an investigation on the difference between ESX4 and ESX4i?

    Thank you

    The coomparison will be the same - except differences of supported hardware is the difference between the two products ESX has the Service Console and ESXi does not.

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • By comparing the CF7 and CF8 standard

    I have 7.02MX of Coldfusion Standard edition on my server and saw the new Coldfusion 8 Server. But when I looked in the new patterns of comparison I thought they had changed something for the licensing model (standard vs enterprise). I don't know if it's just marketing text that has been modified or if the feature has really changed between the CF7 Enterprise vs Standard CF7 and CF8 Standard CF8 Enterprise vs.

    I mean, it seemed that CF8 Standard is intended for a single site and that it is not possible to have several Web sites hosted with this edition. Is this true?

    I am running Coldfusion MX Standard 7 for the last two years and have had several sites/applications that run in this (blogs, corporate websites, custom build other applications). Had the feeling that they said in the texts now that I should have taken I'll be able to run more than one application/website...
    So I now wonder if I can still move to CF8 standard or if I have to buy an Enterprise edition instead.

    Anyone who can help me with this comparison? (and I know there are difference in functionality, but I don't know who exactly).

    Thanks in advance for your answer.

    Steven
    Application developer
    (CF5 developer certified)

    SmileBringer wrote:
    > I don't know if it's just marketing text that has been
    > has changed or if the feature has really changed between the CF7 Standard vs
    > Enterprise CF7 and CF8 CF8 Enterprise Standard vs.

    Yes it's marketing speak.

    > Anyone who can help me with this comparison? (and I know what it is)
    (> the difference in functionality, but I'm not talking about who precisely).

    What are the * try * to sell you, who is company (any MX
    version) may have several _ColdFusion_ running web applications. In
    in other words, you can configure several instance of the ColdFusion
    Server is running on the same box. Each with a configuration
    and settings. This allows nice application isolation and | or server
    effects of clustering.

    The Standard edition can never have a single instance of ColdFusion (of a
    Depending on the version) in a box.

    As always, all or part of these instances of ColdFusion, whatever it be
    or ten, can be connected to as many web sites that you care to connect
    glue them in. In Adobe ColdFusion Word, a web site! = application.

Maybe you are looking for

  • Why Mozilla is not a certificate valid for his poll support page?

    I received the following email asking me to fill out a questionnaire: 'Hi. 'We work to improve the Mozilla Firefox Support Site, and we need your help. If you don't mind, please fill in this survey - it should take only a few minutes. http://qsurvey.

  • How can I stop Firefox by logging into my gmail account whenever I go to the Google search page?

    I set Google as my homepage, so whenever I start FF it connects to one of my Gmail accounts. Always the least used too.I would prefer not to do that and hope that there is a solution.

  • Third-party source is trying to change my homepage.

    I get a pop-up stating that "myfuncards" has blocked a third party attempt to change my homepage, then a "Firefox" message saying someone is trying to cheat it download and update.

  • Lost mode works on iPhone that has more service?

    My iPhone was stolen, and at the time wherever I tried to activate mode lost the phone was switched off or put in airplane mode. The phone is password protected, so I'm not worried that it be used necessarily. My question is if I remove cellular serv

  • Scan problem

    Hello: I'm under the Solution Center in Windows 7. Fine, except that the scanned images are not transferred to files as they are supposed to and as they did. If I try the same on another computer (this an XP running), it works fine and I get scanned