ORA-01507: database not mounted

Hello

It's 11.2.0.3 on Windows 2008,

a node 3 RAC ASM.

After restarting the server that hosts third instance,

I have the following situation, everything is in place except the database

on the third node in the database of node 1 and 2 is open, any other service is also running.

crsctl res stat - you

ORA.bigdb.db

1 LINE intermediate bigdb3 dismantled, up in

itiated

2 bigdb2 open online

3 bigdb1 open online

When I try to query from the third node database, I got the message that the database is not mounted,

C:\ > sqlplus / as sysdba

SQL * more: Production of the version 11.2.0.3.0 on Mon Oct 26 15:47:25 2015

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to:

Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

With Real Application Clusters and Automatic Storage Management options

SQL > select count (*) from the database of v$.

Select count (*) from the database of v$

*

ERROR on line 1:

ORA-01507: database not mounted

Seems that there is nothing wrong when querying ASM instance on that node, all disks are mounted.

C:\ > set ORACLE_SID = + ASM3


C:\ > sqlplus / as sysasm

SQL * more: Production of the version 11.2.0.3.0 on Mon Oct 26 15:49:51 2015

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to:

Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

With Real Application Clusters and Automatic Storage Management options

SQL > select name, status from v$ asm_diskgroup;

NAME STATE

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

BOW MOUNTED

MOUNTED CRS

DG1 MOUNTED

DG2 MOUNTED

QG3 MOUNTED

SQL >

And it is of the Journal of the third instance alerts.

ORA-00210: could not open the specified control file

ORA-00202: control file: "+ ARC/control02.ctl".

ORA-17503: ksfdopn:2 could not open the file + ARC/control02.ctl

ORA-15001: diskgroup 'ARC' does not exist or is not mounted

ORA-15077: could not locate instance ASM serving a required diskgroup

ORA-00210: could not open the specified control file

ORA-00202: control file: "+ DG3/bigdb/control01.ctl".

ORA-17503: ksfdopn:2 could not open the file +DG3/bigdb/control01.ctl

ORA-15001: diskgroup 'DG3' does not exist or is not mounted

ORA-15077: could not locate instance ASM serving a required diskgroup

ORA - 205 marked during: alter exclusive of installation of database...

Please suggest what can be done to open the database of the third node.

Thanks to all for trying to help.

What I did then, it's a sign the db as sysdba on the third node,.

immediate stop and then start.

SQL > shutdown immediate;

ORA-01507: database not mounted

ORACLE instance stops.

SQL >

SQL >

SQL >

SQL >

SQL > startup

ORACLE instance started.

System Global area 1.4531E + 10 bytes

Bytes of size 2269104 fixed

5905580112 variable size bytes

Buffers data 8589934592 bytes

Redo buffers 33673216 bytes

Mounted database.

Open database.

It seems that it is a question of cluster, Oracle obivously (sometimes) will automatically start all resources, as is expected.

I guess that Windows as operating system contributes significantly to the

Tags: Database

Similar Questions

  • ORA - 01507:database no mountedcoc

    Hi gurus,

    I need your help here. I lost my control file, it seems. Please check below the error I get:

    C:\ > sqlplus / as sysdba

    SQL * more: Production release 11.2.0.1.0 Wed Dec 25 01:17:20 2013

    Copyright (c) 1982, 2010, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > select name, open_mode from v$ database;

    Select name, open_mode from v database $

    *

    ERROR on line 1:

    ORA-01507: database not mounted

    I have create pfile from spfile and remove contorlfile1.ctl and started my new pfile file database:

    SQL > the judgment;

    ORACLE instance stops.

    SQL > startup nomount pfile='D:\app\Himanshu\product\11.2.0\dbhome_2\database\initorcl.ora';

    ORACLE instance started.

    Total System Global Area 2137886720 bytes

    Bytes of size 2177456 fixed

    1895827024 variable size bytes

    234881024 of database buffers bytes

    Redo buffers 5001216 bytes

    SQL >

    now connecting to rman and try to restore automatic backup controlfile:

    SQL > ho target rman.

    Recovery Manager: release 11.2.0.1.0 - Production Wed Dec 25 01:24:28 2013

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.


    connected to target database: ORCL (unassembled)

    RMAN > restore controlfile autobackup.


    From restoration to 25 December 13

    using the control file of the target instead of recovery catalog database

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 129 type device = DISK


    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the restore command at 25/12/2013 01:24:45

    RMAN-06495: must explicitly specify the DBID with the SET DBID command

    RMAN >

    The error is asking to put the DBID. I don't check the DBID when my database has increased. Please let me know how I can solve this problems and make my database online.

    Thank you

    Michel

    How to recreate a Controlfile (Doc ID 735106.1)

    D:\app\Himanshu\backups\Controlfile_backups\RMAN_CTL_C-1361341321-20131225-00. BK


    1361341321 DBID


    Please consult the RMAN and also why multiplex control files?

  • ORA-38754: FLASHBACK DATABASE not started; required redo log is not available

    Hello

    I am getting below error when executing the activities of flashback. Currently we have backups, so when I tried the command flashback in RMAN my question solved.

    But if I want to do the same thing using SQLPLUS what steps should I take?

    ERROR:

    ORA-38754: FLASHBACK DATABASE not started; required redo log is not available

    ORA-38762: redo logs needed for SNA to SNA 20062842936 20062842926

    ORA-38761: redo log sequence 4 in thread 2, 65 incarnation cannot

    consulted

    DATABASE:11.2.0.3.0 (UAT)

    RMAN will automatically restore logs archived redo required for the operation of blowback when they are not present on the drive, while (as meyssoun said) when using sqlplus required archived redo logs must be available on the disc.

    Concerning

    AJ

  • Private DB link does not not present despite entry TNS pattern gives ORA-02019: Description of the connection to remote database not found

    Hi DBAs,

    I have created a new schema and granted create database link and create databases of public link privileges.

    After that I created the link private DB for which TNS entry is present in TNSNAMES.ora but everything by testing the link, I get the error:

    ' ORA-02019: Description of the connection to the remote database not found. '

    Kind regards

    Ritz

    Try using:

    CREATE the DATABASE LINK "VENUS.ritz.ac.uk".

    CONNECT TO 'VENUSREADONLY' IDENTIFIED BY 'FLAMING0READ0NLY' WITH THE HELP OF "VENUS."

    Your dblink seem to give the entry not TNS service name.

    Kind regards

    --

    Bertrand

    PS you have to hide people with disabilities before posting.

  • Error ORA-16724: could not resolve the deficit for one or more databases in waiting

    I came to work today with the following error is displayed:

    February 5, 2014 01:27:19 error ORA-16778: make the mistake of transport for one or more databases.


    Looks like this error disappeared but now I have the following error:

    February 5, 2014 11:52:40 error ORA-16724: could not resolve the deficit for one or more databases in waiting

    I did some research on the forums and I think I need backup and restore, but I'm not sure.

    Here are some questions that I saw others asking in the forums:

    PRIMARY:

    Select max(sequence#) from v$ archived_log; -24589

    Select current_scn in the database of v$. -871568619

    SECONDARY:

    Select max(sequence#) from v$ archived_log; -24589

    Select max(sequence#) from v$ archived_log in case of application = 'YES '; -24562

    Select current_scn in the database of v$. -870987797

    Select * from v$ archive_gap;

    Thread # Low_Sequence # High_Sequence #.

    1 24563 24563

    Looks like everything is working, but the error is still appearing in OEM primer.

    The issue ended up being with the control file. I followed of many blog posts on how to roll forward the database before and they all said to restore the control file before you recover the database. I followed this paper: http://docs.oracle.com/cd/B28359_01/server.111/b28294/rman.htm#CIHIAADC and it worked as expected. The old control file has had 6 data files that were in a different place than the others. The new control file, I created the primary had all the files of data in one place. After correcting the control to point to the locations correct datafile all started working again.

  • ORA-16783: could not resolve the deficit for the database

    I have two databases emadb and emadbdg, governed by Data Guard. emadb is currently principal. emadbdg is currently pending physical.

    ORA16783 - cannot solve the gap for the database is one I think, is the origin of the problem. Anyone can help solve the problem below. Logs attached.

    Output of data protection

    DGMGRL > show detailed configuration

    Configuration - DRSolution

    Protection mode: MaxAvailability
    Databases:
    emadb - primary database
    Error: ORA-16825: multiple errors or warnings, including failover quick start or warnings, errors detected for the database

    emadbdg - (*) Physical standby database
    WARNING: ORA-16817: configuration not synchronized rapid failover

    (*) Fast failover target

    Properties:
    FastStartFailoverThreshold = "30"
    OperationTimeout = "30"
    FastStartFailoverLagLimit = "30"
    CommunicationTimeout = "180"
    FastStartFailoverAutoReinstate = 'TRUE '.
    FastStartFailoverPmyShutdown = "FALSE".
    BystandersFollowRoleChange = "ALL".

    Fast-Start Failover: ENABLED

    Threshold: 30 seconds
    Target: emadbdg
    Observer: emarn1
    Offset limit: 30 seconds (do not use)
    Primary closure: FALSE
    Auto-Rétablir: TRUE

    The configuration status:
    ERROR


    DGMGRL > see the detailed database emadb

    Database - emadb

    Role: PRIMARY
    State of destination: TRANSPORT-WE
    Occurrence (s):
    emadb

    Database error (s):
    ORA-16783: could not resolve the deficit for the database emadbdg

    Warning (s) of database:
    ORA-16817: unsynchronized fast-start failover configuration

    Properties:
    DGConnectIdentifier = "emadb.
    ObserverConnectIdentifier = "
    LogXptMode = "SYNCHRONIZE".
    DelayMins = '0'
    Binding = "optional."
    MaxFailure = '0'
    MaxConnections = '1'
    ReopenSecs = "300"
    NetTimeout = "30"
    RedoCompression = "DISABLE."
    LogShipping = 'ON '.
    PreferredApplyInstance = "
    ApplyInstanceTimeout = '0'
    ApplyParallel = 'AUTO '.
    StandbyFileManagement = 'AUTO '.
    ArchiveLagTarget = '0'
    LogArchiveMaxProcesses = "4"
    LogArchiveMinSucceedDest = '1'
    DbFileNameConvert = 'emadbdg, emadb '.
    LogFileNameConvert = "/ opt/app/oracle/oradata/emadbdg, / opt/app/oracle/oradata/emadb '"
    FastStartFailoverTarget = "emadbdg".
    InconsistentProperties = "(monitor).
    InconsistentLogXptProps = "(monitor).
    SendQEntries = "(monitor).
    LogXptStatus = "(monitor).
    RecvQEntries = "(monitor).
    Nom_sid = "emadb.
    StaticConnectIdentifier = ' (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=emarn1) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = emadb_DGMGRL) (INSTANCE_NAME = emadb)(SERVER=DEDICATED)))'
    StandbyArchiveLocation = "/ opt/app/oracle/oradata/emadb/archivelog1.
    AlternateLocation = "
    LogArchiveTrace = '0'
    LogArchiveFormat = '% t_%s_%r.dbf '.
    TopWaitEvents = "(monitor).

    State of the database:
    ERROR

    DGMGRL > see the detailed database emadbdg

    Database - emadbdg

    Role: STANDBY PHYSICS
    State of destination: apply
    Transport delay: (unknown)
    Apply the Lag: (unknown)
    Real-time query: OFF
    Occurrence (s):
    emadbdg

    Warning (s) of database:
    ORA-16817: unsynchronized fast-start failover configuration

    Properties:
    DGConnectIdentifier = "emadbdg".
    ObserverConnectIdentifier = "
    LogXptMode = "SYNCHRONIZE".
    DelayMins = '0'
    Binding = "OPTIONAL."
    MaxFailure = '0'
    MaxConnections = '1'
    ReopenSecs = "300"
    NetTimeout = "30"
    RedoCompression = "DISABLE."
    LogShipping = 'ON '.
    PreferredApplyInstance = "
    ApplyInstanceTimeout = '0'
    ApplyParallel = 'AUTO '.
    StandbyFileManagement = 'AUTO '.
    ArchiveLagTarget = '0'
    LogArchiveMaxProcesses = "4"
    LogArchiveMinSucceedDest = '1'
    DbFileNameConvert = 'emadb, emadbdg '.
    LogFileNameConvert = "/ opt/app/oracle/oradata/emadb, / opt/app/oracle/oradata/emadbdg '"
    FastStartFailoverTarget = "emadb.
    InconsistentProperties = "(monitor).
    InconsistentLogXptProps = "(monitor).
    SendQEntries = "(monitor).
    LogXptStatus = "(monitor).
    RecvQEntries = "(monitor).
    Nom_sid = "emadbdg".
    StaticConnectIdentifier = ' (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=emarn2) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = emadbdg_DGMGRL) (INSTANCE_NAME = emadbdg)(SERVER=DEDICATED)))'
    StandbyArchiveLocation = "/ opt/app/oracle/oradata/emadbdg/archivelog1.
    AlternateLocation = "
    LogArchiveTrace = '0'
    LogArchiveFormat = '% t_%s_%r.dbf '.
    TopWaitEvents = "(monitor).

    State of the database:
    WARNING

    DGMGRL >
    DGMGRL >
    DGMGRL >
    DGMGRL >
    DGMGRL > output

    Alex Antony Samantha wrote:


    Head node

    SQL> archive log list
    Database log mode            Archive Mode
    Automatic archival            Enabled
    Archive destination            /opt/app/oracle/oradata/emadb/archivelog1
    Oldest online log sequence     65
    Next log sequence to archive   67
    Current log sequence            67
    
    SQL> select thread#,max(sequence#) from v$archived_log group by thread#;
    
    THREAD# MAX(SEQUENCE#)
    ---------- --------------
          1           925
    

    It is misleading to the column sequence, sequence of real number is 65 series, but it's beyond. Have you restored any old backup with the incarnation?
    When you perform incremental backups, is the current_scn in the two primaries and Eve was balanced?

    And the sequence number * 29 * is transferred from the primary to the standby (or) he has been removed from the primary?
    Perform the two methods.

    (1) SQL > alter system set log_archive_dest_state_2 = 'reporter ';
    (2) conduct 3-4 log switches
    (3) SQL > alter system set log_archive_dest_state_2 = 'enable '.

    and displays the alert log database and backup files.
    And you mentioned the hostname in the entries of the listener, if this entry is added in/etc/hosts? otherwise you can use the IP address instead of the host name and then reload the listener.

    second method
    (1) copy archives missing from primary sequence of 29
    (2) place manually and then perform a recovery
    or
    (3) retrieve manually

    And update with your conclusions after all these lists.
    Thank you.

  • ORA-02019: description of the connection to the remote database not found

    Hi all

    10.2.0.4 on solaris 10.

    I can tnsping and connect to a tnsentry in tnsnames.ora from the server, but when I use the same in dblink, get the error below:
    ORA-02019: description of the connection to the remote database not found. Here's the scenario. any idea?
    medt01:medtora:/medt/oracle/product/102/network/admin$ tnsping medcon
    
    TNS Ping Utility for Solaris: Version 10.2.0.4.0 - Production on 09-NOV-2011 23:49:23
    
    Copyright (c) 1997,  2007, Oracle.  All rights reserved.
    
    Used parameter files:
    /medt/oracle/product/102/network/admin/sqlnet.ora
    
    
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.102)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = medcon)))
    OK (20 msec)
    medt01:medtora:/medt/oracle/product/102/network/admin$ sqlplus medts_ed/medfcv@medcon
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Nov 9 23:49:31 2011
    
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    medt01:medtora:/medt/oracle/product/102/network/admin$ sqlplus medts_ed/medfcv@medcon
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Nov 9 23:59:54 2011
    
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    medt01:medtora:/medt/oracle/product/102/network/admin$ tnsping medcon
    
    TNS Ping Utility for Solaris: Version 10.2.0.4.0 - Production on 10-NOV-2011 00:00:02
    
    Copyright (c) 1997,  2007, Oracle.  All rights reserved.
    
    Used parameter files:
    /medt/oracle/product/102/network/admin/sqlnet.ora
    
    
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.102)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = medcon)))
    OK (0 msec)
    medt01:medtora:/medt/oracle/product/102/network/admin$ sqlplus medts_ed/medfcv@medcon
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Thu Nov 10 00:00:07 2011
    
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    medt01:medtora:/medt/oracle/product/102/network/admin$ sqlplus medc_pl/medxcdsw3
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Thu Nov 10 00:00:17 2011
    
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP, Data Mining
    and Real Application Testing options
    
    SQL> create database link med2con connect to medts_ed identified by medfcv using  'medcon' ;
    
    Database link created.
    
    SQL> select * from medc@med2con;
    select * from medc@med2con
                                *
    ERROR at line 1:
    ORA-02019: connection description for remote database not found

    Try this,

    SQL > create database link med2con connect to medts_ed identified by using medfcv ' (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.102)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAME = medcon)))';

    SQL > select * from medc@med2con;

  • ORA-01109: database is not open

    Aloha!

    I created a forum on the 11g R2 and is about to import a dump. To the creation of a directory, I get this error;


    [oracle@ole5 SBAtemp] $ sqlplus sys/Change12345@orc01 as sysdba

    SQL * more: Production version 11.2.0.1.0 Fri Sep 23 19:30:33 2011

    Copyright (c) 1982, 2009, Oracle. All rights reserved.


    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > create or replace the BW_TEMP directory as ' / u01/SBAtemp /';
    create or replace the BW_TEMP directory as ' / u01/SBAtemp /'
    *
    ERROR on line 1:
    ORA-01109: database is not open


    SQL >

    Your advisor and your comment is much appreciated.

    Thanks in advance.

    Kind regards
    Hades

    Try this...

    $ sqlplus sys/Change12345@orc01 as sysdba

    SQL > shutdown immediate

    SQL > startup

    and to check the status of the instance:

    SQL > select status from v$ instance;

    Let me know the result (in the cases where appropriate or useful the mark so that this thread can be close)

    Neeraj-

  • ORA-16797: database does not use a server parameter file

    I can see newspapers apply pending data. But in the dataguard alter journal generates error ORA-16797: database does not use a server parameter file

    Error message in the logfile dataguard
    -----------------------------------

    DG 2010-03-23-17: 0 2 714415739 MICHAEL 46:45: GET_DRC finished
    DG 2010-03-23-17: 714415740 3 1000000 MICHAEL 46:45: GET_SITE: success. (len = 464)
    DG 2010-03-23-17: 714415740 3 1000000 MICHAEL 46:45: GET_SITE finished
    DG 2010-03-23-17: 2000000 3 714415741 MICHAEL 46:45: GET_SITE: success. (len = 481)
    DG 2010-03-23-17: 2000000 3 714415741 MICHAEL 46:45: GET_SITE finished
    DG 2010-03-23-17: 0 2 714415742 MICHAEL 46:45: CTL_GET_STATUS sent to the ANZPRD site for treatment
    DG 2010-03-23-17: 0 2 714415742 MICHAEL 46:45: CTL_GET_STATUS finished
    DG 2010-03-23-17: 47:32 0 2 0 RSM0: HEALTH CHECK ERROR: ORA-16797: database does not use a server parameter file
    DG 2010-03-23-17: 47:32 0 2 704706097 CTL_GET_STATUS operation cancelled during phase 1, error = ORA-16797
    DG 2010-03-23-17: 47:32 0 2 704706097 CTL_GET_STATUS operation cancelled during phase 1, error = ORA-16797

    QL > SELECT MAX(SEQUENCE#), THREAD # V$ ARCHIVED_LOG GROUP THREAD #;

    MAX(SEQUENCE#) THREAD #.
    -------------- ----------
    2, 2000
    2060 1

    I did the steps

    Create spfile pfie
    Shutdown
    Started by spifile

    No luck. Journal of applied began. but I see the same error in the datagurd log file

    Here's what it should look like:

    SQL> show parameter pfile
    
    NAME_COL_PLUS_SHOW_PARAM                                                         TYPE
    -------------------------------------------------------------------------------- ------
    VALUE_COL_PLUS_SHOW_PARAM
    ---------------------------------------------------------------------------------------
    spfile                                                                           string
    C:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\SPFILEORABASE.ORA
    SQL> 
    

    My guess is that the file is not in the right place. Check the location and your ORACLE_HOME environment variable.

    It should be in $ORACLE_HOME/database for windows, $ORACLE_HOME/dbs for real operating systems.

  • Database trigger - PL/SQL: ORA-00984: column not allowed here

    I am trying to create a trigger that will update a table of audit used when a row is changed. Using a sequence number to assign an identifier unique to each line as it is created. Need to capture the user ID, date modified and action (update), the image of the front line.
    CREATE SEQUENCE emp_audit_seq START WITH 10;                
    Create table emp (
       empno       NUMBER(4)      Primary Key,
       ename       VARCHAR2(10),
       job            VARCHAR2(9),
       mgr           NUMBER(4),
       hiredate     DATE,
       sal             NUMBER(7,2),
       comm        NUMBER(7,2),
       deptno       NUMBER(2));
    CREATE TABLE emp_audit   (
         audit_uid          NUMBER(15)      Primary Key,
         change_date          DATE,
         change_user          VARCHAR2(30),
         action                  CHAR(1),
         empno                  NUMBER(4),
         ename                  VARCHAR2(10),          
         job               VARCHAR2(9),
         mgr               NUMBER(4),
         hiredate          DATE,
         sal               NUMBER(7,2),
         comm                  NUMBER(7,2),
         deptno                  NUMBER(2));
    CREATE OR REPLACE TRIGGER trig_emp_audit
      BEFORE UPDATE ON emp
      FOR EACH ROW
    BEGIN
      INSERT INTO emp_audit
        VALUES(emp_audit_seq.nextval, change_date, change_user, action, :old.empno, :old.ename, :old.job, :old.mgr, :old.hiredate, :old.sal, :old.comm, deptno);
    END;
    /
    
    Warning: Trigger created with compilation errors.
    
    SQL> show errors
    Errors for TRIGGER TRIG_EMP_AUDIT:
    
    LINE/COL ERROR
    -------- -----------------------------------------------
    2/3      PL/SQL: SQL Statement ignored
    3/149    PL/SQL: ORA-00984: column not allowed here
    Can someone help to help me find what I'm doing wrong with the trigger?

    Published by: LostNoob on August 25, 2012 14:24

    First of all, when you write an INSERT statement, it is always good for the columns that you insert in the list. Which makes the code easier to follow - you do not have separately pull toward the top of the table definition to know what order of columns is inserted. And it makes the code easier to manage because the declaration become invalid if you add a new column to the table in the future.

    Second, CHANGE_DATE, CHANGE_USER and ACTION are not (probably) functions and are not local variables so it is not supposed to use them in an INSERT statement. You need to write code or to take advantage of the existing functions to fill in these columns. I suppose, for example, that you want to use SYSDATE to fill the CHANGE_DATE and the USER to fill the column CHANGE_USER. My guess is that ACTION must always be a 'U' for UPDATE.

    Thirdly, it seems that you left the: old man on the DEPTNO column.

    Put them all together, you would have something like

    CREATE OR REPLACE TRIGGER trig_emp_audit
      BEFORE UPDATE ON emp
      FOR EACH ROW
    BEGIN
      INSERT INTO emp_audit(
          audit_uid,
          change_date,
          change_user,
          action,
          enpno,
          ename,
          job,
          mgr,
          hiredate,
          sal,
          comm,
          deptno )
        VALUES(
          emp_audit_seq.nextval,
          sysdate,
          user,
          'U',
         :old.empno,
         :old.ename,
         :old.job,
         :old.mgr,
         :old.hiredate,
         :old.sal,
         :old.comm,
         :old.deptno);
    END;
    / 
    

    Justin

  • ORA-01034: ORACLE not available ORA-27101: Kingdom is no Linux-x86_64 shared memory error: 2: no such file or directory process ID: ID of Session 0: 0 serial number: 0

    Hello

    In our society, we have oracle server on Suse Linux with two instances TETA and TETA201.

    One day on a server broke down, because there is no free space due growing files 'archivelog.

    After that I manually deleted several older archivelog files, but after the reboot, the server error occurs when connecting to the database:

    "ERROR:

    ORA-01034: ORACLE not available

    ORA-27101: shared memory realm does not exist

    Linux x86_64 error: 2: no such file or directory

    Process ID: 0

    "Session ID: serial number 0: 0"

    $ ORACLE_SID is set to TETA, if export it to TETA201 connection works correctly

    Oracle service startup there is no errors but only one instance is running TETA201 works correctly

    #############################################################################

    # Beginning of start O R A C L E section #.

    #############################################################################

    PARAMETERS from/etc/sysconfig/oracle

    -Set the Oracle kernel settings: Yes

    -Start the Oracle Listener: Yes

    -Start the Oracle database: Yes

    -Start the Oracle Web server: no

    -Start Oracle EManager: Yes

    -Start Oracle iSQLPLUS Manager: Yes

    -Start Oracle Agent: no

    -Start Oracle Internet Filesystem: no

    -Run Oracle Directory Manager: no

    Can not find required file: isqlplusctl - START_ORACLE_DB_ISQLPLUS setting = no

    Undefinied Agent Oracle or not properly configured. Please check.

    Setting the parameters of the kernel for Oracle, see the file

    / etc/sysconfig/Oracle of explanations.

    Shared memory: SHMMAX = SHMMNI(5) 3294967296 = 4096 SHMALL 2097152 =

    Semaphore values: SEMMSL = 1250 SEMMNS = 32000 SEMOPM = 100 SEMMNI = 256

    Other values: FILE_MAX_KERNEL = 131072 IP_LOCAL_PORT_RANGE = 1024 65000

    RMEM_DEFAULT = 4194304 WMEM_DEFAULT = 262144 = 4194304 = 262144 WMEM_MAX RMEM_MAX

    Huge pages:

    ULIMIT values: MAX_CORE_FILE_SIZE_SHELL = unlimited

    FILE_MAX_SHELL = 65536 = 16384 PROCESSES_MAX_SHELL

    Kernel defined for Oracle parameters: fact

    -Start listener... done

    + From databases...

    Start entry for SID TETATEST to /oracle/product/11.2.0/dbhome_1/ inskippedratab

    Database instance "TETA" of treatment: save the /oracle/product/11.2.0/dbhome_2/startup.log file

    Instance of database 'TETA201' of treatment: save the /oracle/product/11.2.0/dbhome_1/startup.log file

    Status of Oracle database start: fact

    -Starting Apache... unused

    -From unused application server

    -From Application Server Console... unused

    -Start of Agent... unused

    -From Enterprise Manager...

    DB console departure for TETA starting DB Console for TETA201 done

    -Jumped from iSQLPLUS Manager...

    -From... unused Oracle Internet file system

    -From Oracle Internet Directory... unused

    #############################################################################

    # End of O R A C L E section #.

    #############################################################################

    #############################################################################

    # End of O R A C L E section #.

    #############################################################################

    /Oracle/product/11.2.0/dbhome_1/startup.log


    SQL * more: Production of the version 11.2.0.3.0 on Mon Jan 18 11:43 2016

    Copyright (c) 1982, 2011, Oracle.  All rights reserved.

    SQL > Polaczono.

    SQL > ORACLE Instancja zostala zamknieta.

    SQL > Odlaczono od Oracle Database 11g Release 11.2.0.3.0 - 64 bit Production

    SQL * more: Production of the version 11.2.0.3.0 on Mon Jan 18 11:43:01 2016

    Copyright (c) 1982, 2011, Oracle.  All rights reserved.

    SQL > connect to an idle instance.

    SQL > ORACLE instance started.

    Total System Global Area 1043886080 bytes

    Bytes of size 2234960 fixed

    603981232 variable size bytes

    432013312 of database buffers bytes

    Redo buffers 5656576 bytes

    Baza danych zostala zamontowana.

    Baza danych zostala otwarta.

    SQL > Odlaczono od Oracle Database 11g Release 11.2.0.3.0 - 64 bit Production

    /Oracle/product/11.2.0/dbhome_2/bin/DBSTART: warm welcome of the instance 'TETA201' database has started.

    /Oracle/product/11.2.0/dbhome_2/startup.log


    PON sty 18 11:42:52 THIS 2016

    SQL * more: Production of the version 11.2.0.4.0 on Mon Jan 18 11:42:52 2016

    Copyright (c) 1982, 2013, Oracle.  All rights reserved.

    SQL > connect to an idle instance.

    SQL > ORACLE instance started.

    Total System Global Area 4175568896 bytes

    Bytes of size 2259840 fixed

    1409287296 variable size bytes

    2751463424 of database buffers bytes

    Redo buffers 12558336 bytes

    Baza danych zostala zamontowana.

    ORA-03113: end of file on communication channel

    Māju ID: 10080

    Sesji ID: 33, serial number: 3

    SQL > Odlaczono od Oracle Database 11g Release 11.2.0.4.0 - 64 bit Production

    /Oracle/product/11.2.0/dbhome_2/bin/DBSTART: hot "TETA" database instance started.

    Linux: ~ # service oracle State

    #############################################################################

    # Begin State O R A C L E section #.

    #############################################################################

    Kernel parameters

    Shared memory: SHMMAX = SHMMNI(5) 3294967296 = 4096 SHMALL 2097152 =

    Semaphore values: SEMMSL, SEMMNI, SEMMNS, SEMOPM: 1250 32000 100 256

    Database Instances

    TETA instance is out of service (autostart: Y)

    Instance of TETATEST is broken (autostart: N)

    TETA201 of the instance is declining (autostart: Y)

    AMT-listener: to the top

    Webserver (Apache httpd): low (0 process)

    List of processes by user oracle:

    PID TTY STAT TIME COMMAND

    9855?        SSL 0:00 /oracle/product/11.2.0/dbhome_2/bin/tnslsnr LISTENER

    10128?        SS 0:00 ora_pmon_TETA201

    10130?        SS 0:00 ora_psp0_TETA201

    10132?        SS 0:00 ora_vktm_TETA201

    10136?        SS 0:00 ora_gen0_TETA201

    10138?        SS 0:00 ora_diag_TETA201

    10140?        SS 0:00 ora_dbrm_TETA201

    10142?        SS 0:00 ora_dia0_TETA201

    10144?        SS 0:00 ora_mman_TETA201

    10146?        SS 0:00 ora_dbw0_TETA201

    10148?        SS 0:00 ora_lgwr_TETA201

    10150?        SS 0:00 ora_ckpt_TETA201

    10152?        SS 0:00 ora_smon_TETA201

    10154?        SS 0:00 ora_reco_TETA201

    10156?        SS 0:00 ora_mmon_TETA201

    10158?        SS 0:00 ora_mmnl_TETA201

    10166?        SS 0:00 ora_qmnc_TETA201

    10338?        SS 0:00 ora_cjq0_TETA201

    11195?        SS 0:00 ora_q000_TETA201

    11197?        SS 0:00 ora_q001_TETA201

    #############################################################################

    # End of O R A C L E section #.

    #############################################################################

    Help, please

    RMAN target /.

    RMAN > startup mount;

    RMAN > overlap archivelog all;

    RMAN > delete archivelog expired;

    RMAN > alter database open;

  • ORA-01034: ORACLE not available ORA-01078: failure in processing system

    Aloha!

    I just create an instance on oracle 11g R2, I stop the newly created instance. Commissioning once again, I was invited by:

    SQL > startup mount
    ORA-01078: failure in the treatment of system settings
    LRM-00109: could not open the parameter file ' / u01/app/oracle/product/11.2.0/db_1/dbs/initorc01.ora'
    SQL >

    also, I tried connected as: [oracle@ole5 SBAtemp] $ sqlplus / as sysdba
    and try to shutdown database, im receiving this prompt.

    SQL > shutdown immediate
    SP2-0717: illegal SHUTDOWN option
    SQL > shutdown immediate;
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux error: 2: no such file or directory
    SQL >

    Thanks for the help in advance.


    Kind regards
    Hades
  • database, not to get up

    Hi the gems...

    When I tried to start my database, and then he got mounted successfully but cannot be opened with error "end of file on the communication channel.

    Mounted database.
    ORA-03113: end of file on communication channel
    Process ID: 3636
    Session ID: 9 serial number: 3


    I checked the alert logs and got that should fill the flash recovery area, it cannot start.

    < txt > errors in the d:\app\sandipanp\diag\rdbms\orcl\orcl\trace\orcl_ora_3636.trc file:
    ORA-16038: log sequence 1 # 97 can be archived
    ORA-19809: limit exceeded for file recovery
    ORA-00312: thread 1 1 online journal: & apos; D:\APP\SANDIPANP\ORADATA\ORCL\REDO01. JOURNAL & apos;
    < / txt >
    < / msg >
    < time msg ='2011 - 07-28T 17: 33:48.093 + 05:30 ' org_id = 'oracle' id_comp = 'RDBMS '.
    client_id = 'type = 'UNKNOWN' level = ' 16'
    HOST_ID = host_addr = "ISLVPIT0252" ' 10.180.126.74' module ='sqlplus.exe.
    PID = '3636' >
    < txt > USER (ospid: 3636): put an end to litigation because of the error 16038
    < / txt >
    < / msg >


    I tried to delete the backup with rman, but because the database is not up, it is impossible to run.

    RMAN > delete the backup.

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the delete command at 28/07/2011 17:36:38
    RMAN-06403: could not get a fully authorized session
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist


    so, now what can be done...
    Please help... Thanks in advance...

    Hello
    No need to delete the backups, I think you need to increase DB_RECOVERY_FILE_DEST_SIZE and restart DB

  • How to remove the group not mounted disc ASM

    SQL > select dg.name AS diskgroup, SUBSTR (d.name, 1, 16) AS asmdisk, SUBSTR(dg.compatibility,1,12) AS asm_compat, SUBSTR (dg.database_compatibility, 1, 12) AS db_compat
    2 from V$ ASM_DISKGROUP dg, v$ asm_disk d
    3 where dg.group_number = d.group_number;

    DISKGROUP ASMDISK ASM_COMPAT DB_COMPAT
    ------------------------------ ---------------- ------------ ------------
    MDMDG3 0.0.0.0.0 0.0.0.0.0
    MDMDG3 0.0.0.0.0 0.0.0.0.0
    MDMDG1 MDMDISK1 11.2.0.0.0 10.1.0.0.0
    MDMDG2 MDMDISK2 11.2.0.0.0 10.1.0.0.0


    SQL > drop diskgroup MDMDG3
    2;
    drop diskgroup MDMDG3
    *
    ERROR on line 1:
    ORA-15039: diskgroup not to fell
    ORA-15001: diskgroup 'MDMDG3' does not exist or is not mounted

    Unfortunately the documentation for the VERSION WITHOUT databases and operating systems WITHOUT NAME is very poor. In the case of ASM fortunately only 10gRx and 11gRx is possible.

    So in the case of 11 g use the FORCE option:

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b31107/asmdiskgrps.htm#i1020539

    Otherwise read on MOS:

    How to delete and re-create ASM Diskgroup [ID 563048.1]

    Werner

    Due to the 11.2.0.0.0, it looks like 11 GR 2.

    Edited by: oradba the 10.03.2011 16:12

  • ORA-38305: object not in the Recycle BIN

    Hello
    10 g R2 on a Win 2003 server with a database already in Archive log mode I did immediately:
    SQL> shutdown immediate;
    SQL> startup mount;
    ORACLE instance started.
    
    
    SQL> alter system set DB_FLASHBACK_RETENTION_TARGET=4320;
    System altered.
    
    SQL> alter system set DB_RECOVERY_FILE_DEST_SIZE=536870912;
    System altered.
    
    SQL> alter system set DB_RECOVERY_FILE_DEST='/u02/fra';
    System altered.
    
    SQL> alter database flashback on;
    Database altered.
    
    SQL> alter database open;
    Database altered.
    Then, I create a table MYTABLE and he fell.
    But when:
    SQL> flashback table "MYTABLE" to before drop;
    flashback table "MYTABLE" to before drop
    *
    ERROR at line 1:
    ORA-38305: object not in RECYCLE BIN
    What is the problem?


    Thank you.

    Hello

    Did you emptied the Recycle Bin.

    -Pavan Kumar N

Maybe you are looking for