Duplication of database problem


Hello

I cloned my production oracle db (11.2.0.1) to a test system (11.2.0.3) using the backup. I had an incomplete recovery.

When I tried to open the database with reselogs he asked me to start the database with the upgrade option. And the open database.

But whenever I restart the database, that he wants me to use the UPGRADE option

Please suggest what to do

SQL > startup;
ORACLE instance started.

Total System Global Area 1068937216 bytes
Bytes of size 2232840 fixed
616566264 variable size bytes
444596224 of database buffers bytes
Redo buffers 5541888 bytes
Mounted database.
ORA-01092: ORACLE instance is complete. Disconnection forced
ORA-00704: bootstrap failure process
ORA-39700: database must be opened with the UPGRADE option
Process ID: 11766
Session ID: 96 serial number: 3

SQL > startup upgrade;
ORACLE instance started.

Total System Global Area 1068937216 bytes
Bytes of size 2232840 fixed
616566264 variable size bytes
444596224 of database buffers bytes
Redo buffers 5541888 bytes
Mounted database.
Open database.
SQL >

Thank you

1 always read the installation to come with an upgrade instructions. Your question is redundant, because you need to do is described in the instructions

2 as stated in the notes

Connect / as sysdba

start upgrade

@?/rdbms/admin/catupgrd.sql

That's all there is to it.

Next time, PLEASE read the documentation before asking a redundant question.

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

Sybrand Bakker

Senior Oracle DBA

Tags: Database

Similar Questions

  • How to place data files in two places during duplication of database or refresh via RMAN test

    Hi all

    can you please find the solution and help me on this point

    How to place data files in two places during duplication of database or refresh via RMAN test

    Thank you

    Ran

    Hi all

    Please send me as soon as possible if you have a solution.

    Thank you.

    Ran

  • Refresh database problem

    Hi all

    I recently downloaded the software from the Sansa website and now my drive which has been has been upgraded to Version 01.02.24A. Whenever I turn on the drive I have to wait five minutes while it updates the database.

    Anyway I can fix this problem. Thanks in advance.

    Richard

    Install rockbox and use the file display.  Then you can say "see ya" to screen database refresh feared forever.

  • Duplication of database with RMAN on different server

    Hi all

    I'm using Oracle 11 g 2. I want to duplicate or prepare a configuration clone production on the Test Server.

    The OS is similar on the two server. Data file locations will be different.

    Can I get what is the best way in which this can be done easily.

    One way for me is to copy the last backup of prod to test and restore it accordingly.

    Otherwise the same.

    Kind regards.

    You say you're on 11 GR 2, why not try the functionality of RMAN duplicate with option "backup location.

    Hope this helps you. Duplication of data without a connection to the target database or catalog of database in Oracle 11 g | Shivananda Rao

    -Jonathan Rolland

  • Growth of database problem

    We have a problem with HFM by which the database increases each month.  We notice that
    most of the scenarios where we might have to do a force to translate or to consolidate
    with data and sometimes a consolidate all this.  I know that consolidate it all the
    is not good, but it is sometimes necessary for some scenarios.  I expect to
    growth of this with things based on dormant entities,
    etc, but not insofar as I see in the DB.  Doing some more
    investigation, it seems that we have a significant amount of zeros in these tables
    where we see growth.  For example, our scenario scheduled for 2014 has 7.4
    millions of documents of which 5.5 million
    are zeros (tran type 32) hard.  I have
    don't know much about these hard or derivative zeros, beyond because they do
    no result I think that actually enter zeros.  If I do an extract from the data
    of the whole of the year and the scenario, I get a few zeros but not anywhere nearby
    from what I can see in the database.  No one knows what might happen?  Help or direction would be so appreciated. Thank you.

    Hello

    Please check if you have accounts for the calculation of the zeros.

    You can limit the flight of zeros in your application by using the HFM rules file.

    Let me know if you need more information.

    Kind regards

    Hanane

  • em12cr3 showing on the eve of the database problems

    Oracle Enterprise Manager 12.1.0.3

    Oracle RDBMS 11.2.0.4

    I recently installed this very with a CMS and database repository on a server.

    I added a cluster that has the database open as well as a database of pending which is in Mount that we do not use Active Data Guard.

    To use EM with a vigil in the mount, the connection must be an account with SYSDBA.   On the eve of one indicates the Type

    Cluster - physical Standby database.  It appears, however, with a Collection error metric for its database system, and I don't see why.

    I moved add another cluster that also has opened with two STANDBYS in mount databases.

    These guys, shows to monitor the credentials as dbsnmp and won't let me change it to SYS - this column is grayed out.

    It did not work in 12.1.0.2 without problem, I'm just limited on the standby located in Mont - I agree with that.

    I tried to drop and add because sometimes works with EM.

    I tried emcli, as follows:

    emcli get_targets | grep tecmop

    0 oracle_database tecmop_tecmop1

    0 oracle_database tecmop_tecmop2

    2 tecmop_sys of metric oracle_dbsys collective

    2 metric rac_database tecmop community

    $ emcli set_monitoring_credential-target_name = "tecmop'-'rac_database' = target_type - set_name ="DBCreds"- cred_type ="DBCreds"- attributes = 'DBUserName:sys; DBRole:sysdba; DBPassword:mypswd ".

    Follow-up of the credential set successfully.

    This no longer works.

    I opened a SR but have not had a response yet (it was a few hours).  Maybe someone here has an idea to try?

    After all this...  Here is the ANSWER.

    When standby is added to the EM, its composition is moved under the primary database system and database backup system is put in blackout.

    The backup of database system is not necessary and must be deleted manually.  The GUI returns an error, then emcli:

    emcli delete_target-name = "trptwp_sys" - type = "oracle_dbsys".

    should be used to remove it.

    It is a "expected behavior", although I'm not sure that it should! Not me because this happened to 12.1.0.2.

    In any case, I hope that manually delete the backup of database systems are in agreement and they are not necessary for what.

  • Duplication of titles problem

    Hi, I use elements 14 on Windows first. I have problems of duplication of titles. I created a title with a title of movement model. Originally, I tried to copy and paste the title to create a new instance, but I found that it comes to create a clone where the words were duplicated in each of the titles.  I read online that I should rather to duplicate the clip of the song in the active project. Even if I rename it with a different name, I still see a direct copy of the text in each element (if I change it in my 2nd double copy, it makes the evolution of the original in the assets of the project). Any advice?  Is it because I'm using a model of title of movement? I could record as a model (Note: what was already a prior query developed Adobe template) to re-use (because I changed the colors, etc..)?  Any help is greatly appreciated!

    Erin

    Erin

    I have not found the principle and modalities of classic to be titles the same as those for titles of movement for first elements 14 64-bit Windows.

    I confirm your results where you indicate clearly you use titles of movement and sought to copy and replicate the results. If you use the approach of duplicate on a title of movement, you change the text in the double, you change the text in the Original. I don't know how to solve this problem otherwise than to create a new title of movement in the second instance.

    As for the registration of the title of movement. Problems have been reported for this. Who has experienced mixed results. Titles of movement has a different way to save than do conventional securities. See saving as a new title in the feature. That action is supposed to save the title Motion Motion titles custom tab titles & text. The classic titles get saved on hard drive to the TRC.

    Please consider.

    RTA

  • Database problems?

    Hello

    I've recently upgraded from 5.0 to 5.5 U1 (including correction of bug heartbleed) and will have what I believe are from the database.  The services start and I am able to connect through the vSphere client and web interface.  The problem comes when I try to create a new virtual machine.  All the steps to cross, but it hangs at 100% when he says 'Configuration of the Virtual Machine to copy' and my vSphere client disconnects.  Then, I get an error: "connection to the server '< servername >' has been lost while finishing the last command.  Confirm that the command was completed successfully.  Then I get "sessions of the application is not valid.  Looking at the vpxd -n.log, I see:

    MEM > 2014-04-29T 14: 05:34.531 - 04:00 [warning 07000 'Default'] [VdbStatement] SQL execution failed: insert into VPX_TABLE (TABLE_NAME, Column, COL_TYPE, COL_LEN, PK_FLG) values (?,?,?,?,?)

    MEM > 2014-04-29T 14: 05:34.531 - 04:00 [warning 07000 'Default'] [VdbStatement] run time: 0 ms

    MEM > 2014-04-29T 14: 05:34.532 - 04:00 [warning 07000 'Default'] [VdbStatement] given the driver diagnosis are 07002:1:0: [Microsoft] [SQL Server Native Client 11.0] incorrect field COUNT or syntax error

    MEM > 2014-04-29T 14: 05:34.532 - 04:00 [warning 07000 "Default"] binding settings [VdbStatement]:

    MEM > 2014-04-29T 14: 05:34.532 - 04:00 [error 07000 'Default'] [Vdb::IsRecoverableErrorCode] Impossible to recover from 07002:0

    MEM > 2014-04-29T 14: 05:34.532 - 04:00 [error 07000 "Default"] SQLError [VdbStatement] has been lifted: "ODBC error: (07002) - [Microsoft] [SQL Server Native Client 11.0] COUNT field incorrect or syntax error" is returned when you run the SQL statement "insert into VPX_TABLE (TABLE_NAME, Column, COL_TYPE, COL_LEN, PK_FLG) values (?,?,?,?,?)".

    MEM > 2014-04-29T 14: 05:34.539 - 04:00 [error 07000 'Default'] [VdbSchemaLoader::StoreTableSchemaInfoToDB] error insertion in VPX_TABLE for table VPX_NW_ASSIGNMENT: "ODBC error: (07002) - [Microsoft] [SQL Server Native Client 11.0] COUNT field incorrect or syntax error" is returned when you run the SQL statement "insert into VPX_TABLE (TABLE_NAME, Column, COL_TYPE, COL_LEN, PK_FLG) values (?,?,?,?,?)".

    MEM > 2014-04-29T 14: 05:34.539 - 04:00 [error 07000 'Default'] [VdbTableDef::PopulateSchemaInfo] unable to retrieve the column information for the table VPX_NW_ASSIGNMENT. Usually, it is the result of an incompatibility between the DB scheme and construction product.

    MEM > 2014-04-29T 14: 06:12.830 - 04:00 [07000 panic "Default"] (level 2 of the recursion of the newspapers) [VdbTableDef::PopulateSchemaInfo] out. Could not retrieve schema information.

    I have setup a service account for the following services: "VMware VirtualCenter Management Web Services", "VMware Virtual Center Server", and "vSphere VMware Update Manager Service". "  The account is a domain account and is a member of the local Administrators group.  It seems that the service doesn't have access to write to the database, but when I look at the effective permissions of database for the service account, there a lot of ALTER and INSERT permissions.  Any help would be greatly appreciated.

    TIA

    It turns out that the service account did not have the default schema of dbo.  That solved the problem

  • Comparison of database problem

    Hello

    I have a problem when I have a source database and it consists of about 30 tables.
    (Not only 1 database, I have many source databases and the tables are even more)

    Initially I copy all tables with data in my database of destination.

    Later, for every 10 (or) 15 days, I need to get a dump of my source database
    such as only the lines which are updates to the source database tables must be exported.
    While I would like to add that the lines of my destination database tables.

    Is there a solution for it, instead of going to each table
    and make surgery less to see what are the lines updated in each table.

    Is it an effective way to do it. Because my paintings consists of about 0.2-0.3 million records.

    My Oracle 10 g database is.

    You need replication. For example, Oracle Golden Gate or advanced replication. It will replicate all the changes almost immediately and transparent for all users.

    Or if you have a column with the last updated date in your tables, create indexes on this column and use it to export data with exp/expdp/database link... or any other tool you are able to use.

  • Database problem help

    The database with the relevant tables looks like this:
    http://i.imgur.com/JewUS.PNG

    I need help to create these 2 triggers for the return_date field.

    Create a trigger to insert FRONT check should not be seized.
    create or replace
    TRIGGER trig_return_date2
       BEFORE INSERT
       ON hire
       FOR EACH ROW
    BEGIN
       IF :NEW.hir_returndate IS NOT NULL
       THEN
          raise_application_error (-20900, 'Cannot be entered');
       END IF;
    END;
    Create an AFTER UPDATE trigger, when changed from null to a date, beat all records of Stock and available.
    create or replace
    TRIGGER trig_return_date3
       AFTER UPDATE ON hire
       FOR EACH ROW
    BEGIN
       IF :NEW.hir_returndate IS NOT NULL
       THEN
       UPDATE stock sto
      SET sto.sto_available = 'Y'
      WHERE EXISTS (SELECT null
      FROM stock_hire sth
      WHERE sth.stohir_sto_id = sto.sto_id
      AND sth.stohir_hir_id = :new.hir_id
    );
    END IF;
    END;
    They are compiled fine, but I don't know how to check for them if I can't insert into column return_date. How would the return_date changed to a DATE if it cannot be entered. Am I suppose to insert data into the STOCK_HIRE table, or just the RENTAL table, when a person goes to rent a DVD. Or is the composite table of STOCK_HIRE guess to retrieve and insert automatically the data in the table STOCK / RENTAL.

    Hello

    Minecraft addict wrote:
    The database with the relevant tables looks like this:
    http://i.imgur.com/JewUS.PNG

    Display all relevant information in the message of yiour.
    Whenever you have a problem, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and the desired results from these data.
    In the case of an operation DML (for example, INSERT, or UPDATE), the sample data should show what looks like the tables before the DML, and results will be the content of the or the tables changed after the DML. If the problem is with the triggers, post some DML statements that would cause triggers to fire and content tables changed after each of them.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.

    I need help to create these 2 triggers for the return_date field.

    Create a trigger to insert FRONT check should not be seized.

    create or replace
    TRIGGER trig_return_date2
    BEFORE INSERT
    ON hire
    FOR EACH ROW
    BEGIN
    IF :NEW.hir_returndate IS NOT NULL
    THEN
    raise_application_error (-20900, 'Cannot be entered');
    END IF;
    END;
    

    Create an AFTER UPDATE trigger, when changed from null to a date.

    Whne is changeed to NULL for a date? hir_returndate?

    the value all records associated with the available stock.

    create or replace
    TRIGGER trig_return_date3
    AFTER UPDATE ON hire
    FOR EACH ROW
    BEGIN
    IF :NEW.hir_returndate IS NOT NULL
    THEN
    UPDATE stock sto
    SET sto.sto_available = 'Y'
    WHERE EXISTS (SELECT null
    FROM stock_hire sth
    WHERE sth.stohir_sto_id = sto.sto_id
    AND sth.stohir_hir_id = :new.hir_id
    );
    END IF;
    END;
    

    They are compiled fine, but I don't know how to check for them if I can't insert into column return_date. How would the return_date changed to a DATE if it cannot be entered.

    The BEFORE INSERT trigger fires when INSERTING. You can INSERT a line with hir_returndate and then update the line for hir_returndate set to NULL and then update the line once again, to change the hir_returndate to a value.

    Am I suppose to insert data into the STOCK_HIRE table, or just the RENTAL table, when a person goes to rent a DVD. Or is the composite table of STOCK_HIRE guess to retrieve and insert automatically the data in the table STOCK / RENTAL.

    Those are all fine with me. Do you have anything in particular you're trying to do? It is always helpful if you will contact appropriate columns of mean. Is hir_returndate the date when a rental was returned? If so, why can it be NULL when ren tal is inserted in rental? Would be unwise to have a trigger saying that hir_returndate has to be set to NULL when a new line is inserted, rather than a trigger that it must not be null?

  • Startup database problems.

    Hi people,

    I tried to start the database after after applying the opatch

    where I am not able to open the database

    SQL > startup
    ORACLE instance started.

    Total System Global Area 536870912 bytes
    Bytes of size 1262788 fixed
    167775036 variable size bytes
    360710144 of database buffers bytes
    Redo buffers 7122944 bytes
    Mounted database.
    ORA-01092: ORACLE instance is complete. Disconnection forced


    Could someone provide any suggestion.

    Thank you

    Hello
    Alert content will show exactly what the problem is. This patch that has been and execute all post install script in the database? You need to start the database upgrade required running post install script mode.

    Salman

  • Trigger database problem

    I write the trigger on database level and trigger works well. Problem occurs during playback

    RAISE_APPLICATION_ERROR (-20001, 'dash already generated for the amount of requisition, unauthorized update');

    What is the problem?

    When I run a manipulation on this table through oracle (9i DS) forms, it gives me the error
    + "40509-oracle error, impossible to update the record." + "
    rather than giving me the error below
    + "Dash already generated for the amount of requisition, unauthorized update +.
    I mentioned in my trigger.

    Kindly solve my problem,
    Concerning
    Salah

    ----------------------------------------------------------------------------------------------------------------------------------------
    CREATE OR REPLACE TRIGGER DBADMIN. BEF_UPD_SCM_REQUISITION_DET
    before the update on SCM_REQUISITION_DET
    for each line

    DECLARE
    Number V_INDENT_QTY;
    Number V_ISSUE_QTY;

    BEGIN

    BEGIN
    SELECT SUM (NVL(INDENT_QTY,0)-NVL(CANCEL_QTY,0))
    IN V_INDENT_QTY
    OF SCM_INDENT_DET
    WHERE REQ_SNO =: OLD. REQ_SNO
    AND REQ_DET_SNO =: OLD. REQ_DET_SNO;
    EXCEPTION WHEN OTHERS THEN
    V_INDENT_QTY: = 0;
    END;

    BEGIN
    SELECT SUM (NVL(ISSUE_QTY,0))
    IN V_ISSUE_QTY
    OF SCM_ISSUE_DET
    WHERE REQ_SNO =: OLD. REQ_SNO
    AND REQ_DET_SNO =: OLD. REQ_DET_SNO;
    EXCEPTION WHEN OTHERS THEN
    V_ISSUE_QTY: = 0;
    END;

    IF V_INDENT_QTY > nvl(:new.req_qty,0)-nvl(:new.cancel_qty,0) CAN
    RAISE_APPLICATION_ERROR (-20001, 'dash already generated for the amount of requisition, unauthorized update');
    ELSIF V_ISSUE_QTY > nvl(:new.req_qty,0)-nvl(:new.cancel_qty,0) CAN
    RAISE_APPLICATION_ERROR (-20001, 'show has generated on the requisition amount, unauthorized update');
    ON THE OTHER
    NULL;
    END IF;

    END;
    ----------------------------------------------------------------------------------------------------------------------------------------

    Hai,

    In the ON-ERROR trigger, write,

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

    THEN IF DBMS_ERROR_CODE = - 20001
    SET_ALERT_PROPERTY ('', ALERT_MESSAGE_TEXT, DBMS_ERROR_TEXT);
    ON THE OTHER
    .................

    END IF;

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

    Kind regards

    Manu.

    If this answer is useful or appropriate, please mark. Thank you.

  • LabVIEW database problem: create a database of the user-defined fields

    I am trying to create a new table in Access database opened by an ODBC connection from information between a table stored in the database, but whenever I try to create the table, the toolkit of connectivity of database of Labview VI to create a table get up a mistake costed

    «Exception occurred in the Microsoft OLE DB provider for ODBC drivers: syntax [Microsoft] [ODBC Microsoft Access driver] error in field definition.» "in NI_Database_API.lvlib:Conn Execute.vi-> NI_Database_API.lvlibB tools create Table.vi-> DatabaseCreateHeaders.vi.

    I think it's because I'm trying to re - create the database column variable type, but I don't know what I'm doing wrong.  Everything seems fine data types, and everything works as long as I use a constant to create database columns.  I even tried to put all the information in the labview set, format, which changed to a variant and redefined it as the labview database column type.

    I have attached a simplified VI and a picture of what I'm trying to do, but I'd appreciate any help I can get.  I hope that I have pulled all my hair at the time where a certain answers!

    Make sure that your domain names are not of the reserved words

  • sql database problem waterfalls

    Hello

    I use the cascades sql database! I am able to run the sql query, create tables and data screwed into it!

    But I am unable to read the sql database! Please help me!

    It's my code,

    SqlDataAccess sda (home.absoluteFilePath ("mydeb.db"));

    QVariant list = sda.execute ("SELECT * FROM MaTable");

    But I don't know how to recover data from this QVariant!

    Please help me...

    The result of function execute() is actually a QVariantMapList wrapped in a QVariant. (QVariantMapList is a TypeDef to see). To get your result set, you must cast to a QVariantList, gives you your lines, then extracts the columns of the QVariant map. Lets say you want to get the value of an INTEGER column called 'my_int_col' in the first row of the result set. Do it like this:

    int myInt;
    QString query = "SELECT * FROM mytable;";
    
    QVariant result = this->db->execute( query );
    if ( !this->db->hasError() ) {
        myInt = result.value()[0].value()["my_int_col"].value();
    } else {
        DataAccessError err = this->db->error();
        qCritical() << "SQLite Error -" << query << "-" << err.errorMessage();
    }
    

    Note that you must climb the QVariant column obtained from QVariantMap ().valueint line. Obviously, the cast that make you must match the data type of the column that you collect. Access to the other lines in the game by changing the [0] properly. Find out how many rows were returned with result.value(). count().

  • import the R12 database problem

    Hello

    I import a R12.1.3/11.2.0.3 database with nohup, for example:

    impdp $nohup / parfile = impdev_oltp_springdb.txt &

    I also use another window to control the log file.

    I don't know what I've done (can hit the back button) now the screen looks like the following:

    impdp $nohup / parfile = impdev_oltp_springdb.txt &

    $nohup: output to 'nohup.out' adding

    No more are written to the log file. Is the correct import?

    $nohup: output to 'nohup.out' adding

    This means that the output of the command goes in the output file. You should be good, just keep control the output file to confirm.

    Thank you

    Hussein

Maybe you are looking for

  • DVD writer does not recognize 'NEW' blank DVD - r (Windows XP)

    Hello I have a question that has been annoying me a lot during the last few weeks, as follows... I have a Dell Optiplex GX620 computer is running Windows XP service pack 3, it has a cd/DVD burner in this model (HL-DT-ST DVD +-RW GWA4164B), I used to

  • HP VugenSA 11.50 (unhandled exception has occurred in your application.)

    Hello I use generator load runner virtual 11.5, after installation if I open VUgen, I get the below error. HP VugenSA 11.50 (unhandled exception has occurred in your application. If you click on continue, the application will ignore this error and at

  • How to activate my windows after installing windows 7 on linux

    I used to have 10 updated since windows windows 7, and after a while, I spent my hard drive and installed linux mint. Now, I have installed windows 7 on linux but now my windows product key won t work. All solutions?

  • of the laptop and monitor external both go to a black screen

    OK, I have a laptop Toshiba Satellite L675D and monitor external lg I've used for more than a year. the problem I knew it is that when I turn on my external monitor both the monitor to the laptop and external monitor goes to a black screen and to get

  • AUTHID current_user

    HelloI have a form of Oracle I connect as user ROGADM. Of this form I run the procedure PROC packed (package is defined with "authid DEFINER") in the SYSUTLADM user schema. Of the PROC, I run a stand-alone function FUNC DEFINED with 'authid current_u